Repository navigation
fix: a glued span like "better stack" goes through the vocabulary checks - #381
Conversation
…ction
With the clause decider on, a sound place whose heard span glues to the
term ("better stack" -> BetterStack) is written before the slot or the
decider can read it. After a correction back the decider says leave, and
the term is still written. These two checks fail on c783d5a.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01WfxPEjc1EEGqG2rHoJcLJ2
Signed-off-by: Nathan Zylbersztejn <[email protected]>
… decider on A sound place whose heard span glues to the term was written before the slot or the clause decider read it. The decider read the correction back (pair_ref 1, p 0.003) but only takes a write back from a term with accepted sentences, so a term only ever corrected stayed written. With the flag on, both sources now settle as `.slot`. A glued span is written only when one of its words is in neither word list, and the log says which word. Otherwise the slot and the decider read the place. Flag off is unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01WfxPEjc1EEGqG2rHoJcLJ2 Signed-off-by: Nathan Zylbersztejn <[email protected]>
|
Automatic reviews are disabled for this repository. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01WfxPEjc1EEGqG2rHoJcLJ2 Signed-off-by: Nathan Zylbersztejn <[email protected]>
|
@coderabbitai review |
Action not completed
|
|
CodeRabbit review (local CLI 0.8.0). The GitHub app is rate limited on this repository, so this review ran with
|
With
transcription.vocabulary.clause_decider: true(default off), a heard span that glues to a term ("better stack" -> BetterStack) is no longer written before any check. The word lists ask about each word of the span. If one word is in neither list (ZorbinZorb lix), the term is written, as for a single word. If every word is known, the slot and the clause decider read the place like any other. A correction back now counts against the term the next time. Flag off is unchanged.On the 165 bench at 0.60, wrong writes go from 8 to 2 in chrono order (8.0 to 2.0 over 20 random orders). Right writes go from 47 to 43 (43.35 to 39.0). The cost is a cold term: the decider never writes a term with no accepted sentence, so a genuine "red crawl" is offered on first sight instead of written. Review
VocabularyPass.settlefirst.Stacked on #380.
Why the old behaviour was wrong: the glue wrote before the decider, and the decider could not take it back
Pipelinepassed[.sound: .full, .rule: .slot]. Under.full,settlewrote every glued span with the log line "is in neither word list", which was false: no list was asked. All six glued wrong writes on the bench were sound places.The correction back was recorded. The trace showed
rows=+0/-2 ... pair_ref=1and the decider saidleave(p 0.003 to 0.11). ButSentenceGatelets the decider take back a write only from a term with accepted sentences (!reading.cold). A term that is only ever corrected back stays cold, so the write stood after three corrections.CorrectionRecordingmatches a two-word span. That candidate was ruled out by the same trace lines.The fix: both sources settle as `.slot` with the flag on
Pipeline: flag on passes[.sound: .slot, .rule: .slot]. Flag off keeps[.sound: .full, .rule: .lists].VocabularyPass.settle: under.slot, a glued span is written only whenVocabulary.unseenWord(in:)finds a word neither list knows. The log names that word. Otherwise the log says the place is asked, and the slot and the decider read it.Vocabulary.unseenWord(in:): new, the first word of a span that neither list knows.Ghost Edoes not glue toGhostty(ghoste), so it never took this path. It is offered on both binaries with the flag on.lowercase_refusedon the sound path too. On the bench, chrono 0.60, two places that kept a capitalised "Red Rock" now read "red rock" (ids 76, 88).docs/transcription.md,tests/word-gate-cases.yaml,WordGateCommand.Measurements: wrong writes down 6 at 0.60 and 3 at 0.85, right writes down 4 and 2
165 bench through
--serve, flag on, protocol written before scoring. Base is c783d5a.Every one of the 21 orders passes at both floors. Changed places are only Redrock, Redcrawl and BetterStack. The two wrong writes left at 0.60 are single words (Supabase, Ollama).
The trial (41 dictations) and scripted (44) replays at 0.60 are unchanged: same decisions, outputs, answers and files.
Verification: the new checks fail on c783d5a and pass here; flag off is identical
scripts/check-clause-places.sh: three new checks. On c783d5a, two fail withBetterStackwritten in the output after the decider offered, then left. Here 12/12.check-vocabulary-config66/66,check-selector21/21,check-sound-group93/93,check-pipeline134/134,check-serve32/32,check-lowercase-refused13/13,check-sound6/6,check-word-gate,check-slot-gate,check-clause-decider-paritypass. Run with a scratchPARROTFLOW_CONFIG_DIRand home.--pipelinesentences give identical output on both binaries. The 165 bench in chrono order, flag off, both floors: 165/165 rows identical.coderabbit review --agent: no findings.🤖 Generated with Claude Code
https://claude.ai/code/session_01WfxPEjc1EEGqG2rHoJcLJ2