@attalabs/vinaya 0.32.0 → 0.33.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 (209) hide show
  1. package/README.md +1 -1
  2. package/aeg-root/contracts/principal-operator.md +18 -5
  3. package/aeg-root/roles/operator.md +69 -16
  4. package/aeg-root/roles/planner/reference.md +1 -1
  5. package/aeg-root/roles/tranche-archivist.md +1 -0
  6. package/aeg-root/skills/aeg-context-packets/SKILL.md +1 -1
  7. package/aeg-root/skills/aeg-context-packets/examples/operator-start.md +1 -1
  8. package/dist/checks/bin/check-body-bare-digits.js +111 -15
  9. package/dist/checks/bin/check-branch-topology.js +83 -16
  10. package/dist/checks/bin/check-brief-shape.js +111 -15
  11. package/dist/checks/bin/check-changeset-coverage.js +342 -69
  12. package/dist/checks/bin/check-closes-n.js +83 -16
  13. package/dist/checks/bin/check-coherence.js +112 -16
  14. package/dist/checks/bin/check-dead-branch-push.js +82 -15
  15. package/dist/checks/bin/check-dispatch-readiness.js +112 -16
  16. package/dist/checks/bin/check-doc-coverage-push.js +342 -69
  17. package/dist/checks/bin/check-doc-coverage.js +342 -69
  18. package/dist/checks/bin/check-doctrine-no-procedures.js +111 -15
  19. package/dist/checks/bin/check-doctrine-portability.js +342 -69
  20. package/dist/checks/bin/check-evidence-fresh.js +343 -69
  21. package/dist/checks/bin/check-exec-bits.js +342 -69
  22. package/dist/checks/bin/check-first-push-dispatch.js +112 -16
  23. package/dist/checks/bin/check-issue-assignment.js +83 -16
  24. package/dist/checks/bin/check-issue-milestone-attach.js +82 -15
  25. package/dist/checks/bin/check-issue-objectives-numbering.js +82 -15
  26. package/dist/checks/bin/check-issue-parts-coverage.js +82 -15
  27. package/dist/checks/bin/check-issue-surface-globs.js +112 -16
  28. package/dist/checks/bin/check-issue-title-grammar.js +82 -15
  29. package/dist/checks/bin/check-issue-tranche-label.js +82 -15
  30. package/dist/checks/bin/check-main-branch-refusal.js +82 -15
  31. package/dist/checks/bin/check-no-disk-state.js +82 -15
  32. package/dist/checks/bin/check-pr-premise-reassert.js +111 -15
  33. package/dist/checks/bin/check-pr-report-density.js +82 -15
  34. package/dist/checks/bin/check-principal-test-plan-wait.js +82 -15
  35. package/dist/checks/bin/check-quoted-command.js +342 -69
  36. package/dist/checks/bin/check-reader-resolvable-prose.js +342 -69
  37. package/dist/checks/bin/check-registry-gates.js +82 -15
  38. package/dist/checks/bin/check-retired-vocabulary.js +342 -69
  39. package/dist/checks/bin/check-review-gate.js +179 -124
  40. package/dist/checks/bin/check-single-plan-pr.js +82 -15
  41. package/dist/checks/bin/check-surface-scope.js +83 -16
  42. package/dist/checks/bin/check-test-plan.js +82 -15
  43. package/dist/checks/bin/check-token-collection-wired.js +82 -15
  44. package/dist/checks/bin/check-token-report.js +82 -15
  45. package/dist/checks/bin/check-workspace-escape.js +342 -69
  46. package/dist/index.js +2495 -590
  47. package/dist/lib/pre-push-cache-test-run.js +317 -61
  48. package/dist/lib/pre-push-select-tests.js +91 -10
  49. package/package.json +1 -1
  50. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/actions.ts +10 -12
  51. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/anchored-region.ts +5 -5
  52. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/archive-task.ts +42 -17
  53. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/baseline-capture.ts +1 -2
  54. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/branch-topology-gate.ts +3 -3
  55. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/brief-render.ts +554 -95
  56. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/brief-validation.ts +264 -44
  57. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/claude-code-transcript.ts +9 -9
  58. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/coherence-checks.ts +211 -30
  59. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/consumer-enumeration.ts +2 -2
  60. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/control-store/index.ts +75 -0
  61. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/control-store/local.ts +961 -0
  62. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/control-store/migration.ts +212 -0
  63. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/control-store/outcomes.ts +135 -0
  64. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/control-store/records.ts +394 -0
  65. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/dead-branch-push-audit.ts +1 -2
  66. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/dead-branch-push-guard.ts +1 -1
  67. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/derive-section7.ts +2 -2
  68. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/dev-review-loop/assess-round.ts +514 -0
  69. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/dev-review-loop/fakes.ts +110 -0
  70. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/dev-review-loop/index.ts +27 -0
  71. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/dev-review-loop/journal-reconstruction.ts +123 -0
  72. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/dev-review-loop/render-summary.ts +27 -0
  73. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/dev-review-loop/types.ts +240 -0
  74. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/diagram-model.ts +1 -1
  75. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/direct-main-push.ts +1 -2
  76. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/dispatch-gate.ts +65 -22
  77. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/doc-claim.ts +238 -0
  78. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/doc-owners.ts +14 -1
  79. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/docs/docs-coherence.ts +1 -1
  80. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/docs/legacy-anchors.ts +1 -1
  81. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/docs/node-route.ts +1 -1
  82. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/docs/surfaced-manifest.ts +1 -1
  83. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/doctrine-no-procedures.ts +1 -1
  84. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/doctrine-portability.ts +5 -5
  85. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/ensure-label.ts +1 -1
  86. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/first-push-dispatch-gate.ts +1 -1
  87. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/gate-audience.ts +14 -3
  88. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/index.ts +379 -11
  89. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/issue-assignment.ts +3 -4
  90. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/issue-validation.ts +1450 -33
  91. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/leftover-detection.ts +1 -2
  92. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/local-anchor-coverage.ts +2 -2
  93. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/log/envelope.ts +119 -0
  94. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/log/index.ts +75 -0
  95. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/log/redact.ts +87 -0
  96. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/log/schema.ts +801 -0
  97. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/log/store.ts +373 -0
  98. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/main-branch-refusal.ts +2 -2
  99. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/metering-io-guard.ts +1 -1
  100. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/milestone-validation.ts +2 -3
  101. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/no-disk-state.ts +2 -2
  102. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/objectives.ts +288 -0
  103. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/parse-token-report.ts +3 -3
  104. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/parse-tranche.ts +1 -1
  105. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/pr-report-density.ts +30 -16
  106. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/pr-tier.ts +17 -1
  107. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/premise-check.ts +1 -1
  108. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/quoted-command.ts +1 -1
  109. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/reader-resolvable-prose.ts +267 -19
  110. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/registry-checks.ts +91 -24
  111. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/registry-scaffold.ts +6 -6
  112. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/report-tokens.ts +4 -4
  113. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/review-gate.ts +239 -110
  114. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/review-input-manifest.ts +384 -0
  115. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/review-policy.ts +184 -0
  116. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/review-status.ts +65 -18
  117. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/ruling-ordinal.ts +76 -0
  118. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/single-plan-pr.ts +4 -4
  119. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/state-machine-model.ts +40 -27
  120. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/symbol-collisions.ts +2 -2
  121. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/task-branch-identity.ts +38 -0
  122. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/task-tools.ts +488 -0
  123. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/test-plan-gate.ts +7 -9
  124. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/test-plan-section.ts +5 -5
  125. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/types.ts +4 -4
  126. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/verdict-extraction.ts +314 -56
  127. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/waiver-label.ts +2 -3
  128. package/studio-standalone/_node_modules/@attalabs/aeg-core/src/workspace-escape.ts +3 -3
  129. package/studio-standalone/apps/vinaya-studio/web/.next/BUILD_ID +1 -1
  130. package/studio-standalone/apps/vinaya-studio/web/.next/build-manifest.json +3 -3
  131. package/studio-standalone/apps/vinaya-studio/web/.next/prerender-manifest.json +3 -3
  132. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/_global-error.html +1 -1
  133. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/_global-error.rsc +1 -1
  134. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  135. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  136. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  137. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  138. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  139. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/_not-found/page/server-reference-manifest.json +2 -2
  140. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/_not-found/page.js.nft.json +1 -1
  141. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  142. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/api/coherence/route.js +1 -1
  143. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/api/coherence/route.js.nft.json +1 -1
  144. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/page/server-reference-manifest.json +2 -2
  145. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/page.js.nft.json +1 -1
  146. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/page_client-reference-manifest.js +1 -1
  147. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/backlog/page/server-reference-manifest.json +2 -2
  148. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/backlog/page.js +1 -1
  149. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/backlog/page.js.nft.json +1 -1
  150. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/backlog/page_client-reference-manifest.js +1 -1
  151. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/page/server-reference-manifest.json +2 -2
  152. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/page.js +1 -1
  153. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/page.js.nft.json +1 -1
  154. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/page_client-reference-manifest.js +1 -1
  155. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/[name]/page/server-reference-manifest.json +2 -2
  156. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/[name]/page.js +1 -1
  157. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/[name]/page.js.nft.json +1 -1
  158. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/[name]/page_client-reference-manifest.js +1 -1
  159. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/[name]/tranches/[slug]/page/server-reference-manifest.json +3 -3
  160. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/[name]/tranches/[slug]/page.js +2 -2
  161. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/[name]/tranches/[slug]/page.js.nft.json +1 -1
  162. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/[name]/tranches/[slug]/page_client-reference-manifest.js +1 -1
  163. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/[name]/tranches/[slug]/tasks/[taskId]/page/server-reference-manifest.json +2 -2
  164. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/[name]/tranches/[slug]/tasks/[taskId]/page.js +1 -1
  165. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/[name]/tranches/[slug]/tasks/[taskId]/page.js.nft.json +1 -1
  166. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/[name]/tranches/[slug]/tasks/[taskId]/page_client-reference-manifest.js +1 -1
  167. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/page/server-reference-manifest.json +2 -2
  168. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/page.js +1 -1
  169. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/page.js.nft.json +1 -1
  170. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/page_client-reference-manifest.js +1 -1
  171. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/tranches/page/server-reference-manifest.json +2 -2
  172. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/tranches/page.js +1 -1
  173. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/tranches/page.js.nft.json +1 -1
  174. package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/tranches/page_client-reference-manifest.js +1 -1
  175. package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/{[externals]__1agj1ww._.js → [externals]__0cki-x_._.js} +2 -2
  176. package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/[root-of-the-server]__02a-3g8._.js +6 -6
  177. package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/1q96_modules_@clerk_nextjs_dist_esm_app-router_client_keyless-creator-reader_0lom2js.js +1 -1
  178. package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/[root-of-the-server]__074w9nf._.js +3 -0
  179. package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/[root-of-the-server]__0ls23oh._.js +1 -1
  180. package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/{[root-of-the-server]__0r7e54g._.js → [root-of-the-server]__18paley._.js} +1 -1
  181. package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/[root-of-the-server]__1gjqmhq._.js +1 -1
  182. package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/[root-of-the-server]__1wc4-ip._.js +1 -1
  183. package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/{[root-of-the-server]__1r47dr7._.js → _08onyya._.js} +3 -3
  184. package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_096f46i._.js +1 -1
  185. package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_0af2one._.js +1 -1
  186. package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_0e5tkdd._.js +1 -1
  187. package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_0kf2g72._.js +1 -1
  188. package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_0y1jv16._.js +1 -1
  189. package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_0zf4d27._.js +1 -1
  190. package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_1-wo68i._.js +1 -1
  191. package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_15gdg48._.js +5 -5
  192. package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_1achbh9._.js +1 -1
  193. package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/node_modules_@clerk_nextjs_dist_esm_app-router_server-actions_1x7vfhn.js +2 -2
  194. package/studio-standalone/apps/vinaya-studio/web/.next/server/middleware-build-manifest.js +3 -3
  195. package/studio-standalone/apps/vinaya-studio/web/.next/server/pages/500.html +1 -1
  196. package/studio-standalone/apps/vinaya-studio/web/.next/server/server-reference-manifest.js +1 -1
  197. package/studio-standalone/apps/vinaya-studio/web/.next/server/server-reference-manifest.json +4 -4
  198. package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/0bjnj-5fy4e7l.js +1 -0
  199. package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/{1dc2_-c_gavj1.js → 1ce2dj27_cgbj.js} +4 -4
  200. package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/{3xg6-flovrcx-.js → 22s44f5k3ecmj.js} +1 -1
  201. package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/34hhdtbp20krb.js +1 -0
  202. package/studio-standalone/apps/vinaya-studio/web/package.json +2 -2
  203. package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/[root-of-the-server]__0hstap0._.js +0 -3
  204. package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/2t_rfsztmwu6y.js +0 -1
  205. package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/3ua4rm5f-a9k6.js +0 -1
  206. /package/studio-standalone/_node_modules/@attalabs/vinaya/studio-standalone/_node_modules/@attalabs/vinaya/studio-standalone/_node_modules/@attalabs/vinaya/studio-standalone/_node_modules/@attalabs/vinaya/studio-standalone/_node_modules/@attalabs/{aeg-core → vinaya/studio-standalone/_node_modules/@attalabs/aeg-core}/bin/verify-coherence.ts +0 -0
  207. /package/studio-standalone/apps/vinaya-studio/web/.next/static/{e8XbZ2vlVz40KzHmlqhwP → vl7QVqELe1AQ-9kaOd9mR}/_buildManifest.js +0 -0
  208. /package/studio-standalone/apps/vinaya-studio/web/.next/static/{e8XbZ2vlVz40KzHmlqhwP → vl7QVqELe1AQ-9kaOd9mR}/_clientMiddlewareManifest.js +0 -0
  209. /package/studio-standalone/apps/vinaya-studio/web/.next/static/{e8XbZ2vlVz40KzHmlqhwP → vl7QVqELe1AQ-9kaOd9mR}/_ssgManifest.js +0 -0
