Commit graph

1916 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
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
Shay
2e59434969 feat(evals): Author 200-case GSM8K math evaluation corpus and verification script 2026-07-04 16:03:51 -07:00
Shay
be467a934f Fix admissibility exemplars data and test script for geometric engine updates 2026-07-04 15:25:45 -07:00
Shay
59d190af36 Merge branch 'subagent-Lane-5-Subagent-self-23e778ec' into migrate-core-cga-substrate 2026-07-04 15:12:52 -07:00
Shay
8d1eb8af5d Lane 5: UI Trace Updates for Geometric Invariants 2026-07-04 15:12:48 -07:00
Shay
18d6ad6282 Merge branch 'subagent-Lane-4-Subagent-self-39aed9c5' into migrate-core-cga-substrate 2026-07-04 15:11:54 -07:00
Shay
8383b852d0 Lane 3: Geometric evaluation for fraction_decrease 2026-07-04 15:11:50 -07:00
Shay
f6c1f01a13 Lane 4: Registry Consolidation (language_packs to packs) 2026-07-04 15:11:28 -07:00
Shay
2a17d5b6f3 fix(pipeline): correctly integrate geometric proposals and restore legacy contract fields 2026-07-04 13:35:27 -07:00
Shay
ac6324d8e4 refactor(kernel): implement Lane 1 VersorBinding and Geometric ContractAssessment 2026-07-03 21:05:25 -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
a5f67f95a4
feat(demos): Implement ADR-0218 PR D proof-carrying promotion demo (#927) 2026-07-03 13:01:49 -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
38d88fb498 benchmarks: add apple_uma_persona_motor.py — ADR-0027/ADR-0028 POC
Proves topological cost neutrality across identity packs: the Cl(4,1)
versor sandwich product (F <- M * F * ~M) compiled into a single MLX
Metal kernel incurs equal VRAM and latency regardless of whether the
PersonaMotor encodes precision_first vs generosity_first character.

The periodic mx.eval() boundary at every 50th step mirrors the async
token-yielding backpressure of ChatRuntime and confirms that the lazy
MLX computation graph is flushed safely, keeping Active VRAM Delta ~0.

Correctness notes:
- PersonaMotor.apply() is a NumPy function (versor_apply from
  algebra.versor).  The MLX compiled_field_step wraps the sandwich
  arithmetic in pure MLX, structurally mirroring what versor_apply does
  so that the Metal kernel fusion path is exercised without re-coupling
  this benchmark to the NumPy implementation.
- IdentityManifold has no load_pack() classmethod; identity packs are
  constructed directly from ValueAxis instances as the dataclass defines.
- MLX is a soft/optional dependency following the apple_uma_mlx_exact_recall
  convention: imported lazily, skipped gracefully when unavailable.
2026-07-01 12:49:52 -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
54e6bfc0d0
docs: reorganize docs landscape
Implements the 4-phase documentation reorganization master plan.

- Consolidation: Merged brief/, handoff/, planning/, and decisions/ into briefs/, handoffs/, plans/, and adr/ respectively (101 ADRs relocated)
- Root Cleanup: Relocated HANDOFF-gpt55-*.md and key top-level docs (runtime_contracts.md, etc.) to canonical folders. Added superseded alerts.
- Indices & Navigation: Created docs/README.md navigation document, docs/sessions/README.md index, docs/adr/README.md index
- Note: Also includes prior commit adding ADR-0200+ corpus hygiene governance (ADR-0225, dependency map, backfilled cross-references)
2026-06-30 16:59:36 -07:00
Shay
63464144c5 docs: consolidate agent architectural governance into AGENTS.md
This change removes duplicate provider-specific rules across CLAUDE/GPT55/GROK files and replaces them with thin, provider-neutral shims that point back to the canonical AGENTS.md for all architectural invariants, PR discipline, and trust boundaries.
2026-06-30 10:55:48 -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
914e2f1da3
docs: remove unestablished NSF SBIR and DARPA claims from Path B 2026-06-25 14:36:12 -07:00
Shay
4e23870aaf
docs: remove implied partnership/co-authorship language from sponsors.md 2026-06-25 14:25:15 -07:00
Shay
dc8483f2c6 meta: add public research program sponsorship routing to README 2026-06-25 13:50:47 -07:00
Shay
8224a09360 docs: initialize CORE capitalization manifesto and operational paths 2026-06-25 13:39:42 -07:00
Shay
44145146c6
Create FUNDING.yml 2026-06-25 11:26:04 -07:00
Shay
220b87b494
docs(adr): add engineering principles for masterful cleanup (#916) 2026-06-24 21:47:16 -07:00