Skip to content

neural-fabric: build the smoke/full harness + re-enable it in CI#71

Merged
mdheller merged 1 commit into
mainfrom
feat/neural-fabric-harness
Jul 4, 2026
Merged

neural-fabric: build the smoke/full harness + re-enable it in CI#71
mdheller merged 1 commit into
mainfrom
feat/neural-fabric-harness

Conversation

@mdheller

@mdheller mdheller commented Jul 4, 2026

Copy link
Copy Markdown
Member

Context

PR #69 scoped neural-fabric-ci to neural-fabric-static because the smoke/full targets referenced a harness that was never committed (validate-neural-fabric-results.py, check-capacity-bounds.py, tests/neural_fabric/, run_suite.py, and the intervention-event schema). This builds that harness for real, against the actual reference primitives (may_wigner + hopfield), and re-enables the gate.

What's added

  • scripts/check-capacity-bounds.py — May-Wigner capacity gate: s·√(m·C) → classify (ok/warn/error/stop), exit non-zero past --max-class.
  • scripts/validate-neural-fabric-results.pyjsonschema conformance for families / experiments / results / events, plus the core doctrine invariant (weights_updated is always false) and result/event → experiment cross-references.
  • research/activation-time-targeting/code/run_suite.py — deterministic, CPU-only suite:
    • NF-ATT-001 — Hopfield logit-boost steering (monotone target-probability lift, no weight update); emits intervention-event.v1 audit records.
    • NF-ATT-002 — May-Wigner capacity sweep locating the warn/error/stop boundaries.
  • tests/neural_fabric/ — 25 known-answer tests for the primitives + invariants on the committed reference artifacts.
  • schemas/neural-fabric/intervention-event.v1.json — restores the audit-event schema dropped in integ: land 2 clean backlog branches #69 (the doctrine governs every intervention by an audit event). (This resolves the "consider whether intervention-event was intended" question: yes — it's the audit record for each intervention.)
  • Committed reference family / experiments / results / events.

mk / workflow

  • neural-fabric-static re-adds the intervention-event schema check.
  • neural-fabric-ci: neural-fabric-static neural-fabric-smoke (smoke re-enabled).
  • neural-fabric-full regenerates the committed artifacts in place (deterministic) → doubles as a reproducibility check.
  • Workflow installs jsonschema.

Verification

  • make -f mk/neural-fabric.mk neural-fabric-ci8 artifacts valid, capacity PASS, 25 tests passed.
  • Full repo pytest92 passed. ruff clean. No __pycache__ committed.

PR #69 scoped neural-fabric-ci to neural-fabric-static because the smoke/full
targets referenced files that were never committed. This builds that harness
against the actual reference primitives (may_wigner + hopfield):

- scripts/check-capacity-bounds.py — May-Wigner capacity gate (--m/--C/--s ->
  s*sqrt(m*C), classify, exit non-zero past the allowed ceiling).
- scripts/validate-neural-fabric-results.py — jsonschema conformance for
  families/experiments/results/events + the doctrine invariant (weights_updated
  is always false) + result/event -> experiment cross-references.
- research/activation-time-targeting/code/run_suite.py — deterministic CPU-only
  suite: NF-ATT-001 (Hopfield logit-boost steering, no weight update) and
  NF-ATT-002 (May-Wigner capacity sweep). Emits targeting-result.v1 docs and,
  for interventions, intervention-event.v1 audit records.
- tests/neural_fabric/ — known-answer tests for the primitives + invariants on
  the committed reference artifacts (25 tests).
- schemas/neural-fabric/intervention-event.v1.json — restores the intended
  audit-event schema dropped in #69 (interventions are governed by audit events).
- Committed reference family/experiments/results/events under
  research/activation-time-targeting/.

mk: re-add intervention-event to neural-fabric-static and neural-fabric-smoke to
neural-fabric-ci; neural-fabric-full now regenerates the reference artifacts in
place (reproducibility check). Workflow installs jsonschema.

Verified: make -f mk/neural-fabric.mk neural-fabric-ci green (8 artifacts valid,
capacity PASS, 25 tests); full repo pytest 92 passed; ruff clean.
@mdheller mdheller merged commit 9219730 into main Jul 4, 2026
8 checks passed
@mdheller mdheller deleted the feat/neural-fabric-harness branch July 4, 2026 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant