Commit graph

1940 commits

Author SHA1 Message Date
Shay
efa84002cd feat(third-door): exact metric-orthogonal surprise projection + reconciled polarity (#20)
Finding #20 (Super-Blueprint §3.2). surprise_residual was Euclidean Gram-Schmidt
on flat 32-coefficient vectors — metric-blind (it ignored the (+,+,+,+,-)
signature and the blade grade structure), so "inside the admissible span" was
judged by the wrong geometry.

Operator math (core/physics/surprise.py):
- Exact metric-orthogonal projection: solve the normal equations G c = r
  (G_ij = cga_inner(b_i,b_j), r_i = cga_inner(b_i,x)) via lstsq, under cga_inner
  (32-vec) / eta (5-vec).
- Fail-closed (typed SurpriseResidualError) on a metric-degenerate span, keyed on
  rank(G) < rank(B) — a null direction with no reciprocal (lone n_o). Refines the
  literal "rank(G) < k": mere linear dependence among non-null columns is admitted
  (lstsq projects onto the span), so a redundant live basis [1, source] and the
  non-degenerate pair {n_o, n_inf} are admitted; only a lone n_o is refused. The
  disclosure names the Gram null-space direction (not just zero-diagonal columns).
- Reconciled productivity polarity: productive_transfer = low Procrustes AND low
  surprise (was `sur_norm >= 0.0`, always true). High surprise routes to discovery
  (split follow-up). Corrects the ledger's transfer/discovery conflation.

Adversarial verification (3 independent lenses) found, and this fixes:
- HIGH soundness hole: sur_norm was the reversion pseudo-norm, which VANISHES on
  a nonzero metric-null residual (the n_o/n_inf light cone) -> false-zero surprise
  -> an out-of-span light-cone probe was wrongly admitted as in-span. Now the
  DEFINITE (Euclidean) norm of the residual: the projection stays metric-exact,
  the magnitude is 0 iff nothing is unexplained.
- HIGH regression: the analogical-transfer harness called surprise_residual
  OUTSIDE its try/except, so a degenerate source crashed the whole run. Now
  guarded: records a refused case and continues.
- grade-support `allowed` -> exact-nonzero (removes a spurious-leak edge under
  coefficient amplification of sub-tolerance grade dust).

DiscoveryCandidate wiring into the contemplation loop is split to its own
follow-up (a distinct cross-cutting surface). Off-serving (nothing in
serving/runtime imports core.physics.*). Tests: 15 behavioral tests
(metric-vs-Euclidean divergence, null-cone regression, null refusal +
combination-degenerate disclosure, 5-vector branch, polarity); 139-test physics
sweep green; ruff clean.
2026-07-12 15:27:20 -07:00
19b2c3a5a9 Merge pull request 'refactor(third-door): retire vacuous §3.3 grade-5 pseudoscalar gate (#19)' (#25) from feat/retire-pseudoscalar-gate into main
Some checks failed
lane-shas / verify pinned lane SHAs (push) Failing after 25s
full-pytest / full pytest (-m "not quarantine" -n 2) (push) Failing after 59s
2026-07-12 22:20:52 +00:00
Shay
b652a627ba refactor(third-door): retire vacuous §3.3 grade-5 pseudoscalar gate (#19)
Some checks failed
smoke / smoke (-m "not quarantine") (pull_request) Failing after 58s
lane-shas / verify pinned lane SHAs (pull_request) Failing after 4m23s
The Super-Blueprint §3.3 "grade-5 pseudoscalar alignment anchor" is
mathematically vacuous in odd-dimensional Cl(4,1) and cannot be built as
specified (3-agent R&D convergence — Opus/Grok/Terra — ratified):

- I₅ is central in odd dim → V·I₅·Ṽ = ±I₅ for every versor; orientation is
  invariant by construction (nothing to block).
- Field-state versors are even → F[31] ≡ 0; the gated ⟨F·F̃⟩₅ = 0 for the
  source and target of every transition. The gate compares 0 == 0.
- The "even-versor parity gate" repair is equally vacuous (even subalgebra is
  closed under the sandwich; odd-grade mass ≡ 0 on the sanctioned path).

Removes the namesake rather than leaving it masking an absence:
- Delete _PSEUDOSCALAR_IDX + all F[31] reads (dead `ps` history element and
  CoherenceResidual.pseudoscalar — both structural zeros).
- Rename telemetry channel pseudoscalar_floor → autonomy_floor (it was always
  self.floor, the earned-autonomy ceiling).
- Bump telemetry schema goldtether_coherence_v1 → v2 (shape changed).

The integrity-anchor role is subsumed by versor closure + GoldTether harmonized
residual (#24) + biography/identity holonomy. Ledger §5 rewritten with the
vacuity proof, subsumption, and the reusable "would this gate ever fire on the
sanctioned construction path?" meta-criterion.

No serving/runtime path touched (core.physics.* is off-serving). Tests: 33 pass
/ 1 xfail (Cartan #2) across goldtether + fidelity + miner + transfer suites;
ruff clean.
2026-07-12 13:07:17 -07:00
2118726dfe Merge pull request 'feat(third-door): GoldTether harmonized residual + α=Φ(R) constraint control (ADR-0238 §2.3, #18)' (#24) from feat/goldtether-alpha-control-gold-set into main
Some checks failed
full-pytest / full pytest (-m "not quarantine" -n 2) (push) Failing after 5s
lane-shas / verify pinned lane SHAs (push) Failing after 22s
2026-07-12 18:19:25 +00:00
Shay
fe278a4b26 feat(third-door): GoldTether harmonized residual + α=Φ(R) constraint control (ADR-0238 §2.3)
Some checks failed
lane-shas / verify pinned lane SHAs (pull_request) Failing after 2s
smoke / smoke (-m "not quarantine") (pull_request) Failing after 45s
Implements the ADR-0238 §2.3 / R&D-Revised §2.3 machinery the skeleton omitted
(fidelity finding #4, issue #18):

- Gold-invariant set 𝓘_gold seeded with the primal {identity, n_o, n_inf}
  (R&D §5 bootstrapping seeds), so the geometric term never degenerates at
  cold start.
- goldtether_residual: scale-harmonized R = w·(drift/ε) + (1−w)·(min‖F−I‖/‖F‖),
  both terms scaled to [0, O(1)] so neither masks the other — the exact defect
  §2.3 exists to fix. The raw coherence_residual stays the fail-closed closure
  gate; this is the alignment signal that drives α.
- alpha_constraint = Φ(R_gt; r_floor, r_critical): the smooth-step constraint
  weight, composed with the earned-autonomy ceiling (α_floor = 1 − autonomy)
  and serve-pinned-to-1. supervised_transition rides the exact geodesic (#23).
- promote/prune gold-set hooks (caller-gated; the ADR-0092 replay-verified
  promotion pipeline + principal-axis decay are deferred, per issue #18).

Reconciliation (design): the earned-autonomy ramp (lifetime trust ceiling) and
α=Φ(R) (per-transition blend) compose at two timescales rather than compete —
earned autonomy floors α, Φ(R) modulates within it, serve is never autonomous.
All existing GoldTether behavior/tests preserved; fail-closed + serve-never-
autonomous intact.
2026-07-12 10:59:48 -07:00
fbfac414dd Merge pull request 'feat(algebra): exact fractional powers of non-simple rotors (invariant split)' (#23) from feat/rotor-power-nonsimple-bivector into main
Some checks failed
lane-shas / verify pinned lane SHAs (push) Failing after 24s
full-pytest / full pytest (-m "not quarantine" -n 2) (push) Failing after 53s
2026-07-12 17:48:12 +00:00
Shay
1646250b69 chore: drop xfail from test_supervised_blend on PR 15
Some checks failed
smoke / smoke (-m "not quarantine") (pull_request) Failing after 4s
lane-shas / verify pinned lane SHAs (pull_request) Failing after 18s
2026-07-12 10:47:55 -07:00
Shay
4fc29eb6ff Merge remote-tracking branch 'forgejo/main' into my_temp_branch 2026-07-12 10:47:20 -07:00
38f443fd38 Merge pull request 'feat(third-door): ADR-0238/0239/0240 skeleton — honest re-land of #14 (rename + fidelity ledger)' (#15) from feat/third-door-adr-0238-0240 into main
Some checks failed
full-pytest / full pytest (-m "not quarantine" -n 2) (push) Failing after 4s
lane-shas / verify pinned lane SHAs (push) Failing after 1s
2026-07-12 17:46:11 +00:00
9daa1185a9 Merge pull request 'docs: remove dangling reference to deprecated docs/dev/git-forgejo.md' (#22) from chore/fix-dangling-git-forgejo-doc-ref into main
Some checks failed
lane-shas / verify pinned lane SHAs (push) Failing after 3s
full-pytest / full pytest (-m "not quarantine" -n 2) (push) Has been cancelled
2026-07-12 17:45:18 +00:00
Shay
57512c22c0 feat(algebra): exact fractional powers of non-simple rotors (invariant split)
Some checks failed
lane-shas / verify pinned lane SHAs (pull_request) Failing after 33s
smoke / smoke (-m "not quarantine") (pull_request) Failing after 54s
rotor_power previously returned the IDENTITY for any non-simple rotor — an
approximation where exactness was available (Pillar II, Semantic Rigor) that
silently collapsed geodesic interpolation (slerp / supervised blend) to a
no-op while closure stayed green. Replace the identity-fallback with the
invariant (bivector) decomposition: a general Cl(4,1) rotor factors into two
commuting simple rotors R = R1 R2, so R^a = R1^a R2^a exactly, each via the
existing simple closed form, with a dedicated closed form for the isoclinic
(coincident-plane) case. Built from the geometric product alone — no scipy,
no GA library (Pillar III, Third Door); exact f64 on the existing product
table (Pillar I, Mechanical Sympathy).

- Simple path is byte-identical (0.0 delta); 66 existing algebra tests pass.
- tests/test_rotor_power_general.py pins R^1=R, (R^.5)^2=R, R^a R^b=R^(a+b),
  R^0=1, closure, isoclinic, and replay determinism across every plane type
  incl e5 boosts (441 pass), to machine precision (<= 6.5e-10).

This is the substrate cause of the Third-Door blend degeneration (fidelity
finding #1, issues #16/#18): with a real rotor_power, supervised_blend and
dual_correction_slerp now interpolate monotonically and land on target. Once
merged, the ADR-0239 blend xfail on #15 flips green.
2026-07-12 09:52:07 -07:00
Shay
3cd056b476 docs: remove dangling reference to deprecated docs/dev/git-forgejo.md
Some checks failed
lane-shas / verify pinned lane SHAs (pull_request) Failing after 3s
smoke / smoke (-m "not quarantine") (pull_request) Failing after 54s
core-bootstrap.md linked docs/dev/git-forgejo.md, which was removed as
deprecated (c0cbd13d) — the git+Forgejo setup lives in AGENTS.md. Drop the
dead link. Surfaced by the main-lineage reconciliation audit.
2026-07-11 23:18:31 -07:00
Shay
65196337d3 docs(third-door): blueprint fidelity ledger — full spec-vs-impl gap analysis
Some checks failed
lane-shas / verify pinned lane SHAs (pull_request) Failing after 23s
smoke / smoke (-m "not quarantine") (pull_request) Failing after 1m22s
Master honest ledger for the ADR-0238/0239/0240 skeleton: per-operator
blueprint spec, actual landed code, precise gap, reproducible evidence, and
what 'done right' requires. Tracks follow-ups #16-#21. Replaces the Mastery
Report framing with a verifiable spec-vs-impl record.
2026-07-11 23:04:02 -07:00
Shay
f176956630 test(third-door): blueprint-fidelity ledger for findings #1-2 (xfail)
Some checks failed
smoke / smoke (-m "not quarantine") (pull_request) Failing after 1s
lane-shas / verify pinned lane SHAs (pull_request) Failing after 10s
Composed-versor tests the ADR-0239 suite never exercises. Two spec-property
tests xfail (strict) citing Super-Blueprint §2.2 / R&D-Revised §2.3; two
characterization tests lock the current degenerate behaviour so a future fix
is forced to update them.

- supervised_blend: no-op for interior alpha on composed (non-simple) versors
- cartan_iwasawa_factorize: raises 'factor R not closed' on composed versors
2026-07-11 22:55:15 -07:00
Shay
896e90a92b fix(third-door): align with perfected package contracts from Downloads artifacts (refs #10 #11 #12 #13)
Some checks failed
smoke / smoke (-m "not quarantine") (pull_request) Failing after 1m1s
lane-shas / verify pinned lane SHAs (pull_request) Failing after 47s
Source artifacts from the multi-model landing package (README + Super-Blueprint
+ ADR-0238/0239/0240 + goldtether/dynamic_manifold/surprise) are now the
contractual surface, implemented on the live algebra/* kernel:

- GoldTetherMonitor.residual/update/may_relax_hitl/force_reset/autonomy
- signature_aware_pca (5×K, null-safe), conformal_procrustes, cartan_iwasawa_extract
- surprise_residual (Minkowski) + dual_procrustes_surprise audit dict

Package stubs (core.algebra.backend placeholders, scipy, identity-only
Procrustes) are replaced with dual-corrected Cl(4,1) operators. ADRs match
package decision language; docs/adr remains canonical with decisions redirects.

34/34 Third-Door tests + 7/7 ADR-0199 arena regression green.
2026-07-11 22:05:02 -07:00
Shay
e6b635c6aa test: Third-Door replay, closure, analogical transfer harness (refs #10 #13)
Some checks failed
lane-shas / verify pinned lane SHAs (pull_request) Failing after 1m13s
smoke / smoke (-m "not quarantine") (pull_request) Failing after 1m43s
40 tests covering ADR-0238/0239/0240: practice vs serve bands, floor decay,
signature PCA null classification, Procrustes residual, surprise dual,
biography holonomy order-sensitivity, temporal NOT_YET, miner SPECULATIVE-
only, fixture transfer wrong=0.
2026-07-11 22:01:13 -07:00
Shay
a8e9977cbc feat(physics): GoldTether, dynamic manifold, surprise dual, biography holonomy (refs #11 #12 #13)
Implement Third-Door operators:
- goldtether: coherence residual, dynamic floor, practice/serve autonomy
- dynamic_manifold: signature-aware PCA, Procrustes, Cartan-Iwasawa
- surprise: residual + dual with Procrustes
- biography / temporal_gate / self_authorship: lifelong + proposal-only

All versor outputs enforce versor_condition < 1e-6. Spin left-composition
geodesic for supervised blend. Arena GoldTether (ADR-0199) untouched.
2026-07-11 22:01:13 -07:00
Shay
bad9b87bff docs(adr): land Third-Door Super-Blueprint + ADR-0238/0239/0240 (refs #10 #11 #12 #13)
Canonical ADRs under docs/adr/; thin redirects under docs/decisions/ for
Issue #10 path compatibility. Documents dual GoldTether ontology, residual
namespaces, HITL curve, and Spin left-composition blend geodesic.

Base: forgejo/main @ dbd44a2a
2026-07-11 22:01:08 -07:00
dbd44a2a03 Merge pull request 'feat: GeometricDelta ABI + MetaRHEvidence integration (surgical, ADR-0026/0026.1)' (#7) from feat/geometricdelta-abi into main
Some checks failed
lane-shas / verify pinned lane SHAs (push) Failing after 1m28s
full-pytest / full pytest (-m "not quarantine" -n 2) (push) Failing after 3h7m27s
2026-07-11 09:29:10 +00:00
Shay
629bc16382 fix(vault): isolate DeltaStore frontier from caller aliasing (ADR-0026.1)
Some checks failed
lane-shas / verify pinned lane SHAs (pull_request) Failing after 1m26s
smoke / smoke (-m "not quarantine") (pull_request) Successful in 49m39s
DeltaStore.frontier returned the live internal set. A delta built with
parents=store.frontier aliased it, so insert's frontier maintenance
(add + difference_update) emptied the frontier on every insert and
rewrote every stored delta's parents to {} — the CRDT causal chain
degenerated into all-roots. Sopher's bridge now copies on its side
(sopher ADR-0026.1 §2.1); this is the recommended CORE-side defense in
depth: frontier hands out snapshots, and insert copies delta.parents
into the event envelope.

Regression-tested with the exact aliasing pattern (3-delta chain keeps
one head and stable per-delta parents).
2026-07-11 02:16:57 -07:00
Shay
84eb4f8ecf fix: add meta_rh_evidence to evidence bundle and replay fields 2026-07-11 02:16:57 -07:00
Shay
c3a318573e feat: integrate MetaRHEvidence into workbench schemas and journal 2026-07-11 02:16:57 -07:00
Shay
c69096b2c0 feat(abi): Implement GeometricDelta ABI, validator, delta store, and documentation 2026-07-11 02:16:57 -07:00
90347e3361 Merge pull request 'feat: retire fraction_decrease prose regex — frame-scale CGA dilation' (#5) from feat/retire-fraction-decrease-legacy-regex into main
Some checks failed
full-pytest / full pytest (-m "not quarantine" -n 2) (push) Has been cancelled
lane-shas / verify pinned lane SHAs (push) Has been cancelled
Retire legacy "decrease to N/M of" prose regex from problem_frame_contracts.
Geometric dilation now binds from ProblemFrame scale role (KernelFacts
GroundedScalar Fraction) — post-CGA/ProblemFrame pivot realization.
2026-07-09 03:12:54 +00:00
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
6b4bfbe675 Merge pull request 'feat: close 3-lang depth deck (same-turn roots, capability pins, public_demo budget)' (#4) from feat/3lang-depth-deck-close into main
Some checks are pending
full-pytest / full pytest (-m "not quarantine" -n 2) (push) Waiting to run
lane-shas / verify pinned lane SHAs (push) Waiting to run
Merges 3-lang depth deck close + Gemini CGA/fraction_decrease compatibility:

- same-turn he/grc resolve_token_depths for recognition
- capability suite (he/grc exemplars)
- public_demo 60s budget + soft runtime case; lane-shas re-pin
- pack-first geometric dilation scale
- optional contract fallback + multi-fraction hazard on fraction_decrease
- parse_and_solve 9-decimal answer presentation boundary
- ADR-0184 S4b corpus re-pin 937→1087
2026-07-09 03:01:47 +00: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
eb846e1ec1 Merge pull request 'fix: address post-merge review MEDIUM items for 3-lang depth (anti-unifier fallback, depth filter)' (#3) from feat/3lang-depth-proposition-graph-unification into main
Some checks failed
lane-shas / verify pinned lane SHAs (push) Failing after 13m20s
full-pytest / full pytest (-m "not quarantine" -n 2) (push) Failing after 21m20s
2026-07-08 15:33:37 +00:00
Shay
7b0c0ae8ce fix(review): address MEDIUM items from final code-reviewer
Some checks failed
lane-shas / verify pinned lane SHAs (pull_request) Failing after 2m34s
smoke / smoke (-m "not quarantine") (pull_request) Failing after 15m21s
- anti_unifier: remove arbitrary root fallback when no agent_node_id (only apply root-form when nid known; primary pipeline path unaffected)
- depth_canonical: filter build_node_depths to he/grc (or nodes with root) so English nodes no longer pollute node_depths with language-only entries

Tests re-run green. Matches review recommendations for the 3-lang depth feature.
2026-07-08 08:31:29 -07:00
3263f5cc93 Merge pull request 'feat: 3-lang (he/grc) depth PropositionGraph unification (roots, node_depths, graph_anti_unify on result)' (#2) from feat/3lang-depth-proposition-graph-unification into main
Some checks are pending
full-pytest / full pytest (-m "not quarantine" -n 2) (push) Waiting to run
lane-shas / verify pinned lane SHAs (push) Waiting to run
2026-07-08 15:28:27 +00: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
0e6dada09b chore(cleanup): complete post-pickup hygiene, consolidation, and review fixes for 3lang depth unification
- Remove retired HANDOFF-antigravity-2026-07-01.md stray.
- Harden enrich_assessments_with_depth (remove fragile __dict__ fallback; best-effort only).
- Explicit _last_node_depths in ChatRuntime; clean direct propagation from pipeline (remove hasattr/setattr dance + bare excepts).
- Add clarifying propagation contract comments.
- Update plan.md with cleanup section.
- All targeted tests + SHA/claims checks green post-edit.
- Tree clean, ready to roll.

Addresses remaining MEDIUM items from code-reviewer run.
2026-07-08 07:26:03 -07:00
Shay
05348e5a79 refactor: consolidate duplicate depth extraction — graph_planner.get_node_depths now delegates to build_node_depths (single source)
Addresses MEDIUM from code-review: eliminates duplication risk between GraphNode method and pure canonical func.
Tests (graph_anti / node_depths) remain green.
2026-07-08 07:21:17 -07:00
Shay
3d08e10357 chore: archive pickup seeds (NEW_SESSION_PROMPT, COMPACT_STRATEGY, capture script) post progress per strategy 2026-07-08 07:16:20 -07:00
Shay
c5dad6ac52 docs: update plan with 2026-07-08 pickup status + re-pin; archive Jul6 compact (slice progressed per strategy)
- Confirmed integration atop CGA substrate.
- Verifs, re-pin, claims done.
- Depth unification slice complete for current scope.
2026-07-08 07:16:05 -07:00
Shay
73bca055a8 chore: refresh canonical demo lane reports after 3lang depth re-pin 2026-07-08 07:15:46 -07:00
Shay
c57defdba5 chore: re-pin demo_* SHAs and regenerate CLAIMS.md for intentional 3lang depth spine changes
Demos drifted due to PropGraph node_depths, graph_anti, runtime contemplate depth wiring, realizer-adj.
Other 7/9 lanes stable (incl post-CGA substrate).
Per plan/compact: re-pin when slice ready.

Spine tests + construction/oov 545+ green.
Depths visible in 3-lang ctx from "define אמת".
2026-07-08 07:15:37 -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
c0cbd13de4 docs: remove deprecated git-forgejo wrapper docs 2026-07-06 09:01:43 -07:00
Shay
a00130527e docs: update bootstrap skill and add git-forgejo config doc per new rules 2026-07-06 09:01:43 -07:00
Shay
d4eca6c401 docs: add fallback to tea CLI if Forgejo MCP is unavailable
Some checks failed
lane-shas / verify pinned lane SHAs (push) Failing after 31s
full-pytest / full pytest (-m "not quarantine" -n 2) (push) Failing after 15m53s
2026-07-06 08:55:23 -07:00
Shay
9d4da184ab docs: explicit deprecation of github in favor of core-gitquarters for CI/CD
Some checks failed
full-pytest / full pytest (-m "not quarantine" -n 2) (push) Waiting to run
lane-shas / verify pinned lane SHAs (push) Failing after 30s
2026-07-06 08:51:03 -07:00
Shay
57156857bd
chore(kernel): tighten construction_affordances catalog invariants (#930)
Some checks failed
full-pytest / full pytest (-m "not quarantine" -n 2) (push) Waiting to run
lane-shas / verify pinned lane SHAs (push) Failing after 5m48s
workbench-ui / build + vitest (push) Failing after 13s
workbench-ui / playwright smoke (push) Failing after 7s
* chore(kernel): tighten construction_affordances catalog invariants

- Delete stale make_proposal (deferred from PR #919; no live callers remain)
- Derive _PROPOSAL_FIRST_FAMILIES from _CATALOG keys to eliminate hidden
  sync obligation (was a manual restatement of all four catalog entries)
- Introduce _SERVING_AUTHORIZED_FAMILIES frozenset so the serving-allowed
  exemption in ConstructionFamily and ConstructionProposal __post_init__
  consults one central authority instead of two string-literal comparisons
- Pre-compute _SORTED_FAMILIES at module load so all_diagnostic_families()
  returns a constant rather than re-sorting on every call
- Remove _VALID_STATUS ClassVar from ConstructionProposal; the field is
  already typed Literal["proposed"] and the indirection adds no safety

No behavior change to serving, assessment, or proposal creation paths.
ADR-0236: small load-bearing PR, single-file, invariants as code.

* refactor(contemplation): unify organ pipelines in pass_manager

- Introduce OrganPipeline descriptor (organ, reader, solver, reason_adapter)
  so every routed solve path shares one _solve_and_verify implementation.
  Adding a new organ is now a single OrganPipeline(...) declaration.

- Extract _maybe_ask helper that collapses the triply-duplicated
  family_by_name / assess_from_family / exercise_ask inline block.

- Add _result() helper that appends the terminal Finding and constructs
  ContemplationResult in one call, enforcing terminal-is-last-finding
  by construction across every return site.

- Replace assert not isinstance(problem, Refusal) with
  InternalContemplationError so the routing invariant is enforceable
  under python -O and surfaces a named, debuggable exception.

No behavior change: all Terminal states, Finding sequences, family
resolution, CMB-over-R3 precedence, boundary-first ordering, and
ask/proposal emission logic are preserved exactly.
2026-07-06 08:38:23 -07:00
Shay
7b8f14a032 docs(agents): add Reasoning and Problem-Solving Discipline protocol
Extracts the reasoning protocol demonstrated in the contemplation
refactor session into a canonical, reusable guide in AGENTS.md.

- New section: Reasoning and Problem-Solving Discipline (7 steps)
- Covers: read-first, shape-finding, leverage ranking, precise
  enumeration, claims-grounded proof, cognitive model connection,
  and commit discipline
- Documents the failure modes each step prevents
- CLAUDE.md + GEMINI.md: add pointer to the new protocol section
2026-07-06 07:59:00 -07:00
Shay
717c6a334a
CGA Substrate Migration & Pack Registry Consolidation (#929)
* fix: final cleanups for CGA substrate migration PR

- Update UI test fixtures to packs/data paths
- Clean CLAUDE.md/GEMINI.md to minimal per AGENTS.md
- Refactor fraction geometric construction into dedicated helper in problem_frame_contracts.py
- No TODOs left in code; notes in PR description

This completes the mechanical readiness for the CGA substrate + registry consolidation work.

* docs: include PR description for review

* chore: enforce forgejo tooling in AGENTS.md

* docs: update bootstrap skill and add git-forgejo config doc per new rules

* docs: remove deprecated git-forgejo wrapper docs

* chore: ignore local .mcp.json configuration file

* fix(ui): remove unsupported assessment.bindings usage to fix TS2339/TS7006 in constructionEvidencePanelModel
2026-07-05 15:36:11 -07:00
Shay
71d938cc0b fix(architecture): Enforce invariants and mitigate cga float noise
Some checks failed
lane-shas / verify pinned lane SHAs (push) Waiting to run
full-pytest / full pytest (-m "not quarantine" -n 2) (push) Failing after 8m9s
2026-07-04 17:14:29 -07:00