CTIPilot
AI-generated · no human review · verify critical claims against the linked source. how it works →

Cost and quality changes in v4.26

Prompt version 4.26 (2026-12-02) answers the operator's cost review of the 2026-11-29 quality audit and the intel fires of 2026-11-28 to 12-02. The goal is the same or better quality for fewer tokens. This note lists each change, the numbers it targets and how the next audit shows whether it worked. The normative text lives in prompts/cti-run.md, prompts/quality-audit.md, the two agent definitions and prompts/CHANGELOG.md (entry 4.26).

The baseline

Audit 2026-11-29T1406Z (the numbers each audit change targets):

Measure Value
Wall time 3 h 49 min
Verifier loop 2 h 48 min, about 73% of the run, 8 sequential iterations
Sub-agent tokens 9.18 M: truth passes 3.56 M, coverage re-sweeps 1.43 M, verifier 4.19 M
Main agent 424 turns (375 of them Bash), 176 M cache-read tokens, context about 415 K at the end
Page reads about 600 fetches of about 75 distinct pages, every one already cached by the gate
Findings over the loop 28: dates about 9, meta-claims (counts typed into the record and report) 6, wrong truth-pass fixes 3, scope or supersession about 4, sourcing 3, F18 1
Loop shape iteration 4 CLEAN over 195 claims, refuted by iteration 5 (six date and scope defects in text unchanged since before iteration 4). Post-fix passes ran over the full ledger in iterations 3, 4, 6 and 7
Revisions publisher revisions caused 10 of the 24 non-clean entries and 3 of the 4 factual errors (Cacti, GL.iNet, Java4Shell)

Intel fire 2026-12-02T0355Z (2 h 10 min): research S1 to S4 about 1.65 M tokens, deep-read helpers 0.52 M, four verifier iterations 1.79 M. Before any work the main context held cti-run.md (about 68 K tokens), prior_coverage.json (about 56 K) and the JSON state digest (about 45 K). Every research agent loaded cti-research.md (98 K characters), every verifier cti-verification.md (44 K).

The changes

Numbering follows the operator's audit task (items 1 to 10). Items 1 to 8 shipped, item 9 is a measurement only, item 10 is an open question.

1. Dates no cited page states

  • What: check_run.py check citation-tokens (WARN, blocks nothing) flags a clause whose date, version or CVSS token does not appear on the page its citation points at, read from the shared body cache. It also flags "released / fixed / patched on <date>" when the cited page shows that date only in a revision history. The § Canonical phrasing rules in cti-run.md Phase 4 give the one wording for each date shape.
  • Targets: the about 9 date findings, each of which cost one post-fix iteration.
  • Next audit shows it if: findings tagged class: date in verification.iter*.findings.yaml drop to 2 or fewer over the loop, and check_run.py reports the citation-tokens WARNs before iteration 1 instead of the verifier finding them.

2. Meta-claims are generated, never typed

  • What: tools/run_record.py facts computes every count and clock a record or audit report states (entries, records, findings per class, iterations, durations). The record and report paste the generated line. check_run.py check run-facts WARNs on a missing facts line or one that disagrees with disk, and under the zero-warning discipline a run fixes that before commit. run_summary.py --brief carries the open backlog rows, so the audit no longer counts them by hand.
  • Targets: the 6 meta-claim findings.
  • Next audit shows it if: no finding on the record or report body disagrees with a count on disk (zero F4 findings whose where: names the run record or the audit report).

3. Confirm before you reverse

  • What: before applying any verifier or truth-pass finding that reverses, removes or weakens a published claim, the main agent re-reads the cited passage from the body cache and records the decision in remediation.iter<N>.txt (applied, declined or partial). (low confidence) findings are advisory.
  • Targets: the 3 wrong truth-pass fixes (all three reverted later, two of them false positives).
  • Next audit shows it if: no later iteration reverts an earlier fix, and declined rows in the remediation files each carry the passage that refuted the finding.

4. Canonical phrasing and one severity for cves[].cvss

  • What: cti-run.md Phase 4 § Canonical phrasing fixes the wording for dates, publisher revisions ("On <date> <publisher>'s page said X, it now says Y" when no source dates the revision), version boundaries, scope words and exploitation status. The verifier checks it word for word. An uncited cves[].cvss is an F5 (editorial) on every pass, so passes no longer disagree on its severity.
  • Targets: the about 4 scope and supersession findings and the revision wording that took the Cacti page three iterations.
  • Next audit shows it if: no claim is rephrased more than once across the loop (compare claims.changed.iter*.yaml).

