Skip to content

LCORE-3444: Properly formatted devel doc - #2367

Merged
tisnik merged 2 commits into
lightspeed-core:mainfrom
tisnik:lcore-3444
Aug 7, 2026
Merged

LCORE-3444: Properly formatted devel doc#2367
tisnik merged 2 commits into
lightspeed-core:mainfrom
tisnik:lcore-3444

Conversation

@tisnik

@tisnik tisnik commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Description

LCORE-3444: Properly formatted devel doc

Type of change

  • Refactor
  • New feature
  • Bug fix
  • CVE fix
  • Optimization
  • Documentation Update
  • Configuration Update
  • Bump-up service version
  • Bump-up dependent library [pyproject.toml + uv.lock]
  • Bump-up dependent library [requirements.*.txt for Konflux]
  • Bump-up library or tool used for development (does not change the final image)
  • CI configuration change
  • Konflux configuration change
  • Unit tests improvement
  • Integration tests improvement
  • End to end tests improvement
  • Benchmarks improvement

Tools used to create PR

  • Assisted-by: N/A
  • Generated by: N/A

Related Tickets & Documents

  • Related Issue #LCORE-3444

Summary by CodeRabbit

  • Documentation
    • Improved README formatting across many source and test directories for clearer spacing and readability.
    • Added or expanded short descriptions for several modules, helpers, and test files.
    • Updated documentation to include a few previously undocumented entries and clearer coverage notes.
    • Added mention of SQLite as a cache-backed option in the cache docs.

@coderabbitai

coderabbitai Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Walkthrough

The documentation generator now inserts blank lines after file headings. Generated source and test README files were reformatted and expanded with descriptions for selected modules and tests.

Changes

README documentation

Layer / File(s) Summary
README generation formatting
scripts/gen_doc.py
The generator adds a blank line after each generated file heading.
Source README formatting and descriptions
src/**/README.md
Source README files add Markdown spacing and document selected modules, including SQLite cache storage and saved prompt models.
Test README formatting and descriptions
tests/**/README.md
Test README files add Markdown spacing and document selected test modules and their coverage.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related PRs

Suggested reviewers: radofuchs

