mirror of
https://github.com/Heretek-AI/opencode-harness.git
synced 2026-11-07 10:56:02 -10:00
- Add src/interceptors/tool-interceptors.ts (631) and src/interceptors/session-interceptors.ts (166) verbatim: in-place EditTool repair, near-miss hashline anchors, read fuzzy-resolve, shell env hardening, non-zero-exit detection, Tool.Result normalization, meta.txt calibration, compaction decontamination, multi-hop root session affinity. - Add src/verify/architecture-advisor.ts (375) verbatim: Tarjan SCC cycles, exported-contract impact, engineering smells, audit report. - Merge src/host/contract-adapter.ts: full interceptor wiring (tool/agent/mcp/command transforms, shell + permission + tool + session hooks, /doctor + /audit) with Wave-4 fixes re-applied (fail-closed non-string context check, .js imports, 1.0.4). - Merge src/index.ts: keep Wave-4 wiring, add architecture_audit tool, HARNESS_RELEASE_VERSION, broader root inference, toTrippedDirective dual-shape mapping, computeLineHash disambiguation. - Canonical EpisodicLesson in context-budget; episodic-memory imports it (local redef removed). - Adopt test/plugin-interceptors.test.ts (mkdirSync strict-TS fix). - scripts/accept/wave-5.sh (11 gates), Makefile chain, docs/reports/wave-5.md. - 183 pass / 0 fail; make accept waves 1-5 green; build clean.