Skip to content

chore(docs): slim agent-facing text to what checks cannot carry, verified by blind ablation - #353

Merged
nervouna merged 6 commits into
mainfrom
352-agent-text-ablation
Dec 5, 2026
Merged

nervouna merged 6 commits into
mainfrom
352-agent-text-ablation

Conversation

@nervouna

@nervouna nervouna commented Dec 5, 2026 •

Copy link
Copy Markdown
Owner

Summary

Fixes #352

Agent-facing text now holds only what no check carries, and every instruction set that a task exercised went
through the pre-registered blind
ablation (Amendment 1,
Amendment 2).

  • Tracked Markdown: 434 KB on main → 131 KB (−70%). AGENTS.md: 3.4 KB → 2.1 KB. Skills: 3 → 2.
  • 5569e20 moves enforced rules into lint and check messages and cuts AGENTS.md to judgment.
  • 192be22 deletes prose that restates code in docs no task covers (145 KB → 89 KB in that set).
  • 4910138 deletes every tested file that failed the rule (one revert restores them).
  • ee18340 and c1a5d5f move two facts the deleted docs carried into checks: check-boundaries.sh fails when
    QualityRecorder (key-event path) gains SQLite, JSON or FileManager work, and the install.sh identity error
    names the main checkout's .release.local.plist (behavior unchanged; installer changes need a real run).
  • fe37817 keeps the schema's Apache-2.0 adaptation notice, which lived only in the deleted schemas/README.md,
    in macOS/DEPENDENCIES.md.

Scorecard

Opus 5.5, 3 isolated runs per cell, 20 points per run; the judge (Sonnet 5.5, blinded diffs, 2 calls averaged)
is the 0–6 part. Minutes and cost are medians and are confounded by the harness (Amendment 2).

Task Cond. Runs Median Judge Min $ Docs opened (any run) Skill called
rank A 19.5 / 19 / 20 19.5 5.5 / 5 / 6 8.2 1.17 TESTING, input-quality-metrics, ranking-leads, regression-anchors, rules, README 1/3
rank B 19.75 ×3 19.75 5.75 ×3 9.2 1.16 DEBUGGING, TESTING, ranking-leads, rules 3/3
rank C 20 / 19.25 / 20 20 6 / 5.25 / 6 3.9 1.38 README –
quality A 19.5 / 19.5 / 20 19.5 5.5 / 5.5 / 6 4.8 0.71 SKILL, input-quality-metrics, quality-recording, query-contract 0/3
quality B 20 ×3 20 6 ×3 5.9 0.73 SKILL, input-quality-metrics, quality-recording, query-contract 0/3
quality C 20 ×3 20 6 ×3 6.1 0.98 README –

Every objective component (hidden tests, probes, regression suites, lints, scope) was full in all 18 runs.
B − C: rank −0.25, quality 0. A − B: rank −0.25, quality −0.5. No clause keeps a tested file; nothing reaches −2.

Never opened in any run where present: mixed-input forgetting.md and keys.md, Core/Data/README.md,
Core/Data/TECHNOLOGY.md, macOS/DEPENDENCIES.md, schemas/README.md, Core/Portable/replay.md,
macOS/QUALITY-EXPORT.md, Core/Portable/README.md, docs/architecture.md, docs/portable-core-migration.md,
macOS/DEVELOPMENT.md, Core/README.md, Core/Portable/runtime-contract.md, Core/Docs/engine-facade.md,
macOS/Docs/QualityQueryFixtures.md, macOS/Docs/TestHarnessContracts.md, quality interpretation.md.

Where extra text helped or hurt.

  • Score: no detectable effect either way. This is a ceiling on complete specs, not evidence that text hurts.
  • Cost: runs with the domain docs cost less (quality $0.71–0.73 vs $0.98, rank $1.16–1.17 vs $1.38). With n = 3
    and the harness confound this is a hint, not a result; the rule scores quality only.
  • Triggering: with every doc present, the mixed-input skill was called in 1 of 3 runs, against 3 of 3 with only
    its own docs. The quality skill was never called through the Skill tool; runs read its SKILL.md directly.

Deleted (failed the rule): the inkflow-mixed-input-maintenance skill, Core/Data/README.md,
Core/Data/TECHNOLOGY.md, macOS/DEBUGGING.md, macOS/TESTING.md, schemas/README.md, the quality
query-contract.md, Core/Docs/quality-recording.md, Core/Portable/replay.md, docs/input-quality-metrics.md,
Core/Portable/README.md, docs/architecture.md, docs/portable-core-migration.md, macOS/DEVELOPMENT.md,
Core/README.md, Core/Tests/README.md, Core/Portable/runtime-contract.md, Core/Docs/engine-facade.md,
macOS/Docs/QualityQueryFixtures.md, macOS/Docs/TestHarnessContracts.md.

