Skip to content

v0.7.2 — Self-Correcting Loop

Pre-release
Pre-release

Choose a tag to compare

@halvrenofviryel halvrenofviryel released this 27 May 21:08
· 64 commits to main since this release

Substrate evolution release + accompanying case-study paper. Five high-leverage practices from Anthropic's best-practices doc and the 2026-05-27 zodchiii self-correcting Claude Code writeup. Calibrated against four production bugs that shipped on 2026-05-27.

phionyx-core PyPI package remains at v0.7.0.

What ships

P1 — Adversarial diff-reviewer subagent

.claude/agents/diff-reviewer.md — fresh-context Read/Grep/Glob/Bash agent with seven correctness-finding categories. Invoke with "Use the diff-reviewer subagent to check this commit."

P2 — PostToolUse language-tool feedback

tools/claude_code_mcp/post_edit_language_check.py — dispatches per file extension after every Edit/Write: py_compile + ruff / tsc --noEmit / json.tool / yaml.safe_load / check_memory_schema. Bounded ≤ 8 s per file.

P3 — CLAUDE.md → Skills migration

Three sub-domains moved to .claude/skills/ for on-demand loading: mcp-self-governance, binding-enforcement, state-grounding. Brings CLAUDE.md under Anthropic's <200-line sweet spot.

P4 — Stop hook targeted test runner

tools/claude_code_mcp/run_targeted_tests.py — walks git diff on Stop, maps changed paths to pytest target directories via an 11-route table. Honors stop_hook_active to avoid Stop-loop.

P5 — Common gotchas digest

12-bullet quick-reference in CLAUDE.md cross-linked to the full feedback_*.md memory files.

Hook count

Class v0.7.1 v0.7.2
Blocking 5 5
Observability 8 10
Subagent 1
Total 13 16

The count is consistent across docs/arxiv/paper_03_runtime_evidence_case_study/paper.md §4.4, the three skill files, the diff-reviewer prompt calibration footer, and the Founder Console /mcp-governance page.

Paper 03 — Runtime Evidence for Agentic Development

docs/arxiv/paper_03_runtime_evidence_case_study/ — ~9,700-word case-study paper with §4.4 hook inventory + §4.5 "Subagent layer — fresh-context adversarial review" new section, §6.4.1 measurement-bug retraction (preserves the wrong numbers + records the correction), §10 future-work update. Figures: fig2_hook_lifecycle.{md,png,pdf} re-rendered to show 15 hooks + subagent layer. Companion review at docs/strategic/agent_memory_review_2026_05_27.md.

Calibration against four 2026-05-27 production bugs

Bug Caught by
AuditEntry TypeScript interface drift → 500 Hook 14 (PostToolUse tsc) — same turn
verify_tracker.py --json exit-1 semantics diff-reviewer subagent, Category B (exit-code anti-pattern)
/release page hardcoded v0.4.0 diff-reviewer subagent, Category D (version drift)
runtime_evidence_self_audit.py session_start bucketing diff-reviewer subagent, Category C (bucketing bug)

Reproduce

git clone --branch v0.7.2 https://github.com/halvrenofviryel/phionyx-research.git
cd phionyx-research
pip install -e ".[dev]"

# All v0.7.x substrate tests (27 total)
python3 -m pytest tools/claude_code_mcp/tests/ -q

# Re-render Paper 03 fig2 (matplotlib path, headless-safe)
python3 docs/arxiv/paper_03_runtime_evidence_case_study/figures/render_figures.py --figure 2

# Read the paper
$EDITOR docs/arxiv/paper_03_runtime_evidence_case_study/paper.md

Discipline note

All five features are infrastructure / audit-surface expansions. Mind-loop stage: none. agi-architecture.md Invariant 3 applies.