✨ feat(dvara): the history row names failed, held and skipped checks

Merged
AT
2d ago
+190-13

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: its exit override records failed <stage>, and dvara_keep_going_held / dvara_keep_going_skipped record held|skipped <check> <reason>, through stages.sh's dvara_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: parseRecords reads the three records. A reason is free text, and a tab inside it stays in the reason.
  • src/supervisor.ts: writes failed, held and skipped into every history row.
  • README.md (named in the slice's Guards:): the three fields, and how to read a hard stop (builtin exit, a set -e abort, a hook run without keep-going). That stop writes no failed entry, and its row reads as before: status failure, last stage failed.
  • 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), and supervisor.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.ts is at 100% lines, branches and functions; supervisor.ts is 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.sh records each refusal as failed <stage> and each held or skipped check as held|skipped <check> <reason> through dvara_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; a tab inside a reason stays in it.
  • A hard stop (builtin exit, a set -e abort, a hook run without keep-going) writes no failed entry, and its row reads as before: status failure, last stage failed.
  • README and tests updated to cover the three records, missing-field behavior, and a keep-going run that refuses, holds, and skips.