Commit graph

863 commits

Author SHA1 Message Date
Shay
2a3f7ad125 feat: retire fraction_decrease prose regex — bind dilation from frame scale
Some checks failed
lane-shas / verify pinned lane SHAs (pull_request) Has been cancelled
smoke / smoke (-m "not quarantine") (pull_request) Has been cancelled
The post-CGA / ProblemFrame pivot comes to fruition: geometric dilation for
fraction_decrease is built from the bound scale role's GroundedScalar
(exact Fraction from kernel slash_fraction / pack numerics), not from a
local "decrease to N/M of" regex on evidence spans.

- Remove _build_fraction_decrease_payload_and_bind (legacy overfitting path)
- Add _fraction_decrease_scale_binding + _versor_binding_from_scale_value
- assess_fraction_decrease attaches VersorBindings when runnable
- assess_geometric_proposals uses frame scale only for fraction_decrease
- compose fallback prefers obligation-complete contracts with bindings
- Guard test: contracts source must not reintroduce the prose regex

Invariants: construction-boundary CGA only; versor_condition < 1e-6;
no new derivation-organ prose parser.
2026-07-08 20:09:49 -07:00
Shay
268a754c00 fix: fold Gemini CGA/fraction_decrease compatibility into deck PR
Some checks failed
lane-shas / verify pinned lane SHAs (pull_request) Has been cancelled
smoke / smoke (-m "not quarantine") (pull_request) Has been cancelled
Port load-bearing fixes from Gemini worktree (Projects/core draft) onto
forgejo deck branch — reviewed and cleaned for invariants:

- fraction_decrease: optional contract with geometric proposal fallback;
  multi slash-fraction hazard refuse
- parse_and_solve: 9-decimal answer presentation boundary only (matches
  derivation verify uniqueness quantum; not algebra drift repair)
- proportional_decrease family asserts: serving_allowed after Gate A2k
- ADR-0184 S4b: re-pin equivalence corpus 937 → 1087

Not folded: local core-rs uv install (env-only), obsolete 3lang draft
from Gemini tree, double-rounding wrapper noise.
2026-07-08 20:00:51 -07:00
Shay
640dbe8fd7 feat: close 3-lang depth deck — same-turn roots, capability pins, public_demo budget
Some checks failed
lane-shas / verify pinned lane SHAs (pull_request) Has been cancelled
smoke / smoke (-m "not quarantine") (pull_request) Has been cancelled
Complete residual work after PR #2/#3 merge:
- Same-turn he/grc depth via resolve_token_depths before PropGraph build
- Capability suite (he/grc exemplars, result fields, construction, dilation)
- public_demo: 60s reference budget, soft runtime case (hard raise opt-in)
- Pack-first geometric scale for fraction dilation; legacy N/M retained
- Re-pin public_demo SHA; lane-shas 9/9 green

Invariants: exact pack lookup, immutability, versor by construction, no
prior-turn dependency for first-contact he/grc root canonicalization.
2026-07-08 19:15:34 -07:00
Shay
0188af46c0 fix(3lang-depth): remove is_fully_grounded gate from depth enrichment so result always gets node_depths/gau for 3-lang; fix fixture to use combined packs + explicit skip docs; add runtime docstrings for contract; update draft md evidence
Some checks failed
lane-shas / verify pinned lane SHAs (pull_request) Failing after 2m29s
smoke / smoke (-m "not quarantine") (pull_request) Failing after 4h41m33s
- Fixes skeptic gaps on empty fields in some smokes and fixture mismatch.
- Targeted tests green post-fix.
- Fresh captures have required non-empty data + documented skips.
2026-07-08 08:02:01 -07:00
Shay
5d9e2d0748 test+feat: marker/fixture for depth packs; top-level node_depths+graph_anti_unify on CognitiveTurnResult; docstrings+pr draft; verifs captured
- Addresses review items + goal plan acceptance.
- Real tests committed driving shipped pipeline+result.
- All per verification plan + checklist.
2026-07-08 07:54:53 -07:00
Shay
0dbcd63d63 feat: 3lang depth PropGraph unification - phase refinements, wiring, tests + session pickup cleanups/governance
- Complete depth canonical, pack resolver DEPTH_PACKS, pipeline attrs+node_depths+graph_anti, contemplate/pass_manager/contracts propagation (immutable).
- Polish anti_unifier, tests (oov, construction, percent), runtime/chat integration.
- Governance: AGENTS.md updates, docs/README/handoff_template, skills bootstrap, retire handoff.
- Leaves pickup seeds (NEW_SESSION_PROMPT, plan.md, compact) for continuity.
- Spine tests green, 3lang depth visible in ctx for he.

