Skip to content

fix(intake): looks-shipped guard flags only real evidence (33 → 1 on the live tree) - #599

Merged
Jammy2211 merged 2 commits into
mainfrom
ccr-ce085afb-iagr91
Nov 7, 2026
Merged

Jammy2211 merged 2 commits into
mainfrom
ccr-ce085afb-iagr91

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Closes #598.

Why

On 2026-11-07 every one of the guard's 33 flags was checked by hand (PyAutoMind#545 and #546). 32 were false.

What changed (agents/conductors/intake/_shipped.py)

  • Witness leg: the named test or function must have had no definition anywhere on main at the draft's filing moment, and have one now (defined_at via git grep at rev-list -1 --before=<filed_at>; added_since replaces changed_since). Edits to an existing class or test file, and same-named defs added elsewhere, no longer count. This was about 26 of the 32.
  • Filing moment: filed_at() is the draft's add commit on its Filed: day, so the same-day commit that motivated a draft doesn't count against it. It uses no --follow, because drafts share a header template and rename detection otherwise follows a sibling's history. A test pins this.
  • Commit and PR leg: the line naming the draft must carry a whole-word ship word (_SHIP_RE), or be the PR-merge line for the draft's branch. A fix:/feat:/docs: subject no longer lends the claim to a body line, and add is dropped as a ship word. This was 7 of the 32.
  • Slugs: a bare slug needs 4+ words and 20+ characters. jax_zero_contour is a package name, and group_los_halos reads as prose.
  • Campaign maps: drafts with Status: campaign map are not scanned. Their phases ship; they never do.

Evidence

detect() was run against PyAutoMind 125caf48e (before #545) with the same 21 organism checkouts.

flags scanned
main (85b0fe8) 33 268
this branch 1 261

The remaining flag is wiki_currency_check_version_gate, via autocti_assistant@de4ac2d Merge pull request #26 from …/feature/wiki-currency-check-version-gate. That is the one true positive; it was filed and merged the same day, and it survives.

Tests: a second hermetic fixture reproduces each false-positive shape plus the true positive, along with filing-moment and whole-word tests. tests/test_intake_looks_shipped.py: 15 passed. Full suite: 1643 passed, 1 skipped.

Trade-offs, all accepted deliberately:

  • A fix that lands on the same day but before its draft is filed is not caught. That ordering is rare, and /prm closes such work anyway.
  • A commit saying "adds X (draft path)" no longer qualifies without a ship word. Merge-branch matches still do.

Shared claim: PyAutoBrain is also claimed by procedure-lines-trim (#597), which touches only skills/*.md. The files don't overlap.


Generated by Claude Code

…the live tree)

On 2026-11-07, 32 of the guard's 33 flags were false (PyAutoMind#545,
#546). The flags now need evidence that the draft's work arrived:

- witness-exists: the named test or function must have had NO definition
  anywhere on main at the draft's filing moment, and have one now. Edits
  to a class or test file that already existed, and a same-named def
  added elsewhere, no longer count. The filing moment is the draft's add
  commit on its Filed: day (no --follow, because drafts share a template
  and rename detection follows siblings), so the same-day commit that
  motivated a draft no longer counts against it.
- commit/PR-names-draft: the line naming the draft must carry a ship word
  (whole word) or be the PR-merge line for its branch. A fix:/feat:/docs:
  subject no longer lends the claim to a body line, and `add` is not a
  ship word.
- Bare slugs need 4+ words and 20+ characters (`jax_zero_contour` is a
  package name).
- `Status: campaign map` drafts are not scanned.

Measured against PyAutoMind 125caf48e (pre-#545) with the same 21
organism checkouts: 33 flags → 1, the true positive
wiki_currency_check_version_gate (autocti_assistant#26). Hermetic tests
reproduce each false-positive shape and the true-positive shape.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016nhQ8Pv5eTirqVVkd9kren
…ant firewall)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016nhQ8Pv5eTirqVVkd9kren
@Jammy2211
Jammy2211 merged commit 6d2cace into main Nov 7, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the ccr-ce085afb-iagr91 branch November 7, 2026 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(intake): looks-shipped guard flags were 32 of 33 false — tighten its evidence

2 participants