✨ feat(dvara): the history row names failed, held and skipped checks
dvara's history row now names each refusal keep-going mode carried on past (failed), and each check it held or skipped (held, skipped, each { check, reason }). Every row has all three, empty when there were none. The row's schema stays 1, and every existing field reads as before.
Why
https://github.com/athya-hq/athya_mono/issues/4007's 1C (hold the slow pre-push checks after a cheap failure) is to be read around 10 December. A read of 41 athya_mono worktrees' history.jsonl (2026-11-12..26) found 148 refused pushes over two minutes, and could not tell which check refused any of them: under keep-going mode every stage row reads completed. The reading needs each row to say which check failed and which were held.
What changes
shell/keep-going.sh: itsexitoverride recordsfailed <stage>, anddvara_keep_going_held/dvara_keep_going_skippedrecordheld|skipped <check> <reason>, through stages.sh'sdvara_record. Sourced without stages.sh, it records nothing and behaves as today. A newline in a field becomes a space, so one record stays one line.src/records.ts:parseRecordsreads the three records. A reason is free text, and a tab inside it stays in the reason.src/supervisor.ts: writesfailed,heldandskippedinto every history row.README.md(named in the slice's Guards:): the three fields, and how to read a hard stop (builtin exit, aset -eabort, a hook run without keep-going). That stop writes nofailedentry, and its row reads as before: statusfailure, last stagefailed.- Tests:
records.test.ts(the three records, a tab in a reason, a missing field),shell.test.ts(the record file with and without stages.sh), andsupervisor.test.ts(a row from a keep-going hook that refuses, holds and skips).
Checked
-
Pre-push in this worktree, veda's own hooks, mutation gate included:
agnipariksha: dvara: stryker run --mutate packages/dvara/src/records.ts,packages/dvara/src/supervisor.ts dvara: 476 killed of 476 in 2 file(s) (476 Killed; 0 timeout(s) retried) - pass agnipariksha total: 476 killed of 476 in 1 lane(s), 0 blocking, 0 refused - exit 0 -
pnpm --dir packages/dvara test: 751 of 751 pass, coverage thresholds included.records.tsis at 100% lines, branches and functions;supervisor.tsis at 100% lines and functions, 98.73% branches.
Cubic: its monthly allowance is used up until 2026-12-09, as on #636 and #645. If its check reports neutral, this pull request merges unreviewed, as those did; every other check, Mutation included, still has to pass.
Slice: #638
🤖 Generated with Claude Code
Summary by cubic
Makes dvara's history rows name the check that refused a keep-going push and the checks it held or skipped, so a reader can tell which refusal caused the outcome. The row's schema stays 1 and every existing field reads as before.
Details
keep-going.shrecords each refusal asfailed <stage>and each held or skipped check asheld|skipped <check> <reason>throughdvara_record; sourced withoutstages.shit records nothing and behaves as today.- A newline in a field becomes a space so one record stays one line; a tab inside a reason stays in it.
- A hard stop (
builtin exit, aset -eabort, a hook run without keep-going) writes nofailedentry, and its row reads as before: statusfailure, last stagefailed. - README and tests updated to cover the three records, missing-field behavior, and a keep-going run that refuses, holds, and skips.