🚥 Pre-merge checks | ✅ 7
✅ Passed checks (7 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the development documentation formatting change and includes the related issue identifier.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Performance And Algorithmic Complexity ✅ Passed All 66 changed files are README.md files; the patch adds 460 blank lines and no Python or executable changes, so it introduces no meaningful performance regression.
Security And Secret Handling ✅ Passed The PR changes only 66 README files with blank lines and adds one blank-line print in the doc generator; no secrets, endpoints, auth logic, injection code, logs, responses, or K8s manifests changed.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
✨ Simplify code
  • Create PR with simplified code

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/app/endpoints/README.md`:
- Line 49: Update the README description for the REST API handler to place
“dynamically” after “manage MCP servers,” preserving the existing meaning and
wording otherwise.

In `@src/app/README.md`:
- Line 13: Update the source descriptions generating src/app/README.md at lines
13-13 and src/authentication/README.md at lines 17-17 to use the compound
modifiers “FastAPI-based web service” and “JWK-based JWT auth” respectively,
then regenerate both README files so the generated descriptions reflect those
corrections.

In `@src/utils/README.md`:
- Line 9: Update the source description consumed by scripts/gen_doc.py to use
“built-in” instead of “builtin” for the file-search provider, then regenerate
src/utils/README.md so the generated documentation preserves the corrected
wording.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: aaf86973-8f9f-43f4-9dee-48a057ee90e3

📥 Commits

Reviewing files that changed from the base of the PR and between f7d9bd7 and f6f060e.

📒 Files selected for processing (67)
  • scripts/gen_doc.py
  • src/README.md
  • src/a2a_storage/README.md
  • src/app/README.md
  • src/app/endpoints/README.md
  • src/authentication/README.md
  • src/authorization/README.md
  • src/cache/README.md
  • src/data/README.md
  • src/metrics/README.md
  • src/models/README.md
  • src/models/api/README.md
  • src/models/api/requests/README.md
  • src/models/api/responses/README.md
  • src/models/api/responses/error/README.md
  • src/models/api/responses/successful/README.md
  • src/models/common/README.md
  • src/models/common/agents/README.md
  • src/models/common/responses/README.md
  • src/models/database/README.md
  • src/observability/README.md
  • src/observability/formats/README.md
  • src/pydantic_ai_lightspeed/README.md
  • src/pydantic_ai_lightspeed/capabilities/README.md
  • src/pydantic_ai_lightspeed/capabilities/question_validity/README.md
  • src/pydantic_ai_lightspeed/capabilities/redaction/README.md
  • src/pydantic_ai_lightspeed/llamastack/README.md
  • src/quota/README.md
  • src/runners/README.md
  • src/telemetry/README.md
  • src/utils/README.md
  • src/utils/agents/README.md
  • tests/e2e/features/README.md
  • tests/e2e/features/steps/README.md
  • tests/e2e/mock_jwks_server/README.md
  • tests/e2e/mock_mcp_server/README.md
  • tests/e2e/mock_tls_inference_server/README.md
  • tests/e2e/proxy/README.md
  • tests/e2e/utils/README.md
  • tests/integration/container_lifecycle/README.md
  • tests/integration/endpoints/README.md
  • tests/unit/README.md
  • tests/unit/a2a_storage/README.md
  • tests/unit/app/README.md
  • tests/unit/app/endpoints/README.md
  • tests/unit/authentication/README.md
  • tests/unit/authorization/README.md
  • tests/unit/cache/README.md
  • tests/unit/metrics/README.md
  • tests/unit/models/README.md
  • tests/unit/models/config/README.md
  • tests/unit/models/database/README.md
  • tests/unit/models/requests/README.md
  • tests/unit/models/responses/README.md
  • tests/unit/models/rlsapi/README.md
  • tests/unit/observability/README.md
  • tests/unit/observability/formats/README.md
  • tests/unit/pydantic_ai_lightspeed/README.md
  • tests/unit/pydantic_ai_lightspeed/capabilities/README.md
  • tests/unit/pydantic_ai_lightspeed/capabilities/question_validity/README.md
  • tests/unit/pydantic_ai_lightspeed/capabilities/redaction/README.md
  • tests/unit/pydantic_ai_lightspeed/llamastack/README.md
  • tests/unit/quota/README.md
  • tests/unit/runners/README.md
  • tests/unit/telemetry/README.md
  • tests/unit/utils/README.md
  • tests/unit/utils/agents/README.md
📜 Review details
⏰ Context from checks skipped due to timeout. (2)
  • GitHub Check: integration_tests (3.12)
  • GitHub Check: Konflux kflux-prd-rh02 / lightspeed-stack-0-7-on-pull-request
⚠️ CI failures not shown inline (1)

GitHub Check: Konflux kflux-prd-rh02 / lightspeed-stack-0-8-on-pull-request: Failed

Conclusion: failure

View job details

Konflux kflux-prd-rh02/lightspeed-stack-0-8-on-pull-request has <b>failed</b>.
<ul>
<li><b>Namespace</b>: <a href="https://konflux-ui.apps.kflux-prd-rh02.0fk9.p1.openshiftapps.com/ns/lightspeed-core-tenant">lightspeed-core-tenant</a></li>
<li><b>PipelineRun:</b> <a href="https://konflux-ui.apps.kflux-prd-rh02.0fk9.p1.openshiftapps.com/ns/lightspeed-core-tenant/pipelinerun/lightspeed-stack-0-8-on-pull-request-gph2b">lightspeed-stack-0-8-on-pull-request-gph2b</a></li>
</ul>
<hr>
<h4>Task Statuses:</h4>
<table>
  <tr><th>Status</th><th>Duration</th><th>Name</th></tr>
<tr>
<td>🟢 Succeeded</td>
<td>4 seconds</td><td>
[init](https://konflux-ui.apps.kflux-prd-rh02.0fk9.p1.openshiftapps.com/ns/lightspeed-core-tenant/pipelinerun/lightspeed-stack-0-8-on-pull-request-gph2b/logs/init)
</td></tr>
<tr>
<td>🟢 Succeeded</td>
<td>16 seconds</td><td>
[clone-repository](https://konflux-ui.apps.kflux-prd-rh02.0fk9.p1.openshiftapps.com/ns/lightspeed-core-tenant/pipelinerun/lightspeed-stack-0-8-on-pull-request-gph2b/logs/clone-repository)
</td></tr>
<tr>
<td>🟢 Succeeded</td>
<td>10 seconds</td><td>
[prefetch-dependencies](https://konflux-ui.apps.kflux-prd-rh02.0fk9.p1.openshiftapps.com/ns/lightspeed-core-tenant/pipelinerun/lightspeed-stack-0-8-on-pull-request-gph2b/logs/prefetch-dependencies)
</td></tr>
<tr>
<td>🔴 Failed</td>
<td>10 seconds</td><td>
[build-images](https://konflux-ui.apps.kflux-prd-rh02.0fk9.p1.openshiftapps.com/ns/lightspeed-core-tenant/pipelinerun/lightspeed-stack-0-8-on-pull-request-gph2b/logs/build-images)
</td></tr>
</table>
🧰 Additional context used
📓 Path-based instructions (3)
**/*

📄 CodeRabbit inference engine (Custom checks)

**/*: Flag meaningful O(n^2)+ algorithms on non-trivial inputs, including handlers and Kubernetes list operations.
Flag N+1 patterns that list items and then query once per item, including Kubernetes API and database access.
Flag expensive work inside loops, including API calls, JSON parsing, and regex compilation.
Flag unbounded growth in caches, watchers, or buffers when eviction or limits are missing.
Flag missing pagination or limits on list operations and API endpoints.
Flag secrets or tokens logged in plaintext or hardcoded in source.
Flag API endpoints missing authentication or authorization.
Flag injection vulnerabilities, including SQL injection, command injection, and path traversal.
Flag sensitive data leaked in API responses, WebSocket messages, or logs.
Flag Kubernetes Secrets and Red Hat secrets missing OwnerReferences.

**/*: Use uv for dependency management and prefix project commands with uv run; synchronize development dependencies with uv sync --group dev --group llslibdev when required.
Before completing code changes, run uv run make format, uv run make verify, and the applicable tests; regenerate the OpenAPI schema when models change, and report completion only after checks pass.
Follow existing code patterns in the module being modified and write unit tests covering new functionality.

Files:

  • tests/e2e/features/README.md
  • src/models/api/README.md
  • tests/integration/container_lifecycle/README.md
  • src/observability/formats/README.md
  • tests/unit/pydantic_ai_lightspeed/capabilities/README.md
  • tests/unit/utils/README.md
  • src/models/api/responses/successful/README.md
  • tests/unit/models/database/README.md
  • tests/unit/models/config/README.md
  • tests/unit/models/rlsapi/README.md
  • src/app/README.md
  • src/authentication/README.md
  • src/pydantic_ai_lightspeed/llamastack/README.md
  • src/app/endpoints/README.md
  • src/observability/README.md
  • tests/integration/endpoints/README.md
  • tests/unit/models/responses/README.md
  • src/utils/README.md
  • tests/unit/README.md
  • tests/e2e/mock_jwks_server/README.md
  • tests/unit/cache/README.md
  • tests/unit/metrics/README.md
  • src/telemetry/README.md
  • src/models/README.md
  • src/pydantic_ai_lightspeed/capabilities/question_validity/README.md
  • src/models/database/README.md
  • src/a2a_storage/README.md
  • tests/e2e/mock_mcp_server/README.md
  • src/quota/README.md
  • scripts/gen_doc.py
  • tests/e2e/proxy/README.md
  • src/pydantic_ai_lightspeed/capabilities/redaction/README.md
  • tests/unit/pydantic_ai_lightspeed/README.md
  • tests/unit/app/README.md
  • tests/unit/runners/README.md
  • src/README.md
  • tests/unit/authorization/README.md
  • src/models/api/responses/error/README.md
  • tests/unit/a2a_storage/README.md
  • src/pydantic_ai_lightspeed/capabilities/README.md
  • tests/unit/observability/README.md
  • tests/unit/utils/agents/README.md
  • tests/unit/quota/README.md
  • src/cache/README.md
  • src/models/common/agents/README.md
  • tests/unit/app/endpoints/README.md
  • src/runners/README.md
  • tests/unit/pydantic_ai_lightspeed/capabilities/question_validity/README.md
  • src/authorization/README.md
  • tests/unit/models/README.md
  • src/utils/agents/README.md
  • tests/e2e/mock_tls_inference_server/README.md
  • src/models/api/requests/README.md
  • src/metrics/README.md
  • tests/unit/models/requests/README.md
  • src/models/common/responses/README.md
  • tests/unit/telemetry/README.md
  • tests/e2e/features/steps/README.md
  • tests/unit/observability/formats/README.md
  • tests/e2e/utils/README.md
  • tests/unit/authentication/README.md
  • tests/unit/pydantic_ai_lightspeed/capabilities/redaction/README.md
  • src/models/api/responses/README.md
  • src/pydantic_ai_lightspeed/README.md
  • tests/unit/pydantic_ai_lightspeed/llamastack/README.md
  • src/data/README.md
  • src/models/common/README.md
**/*.py

📄 CodeRabbit inference engine (AGENTS.md)

**/*.py: Use absolute imports for internal Python modules.
All modules must begin with descriptive docstrings; package __init__.py files must contain brief package descriptions.
Use logger = get_logger(__name__) from log.py for module logging.
Use Final[type] type hints for constants and define shared constants in the central constants.py module.

Files:

  • scripts/gen_doc.py
**/*.{py,yaml,yml,json,toml}

📄 CodeRabbit inference engine (AGENTS.md)

Never commit secrets or keys; use environment variables for sensitive data.

Files:

  • scripts/gen_doc.py
🧠 Learnings (1)
📚 Learning: 2026-06-24T13:45:37.249Z
Learnt from: Jdubrick
Repo: lightspeed-core/lightspeed-stack PR: 1971
File: src/utils/markdown_repair.py:31-36
Timestamp: 2026-06-24T13:45:37.249Z
Learning: In the lightspeed-stack repository, docstrings must use the section header name "Parameters:" (not "Args:") for function arguments, even if the project references Google Python docstring conventions. Ensure docstrings follow the project’s established "Parameters:" header format for any documented function parameters.

Applied to files:

  • scripts/gen_doc.py
🪛 ast-grep (0.45.0)
scripts/gen_doc.py

[warning] 47-47: File path is request-/variable-derived; validate and normalize to prevent path traversal.
Context: open(file, encoding="utf-8")
Note: [CWE-22] Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').

(open-filename-from-request)

🪛 LanguageTool
src/app/README.md

[grammar] ~13-~13: Use a hyphen to join words.
Context: ...main.py](main.py) Definition of FastAPI based web service. ## [routers.py](rout...

(QB_NEW_EN_HYPHEN)

src/authentication/README.md

[grammar] ~17-~17: Use a hyphen to join words.
Context: ...tion flow for FastAPI endpoints with JWK based JWT auth. ## k8s.py Ma...

(QB_NEW_EN_HYPHEN)

src/app/endpoints/README.md

[style] ~49-~49: Try moving the adverb to make the sentence clearer.
Context: ...](mcp_servers.py) Handler for REST API calls to dynamically manage MCP servers. ## metrics.py Handler ...

(SPLIT_INFINITIVE)

src/utils/README.md

[grammar] ~9-~9: Ensure spelling is correct
Context: ...n_tools.py](builtin_tools.py) Discover builtin file-search tools when that provider is...

(QB_NEW_EN_ORTHOGRAPHY_ERROR_IDS_1)

🔇 Additional comments (66)
scripts/gen_doc.py (1)

47-47: LGTM!

src/models/api/responses/README.md (1)

4-8: LGTM!

src/models/api/responses/error/README.md (1)

4-48: LGTM!

src/models/api/responses/successful/README.md (1)

4-56: LGTM!

src/models/common/README.md (1)

4-48: LGTM!

src/models/common/agents/README.md (1)

4-12: LGTM!

src/models/common/responses/README.md (1)

4-20: LGTM!

src/models/database/README.md (1)

4-16: LGTM!

src/observability/README.md (1)

4-8: LGTM!

src/observability/formats/README.md (1)

4-12: LGTM!

src/pydantic_ai_lightspeed/README.md (1)

4-4: LGTM!

src/README.md (1)

4-36: LGTM!

src/a2a_storage/README.md (1)

4-24: LGTM!

src/app/README.md (1)

4-12: LGTM!

Also applies to: 14-16

src/app/endpoints/README.md (1)

4-48: LGTM!

Also applies to: 50-112

src/authentication/README.md (1)

4-16: LGTM!

Also applies to: 18-40

src/authorization/README.md (1)

4-16: LGTM!

src/cache/README.md (1)

4-36: LGTM!

src/data/README.md (1)

4-4: LGTM!

src/metrics/README.md (1)

4-12: LGTM!

src/models/README.md (1)

4-12: LGTM!

src/models/api/README.md (1)

4-4: LGTM!

src/models/api/requests/README.md (1)

4-44: LGTM!

src/pydantic_ai_lightspeed/capabilities/README.md (1)

4-8: LGTM!

src/pydantic_ai_lightspeed/capabilities/question_validity/README.md (1)

4-8: LGTM!

src/pydantic_ai_lightspeed/capabilities/redaction/README.md (1)

4-12: LGTM!

src/pydantic_ai_lightspeed/llamastack/README.md (1)

4-16: LGTM!

src/quota/README.md (1)

4-44: LGTM!

src/runners/README.md (1)

4-12: LGTM!

src/telemetry/README.md (1)

4-8: LGTM!

tests/e2e/features/README.md (1)

4-4: LGTM!

tests/e2e/features/steps/README.md (1)

4-76: LGTM!

tests/e2e/mock_jwks_server/README.md (1)

4-8: LGTM!

tests/e2e/mock_mcp_server/README.md (1)

4-4: LGTM!

src/utils/agents/README.md (1)

4-20: LGTM!

tests/e2e/mock_tls_inference_server/README.md (1)

4-4: LGTM!

tests/e2e/proxy/README.md (1)

4-12: LGTM!

tests/e2e/utils/README.md (1)

4-20: LGTM!

tests/integration/container_lifecycle/README.md (1)

4-4: LGTM!

tests/unit/quota/README.md (1)

4-28: LGTM!

tests/unit/runners/README.md (1)

4-8: LGTM!

tests/unit/telemetry/README.md (1)

4-12: LGTM!

tests/unit/utils/README.md (1)

4-132: LGTM!

tests/unit/utils/agents/README.md (1)

4-12: LGTM!

tests/integration/endpoints/README.md (1)

4-76: LGTM!

tests/unit/README.md (1)

4-44: LGTM!

tests/unit/a2a_storage/README.md (1)

4-16: LGTM!

tests/unit/app/README.md (1)

4-16: LGTM!

tests/unit/app/endpoints/README.md (1)

4-112: LGTM!

tests/unit/observability/formats/README.md (1)

4-12: LGTM!

tests/unit/pydantic_ai_lightspeed/README.md (1)

4-4: LGTM!

tests/unit/pydantic_ai_lightspeed/capabilities/README.md (1)

4-4: LGTM!

tests/unit/pydantic_ai_lightspeed/capabilities/question_validity/README.md (1)

4-8: LGTM!

tests/unit/pydantic_ai_lightspeed/capabilities/redaction/README.md (1)

4-16: LGTM!

tests/unit/pydantic_ai_lightspeed/llamastack/README.md (1)

4-16: LGTM!

tests/unit/authentication/README.md (1)

4-40: LGTM!

tests/unit/authorization/README.md (1)

4-16: LGTM!

tests/unit/cache/README.md (1)

4-24: LGTM!

tests/unit/metrics/README.md (1)

4-12: LGTM!

tests/unit/models/README.md (1)

4-16: LGTM!

tests/unit/models/config/README.md (1)

4-124: LGTM!

tests/unit/models/database/README.md (1)

4-8: LGTM!

tests/unit/models/requests/README.md (1)

4-28: LGTM!

tests/unit/models/responses/README.md (1)

4-32: LGTM!

tests/unit/models/rlsapi/README.md (1)

4-12: LGTM!

tests/unit/observability/README.md (1)

4-8: LGTM!


## [mcp_servers.py](mcp_servers.py)

Handler for REST API calls to dynamically manage MCP servers.

@coderabbitai coderabbitai Bot Aug 6, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Improve the adverb placement.

Use Handler for REST API calls to manage MCP servers dynamically. This avoids the split infinitive and keeps the meaning clear.

🧰 Tools
🪛 LanguageTool

[style] ~49-~49: Try moving the adverb to make the sentence clearer.
Context: ...](mcp_servers.py) Handler for REST API calls to dynamically manage MCP servers. ## metrics.py Handler ...

(SPLIT_INFINITIVE)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/app/endpoints/README.md` at line 49, Update the README description for
the REST API handler to place “dynamically” after “manage MCP servers,”
preserving the existing meaning and wording otherwise.

Source: Linters/SAST tools

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@coderabbitai create issue

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

repo="lightspeed-core/lightspeed-stack"

gh issue create \
  --repo "$repo" \
  --title "Improve adverb placement in the MCP servers endpoint README entry" \
  --assignee "tisnik" \
  --body "$(cat <<'EOF'
## Summary

Update the `mcp_servers.py` description in `src/app/endpoints/README.md`.

## Required change

Replace:

`Handler for REST API calls to dynamically manage MCP servers.`

With:

`Handler for REST API calls to manage MCP servers dynamically.`

## Rationale

The revised sentence has clearer adverb placement and preserves the existing meaning.

## Affected area

- `src/app/endpoints/README.md`

## Acceptance criteria

- The `mcp_servers.py` README entry uses the revised sentence.
- The generated README remains consistent with the documentation generator output.

## Backlinks

- Pull request: https://github.com/lightspeed-core/lightspeed-stack/pull/2367
- Review comment: https://github.com/lightspeed-core/lightspeed-stack/pull/2367#discussion_r3730106847

Requested by: `@tisnik`
EOF
)"

