Repository navigation
docs(#262): add File Sync Invariants subsection to AGENTS.md - #264
Conversation
|
🤖 Review · ❌ Terminated · Started 10:14 AM UTC · Ended 10:26 AM UTC Commit: |
✅MegaLinter analysis: Success
See detailed reports in MegaLinter artifacts |
|
Risk Assessment: low (1/5) DetailsDocs-only PR adding 28 lines to AGENTS.md by a known bot, with precise scope match to issue #262; Tier 1 signals unchanged from prior review (protected-path score 3 is the only elevated signal), Tier 2 shows moderate but stable file churn, and Tier 3 confirms exact issue-scope alignment — purely additive documentation with no code, CI, dependency, or behavioral impact. Previous runRisk Assessment: low (1/5) DetailsDocs-only PR adding 28 lines to AGENTS.md by a known bot, with precise scope match to issue #262. The only elevated Tier 1 signal is AGENTS.md being a protected path (score 3). Tier 2 shows moderate file churn consistent with normal governance-document evolution. The change is purely additive documentation with no code, CI, dependency, or behavioral impact. Previous run (2)Risk Assessment: low (1/5) DetailsDocs-only PR adding 28 lines to AGENTS.md by a known bot, with precise scope match to issue #262. The only elevated Tier 1 signal is AGENTS.md being a protected path (score 3). Tier 2 shows moderate file churn consistent with normal governance-document evolution. The change is purely additive documentation with no code, CI, dependency, or behavioral impact. Previous run (3)Risk Assessment: low (1/5) DetailsDocs-only PR adding 16 lines to AGENTS.md by a known bot, with precise scope match to issue #262. The only elevated Tier 1 signal is AGENTS.md being a protected path (score 3). Tier 2 shows moderate file churn but this reflects normal governance-document evolution, not instability. The change is purely additive documentation with no code, CI, dependency, or behavioral impact. Previous run (4)Risk Assessment: low (1/5) DetailsDocs-only PR adding 16 lines to AGENTS.md by a known bot, with precise scope match to issue #262; the only elevated signal is AGENTS.md being a protected path with moderate churn, but the change is additive documentation with no code, CI, or behavioral impact. |
ReviewFindingsMedium
Previous runReviewFindingsMedium
Previous run (2)ReviewFindingsMedium
Previous run (3)ReviewFindingsMedium
Previous run (4)ReviewFindingsMedium
|
7867ec4 to
9382659
Compare
|
🤖 Finished Review · ✅ Success · Started 11:48 AM UTC · Completed 11:59 AM UTC Commit: Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $4.24 |
em-redhat
left a comment
There was a problem hiding this comment.
PR Review: #264 — docs(#262): add File Sync Invariants subsection to AGENTS.md
Summary
Small, well-placed docs-only PR that documents two embed.FS sync invariants and their enforcing tests in the Key Patterns section. One factual inaccuracy in the glob pattern overstates the scope of synced files.
Alignment
- [MEDIUM] Glob pattern overstates sync scope — see inline comment.
- Both test names verified (
TestEmbeddedAssetsMatchSourceininternal/scaffold/scaffold_test.go,TestEmbeddedPromptMatchesScaffoldininternal/aireport/prompt_test.go). Sync directions are accurate. The "9 embedded assets" count is confirmed correct.
Security
No issues found.
Constitution Compliance
No issues found.
CI Status
All completed checks pass (Go 1.25 unit/integration/e2e, MegaLinter). Go 1.24 checks were in-progress at review time.
Verdict
COMMENT — The single MEDIUM finding does not block merge but the wording should be tightened before approving.
This review was generated by /uf.review-pr (AI-assisted).
9382659 to
ffd02b2
Compare
|
🤖 Review · Commit: |
|
🤖 Finished Review · ✅ Success · Started 12:33 PM UTC · Completed 12:46 PM UTC Commit: Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $2.99 |
dd0cf5b to
9bd1247
Compare
|
🤖 Finished Review · ✅ Success · Started 9:02 PM UTC · Completed 9:12 PM UTC Commit: Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $2.28 |
9bd1247 to
348f279
Compare
|
🤖 Finished Review · ✅ Success · Started 10:18 AM UTC · Completed 10:28 AM UTC Commit: Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $3.15 |
Add explicit documentation of the embed.FS sync requirement between .opencode/ source files and their byte-identical copies under internal/scaffold/assets/ and internal/aireport/assets/. This relationship is enforced by TestEmbeddedAssetsMatchSource and TestEmbeddedPromptMatchesScaffold but was not documented as a review invariant, causing PR #256 to pass automated review with unsynced files. The new table gives reviewers — human, fullsend bot, and Divisor personas — a direct lookup for which file groups must stay in sync. Closes #262
Replace the misleading glob pattern with a precise list of the 9 files
actually embedded by gaze init. The glob implied all ~56 .md files in
.opencode/{agents,commands,references}/ are synced, but only these 9
are embedded in internal/scaffold/assets/.
348f279 to
a83dcbc
Compare

Summary
Adds a "File Sync Invariants" subsection to the "Key Patterns" section of
AGENTS.mddocumenting which file groups must remain byte-identical:.opencode/{agents,commands,references}/*.mdand.opencode/dcp.jsonc→internal/scaffold/assets/(enforced byTestEmbeddedAssetsMatchSource)internal/scaffold/assets/agents/gaze-reporter.md→internal/aireport/assets/agents/gaze-reporter.md(enforced byTestEmbeddedPromptMatchesScaffold)This addresses the gap surfaced in PR #256 where the fullsend review agent missed unsynced embedded assets because the sync requirement was implicit in test code, not documented as a review invariant.
Testing
Closes #262
Post-script verification
agent/262-document-embed-sync-invariants)0e64f36e332c9fd298c089780576076d7517bade..HEAD)