@@ -1,19 +1,18 @@
1
1
  /**
2
- * Shared code-reviewer / security-review verdict extraction (aeg-review-gate-v1
3
- * task 1, #474). Originally private to `archive-task.ts`'s post-merge
2
+ * Shared code-reviewer / security-review verdict extraction. Originally private to `archive-task.ts`'s post-merge
4
3
  * provenance assembly (advisory-only, DANGLING on a missing/unclear verdict).
5
4
  * Extracted so the pre-merge `review-gate.ts` blocking check calls the
6
5
  * IDENTICAL regex/parsing logic — a future drift between two copies of the
7
- * same pattern would silently reopen the gap this task exists to close (one
8
- * implementation per fact, §11 constraint). Pure — no `fs`, no `fetch`.
6
+ * same pattern would silently reopen the gap this exists to close (one
7
+ * implementation per fact). Pure — no `fs`, no `fetch`.
9
8
  *
10
9
  * Picks the MOST RECENT comment carrying a clear value, not the first comment
11
- * merely matching the pattern (aeg-review-gate-v1 task 1 fix — the original
10
+ * merely matching the pattern (a real fix — the original
12
11
  * single-comment `.find()` broke on real multi-comment PRs: a REQUEST_CHANGES
13
12
  * verdict followed by fixes and a later clean APPROVE).
14
13
  *
15
14
  * Line-anchored `VERDICT:` marker only — NOT a bare word search anywhere in
16
- * the comment (aeg-review-gate-v1 task 1 follow-up, security-review FAIL
15
+ * the comment (a security-review FAIL
17
16
  * finding, confirmed by direct execution: the old bare `\b(PASS|FAIL)\b`
18
17
  * pattern matched the post-merge Archivist's own auto-generated DANGLING
19
18
  * placeholder text — "no security-review pass was run before merge —
@@ -25,33 +24,49 @@
25
24
  * code-reviewer.md`/`security-reviewer.md` require verbatim) — tightening
26
25
  * to it closes the gap without inventing a new convention.
27
26
  *
28
- * The VALUE is windowed to the comment's first THREE lines only
29
- * (review-convergence-v1 task 2, round 4, `#392`) — never a line anywhere
30
- * else in the body. Every shape this package's own callers render puts the
31
- * `VERDICT:`/`ESCALATE:` line first and `Judged head:` third; a
32
- * caller-supplied field (findings, conformance prose, a summary) never
33
- * renders before line 5. Restricting the read window closes a
34
- * caller-controlled-text injection route without narrowing what any real
35
- * render needs matched.
27
+ * AEG:CLAIM: packages/aeg-core/src/verdict-extraction.ts contains:function firstFiveLines(comment: string): string {
28
+ * The VALUE is windowed to the comment's first FIVE lines only
29
+ * (widened, when `Objectives version:` became a third head line) —
30
+ * never a line anywhere else in the body. Every shape this package's own
31
+ * callers render puts the `VERDICT:`/`ESCALATE:` line first and `Judged
32
+ * head:` third; `Objectives version:` fifth WHEN it renders at all (it is
33
+ * omitted pre-cutover — a `null` objectives version). The precise guarantee
34
+ * is narrower than "no caller content in the window": a caller-supplied
35
+ * VALUE can appear inside the window, appended after a fixed, renderer-owned
36
+ * label on the same line — code-review's `BRIEF CONFORMANCE: <value>` can
37
+ * land on line 5 itself (pre-cutover, no scope evidence). In every shape
38
+ * EXCEPT ONE, that label is what forecloses the value from ever reading as
39
+ * `VERDICT:`/`Judged head:`/`Objectives version:`, regardless of which line
40
+ * number it lands on. The one exception is `renderEscalationComment`'s
41
+ * `input.summary`: pre-cutover, it becomes line 5 outright, with no label
42
+ * ahead of it at all — a summary whose own first line happened to read
43
+ * `VERDICT: APPROVE` would extract as a real verdict through this exact
44
+ * window. Construction alone does not close that case; `review-post.ts`'s
45
+ * `checkRenderedComment` does, mechanically, by re-running these same
46
+ * extractors over the rendered text before any post and refusing an
47
+ * escalation that re-parses as either verdict. Restricting the read window
48
+ * to lines 1-5 closes a caller-controlled-text injection route without
49
+ * narrowing what any real render needs matched; it is this module's own
50
+ * contribution, not a claim that no render can still collide.
36
51
  *
37
- * The CANDIDATE SET stays whole-body (review-convergence-v1 task 2, round 5,
38
- * `#392`) — round 4 windowed where a verdict's value is read, not which
52
+ * AEG:CLAIM: packages/aeg-core/src/verdict-extraction.ts contains:function firstFiveLines(comment: string): string {
53
+ * The CANDIDATE SET stays whole-body — an earlier round windowed where a verdict's value is read, not which
39
54
  * comments count as a candidate at all. A comment whose only VERDICT-shaped
40
- * line sits outside its first three lines is still the most recent
55
+ * line sits outside its first five lines is still the most recent
41
56
  * candidate if it is the most recent comment; it reads as DANGLING rather
42
57
  * than being skipped, so it correctly shadows an earlier clean verdict
43
58
  * instead of silently letting the earlier one win.
44
59
  *
45
60
  * The anchor tolerates a leading markdown EMPHASIS run — one to three `*` or
46
61
  * `_`, immediately abutting the token — so `**VERDICT: APPROVE**` and
47
- * `_VERDICT: APPROVE_` match (PR #636: the reviewer subagent emitted the
62
+ * `_VERDICT: APPROVE_` match (a real incident: the reviewer subagent emitted the
48
63
  * bolded form and the gate read the PR as carrying no code-review verdict at
49
64
  * all). The spec still mandates the bare line; this only stops an agent's
50
65
  * markdown drift from silently DANGLING a real verdict.
51
66
  *
52
67
  * Emphasis ONLY — the following are deliberately NOT tolerated, because each
53
68
  * is a way for prose to *mention* a verdict rather than *cast* one, and this
54
- * gate blocks merges (#639 review, findings 1/3/5):
69
+ * gate blocks merges (several review findings):
55
70
  * `> VERDICT: APPROVE` blockquote — GitHub's quote-reply syntax. A
56
71
  * Developer quoting the reviewer's earlier text
57
72
  * would otherwise become the PR's own verdict, and
@@ -87,10 +102,10 @@
87
102
  * identical to no comment existing — which is also what the DANGLING
88
103
  * placeholder case above requires.
89
104
  *
90
- * Reviewed-commit binding (#73, a duplicate of #71 closes this one). The
105
+ * Reviewed-commit binding. The
91
106
  * winning comment (the one whose `VERDICT:` line matched) is also searched
92
- * for a `Judged head: <sha>` line — the exact phrase reviewers on
93
- * atta-labs/attalabs#664 were already hand-typing before this existed as a
107
+ * for a `Judged head: <sha>` line — the exact phrase reviewers were
108
+ * already hand-typing before this existed as a
94
109
  * mechanism, formalized rather than invented. Same anchor discipline as
95
110
  * `VERDICT:` itself: line-start, optional leading emphasis run, no
96
111
  * blockquote/list-item/heading/code-span tolerance — a sha mentioned in
@@ -100,58 +115,269 @@
100
115
  * the PR's actual head. Searched only within the SAME comment body that
101
116
  * produced the winning verdict — a sha mentioned in a different comment is
102
117
  * not this verdict's binding.
118
+ *
119
+ * Ruling-freshness binding. A
120
+ * fifth field, `rulingOrdinal`, is read from the SAME winning comment via
121
+ * `extractRulingOrdinal`/`firstSevenLines` — its OWN window, not
122
+ * `firstFiveLines` widened in place (see that function's doc comment for
123
+ * why: an out-of-surface `AEG:CLAIM` in `packages/sources` pins
124
+ * `firstFiveLines`'s exact signature). `null` means no `Ruling ordinal:`
125
+ * line at all — the pre-cutover stock — never confused with a rendered
126
+ * `0`, which means a post-cutover verdict cast when the PR carried no
127
+ * ruling yet.
103
128
  */
