Skip to content

docs: reconcile test evidence storage documentation - #2548

Merged
kunchenguid merged 1 commit into
mainfrom
fm/fm-evidence-docs-reconcile-store-in-repo-r1
Aug 17, 2026
Merged

kunchenguid merged 1 commit into
mainfrom
fm/fm-evidence-docs-reconcile-store-in-repo-r1

Conversation

@kunchenguid

Copy link
Copy Markdown
Owner

Intent

Reconcile firstmate's test-evidence documentation with the current .no-mistakes.yaml setting. .no-mistakes.yaml has set test.evidence.store_in_repo: true since PR #2355 (a deliberate captain change), but three doc statements still described the OLD 'evidence stays outside the repo' policy: CONTRIBUTING.md (~line 70) 'Local .no-mistakes/ state and test evidence stay out of this repo; .no-mistakes.yaml keeps evidence in a temp directory ...'; CONTRIBUTING.md (~line 72) 'That is firstmate-specific; do not commit .no-mistakes/evidence/ here even when another no-mistakes-managed target project keeps committed PR evidence.'; and docs/configuration.md (~lines 132-133) 'The tracked .no-mistakes.yaml keeps test evidence outside the repo ...' plus '... firstmate keeps .no-mistakes/ local and CI rejects tracked entries under that path.'

The captain required determining the ACTUAL behavior first rather than flipping 'outside' to 'inside'. Established from the installed no-mistakes v1.53.0's own generated global-config documentation and from repository evidence: with store_in_repo: true, test evidence is published to an ORPHAN evidence branch (no-mistakes/evidence) in the same repository and linked from the PR body; that branch shares no history with code branches, so evidence never enters a pushed feature branch or the default branch. Confirmed empirically: origin/no-mistakes/evidence is an orphan branch whose root commit 6ec704f is the #2355 run itself; PR #2355's body links evidence at blob/6ec704f/.no-mistakes/evidence/...; origin/main tracks no .no-mistakes/ path; and .github/workflows/ci.yml runs only on pushes to main and PRs targeting main. There is therefore NO conflict with ci.yml's 'Personal fleet paths must not be tracked' step, and that CI rule remains accurate, so it was deliberately KEPT in the reworded docs.

