Skip to content

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

Closed

Description

@Jammy2211

Overview

The daily close-out guard (intake looks-shipped) flagged 33 open PyAutoMind drafts as already shipped. All 33 were checked by hand against current main of the cited repos (PyAutoMind#545 and #546), and only one had shipped. Each false flag costs a human a verification pass and holds the draft out of the batch planner. This task tightens the guard's evidence rules so a flag is again a fact worth checking.

Plan

  • Witness leg: count a named test or function only if it did not exist on main when the draft was filed and exists now. Edits to existing code and same-named look-alikes no longer count.
  • Date "when the draft was filed" by the draft's actual filing commit, not the day, so the commit that motivated a draft no longer counts against it.
  • Commit and PR leg: the line naming the draft must itself claim the work landed (a whole-word ship word, or the PR-merge line for the draft's branch). A fix:/docs: subject no longer lends the claim.
  • Require 4-word, 20-character slugs before a bare slug counts.
  • Skip epic campaign maps, whose phases ship but which never do.
  • Measure before and after on the real tree, and pin every false-positive shape in tests.

Tier: judge — merge mode: human /prm

Detailed implementation plan

Affected Repositories

  • PyAutoBrain (primary)

Branch Survey

Repository Branch Dirty?
PyAutoBrain ccr-ce085afb-iagr91 (cloud session branch, off main 85b0fe8) clean

PyAutoBrain is also claimed by procedure-lines-trim (PR #597), which touches only skills/*.md. The files don't overlap and there is no shared worktree.

Implementation Steps

  1. agents/conductors/intake/_shipped.py:
    • filed_at() returns the draft's add-commit timestamp on its Filed: day, without --follow: drafts share a header template, and rename detection follows a sibling.
    • defined_at() and added_since() replace changed_since(). git grep at rev-list -1 --before=<filed_at> decides whether the name existed then; if it did, there's no evidence.
    • _SHIP_RE replaces _SHIP_WORDS/_CODE_SUBJECT, as whole words on the naming line.
    • distinctive_slug requires 4+ words and 20+ characters.
    • open_drafts skips Status: campaign map.
  2. tests/test_intake_looks_shipped.py: a second fixture reproducing each 2026-11-07 false-positive shape (an existing class, an existing test file, a same-named def elsewhere, a same-day regression test, a code-subject follow-up mention, a 3-word slug, a campaign map) and the true positive (filed and merged the same day, matched by the PR branch). Plus the filing-moment precision test and whole-word ship-word tests.
  3. Measure with detect() on PyAutoMind 125caf48e with the same 21 checkouts.

Key Files

  • agents/conductors/intake/_shipped.py: the detector
  • tests/test_intake_looks_shipped.py: the fixture organism

Result

  • Before: 33 flags out of 268 drafts scanned.
  • After: 1 flag out of 261, wiki_currency_check_version_gate (autocti_assistant#26), which is the true positive.
  • Brain suite: 1643 passed, 1 skipped.

Original Prompt

Click to expand starting prompt

PyAutoMind draft/bug/pyautobrain/looks_shipped_guard_false_positives.md (filed 2026-11-07). The human's request: "Yeah do that now filendraft and do it", replying to the proposal to tighten the guard (ignore a draft's own filing commit; require evidence that matches what the Witness asks for).

Activity

  1. Jammy2211 commented on Nov 7, 2026

    @Jammy2211
    ContributorAuthor

    Shipped

    Merged in #599 (merge 6d2cace).

    • What landed: the intake looks-shipped guard now needs evidence that a draft's work actually arrived.
      • Witness names: a name in the Witness line counts only if it didn't exist on main when the draft was filed.
      • Filing time: this is the draft's filing commit, not the day it was filed.
      • Ship claims: the line naming the draft must itself claim it shipped, or be the PR-merge line for the draft's branch.
      • Slugs: a bare slug needs 4+ words and 20+ characters.
      • Campaign maps: epic campaign maps are skipped.
    • Witness: on PyAutoMind 125caf48e with the same 21 checkouts, the guard went from 33 flags to 1. The remaining flag is the true positive, wiki_currency_check_version_gate (autocti_assistant#26).
    • CI: Brain Tests passed on 3.12 and 3.13 at 441b452. The first run failed the tenant-firewall check because a test fixture used the real org name; that was fixed in 441b452.
    • Mind: the task is recorded in complete/, and the dashboard is regenerated.

    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions