fix core report inspection and vendored roots

This commit is contained in:
thanhnv
2026-07-29 12:29:18 +07:00
parent 1d6384d23c
commit 67d482ae7f
7 changed files with 64 additions and 2 deletions
@@ -351,6 +351,12 @@ echo "$VENDORED_OUT" | grep -q "Runtime.*Vendored" \
( cd "$VENDORED" && "$VENDORED_ROOT/bin/casan" version >/dev/null ) \
&& pass "project-vendored Core includes a working local CLI" \
|| fail "project-vendored CLI cannot resolve its Core runtime"
printf 'vendored consumer smoke\n' > "$VENDORED/input.txt"
( cd "$VENDORED" && "$VENDORED_ROOT/bin/casan" run input.txt output.txt agent_step -- printf 'ok\n' >/dev/null ) \
&& [ -s "$VENDORED/.specify/logs/cost/metrics.jsonl" ] \
&& [ ! -d "$VENDORED_ROOT/.specify" ] \
&& pass "vendored CLI exports the consumer project root to harness commands" \
|| fail "vendored CLI wrote governed state inside the runtime bundle"
( cd "$VENDORED" && "$DKC" verify-harness >/dev/null ) \
&& pass "global launcher resolves and verifies the project-vendored Core" \
|| fail "vendored Core is not honored by the global launcher"