feat(baton): discontinue title-scan; declared work_verb is the sole classification signal (#332)#333
Merged
Merged
Conversation
…ignal (#332) Implements decision #332 (registered after Sentinel calibration #331). The declared work_verb (+ design_provenance), captured at authoring, is now the sole authoritative classification signal. A unit with no declared verb is unclassifiable -> routed up to frontier conservatively + a nudge to declare the verb. Never guessed from the title. Why: the Sentinel calibration proved title-substring classification unsafe (high+medium precision 0.57, 4 errors *downward*) due to object-vs-verb collisions (a module named Audit), incidental tokens, and an unbounded per-adopter keyword treadmill (#321 anti-pattern). Fake savings are worse than an honest "declare the verb" gap. Removes signals::{Cue,scan_cues,CUE_TABLE,matches_at_word_start}. classify returns Option<TaskClass> (None = undeclared); implement + design_provenance=upstream degrades to operator (residual cognitive load). telemetry: undeclared_fraction replaces conflict_fraction; saving now provably rests on declared units. units harvests work_verb from charter frontmatter + follow-up lines. Suite rewritten (78 tests), clippy clean. Sentinel dogfood (read-only): the legacy corpus declares no verbs -> 100% undeclared -> frontier -> 0 saving + nudge. No fake savings. Framework graduation (first-class field + validator) deferred to a fw bump, gated on schema ratification. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements the architecture decision in #332, registered after the Sentinel adopter calibration (#331). The Baton-side prototype.
What
The declared
work_verb(+design_provenance), captured at authoring, becomes the sole authoritative classification signal. Title-scan is removed from the classification path entirely. A unit with no declared verb is unclassifiable → routed up to frontier conservatively, with a nudge to declare the verb. Never guessed.signals.rs— removedCue/scan_cues/CUE_TABLE/matches_at_word_start; addedWorkVerb(design/implement/audit/operate) +DesignProvenance(new/upstream), controlled-vocabulary.classify.rs—class: Option<TaskClass>; verb→class withimplement+design_provenance=upstream→operator(residual-cognitive-load); undeclared →None. Declared = High confidence.route.rs— undeclared → frontier (conservative, R1).telemetry.rs—conflict_fraction→undeclared_fraction(the actionable nudge); saving now provably rests on declared units (low_confidence_savings_fraction→ 0).units.rs— harvestwork_verb/design_provenancefrom charter frontmatter + follow-up lines.Why (adopter evidence)
The Sentinel calibration proved title-substring classification unsafe: high+medium precision 0.57 with 4 errors downward, all from object-vs-verb collisions (a module named
Audit), incidental tokens (*.gofilenames, commit hashes, make-target names). The title is unconstrained, schema-less, often-bilingual free text; reinforcing the scan per adopter is an unbounded keyword treadmill (the #321 anti-pattern). Fake savings are worse than an honest gap.Verification
cargo test -p straymark-baton✓ — 78 tests (suite rewritten for the declared-verb model);clippyclean; no trace ofscan_cues/Cueleft.route --dry-run, read-only,git statusintact): the legacy corpus declares no verbs → 100% undeclared → all frontier → 0 saving → "not routable" + "declare a work_verb" nudge. The truthful clean-cut behaviour — the gap is an action, not a fake number.Scope boundary (deferred on purpose)
work_verb/design_provenanceas first-class governance fields (schemas, templates, validator nudge) is afw-X.Y.Zchange, gated on schema ratification (the adopter asked not to instrument against an unratified schema).design_provenanceare tracked under Decisión: descontinuar title-scan; work_verb declarado como única señal de clasificación #332.Closes the prototype step of #332.
🤖 Generated with Claude Code