Scope the captain set: DOCS ONLY. Do not change .no-mistakes.yaml or store_in_repo (that is the captain's #2355 decision). Do not change .github/workflows/ci.yml or any config/CI. Fix only the now-inaccurate evidence-location framing; do not rewrite unrelated prose. Keep docs internally consistent and consistent with .no-mistakes.yaml.

Beyond the three statements named at intake, docs/architecture.md carried the identical stale framing ('For target project repos ... expected to stay in the crew branch ...' and 'The firstmate repo itself is the exception ...'), which PR #2355's own Document step had flagged alongside the other two files. It was corrected in the same pass because leaving it would contradict the corrected owner section and violate the captain's 'keep the docs internally consistent' requirement. docs/configuration.md's 'Gate defaults (.no-mistakes.yaml)' section remains the one owner of the setting; CONTRIBUTING.md and docs/architecture.md state it briefly, and architecture.md cross-references configuration.md rather than restating the contract, per the one-owner rule in the firstmate-coding-guidelines skill.

AGENTS.md line 130 ('.no-mistakes/ local validation state and evidence; gitignored') was deliberately left unchanged: it is a gitignore inventory entry about the local path, not an evidence-location policy claim, and it remains true.

No behavioral test is expected for a prose-accuracy fix, and no test may assert doc bytes. bin/fm-doc-audience-check.sh and bin/fm-lint.sh both pass locally. Repo style rules apply: one full sentence per physical line in tracked Markdown, plain dash never an em dash, and no agent co-author on commits.

Delivery: mode=no-mistakes, yolo OFF - the captain owns the merge. Any ask-user finding is escalated to firstmate rather than self-answered.

What Changed

  • Document that test.evidence.store_in_repo: true publishes PR-linked artifacts to the orphan no-mistakes/evidence branch.
  • Clarify across contributing, architecture, and configuration docs that evidence never enters feature or default branches, while local .no-mistakes/ paths remain gitignored and rejected by CI.

Risk Assessment

✅ Low: The docs-only change is narrowly scoped, matches the configured evidence behavior and authoritative intent, and introduces no material source risk.

Testing

Validated the documentation-only scope, semantically confirmed the configured value is true, checked documentation ownership and links, reviewed policy consistency, and produced a reviewer-visible HTML artifact; no UI screenshot was applicable for this Markdown-only change, and lint was not rerun because this test phase forbids linters.

Evidence: Rendered documentation reconciliation report and patch

Source: Rendered documentation reconciliation report and patch

<!doctype html>
<html lang="en"><head><meta charset="utf-8"><title>Firstmate evidence documentation reconciliation</title>
<style>body{font:16px/1.5 system-ui,sans-serif;max-width:1050px;margin:40px auto;padding:0 24px;color:#18202a}h1{margin-bottom:.2em}.ok{color:#176b38;font-weight:700}.card{border:1px solid #ccd4dd;border-radius:10px;padding:18px;margin:18px 0;background:#f8fafc}code,pre{font-family:ui-monospace,SFMono-Regular,monospace}pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#111827;color:#eef2ff;padding:16px;border-radius:8px}li{margin:.35em 0}</style></head>
<body><h1>Test-evidence documentation reconciliation</h1>
<p class="ok">Focused validation passed.</p>
<div class="card"><h2>Observable repository contract</h2><ul>
<li>Parsed <code>.no-mistakes.yaml</code> value: <code>test.evidence.store_in_repo = true</code>.</li>
<li>The updated public docs consistently explain publication to the orphan <code>no-mistakes/evidence</code> branch, PR linking, and separation from feature/default branch history.</li>
<li><code>git ls-tree</code> found no tracked <code>.no-mistakes/</code> path on the code branch.</li>
<li>The changed-path set is documentation only.</li>
<li>The executable documentation audience/link checker reported <code>ok surfaces=68 local_links=252</code>.</li>
</ul></div>
<div class="card"><h2>Changed paths</h2><pre>CONTRIBUTING.md
docs/architecture.md
docs/configuration.md
</pre></div>
<div class="card"><h2>Reviewer-visible documentation patch</h2><pre>diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 97442a4..cef1f11 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -70 +70 @@ Firstmate&#x27;s wrapper still matters: crewmates route every `ask-user` finding to f
-Local `.no-mistakes/` state and test evidence stay out of this repo; `.no-mistakes.yaml` keeps evidence in a temp directory and pins the gate&#x27;s lint command to `bin/fm-lint.sh`, matching the Linux CI lint job.
+`.no-mistakes.yaml` publishes test evidence to the orphan `no-mistakes/evidence` branch, which shares no history with code branches, and pins the gate&#x27;s lint command to `bin/fm-lint.sh`, matching the Linux CI lint job.
@@ -72 +72 @@ Local no-mistakes Test is intent-targeted and must not re-run every `tests/*.tes
-That is firstmate-specific; do not commit `.no-mistakes/evidence/` here even when another no-mistakes-managed target project keeps committed PR evidence.
+The pipeline publishes that evidence itself, so never hand-commit `.no-mistakes/` paths onto a feature branch; CI rejects them as tracked personal fleet paths.
diff --git a/docs/architecture.md b/docs/architecture.md
index b735685..b07da27 100644
--- a/docs/architecture.md
+++ b/docs/architecture.md
@@ -247,2 +247,2 @@ When a selected delivery path calls for a diff, `bin/fm-review-diff.sh` refreshe
-For target project repos shipped through their own no-mistakes pipeline, commits under `.no-mistakes/evidence/` are the pipeline&#x27;s PR-viewable validation evidence and are expected to stay in the crew branch until the evidence-hosting design changes.
-The firstmate repo itself is the exception: its `.no-mistakes/` directory is local state, stays gitignored, and is rejected by CI if tracked.
+Where a no-mistakes pipeline stores evidence in the repo, it publishes that PR-viewable validation evidence to an orphan evidence branch that shares no history with code branches, so it never enters the crew branch or the default branch.
+This repo uses that setting, and its own `.no-mistakes/` directory remains local state that stays gitignored and is rejected by CI if tracked; [`configuration.md`](configuration.md) owns the setting.
diff --git a/docs/configuration.md b/docs/configuration.md
index e4aef1a..415c113 100644
--- a/docs/configuration.md
+++ b/docs/configuration.md
@@ -132,2 +132,3 @@ See [`trace-context.md`](trace-context.md) for carrier semantics, supported rout
-The tracked `.no-mistakes.yaml` keeps test evidence outside the repo and pins `commands.lint` to `bin/fm-lint.sh` so local lint matches CI.
-That evidence policy is specific to the firstmate repo: target projects may legitimately commit `.no-mistakes/evidence/` from their own no-mistakes pipeline, but firstmate keeps `.no-mistakes/` local and CI rejects tracked entries under that path.
+The tracked `.no-mistakes.yaml` sets `test.evidence.store_in_repo: true` and pins `commands.lint` to `bin/fm-lint.sh` so local lint matches CI.
+Storing evidence in the repo publishes each run&#x27;s test artifacts to the orphan `no-mistakes/evidence` branch and links them from the PR body, instead of keeping them on local disk under the no-mistakes home.
+That branch shares no history with code branches, so evidence never enters a pushed feature branch or the default branch; the worktree&#x27;s `.no-mistakes/` stays local and CI rejects tracked entries under that path.
</pre></div>
<div class="card"><h2>Tracked .no-mistakes paths on HEAD</h2><pre>(none)</pre></div>
</body></html>

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

✅ **Review** - passed

✅ No issues found.

✅ **Test** - passed

✅ No issues found.

  • bin/fm-doc-audience-check.sh
  • Ruby YAML semantic parse confirming test.evidence.store_in_repo=true
  • git diff --name-only ac55d39a5bb355308f608b9ff2d033592232826c..HEAD and git ls-tree -r --name-only HEAD -- .no-mistakes
  • Manual review of the complete documentation diff and related evidence-policy references
  • git diff --check ac55d39a5bb355308f608b9ff2d033592232826c..f8572051e3f0ced675c2787a87ab0c6ace669848
⚠️ **Document** - 1 warning
  • ⚠️ .no-mistakes.yaml:40 - The comment still says evidence is committed alongside the change, contradicting the documented orphan-branch behavior; it remains unresolved because this task explicitly forbids changing .no-mistakes.yaml.
✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

.no-mistakes.yaml has set test.evidence.store_in_repo: true since #2355, but
CONTRIBUTING.md, docs/configuration.md, and docs/architecture.md still described
the old policy of keeping evidence out of the repo in a temp directory.

The current no-mistakes behavior for store_in_repo: true is to publish each run's
test evidence to the orphan no-mistakes/evidence branch and link it from the PR
body. That branch shares no history with code branches, so evidence never enters
a pushed feature branch or the default branch, and CI's tracked personal fleet
paths rule stays accurate.

Docs only. No change to .no-mistakes.yaml or any workflow.
</