core/core
Shay 3098971fd2 feat(adr-0249): P2 affine relation compiler
Compiles output = scale*input + offset (Tier-1: scale > 0) into a quadratic-well
constraint Hamiltonian, reusing the ratified compile_quadratic_well +
HamiltonianCompileError contracts.

Anti-hollow (spike §4.1): the compiler never evaluates scale*input+offset in
Python — it embeds the input (P1) and applies the relation's structure as
versor operators (dilator for scale, translator for offset), so the substrate's
geometric product performs the arithmetic. The returned well is a bare
projector carrying no answer and no coefficients (metadata = {curvature,
target_digest} only); relaxation + projective readback recover the output.
Verified end-to-end: multiply/add/subtract/divide/negative-input all decode
exactly; ablation confirms the start decodes to the input and only the relaxed
state to the answer.

Fail-closed on non-positive scale (outside positive-dilation Tier-1) and
non-finite coefficients. Golden-bytes canary pins the compiled matrix.
Serve-quarantined (A-04). Single-relation primitive; state-chaining is P4.

21/21 pins green.

[Verification]: uv run python -m pytest tests/test_adr_0249_relation_compiler.py -q
2026-07-18 12:25:38 -07:00
..
abi feat(abi): Implement GeometricDelta ABI, validator, delta store, and documentation 2026-07-11 02:16:57 -07:00
adr feat(third-door): #21 trajectory invariants + ADR-DAG embedding (Python) 2026-07-13 21:51:42 -07:00
capability Lane 4: Registry Consolidation (language_packs to packs) 2026-07-04 15:11:28 -07:00
cognition feat: close 3-lang depth deck — same-turn roots, capability pins, public_demo budget 2026-07-08 19:15:34 -07:00
comprehension_attempt feat(contemplation): wire CMB into multi-organ router and failure registry (CMB-d) 2026-06-08 13:58:48 -07:00
contemplation feat(adr-0244): Phase 5a — §2.7 content-id semantic rigor (4 sites) 2026-07-17 19:48:11 -07:00
demos fix(ci): path-stable env deltas so lane SHA pins stop thrashing 2026-07-14 17:41:04 -07:00
epistemic_disclosure fix(ask): canonicalize question/proposal path collision check 2026-06-10 12:44:46 -07:00
epistemic_questions feat(ask): add default-dark ASK serving gate helper 2026-06-09 09:17:14 -07:00
learning_arena feat: add tier2 reasoning evidence spine 2026-06-04 14:12:18 -07:00
physics feat(adr-0249): P2 affine relation compiler 2026-07-18 12:25:38 -07:00
ports feat(ring2-ring3): multi-port residual protocol + integrity-coordinated handoff 2026-07-17 23:56:01 -07:00
proposal_review feat(proposal-review): pure idle_summary function (IT-a) 2026-06-07 22:25:00 -07:00
protocol feat(protocol): ADR-0140 CORE Trace Protocol v0 (#259) 2026-05-25 06:08:51 -07:00
reasoning feat(reasoning): field-wedge foundation — f64 embedding, lineage firewall, INV-27 2026-06-04 19:22:16 -07:00
reliability_gate feat(adr-0175): wire the PROPOSE step — autonomous loop closes (attempt->tether->ledger->propose) 2026-05-30 13:50:24 -07:00
response_governance feat(frame-verdict): closed-world FrameVerdict substrate — PR-1..4 + hardening (ADR-0222 B4) (#787) 2026-06-16 06:23:03 -07:00
sync feat(sync): export optional S3 adapter 2026-05-29 19:47:24 -07:00
__init__.py chore: fix package name, add core/__init__.py, ADR-0011, session note 2026-05-13 2026-05-13 10:44:42 -07:00
_safe_display.py feat(adr-0051): trust-boundary hardening pass 2026-05-18 07:09:55 -07:00
array_codec.py feat(edge): edge-deployment budget gate — deterministic per-turn persistence cost 2026-06-06 10:27:10 -07:00
cli.py Lane 4: Registry Consolidation (language_packs to packs) 2026-07-04 15:11:28 -07:00
cli_capability.py Lane 4: Registry Consolidation (language_packs to packs) 2026-07-04 15:11:28 -07:00
cli_doctor.py Lane 4: Registry Consolidation (language_packs to packs) 2026-07-04 15:11:28 -07:00
cli_eval.py chore: Refactor CLI and Governance Anchors (#926) 2026-07-03 12:34:56 -07:00
cli_ingest.py chore: Refactor CLI and Governance Anchors (#926) 2026-07-03 12:34:56 -07:00
cli_pack.py Lane 4: Registry Consolidation (language_packs to packs) 2026-07-04 15:11:28 -07:00
cli_rust.py chore: Refactor CLI and Governance Anchors (#926) 2026-07-03 12:34:56 -07:00
cli_teaching.py Lane 4: Registry Consolidation (language_packs to packs) 2026-07-04 15:11:28 -07:00
cli_test.py fix(cli): smoke suite parity with the CI smoke gate (audio sensorium lane) 2026-07-15 13:14:06 -07:00
config.py feat(adr-0246): Opus audit + §3.7 admit surface + serve wiring + §6.3 discrimination 2026-07-17 22:51:46 -07:00
engine_identity.py feat(identity): split engine identity from build provenance (ADR-0220 PR C) (#774) 2026-06-15 11:38:04 -07:00
epistemic_state.py feat(workbench-ui): design system v1 scaffold (ADR-0162 Branch 1) (#295) 2026-05-26 11:33:27 -07:00