@attalabs/vinaya 0.44.0 → 0.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/README.md +6 -4
  2. package/dist/checks/bin/check-body-bare-digits.js +262 -201
  3. package/dist/checks/bin/check-branch-topology.js +70 -23
  4. package/dist/checks/bin/check-brief-shape.js +262 -201
  5. package/dist/checks/bin/check-changeset-coverage.js +94 -16
  6. package/dist/checks/bin/check-ci-shard-coverage.js +3 -0
  7. package/dist/checks/bin/check-closes-n.js +157 -40
  8. package/dist/checks/bin/check-coherence.js +365 -251
  9. package/dist/checks/bin/check-dispatch-readiness.js +3654 -469
  10. package/dist/checks/bin/check-doc-claims.js +262 -201
  11. package/dist/checks/bin/check-doc-coverage-push.js +272 -202
  12. package/dist/checks/bin/check-doc-coverage.js +272 -202
  13. package/dist/checks/bin/check-doctrine-no-procedures.js +262 -201
  14. package/dist/checks/bin/check-doctrine-portability.js +262 -201
  15. package/dist/checks/bin/check-evidence-fresh.js +10138 -2126
  16. package/dist/checks/bin/check-exec-bits.js +3 -0
  17. package/dist/checks/bin/check-first-push-dispatch.js +330 -230
  18. package/dist/checks/bin/check-issue-milestone-attach.js +94 -16
  19. package/dist/checks/bin/check-issue-objectives-numbering.js +262 -201
  20. package/dist/checks/bin/check-issue-parts-coverage.js +94 -16
  21. package/dist/checks/bin/check-issue-surface-globs.js +1062 -242
  22. package/dist/checks/bin/check-issue-title-grammar.js +21 -5
  23. package/dist/checks/bin/check-no-disk-state.js +5 -1
  24. package/dist/checks/bin/check-pr-premise-reassert.js +22 -2
  25. package/dist/checks/bin/check-pr-report-density.js +5 -1
  26. package/dist/checks/bin/check-principal-test-plan-wait.js +282 -207
  27. package/dist/checks/bin/check-quoted-command.js +262 -201
  28. package/dist/checks/bin/check-reader-resolvable-prose.js +262 -201
  29. package/dist/checks/bin/check-registry-gates.js +131 -34
  30. package/dist/checks/bin/check-retired-vocabulary.js +262 -201
  31. package/dist/checks/bin/check-review-gate.js +262 -201
  32. package/dist/checks/bin/check-single-plan-pr.js +5 -1
  33. package/dist/checks/bin/check-surface-scope.js +136 -38
  34. package/dist/checks/bin/check-test-plan.js +282 -207
  35. package/dist/checks/bin/check-token-collection-wired.js +3 -0
  36. package/dist/checks/bin/check-workspace-escape.js +3 -0
  37. package/dist/checks/bin/verify-coherence.js +237 -148
  38. package/dist/checks/bin/verify-dispatch.js +870 -66
  39. package/dist/checks/bin/verify-docs.js +13 -6
  40. package/dist/harness.js +57 -10
  41. package/dist/index.js +16670 -7196
  42. package/dist/lib/pre-push-cache-test-run.js +4488 -2170
  43. package/dist/lib/pre-push-changed-files.js +251 -12
  44. package/dist/lib/pre-push-mode.js +69 -19
  45. package/dist/lib/pre-push-progress-dir.js +10265 -2853
  46. package/dist/lib/pre-push-record-tests.js +67 -19
  47. package/dist/lib/pre-push-select-tests.js +520 -222
  48. package/dist/lib/push-progress-observer.js +9176 -1757
  49. package/dist/process.js +2 -0
  50. package/dist/programs/archive.js +8948 -1547
  51. package/dist/programs/audit.js +9176 -1772
  52. package/dist/programs/check.js +9248 -1845
  53. package/dist/programs/commit-msg.js +8984 -1583
  54. package/dist/programs/dev-review-loop.js +15621 -7626
  55. package/dist/programs/dispatch.js +9977 -2726
  56. package/dist/programs/log-emit.js +9011 -1660
  57. package/dist/programs/log-selftest.js +8908 -1507
  58. package/dist/programs/log-send.js +9081 -1594
  59. package/dist/programs/pr-report.js +9477 -1820
  60. package/dist/programs/pr-snapshot.js +8916 -1515
  61. package/dist/programs/pr-verify-evidence.js +9482 -1825
  62. package/dist/programs/pr.js +11773 -4082
  63. package/dist/programs/review-post.js +11141 -3496
  64. package/dist/programs/review-status.js +8997 -1533
  65. package/dist/programs/run-engine.js +22149 -18798
  66. package/dist/programs/sync.js +9030 -1629
  67. package/dist/programs/task-brief.js +10234 -1827
  68. package/dist/programs/task-sweep.js +9267 -1621
  69. package/dist/programs/task-tools-serve.js +77141 -16659
  70. package/dist/programs/tokens.js +8966 -1565
  71. package/dist/programs/waiver.js +8983 -1582
  72. package/dist/types/harness/kernel/dev-process-socket/loader/load-process.d.ts +1 -1
  73. package/dist/types/harness/processes/vinaya-strict/tools/legacy-markers.d.ts +8 -0
  74. package/dist/types/harness/processes/vinaya-strict/tools/task-contract/brief-validation.d.ts +17 -10
  75. package/dist/types/harness/processes/vinaya-strict/tools/task-contract/objectives.d.ts +5 -6
  76. package/dist/types/harness/processes/vinaya-strict/tools/task-contract/premise-check.d.ts +14 -0
  77. package/dist/vinaya-strict/checks/registry.ts +2 -2
  78. package/dist/vinaya-strict/executing/developer/developer-doctrine-shape.test.ts +8 -0
  79. package/dist/vinaya-strict/executing/developer/developer-turn-result.ts +1 -1
  80. package/dist/vinaya-strict/executing/developer/evals/developer-capability-suite.test.ts +2 -2
  81. package/dist/vinaya-strict/executing/developer/evals/developer-capability-suite.ts +30 -20
  82. package/dist/vinaya-strict/executing/developer/reference.md +5 -3
  83. package/dist/vinaya-strict/integration/config/vinaya-config-section.ts +29 -7
  84. package/dist/vinaya-strict/integration/policies/vinaya-policies.ts +4 -4
  85. package/dist/vinaya-strict/integration/process/process-integration.ts +5 -1
  86. package/dist/vinaya-strict/process.yaml +6 -1
  87. package/dist/vinaya-strict/thinking/plan-reviewer/doctrine.md +68 -0
  88. package/dist/vinaya-strict/thinking/plan-reviewer/grants.yaml +19 -0
  89. package/dist/vinaya-strict/thinking/plan-reviewer/output.schema.json +388 -0
  90. package/dist/vinaya-strict/thinking/planner/doctrine.md +4 -1
  91. package/dist/vinaya-strict/thinking/planner/tools/amend-rationale-deps.test.ts +10 -2
  92. package/dist/vinaya-strict/thinking/planner/tools/amend-rationale-deps.ts +5 -1
  93. package/dist/vinaya-strict/thinking/planner/tools/open-issue.test.ts +198 -34
  94. package/dist/vinaya-strict/thinking/planner/tools/open-issue.ts +120 -193
  95. package/dist/vinaya-strict/thinking/planner/tools/planner-operations.test.ts +629 -15
  96. package/dist/vinaya-strict/thinking/planner/tools/planner-operations.ts +726 -62
  97. package/dist/vinaya-strict/thinking/planner/tools/planner-tools.test.ts +505 -5
  98. package/dist/vinaya-strict/thinking/planner/tools/planner-tools.ts +636 -21
  99. package/package.json +3 -2
  100. package/studio-standalone/apps/vinaya-studio/.next/BUILD_ID +1 -1
  101. package/studio-standalone/apps/vinaya-studio/.next/build-manifest.json +2 -2
  102. package/studio-standalone/apps/vinaya-studio/.next/prerender-manifest.json +3 -3
  103. package/studio-standalone/apps/vinaya-studio/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  104. package/studio-standalone/apps/vinaya-studio/.next/server/app/_global-error.html +1 -1
  105. package/studio-standalone/apps/vinaya-studio/.next/server/app/_global-error.rsc +1 -1
  106. package/studio-standalone/apps/vinaya-studio/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  107. package/studio-standalone/apps/vinaya-studio/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  108. package/studio-standalone/apps/vinaya-studio/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  109. package/studio-standalone/apps/vinaya-studio/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  110. package/studio-standalone/apps/vinaya-studio/.next/server/app/milestones/page_client-reference-manifest.js +1 -1
  111. package/studio-standalone/apps/vinaya-studio/.next/server/app/page_client-reference-manifest.js +1 -1
  112. package/studio-standalone/apps/vinaya-studio/.next/server/app/tasks/page_client-reference-manifest.js +1 -1
  113. package/studio-standalone/apps/vinaya-studio/.next/server/chunks/209.js +2 -2
  114. package/studio-standalone/apps/vinaya-studio/.next/server/chunks/951.js +1 -1
  115. package/studio-standalone/apps/vinaya-studio/.next/server/middleware-build-manifest.js +1 -1
  116. package/studio-standalone/apps/vinaya-studio/.next/server/pages/500.html +1 -1
  117. package/studio-standalone/apps/vinaya-studio/.next/server/preview-props.json +3 -3
  118. package/studio-standalone/apps/vinaya-studio/.next/server/server-reference-manifest.json +1 -1
  119. package/studio-standalone/apps/vinaya-studio/.next/static/chunks/151-c365f0ef8268ad13.js +1 -0
  120. package/studio-standalone/apps/vinaya-studio/.next/static/chunks/19-aa314f13784dcc58.js +4 -0
  121. package/studio-standalone/apps/vinaya-studio/.next/static/chunks/app/{layout-dfa2186095e797bd.js → layout-f038e8deecb2bf5f.js} +1 -1
  122. package/studio-standalone/apps/vinaya-studio/.next/static/chunks/app/milestones/{page-2fffb49104860a15.js → page-12314f4deb06a414.js} +1 -1
  123. package/studio-standalone/apps/vinaya-studio/.next/static/chunks/app/{page-6ae258f663623b2a.js → page-7a06aa3cdd046fa8.js} +1 -1
  124. package/studio-standalone/apps/vinaya-studio/.next/static/chunks/app/tasks/{page-2fffb49104860a15.js → page-12314f4deb06a414.js} +1 -1
  125. package/studio-standalone/apps/vinaya-studio/.next/static/css/8eb5ed5b65b9692e.css +1 -0
  126. package/studio-standalone/apps/vinaya-studio/log-follow.mjs +708 -93
  127. package/studio-standalone/apps/vinaya-studio/log-sync-folder-source.mjs +699 -84
  128. package/studio-standalone/apps/vinaya-studio/studio-server.mjs +4692 -3116
  129. package/vinaya-strict/artifacts/templates/brief-template.md +6 -0
  130. package/vinaya-strict/artifacts/templates/issue-rationale-template.md +7 -3
  131. package/vinaya-strict/artifacts/templates/pr-report-template.md +1 -1
  132. package/vinaya-strict/doctrine/contracts/planner-developer.md +4 -3
  133. package/vinaya-strict/doctrine/enforcement.md +4 -4
  134. package/vinaya-strict/doctrine/roles/principal.md +1 -1
  135. package/vinaya-strict/doctrine/state-machine.md +7 -2
  136. package/vinaya-strict/executing/developer/reference.md +5 -3
  137. package/vinaya-strict/thinking/plan-reviewer/doctrine.md +68 -0
  138. package/vinaya-strict/thinking/planner/doctrine.md +4 -1
  139. package/vinaya-strict/thinking/planner/reference.md +30 -9
  140. package/studio-standalone/apps/vinaya-studio/.next/static/chunks/151-23bea4cac9687151.js +0 -1
  141. package/studio-standalone/apps/vinaya-studio/.next/static/chunks/853-1d5548ff3a55a75f.js +0 -4
  142. package/studio-standalone/apps/vinaya-studio/.next/static/css/fb16828fc3128d4c.css +0 -1
  143. /package/studio-standalone/apps/vinaya-studio/.next/static/{_r9iZDxlkoek85d_3oaxL → bJrgAp9Kl4JsCUYkeAYez}/_buildManifest.js +0 -0
  144. /package/studio-standalone/apps/vinaya-studio/.next/static/{_r9iZDxlkoek85d_3oaxL → bJrgAp9Kl4JsCUYkeAYez}/_ssgManifest.js +0 -0
