docs(AGENTS.md): populate empty AGENTS.md sections with RHDH domain context - #200
fullsend-ai-coder[bot] wants to merge 3 commits into
Conversation
Fill in the three placeholder sections (Key Conventions, Architecture, Pattern References) with substantive content derived from the actual codebase. This gives review agents the domain context needed to catch design-level issues in PRs touching version resolution or CLI commands. Key Conventions documents the RHDH-to-Backstage version mapping model, the offline vs air-gapped distinction (RHDH_OFFLINE skips GitHub metadata but not manifest fetch), and the ExitCodeError convention for error signaling. Architecture documents the 3-tier version resolution engine in src/lib/rhdhVersion.ts, manifest caching in src/lib/backstageVersion.ts, the command directory structure under src/commands/, and the intent-based actions registration path. Pattern References points to src/commands/check-versions/command.ts as the reference for new CLI commands, src/lib/rhdhVersion.ts for version resolution patterns, src/lib/rhdhVersion.test.ts for test patterns with mocked fetch, and src/lib/backstageVersion.ts for manifest utilities. Closes #199 Assisted-by: claude-opus-4-6
|
🤖 Finished Review · ✅ Success · Started 1:05 PM UTC · Completed 1:19 PM UTC Commit: Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $4.44 |
|
Risk Assessment: low (1/5) DetailsDocs-only PR by a known bot making a small, well-scoped addition to AGENTS.md consistent with linked issue #199 — Tier 1 signals are unchanged from prior assessment (PROTECTED_PATH_COUNT=1 remains the sole mild signal), git history shows no regression patterns, and issue alignment is tight, preserving the prior score of 1. Previous runRisk Assessment: low (1/5) DetailsDocs-only PR by a known bot making a small, well-scoped addition to AGENTS.md consistent with linked issue #199 — PROTECTED_PATH_COUNT=1 is a mild signal but all other metadata, git history, and issue alignment point to low risk, preserving the prior score of 1. Previous run (2)Risk Assessment: low (1/5) DetailsDocs-only PR by a known bot adding RHDH domain context to AGENTS.md — small change, no code/CI/dependency impact, well-aligned with linked documentation issue #199. |
ReviewFindingsMedium
Previous runReviewFindingsMedium
Low
Next steps:
Previous run (2)ReviewFindingsMedium
Low
Labels: PR modifies AGENTS.md documentation only Next steps:
|
|
🤖 Finished Fix · ✅ Success · Started 1:21 PM UTC · Completed 1:25 PM UTC Commit: Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $0.85 |
- Remove incorrect `(or --offline)` parenthetical: no `--offline` CLI flag exists; offline mode is activated via `RHDH_OFFLINE=true` env var only - Fix cache key description to include all 4 components (version + manifestFile + base URL + offline flag), matching the actual implementation in `src/lib/rhdhVersion.ts:312` Addresses #200 Assisted-by: claude-opus-4-6
🔧 Fix agent — iteration 1 (bot-triggered)Fixed 2 of 4 review findings: removed incorrect Fixed (2):
Disagreed (2):
Tests: passed Decision points
Next steps:
|
|
🤖 Finished Review · ✅ Success · Started 1:26 PM UTC · Completed 1:40 PM UTC Commit: Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $3.51 |
|
🤖 Finished Fix · ✅ Success · Started 1:42 PM UTC · Completed 1:46 PM UTC Commit: Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $0.69 |
🔧 Fix agent — iteration 2 (bot-triggered)No code changes needed. The protected-path finding is informational (human approval required by design). The scope alignment finding about the PR title is valid but requires PR metadata editing which is blocked by sandbox policy — documented for manual resolution. Disagreed (2):
Tests: passed Decision points
Next steps:
|
|
/fs-fix The AGENTS.md additions are useful, but avoid an acceptance criterion that requires every next feature review to find a design issue. That incentivizes false positives. Instead, require reviewers to check the documented version-resolution, air-gap, and error-signaling rules when relevant, and allow a review to conclude that no issue exists. Also keep AGENTS.md as durable navigation and decision context, not a second implementation spec. Where behavior may evolve, point to the owning source/tests rather than duplicating detailed cache-key or fallback mechanics. Please add a concise forward reference to RHIDP-16902 near the compatibility-matrix guidance. The matrix is manually maintained today; RHIDP-16902 is planned to validate every supported entry against authoritative RHDH metadata in CI and report divergences. Do not describe it as automatic updating or PR creation, which is outside that epic’s scope. |
|
🤖 Finished Fix · ✅ Success · Started 12:22 PM UTC · Completed 12:28 PM UTC Commit: Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $1.03 |
- Condense Architecture section to point at source files for implementation details (cache keys, fallback order) rather than duplicating them, keeping AGENTS.md as durable decision context that does not drift with implementation changes. - Add forward reference to RHIDP-16902 near the compatibility-matrix guidance (CI validation of supported entries, not auto-update). Addresses #200 Assisted-by: claude-opus-4-6
🔧 Fix agent — iteration 2 (human-triggered)Reduced AGENTS.md Architecture section from implementation spec to navigational context, pointing to source files for evolving details (cache keys, fallback order). Added concise RHIDP-16902 forward reference near compatibility-matrix guidance. These changes ensure reviews check stable conventions when relevant rather than hunting for implementation drift. Fixed (3):
Tests: passed Decision points
Next steps:
|
|
|
🤖 Finished Review · ✅ Success · Started 12:29 PM UTC · Completed 12:43 PM UTC Commit: Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $3.64 |
Superseded by updated review



Summary
Populates the three empty
AGENTS.mdsections (Key Conventions, Architecture, Pattern References) with RHDH domain context, addressing the documentation gaps identified in the retro analysis of PR #176.backstage:prefix escape hatch), the offline vs air-gapped distinction (RHDH_OFFLINEskips GitHub metadata but not manifest fetch;--manifest-fileneeded for true air-gap), and theExitCodeErrorconvention for testable error signaling.src/lib/rhdhVersion.ts), manifest caching (src/lib/backstageVersion.ts), the CLI command directory structure (src/commands/), and the intent-based actions registration path.src/commands/check-versions/command.tsas the reference for new CLI commands,src/lib/rhdhVersion.tsfor version resolution,src/lib/rhdhVersion.test.tsfor mocked-fetch test patterns, andsrc/lib/backstageVersion.tsfor manifest utilities.Testing
--no-config; full project prettier requiresnode_moduleswhich are not installed in sandbox)Notes
yarn prettier:checkcould not run in sandbox (missing@spotify/prettier-configdependency); verified formatting with standalone prettierCloses #199
Post-script verification
agent/199-populate-agents-md-sections)72ee02cf48db80831caa2350d9622e49dd3f2527..HEAD)