Releases: LalaSkye/stop-machine
Releases · LalaSkye/stop-machine
Meta-hardening: docs + tests only (zero runtime change)
Scope
Meta-hardening pass: legibility, security policy, and invariant test coverage.
Constraint: ZERO runtime semantic change.
Added
SECURITY.md— security disclosure policydocs/runtime-trace.md— runtime trace walkthroughdocs/architecture-diagram.md— ASCII architecture diagramtests/__init__.py+tests/test_invariant_enforcement.py— 16 structural invariant tests- CI step:
Run invariant tests(python -m pytest tests/ -v) CHANGELOG.mdmeta-hardening entry
Invariants enforced
- EXIT_ENUM: exactly {ALLOW, HOLD, DENY, SILENCE}
- StopMachine: RED is terminal, no escape
- Gate boundary: valid envelope != DENY, invalid envelope == DENY
- No runtime imports from docs/analysis/artifacts/examples
- Primitive folders exist and are non-empty
- LICENSE and README.md present
Runtime files unchanged
stop_machine.py— untouchedgate.py— untouchedrules.py— untouchedenvelope_parser.py— untouchedprimitives/*— untouched
PR #7 | Squash-merged | All CI green
Geometry Layer v0 — Log-only instrumentation (spec FROZEN)
What's Changed
- v0.4: Fix collision + ensure root tests run in CI by @LalaSkye in #1
- v0.5: Legibility pack – stub v0 folders, add drift alarms, remove v0 demos by @LalaSkye in #2
- PR#1: Geometry Layer v0 — Docs only (no code changes) by @LalaSkye in #3
- PR#2: Geometry Layer v0 — Instrumentation (gate.py emission hook) by @LalaSkye in #4
- Geometry Layer v0: CI non-gating analysis job + artefact upload + drift alarm by @LalaSkye in #5
- PR#4: Geometry Layer v0 — Freeze spec + README badge by @LalaSkye in #6
New Contributors
Full Changelog: v0.1.0...geometry-layer-v0
v0.1.0 — Initial release
Changelog
Added
Stateenum (GREEN, AMBER, RED) with@uniqueconstraintStopMachineclass with deterministic three-state lifecycleadvance()— move to next state in sequencetransition_to(target)— explicit validated transitionreset()— return to GREEN from any stateis_terminalproperty — True when REDTerminalStateError— raised on transition from REDInvalidTransitionError— raised on illegal transition target- Comprehensive test suite (187 lines, covers every transition and failure mode)
- Operational README with quickstart, constraints, and test instructions
- MIT license
Constraints enforced
- Deterministic behaviour only
- No global state
- <200 LOC implementation (98 lines)
- All transitions explicit via lookup table
- RED is terminal — no implicit transitions