Length of output: 1241


@tisnik, created follow-up issue #2368: Improve adverb placement in the MCP servers endpoint README entry.

You are interacting with an AI system.

Comment thread src/app/README.md

## [main.py](main.py)

Definition of FastAPI based web service.

@coderabbitai coderabbitai Bot Aug 6, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Correct compound modifiers in the generated descriptions.

  • src/app/README.md#L13-L13: Use FastAPI-based web service in the source description, then regenerate the README.
  • src/authentication/README.md#L17-L17: Use JWK-based JWT auth in the source description, then regenerate the README.
🧰 Tools
🪛 LanguageTool

[grammar] ~13-~13: Use a hyphen to join words.
Context: ...main.py](main.py) Definition of FastAPI based web service. ## [routers.py](rout...

(QB_NEW_EN_HYPHEN)

📍 Affects 2 files
  • src/app/README.md#L13-L13 (this comment)
  • src/authentication/README.md#L17-L17
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/app/README.md` at line 13, Update the source descriptions generating
src/app/README.md at lines 13-13 and src/authentication/README.md at lines 17-17
to use the compound modifiers “FastAPI-based web service” and “JWK-based JWT
auth” respectively, then regenerate both README files so the generated
descriptions reflect those corrections.

Source: Linters/SAST tools

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@coderabbitai create issue

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

repo="lightspeed-core/lightspeed-stack"
issue_body=$(cat <<'EOF'
## Summary

Correct compound modifiers in the source descriptions that generate README documentation.

## Required changes

- Change the `src/app` description to `FastAPI-based web service`.
- Change the `src/authentication` description to `JWK-based JWT auth`.
- Regenerate `src/app/README.md` and `src/authentication/README.md` after updating the source descriptions.

## Rationale

Hyphenated compound modifiers improve grammar and maintain consistent generated documentation.

## Affected areas

- Documentation source for `src/app/README.md`
- Documentation source for `src/authentication/README.md`
- Generated README files: `src/app/README.md` and `src/authentication/README.md`

## Acceptance criteria

- The generated `main.py` entry in `src/app/README.md` contains `Definition of FastAPI-based web service.`
- The generated authentication entry contains `JWK-based JWT auth`.
- The README generator produces the corrected descriptions without manual edits to generated files.

## Backlinks

- Pull request: https://github.com/lightspeed-core/lightspeed-stack/pull/2367
- Review comment: https://github.com/lightspeed-core/lightspeed-stack/pull/2367#discussion_r3730106861
- Requested by: `@tisnik`
EOF
)

gh issue create \
  --repo "$repo" \
  --title "Correct compound modifiers in generated README descriptions" \
  --body "$issue_body" \
  --assignee "tisnik"

Length of output: 1669


@tisnik Created follow-up issue #2369: Correct compound modifiers in generated README descriptions.

You are interacting with an AI system.

Comment thread src/utils/README.md

## [builtin_tools.py](builtin_tools.py)

Discover builtin file-search tools when that provider is configured.

@coderabbitai coderabbitai Bot Aug 6, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Use built-in in the generated description.

Correct the source description consumed by scripts/gen_doc.py, then regenerate the README. Otherwise, the next generation can restore builtin.

🧰 Tools
🪛 LanguageTool

[grammar] ~9-~9: Ensure spelling is correct
Context: ...n_tools.py](builtin_tools.py) Discover builtin file-search tools when that provider is...

(QB_NEW_EN_ORTHOGRAPHY_ERROR_IDS_1)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/utils/README.md` at line 9, Update the source description consumed by
scripts/gen_doc.py to use “built-in” instead of “builtin” for the file-search
provider, then regenerate src/utils/README.md so the generated documentation
preserves the corrected wording.