104
129
 
105
130
  const HEAD_SHA_PATTERN = /^[ \t]*(?:\*{1,3}|_{1,3})?Judged head:\s*([0-9a-f]{7,40})(?![A-Za-z0-9])/im
106
131
 
107
132
  /**
108
- * Round-4 ruling on `#392`: both markers are read from a comment's first
109
- * THREE lines only, never anywhere else in the body. Every shape this
110
- * package itself renders (`review-post.ts`'s `renderCodeReviewComment`/
111
- * `renderSecurityComment`/`renderEscalationComment`) puts `VERDICT:`/
112
- * `ESCALATE:` on line 1 and `Judged head:` on line 3 — every caller-supplied
113
- * field (findings, conformance prose, scope, a summary) renders strictly
114
- * after that, starting at line 5 at the earliest. Restricting the window to
115
- * lines 1–3 costs no real render anything: it is a strictly narrower read
116
- * than "anywhere in the body," and it closes the class of defect that
117
- * motivated this ruling — a caller-supplied field that smuggled a raw
118
- * newline followed by a `VERDICT:`- or `Judged head:`-shaped line could
119
- * previously inject a structural line from outside the command's own
120
- * three-line skeleton; that line can now never be read as one.
133
+ * The render grows a third head
134
+ * line — `Objectives version: <hash>` on line 5, blank line 6 — ONLY when a
135
+ * non-null version exists; pre-cutover PRs omit it, and line 5 is then free
136
+ * for the next fixed label instead (code-review's `BRIEF CONFORMANCE:`),
137
+ * whose value can be the earliest caller-supplied text `renderCodeReviewComment`
138
+ * itself ever puts on the wire. Same anchor discipline as `VERDICT:`/
139
+ * `Judged head:`: line-start, optional leading emphasis run, no
140
+ * blockquote/list-item/heading/code-span tolerance. The value is a sha256
141
+ * hex string (64 hex chars, `objectivesOf`'s built form), never the loop
142
+ * spec's superseded `number`.
143
+ */
144
+ const OBJECTIVES_VERSION_PATTERN = /^[ \t]*(?:\*{1,3}|_{1,3})?Objectives version:\s*([0-9a-f]{64})(?![A-Za-z0-9])/im
145
+
146
+ /**
147
+ * A fourth head line, `Ruling
148
+ * ordinal: <k>`, renders UNCONDITIONALLY on every post-cutover verdict —
149
+ * `0` when no principal ruling existed on the PR at cast time, never
150
+ * omitted the way `Objectives version:` is pre-cutover. Read from its OWN
151
+ * wider window (`firstSevenLines`, below), never from `firstFiveLines`:
152
+ * `packages/sources` carries an `AEG:CLAIM` binding on `firstFiveLines`'s
153
+ * exact signature that this task's declared Surface excludes, so that
154
+ * function's name, body, and 5-line reach stay byte-identical — widening
155
+ * it in place would silently break that out-of-surface claim. The value is
156
+ * a decimal ordinal (the marker's own `<pr>-<k>`, `k` monotone by
157
+ * construction in `vinaya pr rule`), never a hash.
158
+ */
159
+ const RULING_ORDINAL_PATTERN = /^[ \t]*(?:\*{1,3}|_{1,3})?Ruling ordinal:\s*(\d+)(?!\d)/im
160
+
161
+ /**
162
+ * A fifth head line, `Brief hash:
163
+ * <sha256>`, renders UNCONDITIONALLY on every post-cutover verdict right
164
+ * after `Ruling ordinal:` — the frozen brief's own hash at dispatch time.
165
+ * `null` means no such line at all — legacy stock from before this task, or
166
+ * a rendered `(none)` placeholder when no frozen brief was resolvable for
167
+ * that task/PR at cast time (never confused with a real 64-hex-char hash).
168
+ * Read from its own wider window (`firstElevenLines`, below), same reasoning
169
+ * as `RULING_ORDINAL_PATTERN`'s own `firstSevenLines`.
121
170
  */
122
- function firstThreeLines(comment: string): string {
123
- return comment.split('\n').slice(0, 3).join('\n')
171
+ const BRIEF_HASH_PATTERN = /^[ \t]*(?:\*{1,3}|_{1,3})?Brief hash:\s*([0-9a-f]{64})(?![A-Za-z0-9])/im
172
+
173
+ /**
174
+ * A sixth head line, `Policy
175
+ * digest: <sha256>`, renders UNCONDITIONALLY right after `Brief hash:` —
176
+ * the effective review policy's digest at cast time. `null` means no such
177
+ * line at all — legacy stock from before this task, or a stripped/malformed
178
+ * line. Unlike the other fields this package extracts, a `null` echo here
179
+ * is NEVER grandfathered (a MEDIUM security-review finding): a policy is always
180
+ * resolvable, so there is no genuine "nothing to bind against" case on the
181
+ * current side to key forgiveness on the way brief-hash/objectives/ruling
182
+ * each have — `review-input-manifest.ts`'s `isBoundToPolicy` requires an
183
+ * exact digest match unconditionally.
184
+ */
185
+ const POLICY_DIGEST_PATTERN = /^[ \t]*(?:\*{1,3}|_{1,3})?Policy digest:\s*([0-9a-f]{64})(?![A-Za-z0-9])/im
186
+
187
+ /**
188
+ * O1: a seventh head line, `Judged base:
189
+ * <sha>`, renders UNCONDITIONALLY on every verdict from this task forward,
190
+ * right after `Policy digest:` — the base commit the candidate was judged
191
+ * against (a base identity a prior task deliberately deferred). Appended
192
+ * LAST rather than beside `Judged head:` on purpose: inserting it earlier
193
+ * would shift `Objectives version:`/`Ruling ordinal:`/`Brief hash:`/`Policy
194
+ * digest:` down and out of the exact read windows those extractors already
195
+ * pin (`firstFiveLines`/`firstSevenLines`/`firstElevenLines`), silently
196
+ * breaking every one of them. A trailing line pushes nothing out. Same anchor
197
+ * discipline as `Judged head:` (line-start, optional emphasis run, no
198
+ * blockquote/list/heading/code-span). Accepts the abbreviated (7-char) and
199
+ * full (40-char) hex forms; `null` means no such line — pre-cutover stock, or
200
+ * the rendered `(none)` placeholder when no base was resolvable at cast time
201
+ * (never confused with a real hex sha).
202
+ */
203
+ const BASE_SHA_PATTERN = /^[ \t]*(?:\*{1,3}|_{1,3})?Judged base:\s*([0-9a-f]{7,40})(?![A-Za-z0-9])/im
204
+
205
+ /**
206
+ * AEG:CLAIM: packages/aeg-core/src/verdict-extraction.ts contains:function firstFiveLines(comment: string): string {
207
+ * AEG:CLAIM: apps/cli/src/commands/review-post.ts contains:export function renderEscalationComment(input: EscalationInput): string {
208
+ * AEG:CLAIM: apps/cli/src/commands/review-post.ts contains:export function checkRenderedComment(body: string, expectation: RenderExpectation): RenderCheckResult {
209
+ * A ruling, later widened:
210
+ * all three markers are read from a comment's first FIVE lines only, never
211
+ * anywhere else in the body. Every shape this package itself renders
212
+ * (`review-post.ts`'s `renderCodeReviewComment`/`renderSecurityComment`/
213
+ * `renderEscalationComment`) puts `VERDICT:`/`ESCALATE:` on line 1 and
214
+ * `Judged head:` on line 3; `Objectives version:` lands on line 5 only when
215
+ * non-null (pre-cutover PRs omit it). A caller-supplied field (findings,
216
+ * conformance prose, scope) in `renderCodeReviewComment`/`renderSecurityComment`
217
+ * never OPENS one of the first five lines — it can only ever appear appended
218
+ * after a fixed, renderer-owned label already on that line, and code-review's
219
+ * `BRIEF CONFORMANCE:` value can be that as early as line 5 itself
220
+ * (pre-cutover, no scope evidence), not a fixed "line 6" or "line 7" floor.
221
+ * `renderEscalationComment`'s `summary` is the one field this does NOT hold
222
+ * for: pre-cutover, it IS line 5, unprefixed — construction alone does not
223
+ * keep it out of the window, `checkRenderedComment`'s runtime self-check
224
+ * does (see this file's module comment). Restricting the window to lines
225
+ * 1–5 costs no real render anything: it is a strictly narrower read than
226
+ * "anywhere in the body," and it closes the class of defect that motivated
227
+ * this ruling — a caller-supplied field that smuggled a raw newline
228
+ * followed by a `VERDICT:`-, `Judged head:`-, or `Objectives
229
+ * version:`-shaped line could previously inject a structural line from
230
+ * outside the command's own skeleton; that line can now never be read as
231
+ * one.
232
+ */
233
+ function firstFiveLines(comment: string): string {
234
+ return comment.split('\n').slice(0, 5).join('\n')
124
235
  }
125
236
 
126
237
  function extractHeadSha(comment: string): string | null {
127
- const m = firstThreeLines(comment).match(HEAD_SHA_PATTERN)
238
+ const m = firstFiveLines(comment).match(HEAD_SHA_PATTERN)
239
+ return m ? (m[1] as string).toLowerCase() : null
240
+ }
241
+
242
+ function extractObjectivesVersion(comment: string): string | null {
243
+ const m = firstFiveLines(comment).match(OBJECTIVES_VERSION_PATTERN)
128
244
  return m ? (m[1] as string).toLowerCase() : null
129
245
  }
130
246
 
131
247
  /**
248
+ * Its own 7-line window, wider
249
+ * than `firstFiveLines` by exactly the two lines `Ruling ordinal:` and its
250
+ * preceding blank line add when `Objectives version:` also renders (worst
251
+ * case: line 7). `null` means no `Ruling ordinal:` line at all — the
252
+ * pre-cutover stock this task's Traps require staying bound whenever the
253
+ * PR itself carries no ruling (`review-gate.ts`'s `isBoundToRulings`), not
254
+ * `0` — `0` is only ever the RENDERED explicit value on a post-cutover
255
+ * verdict.
256
+ */
257
+ function firstSevenLines(comment: string): string {
258
+ return comment.split('\n').slice(0, 7).join('\n')
259
+ }
260
+
261
+ function extractRulingOrdinal(comment: string): number | null {
262
+ const m = firstSevenLines(comment).match(RULING_ORDINAL_PATTERN)
263
+ return m ? Number.parseInt(m[1] as string, 10) : null
264
+ }
265
+
266
+ /**
267
+ * Its own 11-line window — worst
268
+ * case, `Objectives version:`/blank (lines 5-6), `Ruling ordinal:`/blank
269
+ * (7-8), `Brief hash:`/blank (9-10) all render ahead of `Policy digest:`,
270
+ * which then lands on line 11. `null` means no `Brief hash:`/`Policy
271
+ * digest:` line at all within that window.
272
+ */
273
+ function firstElevenLines(comment: string): string {
274
+ return comment.split('\n').slice(0, 11).join('\n')
275
+ }
276
+
277
+ function extractBriefHash(comment: string): string | null {
278
+ const m = firstElevenLines(comment).match(BRIEF_HASH_PATTERN)
279
+ return m ? (m[1] as string).toLowerCase() : null
280
+ }
281
+
282
+ function extractPolicyDigest(comment: string): string | null {
283
+ const m = firstElevenLines(comment).match(POLICY_DIGEST_PATTERN)
284
+ return m ? (m[1] as string).toLowerCase() : null
285
+ }
286
+
287
+ /**
288
+ * O1: its own 13-line window — worst
289
+ * case, `Objectives version:`/blank, `Ruling ordinal:`/blank, `Brief hash:`/
290
+ * blank, `Policy digest:`/blank all render ahead of `Judged base:`, which
291
+ * then lands on line 13. `null` means no `Judged base:` line within that
292
+ * window — pre-cutover stock, or a `(none)` placeholder.
293
+ */
294
+ function firstThirteenLines(comment: string): string {
295
+ return comment.split('\n').slice(0, 13).join('\n')
296
+ }
297
+
298
+ function extractBaseSha(comment: string): string | null {
299
+ const m = firstThirteenLines(comment).match(BASE_SHA_PATTERN)
300
+ return m ? (m[1] as string).toLowerCase() : null
301
+ }
302
+
303
+ /**
304
+ * O2/O3: the FINDINGS block's own
305
+ * severities, read from the WHOLE comment body — never `firstFiveLines`'s
306
+ * window, since `renderFindingsSection` (`review-post.ts`) always renders
307
+ * the findings list well past line five. This is what lets the merge gate
308
+ * (`checkReviewGate`) and the loop's publication self-check evaluate the
309
+ * SAME findings a reviewer's own `VERDICT:` line claims to summarize,
310
+ * against repository policy, rather than trusting that line alone — a
311
+ * reviewer's own `APPROVE` never overrides the evaluator.
312
+ *
313
+ * `renderFindingsSection`'s exact numbered-bracket form —
314
+ * `<n>. [SEVERITY] file:line — description` — is the only shape read here;
315
+ * "None." (the empty-findings render) matches nothing, correctly yielding
316
+ * `[]`. A hand-typed comment that never went through that renderer simply
317
+ * contributes no severities, the same fail-safe direction `extractVerdict`
318
+ * already takes for anything outside its own known shapes.
319
+ *
320
+ * Location is captured too — non-
321
+ * greedy up to the ` — ` separator, so a location containing its own space
322
+ * (`PR body`) is still captured whole rather than truncated at the first
323
+ * space — this is what lets `evaluateReviewFindings`'s prose cap apply to a
324
+ * re-parsed, hand-posted comment exactly as it does to a freshly-derived
325
+ * finding, so the gate and the loop never disagree about a body/comment/
326
+ * role-file finding either.
327
+ */
328
+ const FINDING_SEVERITY_LINE = /^\d+\.\s+\[([A-Z][A-Z]*)\]\s+(.+?)\s+—/gm
329
+
330
+ function extractFindingSeverities(comment: string): { severity: string; location: string }[] {
331
+ return [...comment.matchAll(FINDING_SEVERITY_LINE)].map((m) => ({
332
+ severity: m[1] as string,
333
+ location: m[2] as string
334
+ }))
335
+ }
336
+
337
+ /**
338
+ * AEG:CLAIM: packages/aeg-core/src/verdict-extraction.ts contains:function firstFiveLines(comment: string): string {
132
339
  * `headSha` is `null` in two distinct situations that both mean "cannot
133
340
  * confirm this verdict covers the current head": no verdict comment matched
134
341
  * at all (`danglingNote` is also set), or a verdict comment matched but
135
342
  * carried no `Judged head:` line (`danglingNote` is `null` — the verdict
136
343
  * itself is real, only the binding is missing). `review-gate.ts` treats both
137
- * as unbound; only their `danglingNote`/`value` differ.
344
+ * as unbound; only their `danglingNote`/`value` differ. `objectivesVersion`
345
+ * follows the same null-means-unbound rule: no version line in the winning comment's first five lines
346
+ * reads as `null`, identical in shape to a missing `Judged head:` line.
138
347
  */
139
- export type VerdictExtraction = { value: string; headSha: string | null; danglingNote: string | null }
348
+ export type VerdictExtraction = {
349
+ value: string
350
+ headSha: string | null
351
+ objectivesVersion: string | null
352
+ /** `null` on the pre-cutover stock (no `Ruling ordinal:` line at all) — never conflated with a rendered `0`. */
353
+ rulingOrdinal: number | null
354
+ /** `null` when no `Brief hash:` line was found — legacy stock, or no frozen brief resolvable at cast time. */
355
+ briefHash: string | null
356
+ /** `null` when no `Policy digest:` line was found — legacy stock only; every comment rendered from this task forward carries it unconditionally. */
357
+ policyDigest: string | null
358
+ /** `null` when no `Judged base:` line was found (O1) — legacy stock, or no base resolvable at cast time; every comment rendered from this task forward carries it unconditionally. */
359
+ baseSha: string | null
360
+ /** The winning comment's own FINDINGS block severities and locations, whole-body read (O2/O3; location added O5) — `[]` on a DANGLING extraction (`danglingNote` set) or a comment with no findings at all. */
361
+ findingSeverities: { severity: string; location: string }[]
362
+ danglingNote: string | null
363
+ }
140
364
 
141
365
  /**
142
- * Round 5 (`#392`): the candidate set — which comments even ATTEMPTED a
143
- * verdict — is a whole-body test, the pre-round-4 pattern. Only the VALUE is
144
- * read from the first three lines (round 4, kept). Round 4's own change
145
- * built `clearHits` from the windowed text directly, which made a comment
146
- * whose marker sits below line 3 vanish from consideration entirely rather
147
- * than counting as present-but-unclear — "most recent clear hit wins" then
148
- * silently fell through to an OLDER comment, so a later blocking verdict
149
- * that happened to render past line 3 let an earlier clean pass win. Here,
150
- * the most recent CANDIDATE is picked first; only then is its value read
151
- * from its own first three lines. A candidate whose window carries no value
152
- * is DANGLING — never skipped in favour of an earlier one — so a later
153
- * unclear comment still shadows an earlier clean verdict, the fail-closed
154
- * direction every other branch of this function already takes.
366
+ * AEG:CLAIM: packages/aeg-core/src/verdict-extraction.ts contains:function firstFiveLines(comment: string): string {
367
+ * The candidate set — which comments even ATTEMPTED a
368
+ * verdict — is a whole-body test, an earlier pattern. Only the VALUE is
369
+ * read from the first five lines (widened by a later change). An earlier
370
+ * change built `clearHits` from the windowed text directly, which
371
+ * made a comment whose marker sits below the window vanish from
372
+ * consideration entirely rather than counting as present-but-unclear —
373
+ * "most recent clear hit wins" then silently fell through to an OLDER
374
+ * comment, so a later blocking verdict that happened to render past the
375
+ * window let an earlier clean pass win. Here, the most recent CANDIDATE is
376
+ * picked first; only then is its value read from its own first five lines.
377
+ * A candidate whose window carries no value is DANGLING — never skipped in
378
+ * favour of an earlier one — so a later unclear comment still shadows an
379
+ * earlier clean verdict, the fail-closed direction every other branch of
380
+ * this function already takes.
155
381
  */
156
382
  function extractVerdict(comments: string[], valuePattern: RegExp, missingLabel: string): VerdictExtraction {
157
383
  const candidates = comments.filter((c) => valuePattern.test(c))
@@ -159,27 +385,59 @@ function extractVerdict(comments: string[], valuePattern: RegExp, missingLabel:
159
385
  return {
160
386
  value: `no ${missingLabel} pass was run before merge — DANGLING, see below`,
161
387
  headSha: null,
388
+ objectivesVersion: null,
389
+ rulingOrdinal: null,
390
+ briefHash: null,
391
+ policyDigest: null,
392
+ baseSha: null,
393
+ findingSeverities: [],
162
394
  danglingNote: `no ${missingLabel} verdict comment found on this PR`
163
395
  }
164
396
  }
165
397
 
166
398
  const latest = candidates[candidates.length - 1] as string
167
- const m = firstThreeLines(latest).match(valuePattern)
399
+ const m = firstFiveLines(latest).match(valuePattern)
168
400
  if (!m) {
401
+ // AEG:CLAIM: packages/aeg-core/src/verdict-extraction.ts contains:function firstFiveLines(comment: string): string {
169
402
  return {
170
- value: `the most recent ${missingLabel} comment's VERDICT line is not within its first three lines — DANGLING, see below`,
403
+ value: `the most recent ${missingLabel} comment's VERDICT line is not within its first five lines — DANGLING, see below`,
171
404
  headSha: null,
172
- danglingNote: `the most recent ${missingLabel} verdict comment carries a VERDICT-shaped line outside the first-three-line read window`
405
+ objectivesVersion: null,
406
+ rulingOrdinal: null,
407
+ briefHash: null,
408
+ policyDigest: null,
409
+ baseSha: null,
410
+ findingSeverities: [],
411
+ danglingNote: `the most recent ${missingLabel} verdict comment carries a VERDICT-shaped line outside the first-five-line read window`
173
412
  }
174
413
  }
175
414
 
176
415
  return {
177
416
  value: (m[1] as string).toUpperCase().replace(/[_-]/g, ' '),
178
417
  headSha: extractHeadSha(latest),
418
+ objectivesVersion: extractObjectivesVersion(latest),
419
+ rulingOrdinal: extractRulingOrdinal(latest),
420
+ briefHash: extractBriefHash(latest),
421
+ policyDigest: extractPolicyDigest(latest),
422
+ baseSha: extractBaseSha(latest),
423
+ findingSeverities: extractFindingSeverities(latest),
179
424
  danglingNote: null
180
425
  }
181
426
  }
182
427
 
428
+ /**
429
+ * The line-anchored `VERDICT:` marker prefix both value patterns below open
430
+ * with — exported standalone, unchanged, character for character (a move,
431
+ * not a rewrite; neither pattern below is edited)
432
+ * so a second consumer can build the identical presence-only test without
433
+ * hand-copying a third literal of the same fact. The generated review-gate
434
+ * pre-check job (`apps/cli/src/lib/artifacts.ts`)
435
+ * is that consumer: it runs before any checkout, so it cannot import
436
+ * this module at workflow run time, and instead imports this source string
437
+ * at CLI-generation time to build its own jq `test()` regex.
438
+ */
439
+ export const VERDICT_MARKER_SOURCE = '^[ \\t]*(?:\\*{1,3}|_{1,3})?VERDICT:'
440
+
183
441
  /** `value` is `APPROVE`, `REQUEST CHANGES`, `LGTM`, or a DANGLING placeholder string. */
184
442
  export function extractCodeReviewVerdict(comments: string[]): VerdictExtraction {
185
443
  return extractVerdict(
@@ -7,8 +7,7 @@
7
7
  * `Doc-waiver:` grammar). Pure — no env reads here; I/O stays in the CLI
8
8
  * shim, same discipline as `pr-tier.ts`.
9
9
  *
10
- * `isWaiverLabelActorVerified` is parameterized by `label` (aeg-review-gate-v1
11
- * task 1, #474) so a second waiver label (`vinaya/waiver:review`) can reuse the exact
10
+ * `isWaiverLabelActorVerified` is parameterized by `label` so a second waiver label (`vinaya/waiver:review`) can reuse the exact
12
11
  * same actor-verification predicate rather than a copy-pasted duplicate that
13
12
  * could drift out of sync.
14
13
  *
@@ -30,7 +29,7 @@ export const PRINCIPAL_ALLOWLIST = ['daniboomerang']
30
29
  * test fails closed, but it fails closed *invisibly*: an adopter who wrote
31
30
  * `"principals": ["Alice"]` would watch Alice's genuine verdicts land as
32
31
  * DANGLING with no stated reason — precisely the baffling symptom the
33
- * `principals` field exists to remove (review finding, PR #862).
32
+ * `principals` field exists to remove (a review finding).
34
33
  *
35
34
  * Shared by every allowlist consumer so the waiver check and the review gate
36
35
  * can never disagree about whether a given login is a principal.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Workspace-escape detection (task 17, Issue #78). Neither the module
2
+ * Workspace-escape detection. Neither the module
3
3
  * dependency graph nor a literal-path grep sees a filesystem reference built
4
4
  * at runtime from a relative string — measured 2026-08-16 during attalabs'
5
5
  * adoption of the published CLI: deleting the vendored CLI workspace looked
@@ -10,7 +10,7 @@
10
10
  * relative specifier with no literal `apps/vinaya/cli` substring for the
11
11
  * grep to hit.
12
12
  *
13
- * This covers the three idioms Issue #78 names: `readFileSync`/`readFile`
13
+ * This covers three idioms: `readFileSync`/`readFile`
14
14
  * with a literal relative-path first argument, and `new URL('…',
15
15
  * import.meta.url)`. It does NOT follow `import`/`require` module
16
16
  * specifiers — the dependency graph already owns those, and duplicating it
@@ -19,7 +19,7 @@
19
19
  * Deliberately static-string-only: a literal containing `${…}` (a template
20
20
  * with interpolation) is a dynamically computed path and stays out of
21
21
  * scope, same as any non-literal argument — resolving those needs data-flow
22
- * analysis, a different and much larger job than this file (Issue #78's own
22
+ * analysis, a different and much larger job than this file (this module's own
23
23
  * stated boundary).
24
24
  *
25
25
  * Zero I/O: every input (file paths + contents, `knownPaths`) is read by the
@@ -1 +1 @@
1
- e8XbZ2vlVz40KzHmlqhwP
1
+ vl7QVqELe1AQ-9kaOd9mR
@@ -7,9 +7,9 @@
7
7
  "static/chunks/0cz1d0mv5g_q7.js"
8
8
  ],
9
9
  "lowPriorityFiles": [
10
- "static/e8XbZ2vlVz40KzHmlqhwP/_buildManifest.js",
11
- "static/e8XbZ2vlVz40KzHmlqhwP/_ssgManifest.js",
12
- "static/e8XbZ2vlVz40KzHmlqhwP/_clientMiddlewareManifest.js"
10
+ "static/vl7QVqELe1AQ-9kaOd9mR/_buildManifest.js",
11
+ "static/vl7QVqELe1AQ-9kaOd9mR/_ssgManifest.js",
12
+ "static/vl7QVqELe1AQ-9kaOd9mR/_clientMiddlewareManifest.js"
13
13
  ],
14
14
  "rootMainFiles": [
15
15
  "static/chunks/1hklle-my0ly_.js",
@@ -29,8 +29,8 @@
29
29
  "dynamicRoutes": {},
30
30
  "notFoundRoutes": [],
31
31
  "preview": {
32
- "previewModeId": "65141c8df84116b41252189eaef51f5f",
33
- "previewModeSigningKey": "e3fb12043215d7f1bb36267680c1eaec373f0efaff23e5185b9ad1a40ba00940",
34
- "previewModeEncryptionKey": "2c5b93c00607d1ddad954ae13cd49a84e970f114bb71cdfd89415b34f711e04f"
32
+ "previewModeId": "0b4bec8106881ad6bda15488c0ac9256",
33
+ "previewModeSigningKey": "160570d53b498a4f33770bcb1676a3acecb527ac8fea6edc3856dd6e5edc2276",
34
+ "previewModeEncryptionKey": "864831f840e7f66f6db17308737f150b264d649c7fae2c63876d928d8bfeafd2"
35
35
  }
36
36
  }
@@ -1 +1 @@
1
- <!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/1hklle-my0ly_.js"/><script src="/_next/static/chunks/17_s-1hcy827l.js" async=""></script><script src="/_next/static/chunks/07uwuh0d9u9c1.js" async=""></script><script src="/_next/static/chunks/2ejk_26znfoeu.js" async=""></script><script src="/_next/static/chunks/3nc6x0_y5iwnk.js" async=""></script><script src="/_next/static/chunks/0z-o7c2-25sk6.js" async=""></script><script src="/_next/static/chunks/2jbj93x-se98r.js" async=""></script><script src="/_next/static/chunks/turbopack-3u6dkkt-lw1lg.js" async=""></script><script src="/_next/static/chunks/2xi8blr--fs4h.js" async=""></script><script src="/_next/static/chunks/3exokyziuuf9m.js" async=""></script><title>500: This page couldn’t load</title><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;display:flex;align-items:center;justify-content:center"><div style="margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left"><svg width="32" height="32" viewBox="-0.2 -1.5 32 32" fill="none" style="margin-bottom:24px"><path d="M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z" fill="var(--next-error-title)"></path></svg><h1 style="font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)">This page couldn’t load</h1><p style="font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)">A server error occurred. Reload to try again.</p><form style="margin:0"><button type="submit" style="display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)">Reload</button></form></div></div><!--$--><!--/$--><script src="/_next/static/chunks/1hklle-my0ly_.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[339756,[\"/_next/static/chunks/2xi8blr--fs4h.js\",\"/_next/static/chunks/3exokyziuuf9m.js\"],\"default\"]\n3:I[837457,[\"/_next/static/chunks/2xi8blr--fs4h.js\",\"/_next/static/chunks/3exokyziuuf9m.js\"],\"default\"]\n4:I[897367,[\"/_next/static/chunks/2xi8blr--fs4h.js\",\"/_next/static/chunks/3exokyziuuf9m.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[897367,[\"/_next/static/chunks/2xi8blr--fs4h.js\",\"/_next/static/chunks/3exokyziuuf9m.js\"],\"ViewportBoundary\"]\na:I[897367,[\"/_next/static/chunks/2xi8blr--fs4h.js\",\"/_next/static/chunks/3exokyziuuf9m.js\"],\"MetadataBoundary\"]\nc:I[168027,[\"/_next/static/chunks/2xi8blr--fs4h.js\",\"/_next/static/chunks/3exokyziuuf9m.js\"],\"default\",1]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$@7\"],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],null]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"e8XbZ2vlVz40KzHmlqhwP\"}\n"])</script><script>self.__next_f.push([1,"d:[]\n7:\"$Wd\"\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"6:null\nb:[]\n"])</script></body></html>
1
+ <!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/1hklle-my0ly_.js"/><script src="/_next/static/chunks/17_s-1hcy827l.js" async=""></script><script src="/_next/static/chunks/07uwuh0d9u9c1.js" async=""></script><script src="/_next/static/chunks/2ejk_26znfoeu.js" async=""></script><script src="/_next/static/chunks/3nc6x0_y5iwnk.js" async=""></script><script src="/_next/static/chunks/0z-o7c2-25sk6.js" async=""></script><script src="/_next/static/chunks/2jbj93x-se98r.js" async=""></script><script src="/_next/static/chunks/turbopack-3u6dkkt-lw1lg.js" async=""></script><script src="/_next/static/chunks/2xi8blr--fs4h.js" async=""></script><script src="/_next/static/chunks/3exokyziuuf9m.js" async=""></script><title>500: This page couldn’t load</title><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;display:flex;align-items:center;justify-content:center"><div style="margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left"><svg width="32" height="32" viewBox="-0.2 -1.5 32 32" fill="none" style="margin-bottom:24px"><path d="M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z" fill="var(--next-error-title)"></path></svg><h1 style="font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)">This page couldn’t load</h1><p style="font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)">A server error occurred. Reload to try again.</p><form style="margin:0"><button type="submit" style="display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)">Reload</button></form></div></div><!--$--><!--/$--><script src="/_next/static/chunks/1hklle-my0ly_.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[339756,[\"/_next/static/chunks/2xi8blr--fs4h.js\",\"/_next/static/chunks/3exokyziuuf9m.js\"],\"default\"]\n3:I[837457,[\"/_next/static/chunks/2xi8blr--fs4h.js\",\"/_next/static/chunks/3exokyziuuf9m.js\"],\"default\"]\n4:I[897367,[\"/_next/static/chunks/2xi8blr--fs4h.js\",\"/_next/static/chunks/3exokyziuuf9m.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[897367,[\"/_next/static/chunks/2xi8blr--fs4h.js\",\"/_next/static/chunks/3exokyziuuf9m.js\"],\"ViewportBoundary\"]\na:I[897367,[\"/_next/static/chunks/2xi8blr--fs4h.js\",\"/_next/static/chunks/3exokyziuuf9m.js\"],\"MetadataBoundary\"]\nc:I[168027,[\"/_next/static/chunks/2xi8blr--fs4h.js\",\"/_next/static/chunks/3exokyziuuf9m.js\"],\"default\",1]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$@7\"],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],null]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"vl7QVqELe1AQ-9kaOd9mR\"}\n"])</script><script>self.__next_f.push([1,"d:[]\n7:\"$Wd\"\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"6:null\nb:[]\n"])</script></body></html>