Kept and untested: the release skill, the quality SKILL.md and interpretation.md, Linux docs,
UpdateHelper, ApplicationContracts, InputSourceLifecycle, BuildMetadata, VOICE_INPUT, licenses,
dictionary docs, BlackBoxBenchmark, fixture READMEs, the fcitx5 README, plus the two exemptions below.

Recurring failure modes. None traced to text. The only repeated ones were the harness's scratchpad denial
(Amendment 2) and two spec readings the judge flagged, which match main's behavior (Amendment 2, exploratory).

Acceptance

  • bash scripts/check.sh origin/main: exit 0 (comment, style and docs lints).
  • build/comment-lint/bin/python -m unittest discover -s scripts/tests: 29 tests OK.
  • bash Core/scripts/check-boundaries.sh --standalone: PASS; with import SQLite3 appended to
    QualityRecorder.swift it fails with the new message.
  • The replay binary reports fixed, broken and McNemar p on distinct pairs (src/bin/replay.rs), and its usage
    line runs once the portable core is built, as the quality skill now says.
  • No remaining reference to a deleted file outside the two QualityBaseline fixtures, whose source labels still
    name macOS/DEBUGGING.md as provenance.

Deviations and open issues

  • macOS/DEPENDENCIES.md (shipped in the dictionary source bundle, cited by NOTICE) and
    macOS/QUALITY-EXPORT.md (the user guide README.md links) were misclassified as agent-facing; they stay.
  • The ranking target band and ship rule from docs/input-quality-metrics.md now sit in AGENTS.md (3 lines),
    since no code carries them; the quality skill gained one sentence on Wilson intervals and zero denominators.
  • The six "Considered and rejected" items of docs/architecture.md moved to
    a comment on #295.
  • Outside the repo, three weekly task prompts (research, iteration, simplify) cite deleted docs; they need
    updating before Tuesday 8 December. Two project memories that cited deleted docs were updated.
  • The audits proposed more checks that were not built, because the prose they would guard is gone or untested:
    argparse defaults in quality.py --help, export filter refusal, Han range parity, quality-capture-query in
    the quick group, Swift member and fixture README lint, Linux export rejection, an option-mask parity test and
    IFR_MODIFIER_* header constants, release.sh --check, and an AI-off default test.
  • The leak-audit markers changed after their first output, and the harness denied each run's own scratchpad;
    both are disclosed in Amendment 2.

Delivery record

Implementer model Implementer tokens Rework rounds Dispatch to merge Defects found in review Defects found in acceptance
Opus 5.5 (orchestrator, one audit subagent); 18 ablation runs $18.81 1 (Amendment 1 probe fix) 0

…ENTS.md to judgment

Add scripts/check.sh as the one local entry for the comment, style and docs lints that CI runs. Lint and
boundary failures now state their rule and reason, so the prose that restated them is gone. Entry budgets
apply without an AGENTS.md link and fail when a doc shrinks below its budget.
Apply the read-only audits' D and MC deletions to the release and quality skills, the macOS contract docs,
the dictionary docs and the component READMEs, after checking each row against its cited source.
Fix stale text found on the way: the release ruleset no longer points at AGENTS.md, broken-package recovery
also deletes sparkle-receipt.plist, and Fcitx5 paging calls carry no snapshot.
The blind A/B/C ablation in #352 found no condition difference near the 2-point
threshold on either task (medians within 0.5 of 20), so the tested sets go:
the mixed-input skill, the quality query contract, and the general and domain
docs listed in the pre-registration. macOS/DEPENDENCIES.md ships in the
dictionary source bundle and macOS/QUALITY-EXPORT.md is the user guide the
README links, so both stay. AGENTS.md keeps the ranking target band and ship
rule inline and points at the test and build entry points.

Refs #352
install.sh --developer-id reads INKFLOW_SIGN_IDENTITY from the main
checkout's .release.local.plist when the environment lacks it, which the
deleted development guide told agents to do by hand. check-boundaries.sh
fails when QualityRecorder, which runs on the key-event path, gains SQLite,
JSON or FileManager work.

Refs #352
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-05T11:10:51.856581Z ee18340 PR opened
🔒 Security Review ✅ Completed 2026-12-05T11:12:50.937278Z ee18340 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

…n its error

Installer changes need one real run before merge, so install.sh keeps reading
INKFLOW_SIGN_IDENTITY from the environment only; its error now says where the
identity lives.

Refs #352
… at its output

The notice that inkflow_pinyin.schema.yaml is adapted from rime-pinyin-simp
lived only in the deleted schemas/README.md; it moves to DEPENDENCIES.md,
which ships in the dictionary source bundle, and NOTICE names the data file
headers instead of the deleted data docs. The quality skill says the replay
binary reports fixed, broken and McNemar p itself.

Refs #352
@nervouna
nervouna enabled auto-merge December 5, 2026 11:19
@nervouna
nervouna merged commit dd41bdd into main Dec 5, 2026
9 checks passed
@nervouna
nervouna deleted the 352-agent-text-ablation branch December 5, 2026 11:24
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.

Replace agent-facing prose with checks and keep only text that wins a blind ablation

1 participant