5. Exact scopes, cached bodies, sharded passes

  • What: tools/claim_ledger.py --role first|post-fix|confirmation [--shards K] writes the exact claim scope of each pass. First and confirmation passes cover every claim with fresh reads. Post-fix passes cover the changed claims, the remediated surfaces, every claim of a defect class earlier passes found and a seeded quarter of the rest, read from the shared body cache (fetch_source.py --run <run-id>, fresh only for changed claims and living advisories). Passes over about 150 claims are sharded by entry and run in parallel. A pass with unanswered in-scope claims is incomplete and its CLEAN never counts (claim_ledger.py --coverage N).
  • Targets: the 2 h 48 min loop, the 4.19 M verifier tokens, the about 600 page fetches and the four full-ledger post-fix passes.
  • Next audit shows it if: the loop's wall time (sum of duration_seconds in iter*.record.json) falls below half of 2 h 48 min, verifier subagent_tokens fall below 2.5 M, post-fix scopes list fewer claims than the first pass, and the fetch: cache share of post-fix scope rows is above 80%.

6. Defect classes travel, findings do not

  • What: every later pass, the confirmation pass included, gets the class names earlier passes found (for example date, attribution) and sweeps every claim of those classes. Classes name no entry, no claim and no conclusion, so the confirmation pass stays an independent cold read. The anchoring trade-off is set out in prompts/CHANGELOG.md 4.26.
  • Targets: the iteration 4 CLEAN that iteration 5 refuted with six defects of classes earlier passes had already found.
  • Next audit shows it if: no confirmation pass after a CLEAN finds a truth defect of a class an earlier pass already reported, and iterations to a confirmed CLEAN drop from 8 to 4 or fewer.

