Skip to content

docs(#287): add spec artifact immutability convention - #288

Merged
yvonnedevlinrh merged 3 commits into
mainfrom
agent/287-spec-artifact-immutability
Oct 8, 2026
Merged

yvonnedevlinrh merged 3 commits into
mainfrom
agent/287-spec-artifact-immutability

Conversation

@fullsend-ai-coder

Copy link
Copy Markdown
Contributor

Summary

Adds an explicit "Spec Artifact Immutability" subsection to the Spec Organization section of AGENTS.md, codifying the convention that completed spec artifacts are point-in-time design records that must not be retroactively updated.

This prevents review agents from flagging archival spec artifacts as stale documentation when implementation evolves beyond the original spec. The convention was implicit in the spec-first workflow but caused wasted review iterations in PR #277 (2-3 cycles on spec 015 artifacts).

What changed

  • Added ### Spec Artifact Immutability subsection after the directory listing and branch naming convention, before "Task Completion Bookkeeping"
  • Lists all artifact types covered: spec.md, plan.md, tasks.md, research.md, quickstart.md, data-model.md, checklists/
  • Uses RFC 2119 MUST NOT language consistent with the rest of AGENTS.md

Testing

  • Documentation-only change — no code or tests affected
  • Validation: confirm over the next 3 PRs that touch spec-covered functionality that review agents no longer flag archival specs as stale

Closes #287

Post-script verification

  • Branch is not main/master (agent/287-spec-artifact-immutability)
  • Secret scan passed (gitleaks — 2b10a41b1659e5df1d74d5f2713242606bdd2e17..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 29, 2026
@github-actions

github-actions Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

✅MegaLinter analysis: Success

Descriptor Linter Files Fixed Errors Warnings Elapsed time
✅ MARKDOWN markdownlint 1 0 0 0 0.97s
✅ REPOSITORY gitleaks yes no no 2.85s
✅ REPOSITORY git_diff yes no no 0.21s

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 commented Sep 29, 2026 •

Copy link
Copy Markdown

🤖 Review · ⚠️ Cancelled · Started 1:27 PM UTC · Ended 1:27 PM UTC

Commit: 6941fc0 · View workflow run →

@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 1:28 PM UTC · Completed 1:45 PM UTC

Commit: 6941fc0 · View workflow run →

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

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

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

Copy link
Copy Markdown

Risk Assessment: low (1/5)

Details

Docs-only 24-line additive change to AGENTS.md by a known bot, implementing a well-scoped issue (#287) with clear validation criteria; AGENTS.md's protected-path status and moderate churn are expected for a governance file and do not elevate risk for a documentation addition. Re-review anchoring: Tier 1 signals unchanged from prior assessment, preserving prior score.

Previous run

Risk Assessment: low (1/5)

Details

Docs-only 18-line additive change to AGENTS.md by a known bot, implementing a well-scoped issue with exact proposed text; the only elevated signals are AGENTS.md's protected-path status and moderate churn, which are expected for a governance file and do not elevate risk for a documentation addition.

@fullsend-ai-review

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

Copy link
Copy Markdown

Review

Findings

Medium

All prior findings from the previous review have been addressed: the Documentation Validation Gate contradiction was resolved by scoping to in-flight specs, the tasks.md ambiguity was clarified with an explicit parenthetical, the artifact enumeration was completed with a catch-all phrase, and the **must not** formatting now matches local convention.

Previous run

Review

Findings

Medium

  • [internal consistency] AGENTS.md:243 — The Documentation Validation Gate instructs agents to update "Spec artifacts under specs/ — if the change affects planned behavior" before marking any task complete. The new Spec Artifact Immutability section (line 226) says completed spec artifacts "MUST NOT be retroactively updated when implementation evolves beyond the original spec." An agent following both directives encounters a contradiction when a later change affects behavior planned in a completed spec — one rule says update, the other says do not.
    Remediation: Scope the Documentation Validation Gate bullet to in-flight specs only, e.g.: "Spec artifacts under specs/ — if the spec is still in-flight and the change affects planned behavior (completed specs are immutable per Spec Artifact Immutability above)."

  • [protected-path] AGENTS.md — AGENTS.md is a protected governance file. This PR modifies it to add a "Spec Artifact Immutability" subsection and formatting blank lines. The change is well-justified (linked issue Document spec artifact immutability convention in AGENTS.md #287, clear rationale), but human approval is always required for protected-path changes.

Low

  • [ambiguity] AGENTS.md:226 — The new section lists tasks.md among artifacts that "MUST NOT be retroactively updated," but the Task Completion Bookkeeping section (line 232) requires updating tasks.md checkboxes during implementation. The qualifier "Completed" does not explicitly define when a spec transitions from in-flight to completed, creating potential agent confusion.
    Remediation: Add a parenthetical, e.g.: "Completed spec artifacts ... are point-in-time design records (note: tasks.md checkbox updates during the active implementation phase are permitted per Task Completion Bookkeeping below)."

  • [naming-convention] AGENTS.md:226 — The new section uses bare uppercase MUST NOT while neighboring subsections in the same "Spec-First Development" parent section (Task Completion Bookkeeping, Documentation Validation Gate, Spec Commit Gate) use bold lowercase **must**.
    Remediation: Change bare MUST NOT to **must not** to match the local section convention.

  • [docs-completeness] AGENTS.md:223 — The artifact enumeration omits clarify.md (spec 003) and report.md (spec 006), which are also spec artifacts per the Spec Organization listing.
    Remediation: Add a catch-all phrase like "and any other artifacts in the spec directory" to avoid maintaining an exhaustive list.


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-review[bot]

This comment was marked as outdated.

@fullsend-ai-coder

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

Copy link
Copy Markdown
Contributor Author

🤖 Finished Fix · ✅ Success · Started 1:46 PM UTC · Completed 1:51 PM UTC

Commit: 465cb6c · View workflow run →

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

fullsend-ai-coder Bot added a commit that referenced this pull request Sep 29, 2026
- Scope Documentation Validation Gate bullet to in-flight specs,
  resolving contradiction with immutability rule (medium finding)
- Change bare MUST NOT to bold **must not** to match local section
  convention (low finding)
- Add parenthetical clarifying tasks.md checkbox updates are
  permitted during active implementation (low finding)
- Add catch-all phrase for artifact enumeration to cover clarify.md,
  report.md, and future artifacts (low finding)

Addresses #288
@fullsend-ai-coder

Copy link
Copy Markdown
Contributor Author

🔧 Fix agent — iteration 1 (bot-triggered)

Addressed all four actionable review findings in a single coherent edit to the Spec Artifact Immutability section and Documentation Validation Gate. The protected-path finding is procedural (human approval required for merge) and not actionable by the fix agent.

Fixed (4):

  1. Documentation Validation Gate contradicts Spec Artifact Immutability (AGENTS.md): Scoped the Documentation Validation Gate bullet to in-flight specs only, adding parenthetical cross-reference: 'if the spec is still in-flight and the change affects planned behavior (completed specs are immutable per Spec Artifact Immutability above)'
  2. tasks.md listed as immutable but checkboxes must be updated during implementation (AGENTS.md): Added parenthetical note to the Spec Artifact Immutability section: 'tasks.md checkbox updates during the active implementation phase are permitted per Task Completion Bookkeeping below'
  3. Bare uppercase MUST NOT does not match local section convention of bold lowercase must (AGENTS.md): Changed bare 'MUST NOT' to 'must not' (two occurrences) to match the neighboring subsections in the Spec-First Development parent section
  4. Artifact enumeration omits clarify.md and report.md (AGENTS.md): Added catch-all phrase 'and any other artifacts in the spec directory' to avoid maintaining an exhaustive list

Disagreed (1):

  1. AGENTS.md is a protected governance file requiring human approval: This is an informational/procedural finding, not actionable code feedback. The PR already modifies AGENTS.md as its primary purpose. Human approval is a merge prerequisite handled by the PR process, not something the fix agent can address.

Tests: passed

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-review

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

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 1:52 PM UTC · Completed 2:04 PM UTC

Commit: 7e3b498 · View workflow run →

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

@fullsend-ai-review fullsend-ai-review Bot added the requires-manual-review Review requires human judgment label Sep 29, 2026
@yvonnedevlinrh yvonnedevlinrh self-assigned this Oct 8, 2026
Add explicit "Spec Artifact Immutability" subsection to the
Spec Organization section of AGENTS.md. Completed spec
artifacts (spec.md, plan.md, tasks.md, research.md,
quickstart.md, data-model.md, checklists/) are point-in-time
design records that MUST NOT be retroactively updated when
implementation evolves beyond the original spec. Review agents
MUST NOT flag them as stale documentation.

This codifies the convention that was implicit in the
spec-first workflow, preventing false-positive stale-doc
findings on archival specs (as observed in PR #277 where
2-3 review iterations were wasted on spec 015 artifacts).

Closes #287
- Scope Documentation Validation Gate bullet to in-flight specs,
  resolving contradiction with immutability rule (medium finding)
- Change bare MUST NOT to bold **must not** to match local section
  convention (low finding)
- Add parenthetical clarifying tasks.md checkbox updates are
  permitted during active implementation (low finding)
- Add catch-all phrase for artifact enumeration to cover clarify.md,
  report.md, and future artifacts (low finding)

Addresses #288
@yvonnedevlinrh
yvonnedevlinrh force-pushed the agent/287-spec-artifact-immutability branch from 7e3b498 to e3cd338 Compare October 8, 2026 14:21

@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 355758c into main Oct 8, 2026
5 checks passed
@yvonnedevlinrh
yvonnedevlinrh deleted the agent/287-spec-artifact-immutability branch October 8, 2026 15:02
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 spec artifact immutability convention in AGENTS.md

1 participant