package/README.md CHANGED
@@ -26,7 +26,7 @@ npx @attalabs/vinaya init # or: pnpm dlx / yarn dlx / bunx
26
26
  | `vinaya new check <yourname>/<id>` | Scaffold a self-contained custom check into `./scripts/vinaya-checks/<id>.ts`, ready to register in `vinaya.config.json` under that namespaced key |
27
27
  | `vinaya-task-brief <tranche> <n>` \| `vinaya-task-brief --issue <n>` | Preparation only: render the same brief `brief_render` renders, then post it once as a frozen Issue comment (first line `<!-- vinaya:brief:v1 -->`, second line `Brief hash: <sha256>` over everything below it) — refusing outright, naming the existing comment's URL, if the Issue already carries one. Before freezing, runs the SAME Issue write gate `task_issue_create`/`task_issue_edit` already enforce over the Issue's live body — a defect that gate would refuse (a bad title, a blast-radius violation, a whole-suite Test plan line, …) is refused here too, naming every finding together, never silently frozen into a brief just because the Issue itself predates the gate or was never written through `task_issue_create`/`task_issue_edit`. `--issue <n>` names a backlog Issue directly — one carrying no `vinaya/tranche:*` label — and renders its brief from that Issue's own `## Objectives`/`## Surface`/`## Parts`/`## Test plan`/`## Stop conditions` sections, no tranche or Milestone involved. `--supersede --reason <text> [--surface-in <glob,...>]` posts a new, higher-versioned frozen brief naming its predecessor and the reason, instead of refusing on the one already there; `--surface-in`, only meaningful with `--supersede`, widens the frozen Issue's `## Surface` `in:` list with the given comma-separated globs (union with what is already there, never a narrowing) — the one self-serve way to broaden a Surface once frozen, since `task_issue_edit` itself locks `## Surface` the moment a brief is frozen. The widened body is graded by the same write gate before it is written, then the brief is re-rendered from it (never the pre-widen text, which would otherwise ship a stale Technical surface map) before the superseding comment posts — one command, one write. Starts no agent under any circumstances — there is no `--agent` flag. Principal-only: refuses before any render, forge read, or post when the authenticated `gh` identity is not on the Principal allowlist. The successor to `task dispatch` for the preparation step; `task run` is the full unattended run. |
28
28
  | `vinaya task run <tranche> <n> --agent <claude \| codex>` \| `vinaya task run --issue <n> --agent …` | One command from a planned Issue to a reviewed pull request, exactly one developer started. `--issue <n>` runs a backlog Issue — no `vinaya/tranche:*` label, no Milestone — through the identical unattended path on branch `task/issue-<n>`, same brief, same loop, same gate. Composes `task brief`'s own preparation (starts no agent) with `dev-review-loop` (whose own round 1 reads the frozen brief off the Issue and is the only place a developer is ever dispatched from a fresh task) — nothing else. A brief already frozen on the Issue is reused, not re-posted; a task whose Issue refuses preparation is refused before any agent starts, with nothing posted; a frozen brief whose developer branch already has an open pull request refuses a second start. Exit `0` with the PR URL on a published, reviewed pull request; exit `1` on the one pause this run can never watch — the pre-first-push escalation, which has no pull request yet — printing the working `vinaya task run` continuation for the task's own branch (`<tranche> <n>` for a tranche task, `--issue <n>` for a backlog one), never a `dev-review-loop --resume` line naming a pull-request number this pause does not have; exit `2` on a usage/argv error (an unrecognized flag, a missing `--agent`); exit `3` on any other failure (a refused preparation, an open-PR refusal) — never sharing `1` with a failure, so an unattended host tells the two apart from the exit code alone. A paused run that already has a pull request is continued through the loop's own existing `dev-review-loop --resume <pr>`, never a flag on this command. **Known gap:** a backlog Issue's run state (`running`/`paused`/`published`) does not yet appear on Vinaya Studio's backlog page — that reader lives in the separate `apps/vinaya-studio` checkout (attalabs monorepo, out of this repository's own Surface) and has not been updated for the `task/issue-<n>` shape; `vinaya task status --issue <n>` is the reader in the meantime. |