7. Compaction-safe briefs and generated verification blocks

  • What: every spawn brief is written to work/<run-id>/spawn.<name>.md and the spawn message only points at it. run_record.py verification ingest|render builds the verification block from the verifier's files, run_record.py restamp sets the clock, subagent records each spawn with its token count. (The operator's task proposed a separate verification_record.py. run_record.py already owned the record, so the subcommands live there.)
  • Targets: the 424 main-agent turns, many of them spent re-assembling briefs and typing the verification block, and the 415 K end-of-run context.
  • Next audit shows it if: main-agent turns fall below 250 and the end-of-run context below 250 K (from the routine's session usage view), and no record carries a hand-typed verification block.

8. Stop-hook noise

  • What: the Stop hook that asks to commit and push is harness configuration outside the repository (~/.claude/stop-hook-git-check.sh, registered by the launcher), not a hook under .claude/. A repository hook cannot silence it. The repository-side fix is cti-run.md guard #10: never end a turn mid-run, spawn sub-agents in the foreground in one message and wait with blocking commands, so the hook never sees an idle turn with a dirty tree.
  • Targets: stop-hook turns spent while background sub-agents ran.
  • Next audit shows it if: the transcript shows no stop-hook turns before the commit.
  • Operator option: if the hook should also stay silent while work/<run-id>/main.started_at exists without a committed record, that change belongs in the environment's hook script, not in this repository.

9. Revision-detection pre-pass (measured, not shipped)

See § Measurement below.

10. Committed raw bodies (operator question)

.gitignore treated work/**/*.txt and *.html as raw-body scratch, but extract writes .md bodies, so 785 .md bodies (about 14 MB) are committed under work/*/bodies/, among about 3,000 body files in all. v4.26 ignores work/*/quote-bodies/ and work/*/bodies/ for new runs and commits a manifest instead (work/<run-id>/bodies.tsv: url, transport, size, text hash, time). Files already committed stay tracked. This is reversible with one .gitignore line. The question for the operator: keep the manifest-only default, or commit bodies again? The item 9 measurement below is the one use the committed bodies had in this review (predictor A), and the claim tables' verbatim passages cover the same need without them.

The intel fire

The same changes cut the intel fire's cost, plus:

  • Phase 0 reads the about 10 K-token coverage brief (coverage_lookup.py brief) instead of the 56 K-token prior_coverage.json, and the one-page state digest (run_summary.py --brief) instead of the 45 K-token JSON. Candidates are checked with coverage_lookup.py check and names with entity, never the registry whole.
  • plan_sweep.py writes the S1 to S4 slices and a feed probe, so feeds with nothing new in the window cost no agent turns.
  • cti-run.md shrank from 194 K to about 120 K characters, cti-research.md from 97 K to 49 K, cti-verification.md from 44 K to 37 K, with the same phases, directives and invariants.
  • Research agents return claims: rows with a passage checked against the cached body, which seed the Phase 4 claim table, and a shared claimed.tsv keeps two domains from drilling the same story.

Next fire shows it if: research tokens stay at or below 1.65 M with the same or more published findings, verifier iterations to a confirmed CLEAN stay at 2 to 4, and the main context before Phase 1 is below 100 K tokens.

Where to read the numbers

Measure Source
Iterations to a confirmed CLEAN, verdict per pass work/<run-id>/iter<N>.record.json (verdict, role), the run record's verification block
Truth and editorial findings per class iter<N>.record.json (truth, editorial, advisory), class tags in verification.iter<N>.findings.yaml
Loop wall time duration_seconds summed over iter*.record.json
Sub-agent tokens subagent_tokens in iter*.record.json and the run record's sub-agent blocks
Scope size and fetch mode per pass scope.iter<N>[.s<K>].yaml (fetch: cache or fresh per claim), claim_ledger.py <run-id> --coverage N
Pages read work/<run-id>/bodies.tsv
Main-agent turns and context the routine's session usage view (not visible to the agent itself)

Measurement

Item 9 asked whether diffing a cited page's current text against the body captured at publish time predicts which entries the truth passes flag. Measured against the 2026-11-29 audit, whose six truth passes checked 51 entries: 17 carried a truth finding (F1 to F4, F13 to F15), 9 a finding whose text names a publisher revision, 4 a factual error (Cacti, GL.iNet, Java4Shell, SAP). Labels come from the audit's truth-T*.yaml files. Current pages were read on 2026-12-02 with fetch_source.py extract.

Three predictors were tested:

  • A. Body diff. For each cited URL, the latest body an earlier intel run committed under work/*/bodies/ against the current text, counting characters in sentences added or removed. Only 24 of the 51 entries had a publish-time body for any cited page (124 pages): the rest were published by runs that committed no bodies.
  • B. Quote presence, own page. Each evidence[] quote searched on the current extracted text of its own source_url, punctuation and case ignored. Needs no stored body, because the quote is the publish-time baseline. 49 entries, 324 quotes.
  • C. The gate's existing pre-pass. check_run.py --page-checks-since (quality-audit step 5b since v4.13), run against a worktree of the audit's base.sha. It searches each quote on raw HTML and the trafilatura text of every source of the entry and names unreadable pages instead of flagging them.
Predictor Entries routed Truth-flagged caught Revision-caused caught Factual errors caught Clean entries routed
A, any change (24 measurable) 19 of 24 10 of 10 5 of 5 3 of 3 7 of 11
A, 2,000 characters or more 11 of 24 7 of 10 3 of 5 2 of 3 3 of 11
B, a quote gone (49 measurable) 24 of 49 11 of 16 8 of 9 4 of 4 9 of 25
C, a quote-literal or citation-cve WARN 4 of 51 3 of 17 3 of 9 3 of 4 0

Reproduce A and B with python3 docs/measurements/revision_prepass.py 2026-11-29T1406Z-audit (needs trafilatura, see .claude/hooks/setup-deps.sh, or every page reads as changed). C is python3 tools/check_run.py <cache-id> --page-checks-since <window start> --root <worktree at base.sha>.

Reading.

  • The precise signal already exists. C flagged 4 entries, every one of them non-clean, and 3 of the 4 factual errors. The 11-29 audit had these as named leads in its truth-pass envelopes (GL.iNet, SAP, Cacti). Detection was not the gap for those three: the Cacti revision, for one, was a lead from the start and still took three iterations to phrase correctly, which is what § 4 addresses.
  • The broad signals cannot route without losing defects. A and B catch nearly every revision-caused entry, but only by routing half to four fifths of the window. B leaves 5 of 16 truth-flagged entries in the unrouted half: their defects (a wrong scope word, an unsupported clause) had nothing to do with page changes. Skipping the deep pass on those entries would have dropped real findings, which the operator's brief rules out.
  • As a skip signal A looks strong but the sample is tiny. The 5 entries whose cited pages had not changed at all carried no truth finding.
  • The baseline must be the text the claim was written from. The vCenter entry's revision-caused finding sits on VMware's GitHub advisory Q&A, which had not changed since a 2026-11-25 fire captured it: that fire read the revised page and left the older claim in place. A detector keyed to the latest capture misses this shape, while B (the quote is the claim's own baseline) does not.
  • Size is a poor proxy. A PHP release archive cited by the PAN-OS entry grew by 35,000 characters of unrelated releases, while revision-caused findings sat on changes of a few hundred characters.

Caveats. Pages were read three days after the audit, so revisions in between count as changes the audit never saw. B reads only the trafilatura text of one page, so content trafilatura drops (tables, accordions) reads as gone, which is part of why it routes so much. The revision label is a text match on the findings (9 entries, the operator's review counted 10). One audit is a small sample.

Recommendation: do not ship the routing. Keep C as it is, as named leads. Do not skip deep truth passes on the strength of A or B. What would make a pre-pass worth revisiting:

  1. A per-claim baseline. Each research item's claims: rows in work/<run-id>/findings.*.yaml carry the verbatim passage behind a claim and its URL. (v4.26 also asked the composer for a claimtable/<slug>.tsv copy. No fire wrote one, and v4.32 dropped it.) Checking those passages on the current pages (strict matcher, every source of the entry) is predictor B done right, per claim rather than per entry, and needs no committed bodies.
  2. Remeasure on the next two or three audits once their windows hold v4.26 entries with claims: rows. If unchanged-passage entries stay free of truth findings over about 60 entries, a lighter truth check for them becomes a candidate, proposed with that data.

The bodies.tsv hash alone cannot serve as the baseline: it is over the raw extracted text, so it flags every byte change, the least selective row of A.