core/docs/analysis
Shay 5f6e9f5e08
feat(derivation): Workstream A inc 2 — frontier report + rate_with_currency apply_rate injection (#797)
* feat(derivation): Workstream A inc 2 — frontier report + rate_with_currency apply_rate injection

- scripts/gsm8k_frontier_report.py + test (stable buckets; rate_with_currency surfaced)
- docs/recognizer-registry.md + math_candidate_graph.py comments repaired (current refusal doctrine; old skip-only marked historical)
- generate/math_roundtrip.py: add 'a','an' to RATE_ANCHORS (with doc update)
- generate/recognizer_anchor_inject.py: inject_rate_with_currency (narrow ProperName actor, Rate/apply_rate CandidateOperation, rejects unsafe); registered in _INJECTORS; module docs updated
- tests/test_*_rate_injection*.py + frontier test (8+ unit cases, confusers, synthetic wiring, real-report frontier pin)
- ratification doc (pre-code)
- lookback (post-impl, truthful)

All required local commands exercised (pytest green for new + prior extract/invariants; frontier script shows rate bucket; runner per brief; shas captured).

wrong=0 held. No sealed movement. Proxy still expected !passed (correct_min=10).

See ratification and lookback for scope, hazards, exact outputs.

* fix(derivation): dollar grounding, roundtrip proofs, stale comment, lookback commit, a/an containment, duplicate import

- math_roundtrip: add explicit 'dollar'/'dollars' + '$' branch in _unit_grounds (symmetric to cent) + doc alignment.
- tests: assert roundtrip_admissible True for the emitted rate cands; add a/an containment/confuser test (dollar unit only grounds with $ present); add lower-level _apply_rate solver reach test; remove conditional happy-paths that tolerated refusal; clean duplicate __future__.
- math_candidate_graph: update active stale comment (injector-empty now leads to explicit refusal, not drop/preserve-zero).
- Commit the Inc2 lookback (was local-only).

All per lead block list. New head will be pushed.

* fix(derivation): address remaining Inc2 blockers (locate_rate_verb via matcher token, dispatch test, lookback accuracy, narrow symbols, tests)

- recognizer_match: updated _CURRENCY_AMOUNT_RE + parsing to populate 'rate_anchor_token' localized to the rate span (prevents whole-sentence 'a' hazard from 'a lemonade stand').
- recognizer_anchor_inject: use 'rate_anchor_token' from anchor (with allowed-set check); fallback only if absent. Added Alexa-style confuser coverage.
- injector: narrowed _CURRENCY_SYMBOL_TO_UNIT to $ only for Inc2.
- tests: strengthened dispatch to require live-registry non-empty + roundtrip_admissible; added rate_anchor_token confuser test proving 'per' (not earlier 'a') is used; roundtrip asserts already present.
- lookback: updated to 10 files, 10+6 test counts, current head reality, shas/runner status exact, no rebaseline.
- math_candidate_graph comment already corrected in prior.

All Semantic Rigor / wrong=0 invariants preserved. New tip after push.

* fix(inc2): remove rate fallback to _locate_rate_verb; mandatory rate_anchor_token; hard 'for one cup' confuser; strengthen per-span test; update lookback

- injector: for currency_per_unit_rate, rate_anchor_token is now mandatory. Absent or invalid → immediate return ().
  No call to _locate_rate_verb for these anchors.
- tests: _rate_anchor helper now passes rate_anchor_token.
- Added hard confuser test for 'Alexa ...  for one cup.' — live registry + inject_from_match must emit ().
- Strengthened distracting-a ' per' test to unconditional: m not None, RATE_WITH_CURRENCY, len==1, matched_verb=='per', roundtrip_admissible True.
- lookback updated for 11 files, include matcher.py, rate_anchor_token centrality, exact counts after this.

* docs: pin exact final SHA in Inc2 lookback

* test(inc2): strengthen for_one_cup confuser to unconditional asserts on m and category

* docs(inc2): update lookback with exact test counts 18/6, 11 files, remove 9 files line, note final SHA after push

* docs(inc2): pin exact final SHA c4e83399... in lookback

* docs(inc2): pin exact final SHA 1129c502e6e8... in lookback

* docs(inc2): note no PR/CI yet in lookback

* docs(inc2): pin ultimate final SHA 7df0cac4... in lookback

* docs(inc2): final pin of SHA f0766b3b65... in lookback

* docs(inc2): ultimate pin of head deaa1a1e3fe0...

* docs(inc2): final pin of head ec1b5f32...

* docs(inc2): pin head 011e1e17... (the fixes tip)
2026-06-17 06:38:45 -07:00
..
adr-0184-replay-provenance-equivalence-harness-2026-06-10.md
adr-0184-s3-s5-candidate-source-boundary-2026-06-10.md
afferent-field-ingest-scope-2026-06-15.md feat(l10): autonomous idle frontier-contemplation — the always-on life learns on its own (#758) 2026-06-14 23:59:49 -07:00
AGI-candidacy-autonomous-improvement-roadmap-2026-06-05.md
AGI-spine-refined-sequencing-2026-06-06.md work done towards furthering comprehension, contemplation, learning, and also began working on fixing some failing tests 2026-06-16 12:27:59 -07:00
ask-runtime-wiring-missing-boundary-2026-06-10.md
ask-serving-integration-scoping-2026-06-08.md
ask-serving-integration-scoping-2026-06-09.md
b4-frameverdict-implementation-lookback-2026-06-15.md feat(frame-verdict): closed-world FrameVerdict substrate — PR-1..4 + hardening (ADR-0222 B4) (#787) 2026-06-16 06:23:03 -07:00
close-derived-climb-yardstick-claim-b-ratification-2026-06-16.md feat(eval): harden close-derived-climb yardstick to full Claim B (#791) 2026-06-16 17:10:11 -07:00
close-derived-facts-frameverdict-posture-ratification-2026-06-16.md docs: define CLOSE/FrameVerdict posture 2026-06-16 21:43:13 -07:00
close-derived-proposal-bridge-2026-06-16.md feat(proposals): bridge derived CLOSE facts into review proposals (#789) 2026-06-16 15:39:46 -07:00
close-flywheel-dedicated-regression-surface-ratification-2026-06-16.md feat: create dedicated CLOSE Flywheel Regression Surface (Claim-B Level) (#793) 2026-06-16 19:05:05 -07:00
close-flywheel-proposal-review-visibility-ratification-2026-06-16.md feat: strengthen visibility and measurement of CLOSE flywheel proposal review/ratification side (#794) 2026-06-16 19:33:25 -07:00
close-relational-transitive-pr1-2026-06-16.md feat(determine): consolidate declared relational transitive CLOSE facts (#788) 2026-06-16 15:15:59 -07:00
cmb-a-combined-rate-ruler-2026-06-08.md
cmb-lookback-review-2026-06-08.md
combined-rate-capability-ledger-2026-06-08.md
composition-capability-scope.md
composition-wall-execution-plan-2026-06-03.md
comprehension-capability-ledger-2026-06-07.md
comprehension-coverage-wall-map-2026-06-14.md docs(analysis): wall map — the recognizer/coverage wall is COMPOSITION 2026-06-14 15:10:30 -07:00
comprehension-organ-capability-ledger-2026-06-08.md
comprehension-primitive-inventory.md
D-close-consolidation-design-2026-06-06.md
deductive-logic-phase-2-benchmark-runway-2026-06-04.md
E-estimation-design-2026-06-06.md
epistemic-coherence-architecture-2026-06-14.md docs(analysis): finding — speculative epistemic ceiling does NOT blunt learning 2026-06-14 14:58:10 -07:00
extraction-richness-audit-2026-06-03.md
field-reasoner-wedge-design-and-falsification-2026-06-04.md
field-wedge-ablation-result-2026-06-04.md
gsm8k-derivation-reader-recognizer-lift-workstream-a-ratification-2026-06-17.md feat(derivation): Workstream A inc 1 — lexeme reader + cleaned exemplars + proxy rebaseline (#796) 2026-06-16 21:57:05 -07:00
gsm8k-lift-program-strategy-2026-06-04.md
gsm8k-workstream-a-increment-1-lookback-2026-06-17.md feat(derivation): Workstream A inc 1 — lexeme reader + cleaned exemplars + proxy rebaseline (#796) 2026-06-16 21:57:05 -07:00
gsm8k-workstream-a-increment-2-lookback-2026-06-17.md feat(derivation): Workstream A inc 2 — frontier report + rate_with_currency apply_rate injection (#797) 2026-06-17 06:38:45 -07:00
gsm8k-workstream-a-increment-2-rate-injection-ratification-2026-06-17.md feat(derivation): Workstream A inc 2 — frontier report + rate_with_currency apply_rate injection (#797) 2026-06-17 06:38:45 -07:00
holonomy-resonance-proof-not-robust-2026-06-14.md fix(holonomy): downgrade non-robust resonance proof to honest tripwires + record finding 2026-06-14 14:06:51 -07:00
integrate-hardened-close-yardstick-determinism-teaching-regression-ratification-2026-06-16.md feat: integrate hardened CLOSE yardstick into determinism & teaching regression surfaces (#792) 2026-06-16 17:36:25 -07:00
L10-continuity-spike-design-2026-06-05.md
L10-runtime-scoping-2026-06-05.md
L10-shapeBplus-persistence-scope-2026-06-05.md
math-serving-seam-design-2026-06-06.md
oov-grounding-determinism-morphology-affinity-collapse.md
phase2-general-comprehension-organ-scope-2026-06-05.md
pivot-to-deductive-logic-2026-06-04.md
proposal-review-idle-integration-2026-06-08.md
proposal-review-reporter-2026-06-07.md
q1-d-ask-bus-delivery-scoping-2026-06-08.md
q1-epistemic-question-articulation-v1-scoping-2026-06-08.md
question-layer-gap-survey.md
r1-inventory-ledger-2026-06-07.md
r2-inventory-ledger-2026-06-07.md
r3-1-router-integration-2026-06-08.md
r3-2-unit-conversion-2026-06-08.md
r3-rate-inventory-ledger-2026-06-08.md
real-gsm8k-capability-measurement-2026-06-04.md
REALIZE-R1-DETERMINE-scope-2026-06-06.md
REALIZE-scope-2026-06-06.md
relational-grounding-extension-2026-06-04.md
replay-moment-backend-scoping-2026-06-12.md
router-organ-hygiene-invariant-2026-06-08.md
solver-operation-coverage.md
stage2-disclosure-bus-implementation-map-2026-06-09.md
stage2-epistemic-disclosure-bus-verified-v1-scoping-2026-06-08.md
step3-relational-surface-lookback-2026-06-15.md docs(analysis): Step-3 relational-surface lookback (#775 + #781 + #783) (#784) 2026-06-15 16:56:03 -07:00
universal-structure-and-field-symbol-coherence-gate-2026-06-04.md
VERIFIED-canonical-comparison-scoping-2026-06-06.md
verified-serving-wiring-scoping-2026-06-08.md
verified-serving-wiring-scoping-2026-06-09.md
wiring-promotion-gate-brief-2026-06-03.md