29
- | `vinaya task status [<tranche> <n>] [--json]` | Every open task Issue carrying a frozen brief, its pull request, and whether its dev-review-loop is `running` (naming the driver pid, `review-validity-v1` task 7's pid record), `paused` (naming the reason from the pause record), `published` (the newest round's reviewer and security verdict effect markers both read `posted`), or has `no driver` — read from the outbox (`<outboxRoot>/dev-review-loop/<task>/`) and the forge, never from a `ps` scan and never by re-parsing posted verdict comments. Read-only: no write, no change to any loop. `vinaya task status <tranche> <n>` narrows to one task and adds the last round's held or published verdict lines plus the exact `vinaya-dev-review-loop --resume <pr>` command when paused. `--json` for the enveloped machine form (schema: 1). `vinaya task status <tranche> <n> --follow` (and `--issue <n> --follow` for a backlog Issue) tails that task's per-driver log (`~/.vinaya/loops/<owner>-<repo>/<issue>.log`) live, `tail -f` style — every driver (`task run`, `dev-review-loop`) tees its own role-prefixed stream there regardless of where it was launched, so the state of any run is one command away with no path to remember. |
29
+ | `vinaya task status [<tranche> <n>] [--json]` | Every open task Issue carrying a frozen brief, its pull request, and whether its dev-review-loop is `running` (naming the driver pid, `review-validity-v1` task 7's pid record), `paused` (naming the reason from the pause record), `published` (the newest round's reviewer and security verdict effect markers both read `posted`), or has `no driver` — read from the outbox (`<outboxRoot>/dev-review-loop/<task>/`) and the forge, never from a `ps` scan and never by re-parsing posted verdict comments. Read-only: no write, no change to any loop. `vinaya task status <tranche> <n>` narrows to one task and adds the last round's held or published verdict lines plus the exact `vinaya-dev-review-loop --resume <pr>` command when paused. `--json` for the enveloped machine form (schema: 1). `vinaya task status <tranche> <n> --follow` (and `--issue <n> --follow` for a backlog Issue) follows the task’s runs from the repository’s local Log copy, reports gaps, and uses the driver log for step details. `--quiet` hides details. Tasks without a local copy still follow the driver log. |
30
30
  | `vinaya-task-sweep [--include-legacy] [--json]` | Removes the folder of every task whose Issue is closed or whose pull request is merged or closed, printing each folder removed or kept with the reason — an open pull request, a live driver, or a pause all keep a folder, and a forge read failure removes nothing for that folder rather than guessing. Idempotent, and called by the driver itself (`dev-review-loop`/`task run`) at the start of every run, before it dispatches anyone; a sweep failure there is reported and ignored, never a reason the run stops. Always also lists the eight top-level folders an earlier, pre-`tasks-execution` layout (or, for `drivers`, an operator's own hand) left under the Vinaya home (`dispatch-output`, `dispatch-resume`, `dispatch-settings`, `task-start`, `task-resume`, `control-store`, `loops`, `drivers`), plus the even-older `outbox/dev-review-loop/<task>/` tree nested inside the telemetry outbox root itself, each attributed to this repository only through its own path or its own record content naming it — a bare task number alone is never enough, since task numbers repeat across repositories. `--include-legacy` removes only what it can both attribute this way and classify finished; everything else there is reported `unattributable` and kept. Never removes the telemetry outbox or the machine-wide files under the Vinaya home (the configuration and the token trust file). `--json` for the enveloped machine form (schema: 1). |
31
31
  | `vinaya-pr create --body-file <path> --title <title> [--label ...] [--validate-only] [--json]` | Open a pull request after full brief-schema validation of the body against `vinaya.config.json`'s configured sections — never a body containing the retired brief-region start/end markers, refused outright: the brief lives on the task Issue's `vinaya:brief:v1` comment now (`vinaya-task-brief`), never split out of or pasted into the PR body. Every gate — the legacy-marker check, the configured brief-schema sections (including the title grammar), the whole-body bare-digit scan, the Premise-own-additions check, and the PR-body registry's own `validates: 'body'` checks — grades the same bytes in one pass and refuses ONCE with every failing finding together, never stopping at the first; `--validate-only` runs the identical union and reports PASS without opening anything; `--json` for the enveloped machine form. |
32
32
  | `vinaya-pr edit <pr> [--body-file <path>] [--title <title>] [--validate-only] [--json]` | Edit an open pull request's body and/or title through the same union of gates `pr create` applies (minus the legacy-marker and Premise-own-additions checks, which only apply to a fresh open) — refuses once with every failing finding together. With no `--body-file`/`--body`, only the title is graded and changed. `--validate-only` runs the gates and reports PASS without writing; `--json` for the enveloped machine form. |
@@ -39,12 +39,12 @@ npx @attalabs/vinaya init # or: pnpm dlx / yarn dlx / bunx
39
39
  | `vinaya quickstart [--yes] [--dry-run]` | Guided wizard that runs `init` → optional doc-owners bind → optional project registration → commit → `demo break` → `doctor` → `push` in sequence, prompting between steps. `--yes` forwards straight through to `init` and answers every one of quickstart's own prompts with its documented default (skip the two optional steps, run the refusal-then-fix proof, push) — no prompt is opened at all, so the command completes with no human at the keyboard rather than merely with stdin closed. `--dry-run` also forwards to `init` and stops immediately after its preview — nothing is installed, so no later step runs against an uninstalled repo. |
40
40
  | `vinaya studio [--port <n>] [--repo <path>]...` | Build and open this repository's own Studio, with nothing downloaded. It observes the git checkout you are in (a nested folder or a linked worktree resolves to its top-level folder) or, with one or more `--repo <path>`, exactly the local checkouts you name — never a path chosen in the browser and never a machine-wide scan. Each checkout is identified from local git only (its top-level folder and `origin` remote); nothing asks the forge, and a path outside any git checkout is refused with exit `2`. Studio reads each checkout's own `vinaya.config.json` `logs` setting — the default local folder, a configured folder, or a server with its `logs.readHeaders` read credential — and reports an invalid configuration or a missing read credential instead of choosing another source. The launch is protected by a one-time session: the CLI hands the server a fresh secret and the repository list on its standard input (never a URL, argument or environment variable) and opens your browser on a link that carries the secret once; the server exchanges it for an HttpOnly same-site cookie and redirects to a clean address, a reused, expired or malformed link reads nothing, and every page, data request and WebSocket upgrade needs that cookie and the server's exact local address. When the browser cannot be opened the one-time link is printed once. The Log ingest token, forge tokens and `*_API_KEY` variables are not passed to Studio. Inside a checkout of this repository it runs the Studio app from its source for development; from an installed CLI it runs the Studio deployment bundle that `prepack` built from this repository's source (`scripts/bundle-studio.ts`) and shipped in the package, under `node`, renaming the packed `_node_modules` folders back on first run. One local server serves the pages and the application WebSocket in both shapes. When neither is present it refuses, saying the package is missing Studio. Studio binds only to `127.0.0.1`, whatever `HOSTNAME` the caller sets, on port 3008 or 3108 when 3008 is taken; `--port` uses exactly that port or refuses; `SIGINT` and `SIGTERM` stop it within a bound. Once the port answers it opens your browser on Studio's address, and prints the address once when the browser cannot be opened. |
41
41
  | `bun scripts/release/release.ts [--dry-run] [--allow-any-commit]` | Run this repo's own publish sequence in one command (`apps/cli/specs/self-hosting.md`, "How the published version is produced"). Refuses unless HEAD is the default branch, the tree is clean, HEAD equals `origin/<default>` (after `git fetch origin`), HEAD's commit subject starts with `Chore(release): Version packages` (unless `--allow-any-commit`), and `npm whoami` exits `0`. Before any plan step, including under `--dry-run`, every package in `.changeset/config.json` fixed groups must have an unpublished working-tree version. Exact-version registry queries refuse with every already-published package and version; workspace read failures and registry errors other than E404 also refuse with their reason. E404 for a missing package or version counts as unpublished. Then streams `bun install --frozen-lockfile`, `bun run build`, `bun run changeset:publish`, and a real `git push origin --tags`, so the repo's own generated pre-push hook sees the push exactly as any other push would. Afterward prints `npm view <pkg> version` for every tag now on HEAD, noting registry lag on `@attalabs/vinaya` (observed ~20 minutes) when it still shows the previous version. `--dry-run` stops after the preconditions and prints the plan; publishes nothing. |
42
- | `vinaya-dispatch <role> --agent claude \| codex --prompt-file <path> [--task <n> \| --pr <n>] [--round <n>] [--resume <id>] [--model <name>]` | Start a role's headless agent session, attributed: `VINAYA_RUN_ID`/`VINAYA_ROLE`/`VINAYA_TASK`/`VINAYA_ROUND` are set on the CHILD's environment only, never on this process's own — a role started this way is what makes its later `vinaya` calls (the Stop hook, a nested dispatch) attributable instead of `unattributed`. The prompt is read from `--prompt-file` and sent on the child's stdin, never argv. `--model <name>` is passed to the chosen vendor through that vendor's own model flag, and the dispatch log's `model` field never records the vendor name; omitted, no model flag reaches the vendor and its own default decides, exactly as before this flag existed. A model shaped as another vendor's own (e.g. a Claude alias passed to `codex`) is refused by name before any spawn, naming the vendor and what it accepts. Before the vendor produces any output, and for any dispatch that never completes, the log records the requested value as a marked `requested:<name>` label (or `default` when none was named) — never presented as a confirmed observation. Once the vendor's own headless output actually reports which model ran (Claude's `modelUsage` object key — Codex emits no such receipt in any event), that bare, unprefixed model name is recorded instead, even when it differs from what was requested or when no model was requested at all. Refuses by name, before any spawn, when the named vendor binary is absent from `PATH` or present but not executable. Every line this command and the loop it can drive print to the terminal is prefixed with its role (e.g. `[developer]`) and colour-coded per role, with the coordinator/loop's own lines in a distinct colour from every role — colour is applied only on a live TTY and is disabled entirely, prefix kept, when `NO_COLOR` (https://no-color.org) is set to any value. While the child runs, its raw stdout/stderr bytes are teed (never taken from the same stream the outcome parser reads) to a machine-local file under `~/.vinaya/dispatch-output/<effect-id>.log` — never inside the repo tree — whose path is printed once to this process's own stderr so an operator can `tail -f` it; a heartbeat line reporting elapsed time prints there every minute so a working agent is distinguishable from a hung one without inspecting processes by hand. A wall-time ceiling (`dispatch.timeoutMs` in config, default four hours) sends `SIGTERM` then, after a grace window, `SIGKILL`; a warning prints before the ceiling fires (at most 5 minutes ahead, sooner for a shorter configured ceiling) so a timeout is an expected, visible event rather than a silent disappearance. Records `dispatched`/`outcome_received`/`dispatch_failed` through the Vinaya Log's `dispatch` family (`harness/kernel/log/log.md`), delivered live to its configured `logs` destination as each is logged — never a tracker comment, and this command runs no flush of its own. A successful dispatch's own vendor session/thread identifier is returned as `resumeId` (printed alongside the other fields); passing that value back as `--resume <id>` on a later call swaps in that vendor's own resume invocation instead of starting a fresh session. That id is also durably recorded — never only printed — at `~/.vinaya/dispatch-resume/<owner>-<repo>|unresolved/<role>-<agent>-<issue<n>\|pr<n>\|unscoped>.json` (the repo segment keeps two different repos' own same-numbered task from overwriting each other's record on this one machine-wide home), overwritten by each dispatch's own outcome; a run that stops with a question is answered by reading the id from that file (or from the run's own printed output, if that terminal is still open) and running `vinaya-dispatch <role> --agent <vendor> --resume <id> --prompt-file <answer-file>` — the same session continues from where it stopped, rather than being killed and re-dispatched fresh. There is no live channel: an unattended dispatch never blocks on a read waiting for an answer, so a stop condition always degrades to record-and-exit, and the resume path above is how it is answered afterward. |
42
+ | `vinaya-dispatch <role> --agent claude \| codex --prompt-file <path> [--task <n> \| --pr <n>] [--round <n>] [--resume <id>] [--model <name>] [--effort <level>]` | Start a role's headless agent session, attributed: `VINAYA_RUN_ID`/`VINAYA_ROLE`/`VINAYA_TASK`/`VINAYA_ROUND` are set on the CHILD's environment only, never on this process's own — a role started this way is what makes its later `vinaya` calls (the Stop hook, a nested dispatch) attributable instead of `unattributed`. The prompt is read from `--prompt-file` and sent on the child's stdin, never argv. `--model <name>` is passed to the chosen vendor through that vendor's own model flag, and the dispatch log's `model` field never records the vendor name; omitted, no model flag reaches the vendor and its own default decides, exactly as before this flag existed. `--effort <level>` (one of `low`, `medium`, `high` or `xhigh`; omitted, no effort argument reaches the vendor, as for `--model`) is passed as Claude Code's `--effort` or Codex's `-c model_reasoning_effort="<level>"`, on a first launch and a resume alike; any other value is refused with `--effort takes one of low, medium, high, xhigh.`. A model shaped as another vendor's own (e.g. a Claude alias passed to `codex`) is refused by name before any spawn, naming the vendor and what it accepts. Before the vendor produces any output, and for any dispatch that never completes, the log records the requested value as a marked `requested:<name>` label (or `default` when none was named) — never presented as a confirmed observation. Once the vendor's own headless output actually reports which model ran (Claude's `modelUsage` object key — Codex emits no such receipt in any event), that bare, unprefixed model name is recorded instead, even when it differs from what was requested or when no model was requested at all. Refuses by name, before any spawn, when the named vendor binary is absent from `PATH` or present but not executable. Every line this command and the loop it can drive print to the terminal is prefixed with its role (e.g. `[developer]`) and colour-coded per role, with the coordinator/loop's own lines in a distinct colour from every role — colour is applied only on a live TTY and is disabled entirely, prefix kept, when `NO_COLOR` (https://no-color.org) is set to any value. While the child runs, its raw stdout/stderr bytes are teed (never taken from the same stream the outcome parser reads) to a machine-local file under `~/.vinaya/dispatch-output/<effect-id>.log` — never inside the repo tree — whose path is printed once to this process's own stderr so an operator can `tail -f` it; a heartbeat line reporting elapsed time prints there every minute so a working agent is distinguishable from a hung one without inspecting processes by hand. A wall-time ceiling (`dispatch.timeoutMs` in config, default four hours) sends `SIGTERM` then, after a grace window, `SIGKILL`; a warning prints before the ceiling fires (at most 5 minutes ahead, sooner for a shorter configured ceiling) so a timeout is an expected, visible event rather than a silent disappearance. Records `dispatched`/`outcome_received`/`dispatch_failed` through the Vinaya Log's `dispatch` family (`harness/kernel/log/log.md`), delivered live to its configured `logs` destination as each is logged — never a tracker comment, and this command runs no flush of its own. A successful dispatch's own vendor session/thread identifier is returned as `resumeId` (printed alongside the other fields); passing that value back as `--resume <id>` on a later call swaps in that vendor's own resume invocation instead of starting a fresh session. That id is also durably recorded — never only printed — at `~/.vinaya/dispatch-resume/<owner>-<repo>|unresolved/<role>-<agent>-<issue<n>\|pr<n>\|unscoped>.json` (the repo segment keeps two different repos' own same-numbered task from overwriting each other's record on this one machine-wide home), overwritten by each dispatch's own outcome; a run that stops with a question is answered by reading the id from that file (or from the run's own printed output, if that terminal is still open) and running `vinaya-dispatch <role> --agent <vendor> --resume <id> --prompt-file <answer-file>` — the same session continues from where it stopped, rather than being killed and re-dispatched fresh. There is no live channel: an unattended dispatch never blocks on a read waiting for an answer, so a stop condition always degrades to record-and-exit, and the resume path above is how it is answered afterward. |
43
43
  | `vinaya-dev-review-loop --task <n> --agent claude \| codex [--json]` / `vinaya-dev-review-loop --resume <pr> --agent … [--json]` | `--issue <n>` is `--task <n>`'s exact synonym — the loop's own `task` field is already the Issue number, tranche or not, so a backlog Issue (no `vinaya/tranche:*` label) needs no separate flag, only the naming that matches `task run --issue <n>`. Dispatch the developer through `dispatchRole` with the brief read from the task Issue's frozen `vinaya:brief:v1` comment, wait for the PR it opens, then run rounds by calling `assessRound` (the Vinaya process) — the entire policy — with observations read from the forge (`git ls-remote` for the head, the check-runs API for CI, `<!-- vinaya:principal:ruling:<pr>-<k> -->`-marked comments for rulings) until it returns `publish` or `pause`. Each round's reviewer and security verdicts are dispatched fresh (never resumed), rendered through `review post`'s own render functions, and held as local files under the outbox — nothing is posted to the PR (`gh pr comment`) before `publish`. At `publish`, the two held verdicts and one publication comment (`renderPublishedMarker`: a hidden marker line, no round table) are posted, in order, each re-read back through the same extractors the merge gate uses, each idempotent across a rerun. At `pause`, one comment marked `<!-- vinaya:loop:paused:<reason> -->` is posted (carrying the exact `--resume <pr>` command) and the process exits non-zero; `--resume <pr>` reads that held state and a since-posted Principal ruling off the same PR and continues. Full account: `harness/processes/vinaya-strict/loops/dev-review/loop.md`. The developer's own session IS resumed every round via `dispatchRole`'s `resumeId`; a round whose resume fails for a vendor that resumed successfully the round before stops the loop rather than falling back to a fresh session. |
44
44
 
45
45
  ## Role tools
46
46
 
47
- The Planner's tool server supplies `task_issue_create` (`title`, `body`, optional `labels` and `milestone`), `task_issue_edit` (`issue`, optional `title`, `body` and `addLabels`), `task_issue_surface` (`body`), `task_issue_validate` (`mode`, `body`, optional `issue`, `title` and `labels`), `task_objectives_edit` and `brief_render` (`tranche`, `id`, optional `globs`). Validation uses `mode: "create"` or `mode: "edit"`; edit validation also requires `issue`. It writes nothing. Objectives edits take `issue`, `op` (`add`, `drop` or `replace`) and `reason`, plus `sentence` for add/replace, `id` for drop/replace and optional `part` for add. They retain Principal authorization and supersede a frozen brief when present. Brief rendering returns the brief text; it never writes a file or posts to the Issue.
47
+ The Planner's tool server supplies `task_issue_create` (`title`, `body`, optional `labels` and `milestone`), `task_issue_edit` (`issue`, optional `title`, `body` and `addLabels`), `task_issue_surface` (`body`), `task_issue_validate` (`mode`, `body`, optional `issue`, `title` and `labels`), `task_objectives_edit`, `task_documentation_edit` (`issue`, `documentation` and `reason`) and `brief_render` (`tranche` with `id` and optional `globs`, or `issue` alone — one address per call). It also supplies `plan_draft_submit` (a whole plan draft: `tranche`, `revision`, `reviewQuestionVersion`, `tasks` and `scope`), which stores the draft on this machine and returns its fingerprint, `plan_draft_read` (`tranche`), which reads it back, `plan_draft_check` (`tranche`), which runs the full Issue write gate on every task of the stored draft with the draft's tasks as each other's siblings and adds the checks only the whole plan has (shared files without a declared conflict, an edge naming a task the draft does not hold, a dependency cycle, a deferred fact whose producer is not a dependency, each agreed-scope item delivered once or left out), and `plan_draft_preview` (`tranche`, optional `task`), which returns each task's exact Issue and brief rendered from a read-only copy of the draft's captured revision, with the reasons a task cannot start beside it. Both read the code at that revision, never the working tree, and write nothing. It also supplies `plan_review_start` (`tranche`), which runs one fresh independent review round on a draft checked as a whole at its current fingerprint and stores the validated result, its findings and the harness-derived verdict with the draft, `plan_review_status` (`tranche`), which reads the rounds spent and allowed, the findings (open, resolved or a note) and whether the current fingerprint is approved, and `plan_review_decide` (`tranche`, `fingerprint`, `choice` of `allow_one_more` or `stop`), which records the Principal's choice once the round limit (`planning.reviewRoundLimit`, two by default) is reached; it records that a decision was given and for which fingerprint, not who gave it. `plan_approve` (`tranche`, `fingerprint`) records the Principal's approval of the reviewed draft's current fingerprint; it is refused when no draft is stored, when the fingerprint is not the stored draft's or when the latest round did not approve it, it records that an approval was given and for which fingerprint, not who gave it, and `plan_review_status` reports whether the current fingerprint is approved by the Principal. It also supplies `plan_publish` (`tranche`, optional `tasks`), which writes each named approved task of the stored draft, or every approved task when none is named, as an Issue in task order: the exact title, body and labels the preview shows, through the same Issue write gate as `task_issue_create` with the draft's tasks given to the brief render. It writes nothing when no draft is stored, the draft's current fingerprint is not approved by the review and by the Principal or a named task is not approved; a task that already has an Issue number is reported and not written again. Each new Issue's number is recorded on its task in the stored draft and returned with the task's number and link; recording it leaves the approval in force. `planning.reviewAgent` picks the reviewing agent: `same` (the default) or `different`. Validation uses `mode: "create"` or `mode: "edit"`; edit validation also requires `issue`. It writes nothing. Objectives edits take `issue`, `op` (`add`, `drop` or `replace`) and `reason`, plus `sentence` for add/replace, `id` for drop/replace and optional `part` for add. They retain Principal authorization and supersede a frozen brief when present. The Documentation correction is Principal-only too and works only on an Issue whose brief is frozen: `documentation` is the whole new `## Documentation` section and `reason` one line; the new body passes the whole Issue write gate, every other section stays as it was, the frozen brief is superseded with the reason, a record comment holds the previous lines, the new ones and the reason, and the result names the new brief comment and the record comment. Brief rendering returns the brief text, and beside it each reason the task cannot start yet (an unmerged dependency or an open conflicting task; none when it can start), rendering a waiting task in full; it never writes a file or posts to the Issue.
48
48
 
49
49
  The Architect's tools are `milestone_create`, `milestone_edit`, `milestone_delete`, `milestone_adopt`, `milestone_status` and `milestone_close`. Create takes `title` and `body`; edit takes a digits-only string `number` and `body`; adopt takes `target` and `slugs`. Status and delete take `number`; close takes `slug`. Create, edit, adopt and close accept optional `validateOnly`, which runs their gates without writing. The Tranche Archivist holds only status and close. Milestone writes retain the shape, attachment and lifecycle gates; deletion refuses a missing or nonempty Milestone.
50
50
 
@@ -271,7 +271,9 @@ The generated review-authority workflows run only default-branch code: the requi
271
271
 
272
272
  ## Changeset coverage
273
273
 
274
- The `changeset-coverage` core check couples a diff touching a published package's shipped files to a `.changeset/*.md` entry in the same diff — for each member of `.changeset/config.json`'s `fixed` group, a changed path counts as shipped iff it falls under that member's own `package.json` `files` allowlist, read live from every workspace member's own manifest, never a hardcoded path list. The Changesets-release branch itself is exempt by construction. Report-only (`scope: diff`, ring 0): findings print at `warning` severity and the check's own exit code always stays `0`, so installing it cannot newly redden an existing repo's CI. Dormant when the repo carries no `.changeset/config.json`, or none of its `fixed`-group members resolve.
274
+ The `changeset-coverage` core check requires a `.changeset/*.md` entry when a diff touches a shipped file of a member of a `.changeset/config.json` `fixed` group. It reads each member's shipped-file allowlist from its `package.json` `files` field.
275
+
276
+ The check also refuses added or edited changesets naming packages covered by the Changesets `ignore` list, even when the diff touches no shipped files. It matches exact names and `*` patterns and skips entries starting with `!`. Remove ignored package entries from the frontmatter. An empty changeset passes, as does deleting a changeset when no entry is required. Findings fail the check with an error. The Changesets release branch is exempt, and the ignored-package rule is dormant without an `ignore` list or config file.
275
277
 
276
278
  ## Quoted-command staleness
277
279