neural-fabric: build the smoke/full harness + re-enable it in CI#71
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
PR #69 scoped
neural-fabric-citoneural-fabric-staticbecause thesmoke/fulltargets referenced a harness that was never committed (validate-neural-fabric-results.py,check-capacity-bounds.py,tests/neural_fabric/,run_suite.py, and theintervention-eventschema). 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.py—jsonschemaconformance for families / experiments / results / events, plus the core doctrine invariant (weights_updatedis alwaysfalse) and result/event → experiment cross-references.research/activation-time-targeting/code/run_suite.py— deterministic, CPU-only suite:intervention-event.v1audit records.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.)family/experiments/results/events.mk / workflow
neural-fabric-staticre-adds theintervention-eventschema check.neural-fabric-ci: neural-fabric-static neural-fabric-smoke(smoke re-enabled).neural-fabric-fullregenerates the committed artifacts in place (deterministic) → doubles as a reproducibility check.jsonschema.Verification
make -f mk/neural-fabric.mk neural-fabric-ci→ 8 artifacts valid, capacity PASS, 25 tests passed.pytest→ 92 passed.ruffclean. No__pycache__committed.