Fr governance

From c9r-io/orchestrator · View interactive version

Fr governance is an AI agent skill from the GitHub repository c9r-io/orchestrator. Govern feature request (FR) documents through their full lifecycle — from planning to implementation to closure. Use when the user asks to govern/治理 a feature request, close an FR, check FR status, or says "治理FR", "/fr-governance". Scans docs/feature_request/ for open FR docs, plans implementation,

How to use this skill

Skill file

FR Governance Workflow

Execute feature request governance through its phases: Author, Select, Plan, Implement, Verify & Close, and — on request — Post-closure audit.

Phase 0: Author (when creating a new FR)

An FR is a funded hypothesis, not a specification. Phase 2 step 0 will rebuild every factual claim it makes; write claims so they can be rebuilt selectively rather than distrusted wholesale.

  1. Every count carries its method and revision. Write 200 references / 37 files (rust_source.rb scannable_source, at 2b5738ad), not 200 references across 37 files. A number whose derivation is named can be re-derived alone; a bare number taints every other number in the document.
  2. Mark what was not verified. single-method, unverified is a valid and useful annotation — it routes the implementer's attention. The corrections record across FR-127–144 shows the expensive errors were not the marked-uncertain claims but the confidently bare ones. A precedent cited as transferable ("do it the way batch X did") must name the premise that makes it transfer; FR-141 B5 found the B4a precedent did not transfer because its premise — imports resolving inside the layer — did not hold.
  3. Apply Phase 6's measurement discipline to every number you write. The two rules there (second derivation, pinned revisions) exist because authoring-time numbers failed exactly those ways.
  1. An FR that proposes a new concept must spend it. If the FR adds a ResourceKind, a top-level command group, or a new user-facing noun, it carries the concept-budget justification from CONTRIBUTING.md — why this is not a field, a parameter or a subcommand of something that exists. Two costs are invisible at authoring time and permanent afterwards: a new kind mints resource.<snake_kind>.apply/.delete into control_action_audit and recorded audit action names are never renamed, and a concept that overlaps an existing one leaves every later reader unable to choose between them. Where the FR claims a difference from an existing concept, state it behaviourally — what the system does differently — never as intent. FR-166 found the cost of not doing this: EnvStore and SecretStore have byte-identical specs, differ in three real behaviours, and the guide described the difference only as "intended for sensitive values", so the one thing that would have let a reader choose correctly was the one thing not written down.

FRs are also created by ticket-fix and design-governance; this contract applies wherever the document is authored.

Phase 1: Select FR

  1. Scan docs/feature_request/ for FR-*.md files (exclude README.md)
  2. If no FR files found, inform the user and stop
  3. If exactly one FR file, auto-select it and confirm with user
  4. If multiple FR files, present a numbered list with ID, title, priority, and status, then ask the user which one to govern
  5. Read the selected FR document fully to understand scope, requirements, and acceptance criteria

Phase 2: Plan (enter plan mode)

Enter plan mode and produce a governance plan that covers:

  1. FR fact verification (do this first) — the FR document is a proposal, not ground truth. Rebuild every factual claim it makes (inventories, counts, "N consumers remain", "workflow X still uses Y", named retirement targets) directly from the codebase, and compare. Two failure shapes to look for specifically:

If claims do not survive verification, correct the FR document and tell the user what was wrong before continuing. Do not plan against unverified claims.

  1. Current state audit — grep/search the codebase to understand what has already been implemented vs what remains
  2. Implementation plan — concrete steps to fulfill each requirement in the FR, ordered by dependency
  3. Acceptance mapping — map each acceptance criterion to specific implementation actions and verification methods
  4. Risk mitigation — address risks listed in the FR with concrete countermeasures
  5. QA test plan — identify which scenarios need automated QA scripts (scripts/qa/) and which are verified by unit tests or code inspection
  6. Artifact plan — identify design docs (docs/design_doc/) and QA docs (docs/qa/) to create upon closure

Present the plan to the user for approval before proceeding.

Phase 3: Implement

After plan approval, execute the implementation:

  1. Implement code changes following the plan
  2. Run cargo test --workspace and cargo clippy --workspace --all-targets -- -D warnings after each major change
  3. Commit incrementally with descriptive messages

Phase 4: Verify (QA)

After implementation is complete, execute QA verification:

4.1 Create QA test document

Create docs/qa/orchestrator/<N>-<topic>.md with verification scenarios following existing conventions:

4.2 Create automated QA script (when applicable)

