Skip to content

Code-X v1.22.8

Latest

Choose a tag to compare

@1984-alt 1984-alt released this 08 Jul 11:56

A hardening patch: the one leg of the eval gate that had never been proven to fail on its OWN reason now is — with a test-only override that production refuses, loudly. 597 self-tests · 488 gate clauses each proven to bite · consistency strict-clean · installer 26/26.

What's new

  • The kaizen leg of cx check evals now proves it bites in isolation (F-PROP-002). cx check evals runs four legs; the 4th audits the live protocol-improvement queue. That leg always pointed at the real live queue file — so its contract clause was "proven" by a shared bad fixture that actually failed a DIFFERENT leg first, meaning the kaizen leg itself had never been shown to turn the gate red on its own. Now a CX_KAIZEN_QUEUE test-only override (honored ONLY under CODE_X_TEST_MODE=1) lets a real bad kaizen queue fixture drive that leg alone: the gate goes red with the kaizen leg's own failure reason while the other three legs stay green.
  • The override fails loud in production, never silently. Setting CX_KAIZEN_QUEUE without test mode is REFUSED: it raises a P1 finding AND the real live queue is still audited — a stale or malicious environment variable can never quietly redirect the audit away from real canon. A new gate clause (EVALS-KAIZEN-QUEUE-ENV-TEST-ONLY) pins that refusal path, mirroring the existing CX_PROFILES posture.
  • The contract harness is no longer cwd-sensitive for env-carried fixture paths. Clause env values now support a {CHECKERS_DIR} token expanded to the absolute checkers directory — env values aren't cwd-resolved like args, so a relative fixture path in env would silently break depending on where the harness was launched from. Both test suites are verified green from BOTH the skill root and the checkers/ directory.
  • EVAL-059 registered; 3 new unit tests cover the override gating (unset / honored under test mode / refused outside it).

Verify it yourself

git clone https://github.com/1984-alt/code-x.git && cd code-x/plugins/code-x/skills/code-x
python3 checkers/tests/run.py             # 597 tests, OK
python3 checkers/tests/run_contracts.py   # all 488 gate clauses bite
python3 checkers/cx --version             # cx — Code-X V1.22.8

Full details in CHANGELOG.md.