Source: Linters/SAST tools

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@coderabbitai create issue

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

gh issue create \
  --repo lightspeed-core/lightspeed-stack \
  --title 'Use “built-in” in generated documentation for builtin_tools.py' \
  --assignee tisnik \
  --body "$(cat <<'EOF'
## Summary

Change the source description for `builtin_tools.py` from “builtin” to “built-in”, then regenerate the affected README documentation.

## Rationale

`src/utils/README.md` is generated by `scripts/gen_doc.py`. Editing only the generated README can cause a later generation to restore the current wording.

## Affected areas

- `scripts/gen_doc.py` input source or metadata that provides the description for `builtin_tools.py`
- `src/utils/README.md`

## Required changes

1. Update the source description to use “built-in” in “Discover built-in file-search tools when that provider is configured.”
2. Regenerate `src/utils/README.md`.
3. Verify that the generated README preserves the corrected wording.

## Acceptance criteria

- The source description uses “built-in”.
- `src/utils/README.md` contains the regenerated description with “built-in”.
- A subsequent documentation generation does not restore “builtin”.

## Backlinks

- Pull request: https://github.com/lightspeed-core/lightspeed-stack/pull/2367
- Review comment: https://github.com/lightspeed-core/lightspeed-stack/pull/2367#discussion_r3730106866

Requested by: `@tisnik`
EOF
)"

Length of output: 1572


@tisnik, created follow-up issue #2370: Use “built-in” in generated documentation for builtin_tools.py. It is assigned to you.

You are interacting with an AI system.

@tisnik
tisnik merged commit d8ebfe8 into lightspeed-core:main Aug 7, 2026
42 of 69 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant