Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Parity Status

Status: Historical audit snapshot; re-baseline pending Last updated: 2026-10-31

Summary

Parity work resumed in this standalone repository on 2026-10-30. The acceptance counts and golden-coverage table below are historical snapshots from May and June 2026; they have not been regenerated against the resumed worktree. Treat the counts and prioritization as historical, not as the current inventory. Do not claim full command parity without fresh, command-specific evidence.

If you are migrating from legacy CLAN and need bit-exact output, use legacy CLAN unless the specific command/options you need have current parity evidence.

The previous audit used a depth-first, one-command-at-a-time strategy and treated FREQ as its active target. Work resumed with CHIP and other feasible gaps; a new full inventory has not yet been completed. Follow the repository’s current AGENTS.md for scope and workflow.

Historical snapshot, 2026-05-27 audit

The numbers below come from the 2026-05-27 run of the audit-vs-reality probe, which compared documented CLAN flags against the exit code and output of chatter-clan <cmd> <flag> <fixture>. The probe has not been rerun since work resumed.

CategoryMeaningCount
ACLAN-documented as Done + chatter accepts the flag (audit row is correct)89
BCLAN-documented as Done + chatter rejects (regression)0
CCLAN-documented as Partial/Missing, work remains201
DDeliberately documented divergence from CLAN2
SKIPNot testable via the probe (file-arg placeholders, etc.)45
Total337

~26% of audited rows are “done and audit-correct”. ~60% are explicit work-remaining (Category C). Zero rows are regressions.

These are historical aggregate counts across roughly 60 CLAN commands. A single command may contain anywhere from a handful to several dozen audit rows depending on its flag richness. FREQ had the most rows in that snapshot and was its active depth-first target.

Golden-verified byte parity (generated)

The snapshot above is acceptance-based: it counts whether chatter-clan <cmd> <flag> is accepted, not whether its output byte-matches CLAN. The table below is the stricter, honest signal, computed from the fail-closed golden tests: how many of each command’s CLAN flag-rows have a byte-for-byte parity golden, versus how many the per-command page still marks Done without one. For any command listed here, this supersedes the acceptance snapshot.

It was generated by the clan_golden metric test (regenerate with UPDATE_PARITY_METRIC=1). This snapshot has not been regenerated since the project resumed. “Claimed Done, no golden” is the gap the acceptance audit could not see.

CommandFlag-rows proven (byte-parity golden)Diverged (documented)Claimed Done, no golden
FREQ25 / 4444
MLT0 / 24010
DIST0 / 502
MAXWD0 / 20012
CHIP0 / 1008
TIMEDUR0 / 300
KWAL1 / 21012
COMBO1 / 24013

FREQ’s 4 “Claimed Done, no golden” rows cannot have a single-file render golden by nature, and are proven at their correct seam instead. Two are the structural flags +u (combine across files) and +re (recurse subdirectories), which chatter makes the default behaviour; they live at the CLI orchestration seam (multiple file arguments, a directory argument), not at single-file render, and are proven by the freq_combine_recurse_tests subprocess tests, with combined-table byte-parity against CLAN’s +0 +u verified against OSX-CLAN/src/clan/freq.cpp. The other two are +oS/-oS and +y, which are Done by rejection: FREQ’s case 'o' rejects non-sort +o forms and +y switches CLAN to a non-CHAT raw-text mode chatter has no analog for, so the correct behaviour is to error, pinned by inapplicable_flag_tests rather than a render golden. The “no golden” column counts the absence of a render golden, which is the right signal to keep visible; the proof exists at the correct seam for each.

Active command, FREQ, DEPTH-COMPLETE (2026-06-04)

Per the depth-first strategy, FREQ was the first command driven to full parity, and it is now depth-complete: every FREQ flag-row is in one of Done (byte-parity or rejects-matching-CLAN), Partial (a chatter abstraction differs, with the residual sub-flags themselves deferred-with-reason), Rewriter-only (errors at parse, correct for an inapplicable flag), or Deferred (scope-gated with a source-grounded reason). Zero rows remain “Missing” without a source-grounded reason.

The deferred rows are all genuine scope gates, not effort gates: %mor / cross-tier flags that need the shared MOR-analysis subsystem (+d0/+d6/+d7/+d8, bare +d, +r8, +r50, +c5); flags that switch CLAN to a non-CHAT raw-text mode chatter has no analog for (+y, +o2); a CA repeat-segment flag that needs a parser span type (+c6); a manual-vs-binary contradiction escalated to the maintainer (+xWORD/+x@FILE, +a); and output-routing infra (+f). The consolidated assessment for the maintainers, including the cost estimate for porting the rest of CLAN, is in the FREQ porting report.

The byte-parity numerator in the table above (25 / 44) counts only the rows with a CLAN-re-running golden; the denominator dropped from 47 to 44 as three rows moved from Missing to Deferred (excluded from the denominator as documented non-goals). The remaining Done rows are rejections, structural (multi-file orchestration), or spreadsheet semantic-equivalence cases that are proven at their own seam rather than by a single-file render golden. With FREQ depth-complete, the next command (a smaller analysis command, e.g. MLU or KIDEVAL) validates that the shared primitives make the second command cheap.

All other commands

Every CLAN command outside FREQ is in one of two states:

  1. Implemented but not depth-first verified. Most analysis, transform, and converter commands have a chatter implementation that handles the common-case flags. They have not been driven through the byte-for-byte parity gate. Treat their output as “approximate”, close enough for many uses, but not a drop-in replacement for legacy CLAN output in a publication-grade workflow.
  2. Intentionally unimplemented. CLAN’s MOR / POST / MEGRASP grammar commands are deliberately redirected to the batchalign neural pipeline rather than reimplemented as legacy CLAN ports. See the command pages for those commands for the deliberate-divergence rationale.

What “done” means here

A command is done when every CLAN-documented flag for it has been classified into one of:

  • matches: chatter implements the CLAN semantic byte-for-byte, with a passing golden test comparing chatter-clan <cmd> <flag> <fixture> to legacy <cmd> <flag> <fixture>.
  • deferred: intentionally not implemented yet, with a written source-grounded reason on the command’s documentation page.
  • diverged: chatter intentionally produces a different result, with a written source-grounded reason on the command’s documentation page.

Anything left as **unverified**, “matches probably”, or “needs checking” disqualifies the command from “done”, every claim must be source-grounded.

How this page is updated

The golden-verified table is generated and CI-guarded: the clan_golden metric test computes it from the fail-closed golden tests (the numerator) and the per-command audit-table denominators, and fails the build if the committed block is stale (regenerate with UPDATE_PARITY_METRIC=1). This is the authoritative, automated signal, and is exactly the CI automation the acceptance snapshot once deferred as “a later step”.

The acceptance snapshot (Category A/B/C/D) is the older, hand-maintained cut from an external probe that records flag acceptance (exit code), not output parity. It is being superseded command by command as each gains golden coverage; do not read its “Done” counts as byte-parity claims.

Faithfulness rules

Two policies govern how chatter implements each CLAN flag:

  1. Faithfulness rule. Every CLAN flag slot, +a, +bN, +c, +dN, +s, +t, etc., implements CLAN’s documented semantic byte-for-byte. Chatter extensions (researcher conveniences not in CLAN, new output formats, ergonomic shortcuts) get a chatter-specific flag name (--list-types, --include-replacements, etc.), never a CLAN slot. Squatting a chatter semantic on a CLAN flag is the worst kind of parity bug ; it looks correct in passing but silently produces non-CLAN output for the exact users (CLAN-trained researchers) the command targets.

  2. No-speculation rule. Every claim about CLAN behavior in this book or in an audit doc carries a file:line citation from CLAN source (e.g. freq.cpp:690-765). Every claim about chatter behavior carries a file:line citation from chatter source. “Likely matches” / “appears invented” guesses are banned unless explicitly tagged **unverified** with the specific file:line that would settle the question.

Canonical CLAN source for citations

When this book or any audit cites a CLAN behavior at a file:line, the path resolves inside the TalkBank/OSX-CLAN repository on the dev branch, under src/clan/<file>.cpp.

OSX-CLAN/dev is the TalkBank Git layer over the upstream CLAN maintainer’s latest unix-clan.zip from dali.talkbank.org, published there far more often than committed to GitHub. Citations against master of the same repository are typically stale; always ground at dev after the most recent sync. A sync script imports the latest snapshot onto dev as a single dated commit, so git log src/clan/<file>.cpp on dev is the de-facto audit history of upstream changes.