Refs: plan.md, 2026-07-06-compact.md
2026-07-08 07:07:11 -07:00
Shay
29284fae2a feat: implement phases 1-5 3-lang depth unification (antiunif root, default depth, contemplation prop, graph helper)
- root_normalize + depths in anti_unifier/derive/recognize for AC1
- default enrichment no flag for AC2
- depth to pass_manager + assess for AC3
- graph_anti_unify helper for AC4
- direct tests + verif per plan
Aligned with exact recall, immutability, cognitive spine path.
2026-07-06 09:37:38 -07:00
Shay
c1e723f185 feat: integrate 3-core-language depth into PropositionGraph spine for bidirectional unification
- Add LexicalResolution dataclass + resolve_entry() in chat/pack_resolver.py
  that returns language, root, morphology_id, gloss, semantic_domains from
  he/grc/en packs (lru-cached, first-match, full depth support).

- Extend GraphNode (generate/graph_planner.py) with optional language/root/
  morphology_id fields (defaults preserve all call sites). Update as_dict()
  to include them conditionally. ground_graph() now propagates depth.

- Generalize enrichment in core/cognition/pipeline.py:
  - Per-subject resolution map using depth packs.
  - Enrich all matching nodes before ground (subject→node map).
  - Pass depth alongside recalled_words to ground_graph().

- Consume depth on articulation side:
  - realize_semantic() and render_semantic() now accept/use language+root
    for etymological/Logos framing on Hebrew/Greek nodes (e.g. "אמת (Hebrew
    root: א-מ-ן) is defined as..."). English unchanged.

- Enrich oov_geometric_context with node_depths for future geometric
  anti-unification using roots.

- Extend recognition/connector.py to forward depth from EpistemicNode
  paths into GraphNode.

- Add full Hebrew turn test under realizer_grounded_authority flag.
- Update related tests (semantic realizer, OOV context, surface resolution).
- Cleaned legacy type() hack immediately on discovery (hard-stop rule).

All targeted tests green (52+ in slices), broad relevant suite 581 passed.
Invariants preserved: versor only at owned boundaries, exact recall,
immutable updates, no new legacy parsers. 3 pillars upheld.