If the FR involves daemon behavior, CLI output, or HTTP endpoints, create scripts/qa/test-<topic>.sh:

4.3 Retirement and migration parity evidence (mandatory for removal/migration FRs)

When the FR removes or migrates an existing execution path, structural evidence is not sufficient. Counting consumers and asserting that a symbol no longer appears proves the old path is gone; it does not prove the new path still works. Produce all three:

  1. Recorded pre-migration baseline — capture the old path's observable contract (terminal state, exit code, exact output, normalized events) as a committed fixture, before removal.
  2. Per-object post-migration comparison — replay each migrated production object against its baseline. One aggregate "the suite passes" is not per-object evidence.
  3. Reverse-applicable removal patch — prove the removal commit can be mechanically reverted, and record where that evidence lives.

Also assert at least one end-to-end behavior that depended on the old path and must still hold — typically the thing the migrated object exists to do. A migration whose acceptance criteria are entirely counts and symbol-absence checks will pass while the migrated feature is broken.

4.4 Assertion strength: never let a proxy be the only check

When an assertion's subject is whether something actually happens — a command executes, a surface is fully covered, a block really closes — text matching approximates it cheaply and wrongly. Four consecutive post-closure audits of governance FRs found the same three shapes, each written by someone who understood the domain and reached for the five-minute version:

  1. Text presence standing in for execution. grep -F "$script" "$job_block" is satisfied by a commented-out step, by the script's name in a name: field, or by a mention in a heredoc. A grep 'export PATH=...' isolation check is satisfied by that line commented out. Both gates then certify an enforcement that does not run.
  2. Enumeration standing in for coverage. A hand-listed set of scanned files, a declared list of mirror roots, a non-recursive ls dir/*.sh — each guards exactly what was known when it was written. The next instance lands outside it silently. The tell: the list grows by one entry per audit round.
  3. Counting or regex standing in for parsing. Counting { and } per line to find a block's end breaks on a brace inside a string literal and silently swallows the rest of the file. Comparing whole-file totals ("as many binary: fake-* lines as provider: lines") does not establish the per-object association the contract claims.

Two more shapes joined the list during the FR-136–144 series:

  1. A text pattern standing in for a reachability property. FR-144 counted the literal done < <(jq and found 17 feed sites; the property that mattered — can this feed reach jq, the transitive closure through same-file helper functions — gives 39 and inverts which gate is the epicentre. When the claim is about what can happen, a grep measures spelling. Compute the closure.
  2. A check that can report PASS having read no input. A loop fed by < <(jq ...) whose exit status nobody observes reads zero rows when jq fails, never runs its body, and returns success — set -euo pipefail does not reach inside a process substitution, and condition-position invocation disables set -e for the whole call tree beneath it. Zero iterations and N passing iterations are identical in the exit code. The reader of a feed must observe the feed's status, and whether empty input fails open or closed is a per-check decision, never the loop's default. (FR-144: the enforcement-surface gate printed 13 passed, 0 failed over a manifest jq could not parse.)
  1. A status field that reports something other than what you are asking. gh run view --json jobs exposes steps[].conclusion, and for a step declared continue-on-error: true that field is success whatever the step did — it reports the step's effect on the job, which is "do not fail it". The step's own result lives in steps.<id>.outcome, readable only inside the workflow, which is why the OUTCOMES aggregation step exists. Verified against run 30288601535, where the liveness gate genuinely failed, the job concluded failure, and every steps[].conclusion read success. The authoritative signals for a job whose steps swallow their own failures are the job conclusion and the aggregation step's log — never the per-step conclusion. (Found by an agent citing a green step list as evidence that a gate passed; the claim happened to be true, established by the job conclusion, and the evidence offered for it was worth nothing.)
  1. Shape 2 applies to the fixture's own target, and there it is invisible. A negative fixture names a specific statement in a specific file and changes it — and the governed code moving is exactly what the gate exists to permit. Nine recorded times a target moved out from under a fixture; eight stayed green. They aborted the run before the summary line printed, or passed vacuously on a comparison that a mutation which never applied also satisfies, or mutated a file the gate was seeing for the first time and reported through a different branch than the one they claimed to test. The worst did not go quiet: it announced that the gate under test had failed to notice a removal nobody had made, and spent an auditor's attention on an innocent gate. Three practices, each answering one of those:

The residue worth naming: a gate already failing before the mutation satisfies all three. A diagnostic that names the object just mutated narrows it; only a before-run closes it. (FR-143; the mechanical form is scripts/qa/fixture-target-drift.rb.)

  1. A blanket is the other failure mode of enumeration, and it is harder to see. Shape 2 says a hand-listed set guards exactly what was known the day it was written, and its tell is a list that grows by one entry per audit round. The mirror is an exemption written as a subtree rather than a list — skip-tree, a recursive ignore, a wildcard allow, a directory-level suppression. It guards nothing at all, it goes on absorbing instances that do not exist yet, and unlike a stale list it never produces a line in any log. A list that stops growing at least looks suspicious. Measured at FR-133: one skip-tree = [{ crate = "tauri" }] would have absorbed 28 of 48 accepted duplicate versions in a single line, and every future one beneath that tree, silently and forever; 48 crates with 70 reasons is what the decision actually costs. When you reach for a recursive exemption, the question is not whether it is convenient — it is what it will accept next year that you have not seen.

The paired habit, for exemptions of either shape: check what the exemption mechanism actually asserts, don't assume it from its name. cargo deny --deny unmatched-skip reads as "an acceptance that accepts nothing fails the build", and it is not: it asks whether the entry matched a crate in the graph, so an entry whose crate is still present but no longer duplicated passes cleanly. That gap was found because a fixture written against the assumed meaning failed, and closing it took a second, independent check. An exemption ratchet you have not tried to trip is an exemption ratchet whose reach you are guessing at.

  1. A defect fails in whichever direction the data chooses, and the instance you observed picked one. FR-145 was filed on producer | grep -q under set -o pipefail, and it recorded the failure as closed: the reader leaves on the first match, the producer dies of EPIPE, and a successful match reports as a failed one — a mystery red, which people re-run until it is green. That is what the one observed instance did. The same code with the match feeding the failing branch reports a real violation as clean, measured 2/200, and this repository had five of those: three leak assertions written ! producer | grep -q SECRET over a whole-database dump, and two written cargo test --workspace 2>&1 | grep -q "^test result: FAILED", where a failing suite could print PASS: cargo test. The failing-open half is strictly worse and it was invisible for the whole life of the FR, because the FR's author generalised a direction from a single sighting.

Two habits. When you record a failure mode, record the branch it was observed on — "fails closed" is a claim about the call site, not about the mechanism. And before concluding a shape is safe in one direction, search for its inverted form: negate the condition, swap pass and fail, and ask whether the same defect still produces the same colour. The inverted form is rarely the one that gets reported, because the harmless direction is the one that makes noise.

The same FR carried a third instance, in its own guard, and the closure self-check is what caught it. The scanner it produced exempted files that do not enable set -o pipefail, reasoning that without the option there is nothing to guard. That reads a dynamic property lexically: run-cli-probes.sh sets -euo pipefail and then sources every scenario file, so two files the FR had recorded as immune were live sites the whole time. The tell was §4.4's own question — name a broken state this would still pass on — asked of the scanner's scope rather than of its rule. A scope predicate is an assertion and deserves the same attack as an assertion, and the exemptions that survive review are the ones whose premise sounds like a fact about the code when it is a fact about the runtime.

The same FR carried a second instance of the general error, in the repository rather than in the code. FR-134 had found this exact mechanism three days earlier, fixed it in the three files where it appeared, and written in the CHANGELOG that "every such pipeline in the governance scripts is now a here-string" — while 61 remained. The design record said "in these files" and was right. A local repair recorded as a global one is the mirror of shape 2 and worse than a stale list, because a list that stops growing looks suspicious and a completion claim reads like a finished job. Scope every claim of the form "all of X are now Y" to the set you actually enumerated, or arm something that keeps it true.

FR-157 added a third premise to the same rule, and it is the one that reads least like a defect. Its vocabulary gate scoped itself to files naming action_audit_mode or fallback_reason_code — 19 files, correct for every occurrence in the tree, and blind to a production file that writes a reason code through a differently named field. Nothing was wrong with it today; that was the problem. A scope predicate that is sufficient for the current tree is a fact about the tree, not about the check, and it fails in the direction that never produces a line in any log. The repair was to widen the marker to reason_code — 52 files, still clean — which is only knowable by widening and re-running. Ask of every scope: is this narrow because the concept is narrow, or because today's instances happen to fall inside it?

  1. A repair has a direction, and fixing the one you found can open the other. The under-reaching matcher and the over-reaching matcher are both silent, and the second is created by curing the first. Measured at FR-157: coverage-governance.mjs bound a coverage key module to one exact file path ending in .rs and compared with startsWith, so when crates/daemon/src/server/source_connection/ became a directory every submodule left the measurement — the gate would not have failed, it would have reported a higher percentage over a near-empty denominator. The obvious repair, dropping the .rs, reaches the directory and also swallows any sibling whose name merely begins with it: a later source_connections.rs would have joined the module and diluted it, with nobody choosing that and nothing to see. Both forms are exact in one direction and wrong in the other; the only correct form names the file and the directory separately.

The general shape is any predicate with an open end — a prefix, a glob, a startsWith, a truncated identifier, a LIKE 'x%'. After widening a matcher to include what it was missing, ask what it now includes that you did not name, and prefer stating both ends over relaxing one. The fixture must hold an instance of each error: FR-157's holds a submodule, the pre-split file, a test source, and a near-miss sibling, and the three mutations report 65, 5 and 97.14 — three different numbers, so the log says which way it broke. A fixture that only proves the under-reach is fixed cannot see the over-reach at all, because the over-reach costs nothing until the file that trips it is written.

  1. A measure that separates today's instances is not the same as a measure of the property. FR-166 needed to know which files in the English guide directory are written in Chinese. The obvious measure — Han characters over Latin characters — is a measure of glyph density, and technical Chinese is dense with Latin tokens: CLI flags, YAML keys, product names. The four Chinese runbooks scored 0.44–0.52 and a partly bilingual English chapter scored 0.15, so every threshold either takes the English chapter or misses a runbook, and the first attempt caught one of four while looking like it worked. Asking the question actually being asked — what fraction of prose lines are written in Chinese — gives 0.94–0.97, 0.37 and 0.00, and the threshold lands in a wide empty band. Two habits: when a proxy needs a threshold, print the distribution before choosing one and check whether the band is empty or crowded; and if the population separates only under a carefully tuned constant, the measure is probably of the wrong quantity, not the right quantity needing tuning. A margin is evidence and belongs in the design record, because the next person to widen the scope needs to know how much room there was.
  1. A gate that fails twice keeps its first diagnosis. FR-166's certification ran coverage-governance.sh twice. The first run failed because the GUI suite ran under a Node outside the declared range, which was true and environmental and was recorded as such. The second run, under a supported Node, failed again — this time because the FR's own Playwright assertions were stale — and the standing "environmental" label very nearly absorbed it. Nothing about a repeat failure announces that the cause changed; the exit code is the same, the gate name is the same, and the earlier conclusion is sitting right there. Re-read the log on every failure, including the ones you have already explained, and prefer classifications that name a mechanism (cargo deny is not installed) over ones that name a category (environmental), because the first is falsified by the next run and the second is not.
  1. A name is not an identity, and a repair aimed at one bug can build a worse one. FR-169 taught a daemon whose data directory vanished to exit; its design record called the residue a bounded ~15s overlap. FR-170's step 0 measured the end of that window and found the opposite: teardown named its socket and pidfile by path, and after delete-and-recreate those paths belong to the successor, so the dying daemon unlinked the live daemon's files and left it alive, unreachable, unstoppable and permanently outside the watcher that would have ended it — with the pidfile gone, a third process then started cleanly. The FR-169 fix manufactured exactly the orphan it was written to prevent, and the same codebase already contained the correct reasoning, applied to the data directory and never to the two files beside it.

Three habits. When code identifies a resource by a name that something else can take — a path, a port, a PID, a URL, a key — ask what happens when it has been taken, and prefer evidence that travels with the object (an inode, a recorded content, a generation counter) over evidence that travels with the name. Whenever a fix adds an action on a failure path — an exit, a cleanup, a rollback, a retry — ask what that action does to whatever occupied the world in the meantime; the previous FR's teardown was correct for the only world its author pictured. And most transferably: when a design record states a residue as bounded, measure the boundary rather than inheriting it. "Bounded, not closed" reads like a completed assessment and is a prediction; here the true residue was unbounded, and the sentence had been written three commits earlier by the same effort that measured everything else correctly.

The same FR carried the shape a second time, in its own gate — twice, and neither was visible until the gate was run against the broken state it exists to catch. First, the inode_of helper returned non-zero for a missing socket, set -e took the enclosing INO="$(inode_of …)" assignment, and the gate printed two PASS lines, no FAIL line and no summary — a truncated run, indistinguishable from a complete one to anyone reading the exit code (§4.6 condition 5, arriving through a helper nobody would think to attack). Second, and worse: the probe for "a third daemon is refused" ran orchestratord --foreground inside a command substitution, which assumes the refusal it is testing for. Under the regression the daemon starts and never returns, so the gate hung. A hung gate is worse than a red one — CI reports a timeout with no diagnostic, no summary and no named subject — and on macOS there is no timeout(1) to fall back on, so the bound has to be written.

Three rules follow. A helper called inside a set -e assignment must be total. A gate should announce its own truncation — an EXIT trap that fires when the summary line was never reached costs three lines and converts a silent abort into a stated one. And any probe whose expected outcome is "this fails fast" must bound the case where it succeeds, reclaiming whatever it started; otherwise the negative fixture's failure mode is a hang. Run every new gate against the broken state it exists to catch, and check that it produced a verdict — not merely a non-zero code, and not a timeout.

The rule: a proxy may be an additional condition, never the only one. Pair it with something that observes the fact itself — parse the workflow step rather than grep the block, run the gate behind a stub that fails loudly if the real binary is reached, derive the covered set from the repository rather than from a list, associate per object rather than per file total.

Two habits that catch these before review does:

4.5 Execute QA verification

  1. Run cargo test --workspace — all unit/integration tests pass
  2. Run cargo clippy --workspace --all-targets -- -D warnings — no warnings
  3. Run cargo fmt --all -- --check — no diffs. This line exists because it was missing: ci.yml has enforced fmt as a blocking job since before this skill was written, two earlier certifications ran the check on their own initiative, and the three that followed this list as written did not — four Rust files of fmt drift then met CI on the first push. A certification protocol that omits a CI-enforced check certifies "CI unchanged" on an evidence surface that cannot see one of the jobs, which is the FR-141 boundary-coverage blind spot again. Capture the exit status directly (cargo fmt --all -- --check > log 2>&1; echo $?), never through a pipe — | head hands you the pager's status, which is the FR-145/FR-146 defect operating on the certifier.
  4. Run automated QA script if created — all scenarios pass
  5. For scenarios that can't be automated, verify by code inspection or CLI spot-check

4.6 Certification validity conditions

A QA run only counts as closure evidence when all of these hold. If any fails, the run is void — fix the condition and re-run rather than reporting the result.

  1. Clean worktree — git status --porcelain is empty at start and at end.
  2. Quiescent tree — nothing else (another agent, a background job, an editor) is writing to the repo during the run. A shell script rewritten while bash is executing it produces garbled commands at shifted byte offsets.
  3. Pinned revision — record git rev-parse HEAD before and after; they must match.
  4. True exit code — invoke as bash script > log 2>&1 and capture $? directly. Piping into tail/head reports the pager's status, masking a failed script.
  5. Complete output — the script's final summary line must be present in the log. Its absence means the run terminated early regardless of the reported status.
  6. Derived set — the gates the run executes must be derived from the enforcement manifest, not typed out. A hand-listed sweep certifies exactly the gates its author remembered, and the ones it omits are invisible: the log is all green and says nothing about what it did not run. Measured during FR-143, whose certification listed 30 invocations, reported 29 green, and had eleven ci-required gates outside the list — one of which CI then failed on. That is §4.4 shape 2 applied to the verification procedure itself, and it fails in the direction that looks like success. Derive it: jq -r '.scripts[] | select(.enforcement == "ci-required") | .path' config/governance/qa-gate-surface.json, then diff what ran against it.

A derived path is not a derived invocation. The manifest records paths; CI runs commands. FR-133's sweep ran all 41 derived paths bare, and scripts/qa/certify-slack-managed-live.sh exited 2 having printed its usage — CI runs it as certify-slack-managed-live.sh status, the read-only subcommand. Run bare it asserts nothing, and a sweep that reported its exit code at face value would have raised a failure that is not there: the same omission as a typed list, arriving as a false positive instead of a silent gap. Take invocations from workflow_model.rb run-commands <workflow> <job> where the manifest's note says the path takes arguments, and reconcile the two lists.

  1. Nothing else may be writing to the repository, and that includes you. Condition 2 is not only about other agents. FR-133's first sweep was voided because two design documents were authored while it ran, and two gates that require a clean worktree by design — test-agent-driver-production-parity.sh and the migration gate that calls it — failed on the untracked files. Write the closure artifacts before the sweep or after it, never beside it. A certification run is a foreground activity even when the shell says otherwise.

4.7 QA safety principles

Follow these principles from past governance experience:

Phase 5: Close

After QA verification passes:

Self-check procedure

This step is self-referential by construction: the same effort that authored the evidence is now judging it. Compensate by attacking each criterion rather than confirming it.

  1. Re-read the FR document
  2. For each acceptance criterion, verify implementation by referencing QA test results, then adversarially:
  1. Classify the FR:

5.1 Lifecycle metadata (mandatory for every DD, QA and security document)

Every file under docs/design_doc/** and docs/qa/** carries YAML frontmatter declaring its

lifecycle. scripts/qa/doc-lifecycle.rb enforces this in CI, and a new document without it fails

the build.

---
lifecycle: active          # active | superseded
related_fr: FR-132         # optional; omit rather than guess
---

When this FR supersedes an existing DD or QA document — the mechanism it describes was replaced,

not merely extended — flip that document to lifecycle: superseded and add

superseded_by: <repo-relative path> naming the successor. Leave the document's prose fence in

place: the gate reads metadata, a human reads the banner, and neither replaces the other. Do not

mark a document superseded because it received a post-release update; that is still the live path.

Regenerate the reverse index in the same commit:

ruby scripts/qa/doc-lifecycle.rb --emit-index --write   # then read the diff

lifecycle is deliberately not status: many design docs carry a **Status**: header meaning

implementation maturity, which is an independent axis. A document can be Released and superseded

at once.

If closed (all criteria met):

  1. Create design doc under docs/design_doc/orchestrator/ documenting the design decisions
  2. QA doc should already exist from Phase 4
  3. Update CHANGELOG.md under [Unreleased] — the repo declares Keep a Changelog and SemVer, so this is part of closure, not an optional extra:
  1. Delete the FR file from docs/feature_request/
  2. Update docs/feature_request/README.md:

The note is a pointer, bounded at 400 characters and enforced by

fr_registry.rb notes from the ledger-tooling gate. It says the FR closed

and names the documents that carry it; at most one further sentence, and

only for something those documents do not already say. Rulings, step 0

corrections, mutation evidence, certification records and known limits all

belong in the design record — the note is read by someone deciding which

document to open, not by someone who wants the answer.

This bound exists because the template alone did not hold. Notes grew from

212 to 3,284 characters and reached 90% of the file, duplicating design

records in a file doc-lifecycle.rb does not govern and can therefore never

mark stale. If the excess will not fit the note, that is the signal it was

never the note's to carry: put it in the DD and point at the DD. See

DD-190.

  1. Regenerate config/governance/doc-lifecycle-index.json (§5.1) so the new DD/QA pair is indexed
  2. Commit all closure artifacts together

If partially done:

  1. Update the FR document to reflect current implementation status
  2. Mark completed requirements with checkmarks
  3. Update status from Proposed to In Progress
  4. Update docs/feature_request/README.md table status to In Progress
  5. Summarize remaining work and failing QA scenarios to the user

Phase 6: Post-closure audit (on request)

Closure certifies that the FR's acceptance criteria were met. It does not certify that they were the right criteria. The highest-yield findings in this repository's governance record — the unguarded OUTCOMES aggregation, the two extra doors the connection-boundary FR could not see, the history limit that had never once applied, the gate that printed PASS over input it could not read — all came from audits performed after closure, by re-deriving the closed FR's claims against the tree rather than re-reading its evidence.

The audit is itself a measurement exercise, and this repository's audit trail records the auditor failing the same ways the authors did. Hence:

  1. Re-derive every number by a second route before reporting it — a different tool, or the same tool at a different unit. The recorded single-derivation failures: grep -c counts lines, not occurrences (74 migrations that were 37; 2 CASCADE clauses that were 3); git log --reverse -1 returns the newest match, not the oldest; a text pattern is not a reachability property (17 jq feeds that were 39).
  2. Pin both revisions before comparing two states. "Passes locally, fails in CI" means nothing until both sides name their commit — the local tree may simply be newer than the run being compared against.
  3. Attack the acceptance criteria, not the implementation. The implementation was verified once already; the criteria were only ever self-certified by the effort that wrote them. Apply §4.4's question one level up: what state would satisfy every criterion while the goal is unmet?
  4. A finding that generalizes goes into §4.4 or a new FR, not only into a DD's known limits. Design records are write-once archives that no later FR's working set re-reads; skills are demonstrably in the working set — implementing agents cite §4.4 by name, unprompted. Knowledge parked only in a DD is parked where the next author will not find it.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.