Skip to content

v0.2.2 — the two bugs only a real harness could find

Choose a tag to compare

@dev-adhuniklabs dev-adhuniklabs released this 23 Aug 19:04
· 16 commits to main since this release
4d18559

A patch. An audit written by 0.2.0 or 0.2.1 still resumes here.

Both of these were found by driving the engine from a real harness against a real 25k-file tree, not from fixtures — and neither was reachable from a stub.

balanced was not runnable from a fresh audit directory

recon writes recon.json and file-manifest.txt. sweep is the only verb that writes findings.json. scope, slice, triage and render all read one of those.

lite opens with core:recon and core:sweep, so it prepares itself. balanced, deep, diff, longshot and revisit schedule neither — and nothing said so anywhere a harness could read it. A real run sent all eight BL3 hunters an empty slice, spent the money, and died nine phases later in its report tail on a findings.json nothing had written.

plan --json reports it now:

"prerequisites": [ {"verb": "recon", "artifact": "recon.json"},
                   {"verb": "sweep", "artifact": "findings.json"} ]   // empty for lite

Keyed on the artifacts rather than the mode, so it empties as they appear and a resume re-walks nothing. The part that generalises is the invariant test: across every mode in MODE_PHASES, each one either schedules a deterministic pass or declares it. No mode can silently need an artifact again.

SKILL.md had stated this for longshot and revisit only, and only for recon — findings.json was the half that actually broke balanced.

The code graph was never available on a repository nobody had indexed by hand

codegraph index <target> refreshes an existing index and refuses to create the first one, exiting 1 with "Run codegraph init first". graph index called it unconditionally, so it recorded available: false for every unindexed target — a silent fall back to grep on exactly the trees where a graph pays for itself. One hunter without a graph on a 25k-file tree measured $0.199 and 37 turns.

status --json reports initialized, so that picks the verb: init to build, index to refresh. An unreadable status falls back to init, because guessing that way costs a rebuild and guessing the other way costs the graph. --quiet is index's alone; init rejects it.

Verified against the real codegraph 1.5.0 — init builds 428 files / 8,389 nodes / 20,440 edges in 1.3s, and graph index then writes available: true.

Also

Releases #6, which declared kavach as a karya module and was never tagged.

Gates

There are no CI workflows in this repo, so both were run locally on merged main:

core $ python -m unittest discover -s tests     638 tests, OK (skipped=10)
core $ PYTHONPATH=. python -m kavach corpus     corpus gate PASSED (exit 0)

End to end: with a harness running the prerequisites up front, balanced completes all nine phases — 11 dispatches, 20 drafts, and a 179 KB signed report carrying a production-readiness verdict.

Full changelog: v0.2.0…v0.2.2