Skip to content

docs(#116): document scaffolded-to-embedded file mapping - #117

Merged
yvonnedevlinrh merged 2 commits into
mainfrom
agent/116-document-drift-mapping
Oct 12, 2026
Merged

yvonnedevlinrh merged 2 commits into
mainfrom
agent/116-document-drift-mapping

Conversation

@fullsend-ai-coder

Copy link
Copy Markdown
Contributor

Summary

  • Adds a "Drift Detection (Mirrored Files)" section to AGENTS.md documenting all 15 scaffolded-to-embedded file pairs (7 skills, 5 commands, 3 agents) that must be kept byte-identical
  • Explains which files are mirrored vs. which .opencode/ files have no embedded copy (avoiding false positives from wildcard assumptions)
  • Documents current test coverage status (3 of 15 files tested) with cross-reference to fix: agentkit test hygiene — dead branch, misleading name, fragmented drift detectio #70 for planned expansion
  • Includes actionable "When Reviewing or Implementing" guidance so agents and reviewers know to check both locations

Motivation

PR #109 updated .opencode/skills/always-on-guidance/SKILL.md but did not sync the embedded copy at internal/agentkit/content/skills/always-on-guidance/SKILL.md, breaking drift detection tests in CI. The mapping was only discoverable by reading test code. This documentation makes it explicit.

Testing

  • grep -r "Drift Detection\|Mirrored Files" AGENTS.md returns the new section (validation criterion 2)
  • All 15 documented pairs verified against TestScaffold_FreshDirectory file list and TestSkillFiles_DriftDetection assertions (validation criterion 3)
  • go vet ./... passes
  • Drift detection tests pass (TestSkillFiles_DriftDetection, TestForgeCoordinationSkill_StructuralHardening)

Closes #116

Post-script verification

  • Branch is not main/master (agent/116-document-drift-mapping)
  • Secret scan passed (gitleaks — c110dc1b4974cd3b05b29076bfc31d526606289d..HEAD)
  • PR body secret scan passed (gitleaks — no-git)

@fullsend-ai-coder
fullsend-ai-coder Bot requested a review from a team as a code owner September 28, 2026 09:50
@fullsend-ai-coder fullsend-ai-coder Bot added the ready-for-review Triggers review agent dispatch label Sep 28, 2026
@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Review · ⚠️ Cancelled · Started 9:51 AM UTC · Ended 9:52 AM UTC

Commit: 7f7b557 · View workflow run →

@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 9:53 AM UTC · Completed 10:05 AM UTC

Commit: 7f7b557 · View workflow run →

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

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

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

Copy link
Copy Markdown

Risk Assessment: moderate (2/5)

Details

Documentation-only PR by a bot adding 69 lines to AGENTS.md; risk is moderate because AGENTS.md is a protected governance document with 4 distinct recent authors and 6 fix/revert commits in 90 days, offset by the small, additive, docs-only nature of the change. All Tier 1 and Tier 2 signals unchanged from prior assessment, confirming the prior score of 2.

Previous run

Risk Assessment: moderate (2/5)

Details

Documentation-only PR by a bot adding a file-mapping section to AGENTS.md; risk is moderate because AGENTS.md is a protected governance document with 4 distinct recent authors and 6 fix/revert commits in 90 days, indicating active multi-author contention on a sensitive file despite the additive, low-blast-radius nature of the change itself.

@fullsend-ai-review

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

Copy link
Copy Markdown

Review

Findings

Medium

  • [protected-path] AGENTS.md — This PR modifies AGENTS.md, which is a protected governance file. The PR links to issue Document scaffolded-to-embedded file mapping to prevent drift detection misses #116 and provides clear rationale for the change (documenting the scaffolded-to-embedded file mapping to prevent drift detection misses). Human approval is always required for protected-path changes, regardless of context.
Previous run

Review

Findings

Medium

  • [internal consistency] AGENTS.md:493 — The "When Reviewing or Implementing" section states "the drift detection tests will fail in CI" as a blanket claim covering all 15 file pairs. However, the "Test Coverage" section immediately above discloses that only 3 of the 15 files have drift detection test coverage (always-on-guidance and forge-global via TestSkillFiles_DriftDetection, and forge-coordination via TestForgeCoordinationSkill_StructuralHardening). For the remaining 12 file pairs (4 skills, 5 commands, 3 agents), modifying only one copy will NOT cause any test failure. This blanket claim could give reviewers false confidence that CI will catch drift in unprotected pairs.
    Remediation: Qualify the statement to match the disclosed test coverage, e.g.: "If only one copy is changed, the drift detection tests will fail in CI for the three skills currently covered (see Test Coverage above). For the remaining pairs, manual verification during review is the only safeguard until issue fix: agentkit test hygiene — dead branch, misleading name, fragmented drift detectio #70 expands test coverage."

  • [protected-path] AGENTS.md — This PR modifies AGENTS.md, which is a protected governance file. The PR links to issue Document scaffolded-to-embedded file mapping to prevent drift detection misses #116 and provides clear rationale for the change. Human approval is always required for protected-path changes, regardless of context.

Low

  • [intent-accuracy] AGENTS.md:480 — The Test Coverage subsection names specific test functions (TestSkillFiles_DriftDetection, TestForgeCoordinationSkill_StructuralHardening) and asserts which skills each covers. If those function names or coverage scope change in a future PR, this section will silently drift from reality — the exact failure mode the PR is trying to prevent for the file pairs themselves.

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-coder

fullsend-ai-coder Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 Finished Fix · ✅ Success · Started 10:06 AM UTC · Completed 10:12 AM UTC

Commit: 7f7b557 · View workflow run →

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

@fullsend-ai-coder

Copy link
Copy Markdown
Contributor Author

🔧 Fix agent — iteration 1 (bot-triggered)

Addressed all three review findings: qualified the blanket CI coverage claim to accurately reflect that only 3 of 15 mirrored pairs have drift detection tests, added a sync reminder for documented test function names, and recorded the protected-path note as a process concern requiring no code change.

Fixed (2):

  1. [internal consistency] AGENTS.md:493 — blanket claim that drift detection tests will fail for all 15 pairs, but only 3 are covered (AGENTS.md): Qualified the statement to specify that CI catches drift only for the three currently covered skills, and that manual review is needed for the remaining pairs until issue fix: agentkit test hygiene — dead branch, misleading name, fragmented drift detectio #70 expands test coverage
  2. [intent-accuracy] AGENTS.md:480 — documented test function names could drift from reality (AGENTS.md): Added a sync reminder to the Test Coverage subsection: 'If these test names or their coverage scope change, update this section to match.'

Disagreed (1):

  1. [protected-path] AGENTS.md — protected governance file requires human approval: This is an informational process note about the PR requiring human approval, not a code defect. No code change is needed; the PR already links to issue Document scaffolded-to-embedded file mapping to prevent drift detection misses #116 with clear rationale.

Tests: passed

Decision points
  • Protected-path finding recorded as no-change-needed rather than implementing a fix (alternatives: Add a 'this file requires human review' note to the PR, No action (process-level concern); rationale: The protected-path finding is about the PR review process, not a code defect. Human approval is enforced by the post-script, not by file content.)

Next steps:

  • /fs-review — request a re-review of the changes
  • /fs-fix <your instruction> — run another fix pass with specific guidance
  • Push commits directly — review re-runs automatically on push
    Updated by fullsend fix agent

fullsend-ai-coder Bot added a commit that referenced this pull request Sep 28, 2026
Clarify that only 3 of 15 mirrored file pairs currently have
drift detection test coverage. The "When Reviewing or
Implementing" section now accurately reflects that CI catches
drift only for the three covered skills, and that manual
review is needed for the remaining pairs until issue #70
expands coverage. Also adds a sync reminder to the Test
Coverage subsection.

Addresses #117
@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 10:13 AM UTC · Completed 10:24 AM UTC

Commit: fbe456d · View workflow run →

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

@fullsend-ai-review fullsend-ai-review Bot added the requires-manual-review Review requires human judgment label Sep 28, 2026
yvonnedevlinrh pushed a commit that referenced this pull request Sep 29, 2026
Clarify that only 3 of 15 mirrored file pairs currently have
drift detection test coverage. The "When Reviewing or
Implementing" section now accurately reflects that CI catches
drift only for the three covered skills, and that manual
review is needed for the remaining pairs until issue #70
expands coverage. Also adds a sync reminder to the Test
Coverage subsection.

Addresses #117
@yvonnedevlinrh
yvonnedevlinrh force-pushed the agent/116-document-drift-mapping branch from fbe456d to 7709c98 Compare September 29, 2026 15:55

@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

Add a Drift Detection (Mirrored Files) section to
AGENTS.md listing all 15 file pairs (7 skills, 5
commands, 3 agents) that must be kept byte-identical
between .opencode/ and internal/agentkit/content/.

PR #109 updated a scaffolded skill copy without syncing
the embedded copy, breaking CI. The mapping was implicit
discoverable only by reading test code. Making it
explicit in AGENTS.md ensures reviewers and agents check
both locations when either changes.

Documents current drift detection test coverage
(3 of 15 files) and references issue #70 for planned
expansion.

Closes #116
Clarify that only 3 of 15 mirrored file pairs currently have
drift detection test coverage. The "When Reviewing or
Implementing" section now accurately reflects that CI catches
drift only for the three covered skills, and that manual
review is needed for the remaining pairs until issue #70
expands coverage. Also adds a sync reminder to the Test
Coverage subsection.

Addresses #117
@yvonnedevlinrh
yvonnedevlinrh force-pushed the agent/116-document-drift-mapping branch from 7709c98 to 4ea9ef2 Compare October 12, 2026 12:45
@yvonnedevlinrh
yvonnedevlinrh merged commit ee9aa43 into main Oct 12, 2026
6 checks passed
@yvonnedevlinrh
yvonnedevlinrh deleted the agent/116-document-drift-mapping branch October 12, 2026 12:52
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/moderate PR risk: moderate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document scaffolded-to-embedded file mapping to prevent drift detection misses

1 participant