Work continues tomorrow from this checkpoint.
2026-07-06 09:01:43 -07:00
Shay
be467a934f Fix admissibility exemplars data and test script for geometric engine updates 2026-07-04 15:25:45 -07:00
Shay
f6c1f01a13 Lane 4: Registry Consolidation (language_packs to packs) 2026-07-04 15:11:28 -07:00
Shay
c0cd44307a fix(tests): preserve environment in formation subprocess tests to ensure xdist hermeticity 2026-07-03 17:11:57 -07:00
Shay
310aed9ff0
chore: Refactor CLI and Governance Anchors (#926)
* docs: consolidate governance anchors and clean up test registries

* refactor(cli): decompose cli into dedicated modules

* test: fix broken test baselines and formatting

* docs: add domain boundary READMEs for governance anchors

* test: update baseline for determination lane

* test: fix capability_pass expectation

* test: fix CORE_SHOWCASE_SKIP_BUDGET enforcement

* chore: cleanup CLI extraction and unreachable code
2026-07-03 12:34:56 -07:00
Shay
4de9e76e9a
fix(core): lock python and extend rust cga surface (#925)
* fix(core): lock python and extend rust cga surface

* fix(workbench): use portable python spec for venv setup

* perf(cga): avoid duplicate null-cone geometric product
2026-07-02 15:32:08 -07:00
Shay
8b12423dec
fix: green test-fast suite, consolidate ADR graph under docs/adr, and complete governance cohesion anchors
- Green make test-fast suite: fixed exemplar corpus issues, proposal validation, atomic state checkpointing (scheme=2), turn-scoped state leakage in ChatRuntime.chat
- ADR corpus consolidation: migrated all ADRs to docs/adr/, appended ADR-0225 governance cross-reference anchors to foundational ADRs (0001, 0027-0029, 0055-0057)
- Pack definitional closure: fixed en_arithmetic_v1 glosses.jsonl JSON error, updated manifest checksum, marked en_core_syntax_v1 definitional_layer: false
2026-06-30 17:56:12 -07:00
Shay
c6263f5a91
refactor(kernel): split ProblemFrame builder phases (#919)
* refactor(kernel): add ProblemFrame extraction phase module

* refactor(kernel): add ProblemFrame proposal phase module

* refactor(kernel): add ProblemFrame mention phase module

* refactor(kernel): add ProblemFrame bound relation phase module

* refactor(kernel): reduce ProblemFrame builder to phase orchestration

* test(kernel): pin ProblemFrame phase boundaries

* test(kernel): keep unary delta smoke within supported slice
2026-06-25 16:16:04 -07:00
Shay
3f15bc3b6b
test(kernel): pin proposal-first assessment boundary (#915) 2026-06-24 21:38:32 -07:00
Shay
1953a1d59d
feat(bench): add Apple UMA demo package builder (#913)
* feat(bench): add Apple UMA demo package builder

* test(bench): cover Apple UMA demo package builder

* docs(outreach): add Apple UMA demo package runbook

* feat(bench): harden Apple UMA demo package workflow
2026-06-24 15:51:45 -07:00
Shay
f8d882be48
feat(workbench): add Apple UMA report read model (#911)
* feat(workbench): add Apple UMA report read model

* test(workbench): cover Apple UMA report projection

* feat(workbench): expose Apple UMA report route
2026-06-24 14:47:36 -07:00
Shay
cd7579be32
feat(bench): wire MLX exact recall into Apple UMA report (#910) 2026-06-24 14:07:17 -07:00
Shay
b30716a19c
feat(bench): add MLX exact CGA recall experiment (#909)
* feat(bench): add MLX exact CGA recall experiment

* test(bench): cover MLX exact recall experiment contracts

* docs(bench): document MLX exact recall experiment

* docs(bench): record MLX experiment integration status

* docs(bench): add MLX local validation handoff
2026-06-24 13:53:50 -07:00
Shay
99a107dd39
feat(rust): scalar Cl(4,1) zero-copy input boundary (ADR-0235 PR C) (#907)
Replace extract_f32_slice list conversion on geometric_product, cga_inner,
versor_condition, versor_apply_with_closure, and versor_apply_with_closure_f64
with PyReadonlyArray1 zero-copy views. Wrong shape, dtype, and non-contiguous
layouts fail loudly. Update Apple UMA benchmark truth table and claim audit
after parity gates pass.
2026-06-24 13:11:38 -07:00
Shay
daa13684f8
feat(bench): Rust-enabled Apple UMA baseline report lane (PR B) (#906)
Add rust_backend_status helper, backend_status report fields, and
rust_backend_notes in claim safety audit. Improve diffusion_step skip
reasons and markdown backend summary. Document core_rs install and
CORE_BACKEND=rust activation in docs/benchmarks/apple-uma-rust-baseline.md.

Regenerate seed report under honest Python fallback (core_rs unavailable
locally). No scalar Rust binding changes.
2026-06-24 12:56:57 -07:00
Shay
7132997511
feat(bench): Apple Silicon UMA mechanical sympathy benchmark (#904)
* feat(bench): add Apple Silicon UMA mechanical sympathy benchmark

Engineering-grade reproducible benchmark measuring exact CGA recall,
Cl(4,1) scalar algebra, FrameVerdict TTFV, array_codec replay, and
honest Python/Rust copy/zero-copy boundaries. Runs without Rust;
skips Rust-only tracks with explicit reasons. Includes claim-safety
audit, CLI integration (core bench --suite apple-uma), and outreach brief.

* fix(bench): patch apple-uma report paths, decode timing, CLI --report

- Use repo-relative report_path in JSON metadata (no absolute paths)
- Measure decode_array only; precompute encode payload before decode bench
- core bench apple-uma --report writes exactly to PATH; --write-report for defaults
- Add final newlines; regenerate seed report
2026-06-24 12:36:02 -07:00
Shay
8c3898c1e1
feat(workbench): wire Trace practice evidence route (#900)
* feat(workbench): route practice evidence through trace endpoint shim

* test(workbench): lock trace practice API route

* fix(workbench): remove stray practice API test token
2026-06-23 15:57:31 -07:00
Shay
b96c556701
feat(workbench): add sealed practice evidence read model (#899)
* feat(workbench): add practice evidence read model

* feat(workbench): add practice evidence endpoint seam

* feat(workbench): persist practice evidence field when present

* test(workbench): cover practice evidence read model seam
2026-06-23 15:41:13 -07:00
Shay
ec17fb7cdb
feat(workbench): persist construction evidence in trace journal (#896) 2026-06-23 13:58:12 -07:00
Shay
d7a809e82a
feat(workbench): wire construction evidence into Trace route (#895) 2026-06-23 13:28:17 -07:00
Shay
4c23aa4b00
feat(workbench): prepare construction evidence endpoint seam (#893)
* feat(workbench): add construction endpoint handler seam

* test(workbench): cover construction endpoint handler seam

* feat(workbench-ui): add construction evidence endpoint helpers

* test(workbench-ui): cover construction endpoint helpers
2026-06-23 10:11:21 -07:00
Shay
2c8258fe1a
feat(workbench): add UI catch-up evidence scaffolding (#891)
* feat(workbench): add construction evidence read model scaffolding

* feat(workbench-ui): add construction evidence TS types

* feat(workbench): add construction evidence journal projector

* test(workbench): cover construction evidence read model

* feat(workbench-ui): add construction evidence view helpers

* test(workbench-ui): cover construction evidence view helpers

* feat(workbench): add generalization audit evidence scaffolding

* test(workbench): cover generalization audit evidence view

* feat(workbench-ui): add generalization evidence TS types

* feat(workbench-ui): add generalization evidence view helpers

* test(workbench-ui): cover generalization evidence helpers

* feat(workbench): add proposal artifact authority scaffolding

* test(workbench): cover proposal artifact authority rules

* feat(workbench-ui): add proposal artifact TS types

* feat(workbench-ui): add proposal artifact view helpers

* test(workbench-ui): cover proposal artifact view helpers

* feat(workbench): add demo narrative evidence scaffolding

* test(workbench): cover demo narrative scaffolding

* feat(workbench-ui): add demo narrative TS types

* feat(workbench-ui): add demo narrative view helpers

* test(workbench-ui): cover demo narrative view helpers

* fix(evals): resolve discovery_candidates.jsonl via EngineStateStore
2026-06-23 10:09:45 -07:00
Shay
f8fe6e22ca test(evals): strengthen GSM1K repo-root guard 2026-06-23 07:57:34 -07:00
Shay
d34883b61a feat(evals): implement safe metadata and fail-closed evaluator check for GSM1K 2026-06-23 07:52:32 -07:00
Shay
db081fa5b3 feat(evals): add GSM1K local audit adapter 2026-06-23 07:40:53 -07:00
Shay
f823eb437b feat(evals): add generalization audit runner skeleton 2026-06-23 07:23:43 -07:00
Shay
ed8c0b0e43 feat(evals): verify local generalization benchmark cache 2026-06-23 07:03:56 -07:00
Shay
b51575a075
Merge branch 'main' into feat/generalization-manifest-policy-linter 2026-06-23 06:40:35 -07:00
Shay
83ba9a2e9b feat(evals): implement manifest schema and policy linter (#886) 2026-06-23 06:30:12 -07:00
Shay
fe4e2e6e33 feat(kernel): add quantity-entity replay target shell 2026-06-23 06:13:28 -07:00
Shay
cead96596c feat: implement quantity_entity_binding_candidate.v1 operator
- Implement CandidateOperatorPolicy and cue dataclass for quantity entity binding

- Add build_quantity_entity_binding_candidate constructor with strict refusal checks

- Bump CANDIDATE_OPERATOR_SET_VERSION to candidate_operators.v2

- Update exact export and static table shape tests

- Reconcile stale static guards across binding replay adapters

- Provide full explicit determinism and failure mode test coverage
2026-06-23 05:37:08 -07:00
Shay
df72c71182 test(kernel): reconcile bound evidence spine static guards 2026-06-23 00:28:25 -07:00
Shay
b9a6eb9676 fix(kernel): fail-closed bound trace structural validation
Return PracticeTraceRefusal before dereferencing bindings or operator
results when structural type/shape checks fail. Guard seal_bound zip
against binding_result_count_mismatch. Add five refusal-without-exception
tests for malformed bound inputs.
2026-06-23 00:11:14 -07:00
Shay
484e8ff9fe docs+kernel: support bound practice episode sealing
Extends SealedPracticeTrace for externally bound candidate episodes per
ADR-0233. Adds candidate_attempt_binding_ids to trace identity, bound trace
input/seal entry points, and end-to-end bound episode tests without mutating
GeometricSearchRun.candidate_attempts.
2026-06-23 00:04:26 -07:00
Shay
708237525c test(kernel): cover bound replay adapter input 2026-06-22 23:39:41 -07:00
Shay
76bb756519 test(kernel): cover run-attempt binding shell 2026-06-22 23:16:02 -07:00
Shay
d0d7df3857 fix: add generate/run_attempt_binding.py + complete real tests (no placeholders, full coverage) 2026-06-22 23:05:42 -07:00
Shay
fbf9b18868 fix: replace placeholder with full ADR-0232 implementation of run_attempt_binding (generate/ + tests/) 2026-06-22 23:03:04 -07:00
Shay
65505e059d feat(kernel): implement inert run-attempt binding shell per ADR-0232 2026-06-22 22:57:22 -07:00
Shay
1d9e40602c feat(kernel): implement missing-role candidate operator shell
Implements ADR-0231's inert missing_role_candidate.v1 operator shell for
direction_unbound residuals under unary_delta_transition. Adds deterministic
operator-set identity, candidate reconstruction with split digests,
CandidateAttempt-compatible output, typed refusals, and isolation tests.
2026-06-22 19:27:41 -07:00
Shay
a1de11e0e3 feat(kernel): implement inert SealedPracticeTrace shell
Adds immutable practice-trace input, sealed-trace, and trace-refusal
records with deterministic identity-chain validation after the Contract/
Proof Replay Adapter, as authorized by ADR-0230.
2026-06-22 18:20:52 -07:00
Shay
feb36cfdbb feat(kernel): implement diagnostic replay adapter shell
Adds the ADR-0229-authorized Contract/Proof Replay Adapter diagnostic
boundary after GeometricSearchRun: deterministic input/result/refusal
records, candidate_organ/contract_replay_target binding via static
allowlist, strict run/attempt/candidate identity validation, ADR-aligned
replay_disposition on refusals, vacuous-proof closure only with explicit
schema declaration, and injection-based disposition classification
without candidate generation, search execution, repair, answer
production, or runtime mutation.
2026-06-22 15:18:22 -07:00
Shay
93ba988c1e feat(kernel): implement inert GeometricSearchRun trace shell 2026-06-22 14:09:52 -07:00