Skip to content

docs(#262): add File Sync Invariants subsection to AGENTS.md - #264

Merged
yvonnedevlinrh merged 2 commits into
mainfrom
agent/262-document-embed-sync-invariants
Oct 12, 2026
Merged

yvonnedevlinrh merged 2 commits into
mainfrom
agent/262-document-embed-sync-invariants

Conversation

@fullsend-ai-coder

Copy link
Copy Markdown
Contributor

Summary

Adds a "File Sync Invariants" subsection to the "Key Patterns" section of AGENTS.md documenting which file groups must remain byte-identical:

  • .opencode/{agents,commands,references}/*.md and .opencode/dcp.jsonc → internal/scaffold/assets/ (enforced by TestEmbeddedAssetsMatchSource)
  • internal/scaffold/assets/agents/gaze-reporter.md → internal/aireport/assets/agents/gaze-reporter.md (enforced by TestEmbeddedPromptMatchesScaffold)

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

  • Documentation-only change — no Go code modified
  • Verified both referenced tests exist at the documented paths
  • Verified the file paths and counts in the table match the actual codebase (9 embedded assets)

Closes #262

Post-script verification

  • Branch is not main/master (agent/262-document-embed-sync-invariants)
  • Secret scan passed (gitleaks — 0e64f36e332c9fd298c089780576076d7517bade..HEAD)
  • PR body secret scan passed (gitleaks — no-git)

@fullsend-ai-coder fullsend-ai-coder Bot added the ready-for-review Triggers review agent dispatch label Sep 15, 2026
@fullsend-ai-review

fullsend-ai-review Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

🤖 Review · ❌ Terminated · Started 10:14 AM UTC · Ended 10:26 AM UTC

Commit: 357bde5 · View workflow run →

@github-actions

github-actions Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

✅MegaLinter analysis: Success

Descriptor Linter Files Fixed Errors Warnings Elapsed time
✅ MARKDOWN markdownlint 1 0 0 0 0.52s
✅ REPOSITORY gitleaks yes no no 1.98s
✅ REPOSITORY git_diff yes no no 0.43s

See detailed reports in MegaLinter artifacts
Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff

MegaLinter is graciously provided by OX Security

@fullsend-ai-review fullsend-ai-review Bot added the risk/low PR risk: low label Sep 15, 2026
@fullsend-ai-review

fullsend-ai-review Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

Risk Assessment: low (1/5)

Details

Docs-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 run

Risk Assessment: low (1/5)

Details

Docs-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)

Details

Docs-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)

Details

Docs-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)

Details

Docs-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.

@fullsend-ai-review

fullsend-ai-review Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

Review

Findings

Medium

Previous run

Review

Findings

Medium

Previous run (2)

Review

Findings

Medium

Previous run (3)

Review

Findings

Medium

Previous run (4)

Review

Findings

Medium

@em-redhat
em-redhat force-pushed the agent/262-document-embed-sync-invariants branch from 7867ec4 to 9382659 Compare September 17, 2026 11:46
@em-redhat
em-redhat requested a review from a team September 17, 2026 11:47
@fullsend-ai-review

fullsend-ai-review Bot commented Sep 17, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 11:48 AM UTC · Completed 11:59 AM UTC

Commit: 9382659 · View workflow run →

Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $4.24

@fullsend-ai-review fullsend-ai-review Bot added the requires-manual-review Review requires human judgment label Sep 17, 2026

@em-redhat em-redhat 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.

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 (TestEmbeddedAssetsMatchSource in internal/scaffold/scaffold_test.go, TestEmbeddedPromptMatchesScaffold in internal/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).

Comment thread AGENTS.md Resolved
@em-redhat
em-redhat force-pushed the agent/262-document-embed-sync-invariants branch from 9382659 to ffd02b2 Compare September 17, 2026 12:28
@fullsend-ai-review

fullsend-ai-review Bot commented Sep 17, 2026 •

Copy link
Copy Markdown

🤖 Review · ⚠️ Cancelled · Started 12:30 PM UTC · Ended 12:32 PM UTC

Commit: ffd02b2 · View workflow run →

@em-redhat
em-redhat requested a review from a team September 17, 2026 12:32
@fullsend-ai-review

fullsend-ai-review Bot commented Sep 17, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 12:33 PM UTC · Completed 12:46 PM UTC

Commit: dd0cf5b · View workflow run →

Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $2.99

@em-redhat em-redhat self-assigned this Sep 17, 2026
@jflowers
jflowers force-pushed the agent/262-document-embed-sync-invariants branch from dd0cf5b to 9bd1247 Compare September 22, 2026 21:01
@fullsend-ai-review

fullsend-ai-review Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 9:02 PM UTC · Completed 9:12 PM UTC

Commit: 9bd1247 · View workflow run →

Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $2.28

@yvonnedevlinrh
yvonnedevlinrh force-pushed the agent/262-document-embed-sync-invariants branch from 9bd1247 to 348f279 Compare September 23, 2026 10:17
@fullsend-ai-review

fullsend-ai-review Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 10:18 AM UTC · Completed 10:28 AM UTC

Commit: 348f279 · View workflow run →

Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $3.15

@em-redhat em-redhat removed their assignment Sep 23, 2026
fullsend-ai-coder Bot and others added 2 commits October 12, 2026 10:44
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/.
@yvonnedevlinrh
yvonnedevlinrh force-pushed the agent/262-document-embed-sync-invariants branch from 348f279 to a83dcbc Compare October 12, 2026 09:44

@yvonnedevlinrh yvonnedevlinrh 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.

LGTM

@yvonnedevlinrh
yvonnedevlinrh merged commit 5febe5c into main Oct 12, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review Triggers review agent dispatch requires-manual-review Review requires human judgment risk/low PR risk: low

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document embed.FS sync invariants as explicit review rules in AGENTS.md

2 participants