Repository navigation
Closed
Copy link
Labels
agent-readyFully specified and briefed; eligible for autonomous pickup from the frontier.
Description
The gap, demonstrated
A repo-wide /provenance:audit run found nothing to act on in this repository while a manual census (frontmatter-alignment sweep, #3524) found eleven prose surfaces restating upstream-owned frontmatter facts with no stamp and no recheck trigger, plus three constant-encoding scripts with undated stamps. The zero is by design, not by bug:
- Fix eligibility requires lexical evidence. Only
fingerprint-confirmedfindings (>=15-word matched spans, >=0.3 containment) are actionable, and the skill's own rule says "a paraphrase can never befingerprint-confirmed". A restated constant ("the 1,536-char listing cap") has no 15-word verbatim span, so the defect class that actually ships here can never reach the only tier that acts. - The stamp detector only sees stamps that exist.
check-stamps.shflags expired stamps; a zero-part record (no stamp at all) has no greppable shape, which is the same reasoning the upstream-drift convention used to reject a CI gate for this class. - The nomination rubric asks "is this a copy?" Three blind judges grading restated facts against a copy rubric correctly answer "not a copy", which is useless for the harm the plugin's own Purpose names: "the harm being reduced is drift, not plagiarism".
So the plugin shares the right harm statement but detects only one cause of it.
Owner intent (from the sweep session)
- The main issue is copying from external sources: immediate maintenance burden and drift risk.
- Detection should lean on research-style reasoning to resolve sources, with fewer deterministic scripts: prime targets are (a) passages that already carry citations yet still copy from the cited source, and (b) passages whose source is obvious or obvious-by-category (Claude Code docs and similar), even when uncited.
- Drift gets introduced throughout the explore/research/plan/implement cycle, so the skill should run in both modes: an in-session quality gate over the working diff (ideal, proactive) and the existing anytime repo audit (reactive).
Proposed design direction
- A second finding class:
restated-upstream-fact(unstamped). Nominated by a recall-biased LLM lens hunting facts, not phrases: constants, defaults, version pins, field lists, semantics of a named external product. Judged against the upstream-drift convention's shape (pointer, or four-part record: claim + basis + as-of date + observable recheck trigger), not the copy rubric. Never fingerprint-confirmable, therefore never auto-fix-eligible: report-and-route (dispositions: convert-to-pointer, add-four-part-stamp, keep-with-reason), with the human gate the copy lane already has. - Source resolution as research. When a passage is nominated without a breadcrumb, resolve the source the way
/discovery:researchresolves a claim (category-of-origin first: harness vocabulary implies code.claude.com; API vocabulary implies platform docs), instead of the current budgeted-search-only ladder. The existingdeep_research_on_exhaustionhook is the natural seam. - Diff-scoped quality-gate mode.
provenance:audit --diff(or a review-lane integration) that runs the same nomination over the working diff / branch delta only, cheap enough to run before a PR, so the drift is caught in the session that introduces it. - Golden corpus. The docs: replace in-place skill-frontmatter restatements with upstream references #3524 census is a ready-made eval set: 11 true positives (bare restatements as they stood before that PR), the stamped (b) surfaces as must-not-flag negatives, and the machine-surface records as the stamped-restatement shape. Fixture the pre-sweep file states under
evals/.
Non-goals
- No CI gate: the upstream-drift convention's 2026-08-12 recorded decision (re-derived and upheld 2026-08-31, see its CHANGELOG 1.6.2) stands; this is a skill-side detector, and if it ever matures into the "detector without a suppression list" that decision's reopen condition names, reopening the gate question is that record's business, not this issue's.
- The existing copy/fingerprint lane stays; this adds a lane beside it.
Metadata
Metadata
Assignees
Labels
agent-readyFully specified and briefed; eligible for autonomous pickup from the frontier.
Type
Fields
No fields configured for Feature.
Activity
kyle-sexton commentedon Aug 31, 2026
Evidence from the repo-wide run: the recall lane already finds these; the pipeline discards them
I ran the repo-wide
/provenance:auditthis issue references and still have the full artifacts, so the census in #3524 is testable against them. The result refines diagnosis point 3 and makes the fix cheaper than the design direction assumes.Of the 18 prose surfaces #3524 touched, my nomination lane proposed 17. The one it missed is
plugins/instruction-placement/context/routing-rubric.md.So nomination did not fail. What the nominators wrote about those files is the striking part — they named this exact defect class, unprompted, in their own signal text:
13 nominations across the run quote the 1,536 cap or the listing-budget constants specifically.
Where they died is downstream of nomination. Per-file outcomes for those 17:
paraphrase-candidatebelow-rulesource-fetched-similar, permanently report-onlynot-foundplugins/claude-ops/skills/audit-skill-visibility/SKILL.md,plugins/skill-quality/README.md,.../check/SKILL.md,plugins/session-flow/skills/show-options/context/candidate-ladder.mdandplugins/plugin-quality/.../command.mdall resolved entirely toparaphrase-candidate, which this pipeline never sends to a panel. They were seen, described accurately, and then dropped on a routing rule.What this changes about the proposal
The design direction proposes "a recall-biased LLM lens hunting facts, not phrases". The evidence says that lens already exists and already works — the current nominator hunts facts perfectly well, because
reference/nomination.mdtells it to nominate on "specifics no one in this repository would know first-hand (version numbers, parameter tables, error strings, quoted limits)". That instruction is already fact-shaped, not phrase-shaped.The failure is two routing rules downstream:
classguess gates the evidence stage. A candidate classedparaphrase/summaryis routed to a report-only bucket before any panel sees it. That guess is made by a component the skill deliberately configures to be uncertain ("A nomination is a question, not a claim"), and it decides whether the finding can ever be actioned.source-fetched-similarandllm-suspectedhave no crosswalk row, so a correct unanimous STANDS on a restated constant reaches nobody.So the smaller change that gets the same outcome: keep the nominator, add the second rubric, and stop discarding non-lexical candidates before judgment. A
restated-upstream-factfinding would be judged against the upstream-drift shape (pointer, or four-part record) on candidates the existing lane already produces. No new hunter, no new lens diversity, no new budget — a second judgment rubric plus a relay row.That also means the golden corpus can be scored immediately: the 17 nominations are already on disk with their signals, so a candidate rubric can be graded against them without re-running detection.
One caution on the golden corpus
The pre-sweep states are the right positives, but the run also shows a false-positive risk the eval set should hold: carve-out 5 (distilled-product architectures) was cited 110 times across ~230 carve-out citations in this run, roughly half. Two independent adversarial reviewers argued it absorbs verbatim spans that sit inside distilling files. A restated-fact rubric graded against a corpus with no distilling-file negatives will over-fire on exactly those surfaces, since a skill that legitimately distills vendor docs looks identical to one that restates them until you ask whether the fact carries a trigger. Worth fixturing a few
playbooks/reference/model-adaptation/orboris/reference/files as must-not-flag-as-unstamped negatives alongside the stamped (b) surfaces.Also confirmed, separately
Enabling
trigger_less_stamp_check(off by default; portable default is off) surfaces 152 dated stamps carrying no recheck trigger — 30% of the 500 that parse in this corpus. That is a different defect from the zero-part records this issue is about (those have no greppable shape; these do), and it is deterministic and already relay-eligible today. It needs no redesign, only the config flag.Generated by Claude Code
chore: prune the contract slice before merge per the topic-docs conve…
provenance: rubric v4 narrows carve-out 5 with a span-level qualifier
docs: replace in-place skill-frontmatter restatements with upstream r…
kyle-sexton commentedon Aug 31, 2026
Where the script/model line should go, measured per lane
The design direction says "fewer deterministic scripts, lean on research-style reasoning". Running this sweep produced per-lane numbers, and they say the deterministic/reasoning axis is not the one that predicts failure. Something narrower is.
Every lane in the repo-wide run
candidate_sources#headings, so HTML<title>and frontmatter titles scored unidentifiable)Three of those worked and three failed. All six are scripts, so "scripted" is not the variable.
The variable is whether the check measures the thing or a proxy for it
Measures the thing.
fingerprint.mjscompares two concrete texts — it is the lexical overlap. Expiry does arithmetic on a parsed date — it is the age. Both also decline what they cannot parse instead of guessing, which is why 31 declines are a result rather than noise.Matches a proxy. The trigger regex matches trigger vocabulary (
recheck trigger,trigger for/is/:), not the presence of an observable event, soplugins/knowledge/skills/docpage-digest/context/anthropic-docs-profile.mdstating "enqueue when harness support lands" is invisible to it. Link liveness matches HTTP status, not "this citation is broken", so a<placeholder>-truncated URL, a bot-blocked host, and a code-fence example all read identically to a dead page. Thecandidate_sourcesscan matched URLs a nominator proposed rather than URLs the repo cites.Every false positive in this run came from a proxy. That is the line worth designing on.
This bears directly on the trigger-less rule. It is a script performing judgment — deciding whether a trigger exists — which is the thing
SKILL.mdalready says scripts must not do ("the deterministic scripts do only reasoning-free work"). Broadening the regex does not fix it: any pattern loose enough to catch "enqueue when harness support lands" also catches "recheck periodically", which the upstream-drift convention explicitly says is not a trigger. The fix is to demote it to a nominator — the script finds dated stamps (precise, measures the thing), a model judges whether an observable trigger is present. That is the same split this issue proposes for restated facts, and the two lanes can share it.The other half: model lanes fail silently, which is worse
Worth stating because it cuts against reading the above as "just use more reasoning".
Neither produced an error. Script lanes fail loudly — 15 × 404 is visibly wrong and was disproved in minutes. Model lanes fail plausibly — a clean report is indistinguishable from a clean corpus.
Everything that caught a real defect in this run was adversarial: the inverted review (3 evidenced challenges), and the semantic-diff guard (caught a trigger insertion that split a sentence, and caught an edit whose stated purpose was "so this file states a recheck trigger the audit tooling can find"). That guard was itself roughly half false-positive on its flags — it called a correct "below" pointer wrong and flagged an established house convention — but its true positives were defects nothing else would have found.
Proposed as design constraints for the redesign
lychee.tomlalready uses in this repo, where each excluded host records the verification that earned it.restated-upstream-factlane should ship with its refutation pass, not after it.The plugin's stated architecture is already right. The failures were where a script crept into judgment, or where a sound script was fed the wrong input.
Generated by Claude Code
feat(provenance): enable the trigger-less stamp rule and narrow carve…
feat(provenance): enable the trigger-less stamp rule and narrow carve…
feat(provenance): enable the trigger-less stamp rule and narrow carve…
kyle-sexton commentedon Sep 23, 2026
This was generated by AI during triage.
Human-gated. Open decision: adopt second-rubric/relay-row redesign vs. status quo (C4, judgment-pipeline contract change)
fix(attribution): relay the restated-upstream-fact tier (#3525)
kyle-sexton commentedon Sep 29, 2026
Owner decision (2026-09-29): Option 1. Keep the nominator, add a second rubric (restated upstream fact, judged against the upstream-drift shape) and a relay row on the nominations the lane already makes, with its refutation pass, report-only, never auto-fix. Not adopted: the later diff-scoped --diff quality-gate mode, and closing as won't do.
Next: labeled agent-ready. The implementer edits plugins/attribution/skills/audit/reference (rubric.md, dispositions.md, nomination.md), adds the relay row, and fixtures the #3524 pre-sweep files plus distilling-file negatives under evals.
feat(attribution): route restated facts to their own panel with a ref…
fix(attribution): lint the restated-fact fixtures and state the curre…