Commit graph

1896 commits

Author SHA1 Message Date
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
Shay
3f15bc3b6b
test(kernel): pin proposal-first assessment boundary (#915) 2026-06-24 21:38:32 -07:00
Shay
8ccd8f3f38
docs(workbench): align proposal status vocabulary (#914) 2026-06-24 21:17:29 -07:00
Shay
f91a611710 docs: rename CORE-Sopher to CORE-PersonaMotor in Whitepaper §XIV 2026-06-24 20:30:39 -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
29ca5524d0
feat(workbench-ui): add Apple UMA report card route (#912)
* feat(workbench-ui): add Apple UMA report card route

* feat(workbench-ui): register Apple UMA route

* feat(workbench-ui): expose Apple UMA route path

* feat(workbench-ui): wire Apple UMA report card into route registry

* test(workbench-ui): fix UI and keyboard tests for Apple UMA route integration
2026-06-24 15:33:42 -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
e77b0299a6
Patch PR #907 to make scalar Rust inputs fully zero-copy without stack array copies (#908)
(cherry picked from commit 59b2a8f526)
2026-06-24 13:36:36 -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
4183a675a5
docs(adr): Apple Silicon UMA acceleration lane roadmap (ADR-0235) (#905)
Define staged PR stack from #904 benchmark foundation through Rust
baseline, scalar zero-copy cleanup, optional MLX/Metal experiments,
Workbench evidence surfacing, and multimodal/AMR structured-evidence
design — with parity gates, non-claims, and merge ordering.

Documentation only; no runtime backend changes.
2026-06-24 12:47:14 -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
1f0bae336c
chore(dev): restore tracked agent session launchers (#903) 2026-06-24 12:19:53 -07:00
Shay
27341dc4ae
feat(workbench-ui): wire Trace practice evidence tab (#902) 2026-06-24 12:10:21 -07:00
Shay
d3df22e24a
feat(workbench-ui): add Trace practice evidence panel scaffold (#901) 2026-06-23 23:45:48 -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
ff1ef10bd7
feat(workbench-ui): expand Trace construction evidence inspection
Expand the Trace Construction panel from a summary scaffold into a read-only evidence inspection surface.

Adds detail sections for construction proposals, mentions, mention bindings, bound relations, contract assessments, and source-span exactness rows. Preserves the proposal/contract authority boundary: proposals remain diagnostic and contract assessments determine runnable/blocker disposition.

Validation: workbench-ui, smoke, and lane-shas GitHub Actions passed on PR head d20d143b5744d15d73d07a515b466143af6a2d52.
2026-06-23 15:03:38 -07:00
Shay
a19acac320
test(workbench-ui): lock trace construction tab wiring (#897) 2026-06-23 14:25:09 -07:00