@attalabs/vinaya 0.32.0 → 0.34.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.
- package/README.md +1 -1
- package/aeg-root/contracts/principal-operator.md +18 -5
- package/aeg-root/enforcement.md +1 -1
- package/aeg-root/glossary.md +4 -0
- package/aeg-root/roles/developer.md +3 -0
- package/aeg-root/roles/operator.md +89 -16
- package/aeg-root/roles/planner/reference.md +3 -2
- package/aeg-root/roles/planner.md +3 -1
- package/aeg-root/roles/tranche-archivist.md +1 -0
- package/aeg-root/skills/aeg-context-packets/SKILL.md +1 -1
- package/aeg-root/skills/aeg-context-packets/examples/operator-start.md +1 -1
- package/aeg-root/templates/brief-template.md +9 -7
- package/aeg-root/templates/pr-report-template.md +3 -1
- package/dist/checks/bin/check-body-bare-digits.js +213 -41
- package/dist/checks/bin/check-branch-topology.js +164 -41
- package/dist/checks/bin/check-brief-shape.js +219 -46
- package/dist/checks/bin/check-changeset-coverage.js +669 -152
- package/dist/checks/bin/check-closes-n.js +164 -41
- package/dist/checks/bin/check-coherence.js +220 -43
- package/dist/checks/bin/check-dead-branch-push.js +159 -40
- package/dist/checks/bin/check-dispatch-readiness.js +218 -42
- package/dist/checks/bin/check-doc-coverage-push.js +665 -148
- package/dist/checks/bin/check-doc-coverage.js +667 -150
- package/dist/checks/bin/check-doctrine-no-procedures.js +213 -41
- package/dist/checks/bin/check-doctrine-portability.js +666 -149
- package/dist/checks/bin/check-evidence-fresh.js +643 -125
- package/dist/checks/bin/check-exec-bits.js +663 -146
- package/dist/checks/bin/check-first-push-dispatch.js +218 -42
- package/dist/checks/bin/check-issue-assignment.js +164 -41
- package/dist/checks/bin/check-issue-milestone-attach.js +159 -40
- package/dist/checks/bin/check-issue-objectives-numbering.js +685 -41
- package/dist/checks/bin/check-issue-parts-coverage.js +159 -40
- package/dist/checks/bin/check-issue-surface-globs.js +258 -48
- package/dist/checks/bin/check-issue-title-grammar.js +159 -40
- package/dist/checks/bin/check-issue-tranche-label.js +159 -40
- package/dist/checks/bin/check-main-branch-refusal.js +159 -40
- package/dist/checks/bin/check-no-disk-state.js +159 -40
- package/dist/checks/bin/check-pr-premise-reassert.js +213 -41
- package/dist/checks/bin/check-pr-report-density.js +159 -40
- package/dist/checks/bin/check-principal-test-plan-wait.js +159 -40
- package/dist/checks/bin/check-quoted-command.js +586 -103
- package/dist/checks/bin/check-reader-resolvable-prose.js +637 -111
- package/dist/checks/bin/check-registry-gates.js +159 -40
- package/dist/checks/bin/check-retired-vocabulary.js +586 -103
- package/dist/checks/bin/check-review-gate.js +284 -152
- package/dist/checks/bin/check-single-plan-pr.js +159 -40
- package/dist/checks/bin/check-surface-scope.js +164 -41
- package/dist/checks/bin/check-test-plan.js +159 -40
- package/dist/checks/bin/check-token-collection-wired.js +159 -40
- package/dist/checks/bin/check-token-report.js +159 -40
- package/dist/checks/bin/check-workspace-escape.js +664 -147
- package/dist/index.js +3932 -1118
- package/dist/lib/pre-push-cache-test-run.js +507 -72
- package/dist/lib/pre-push-select-tests.js +136 -13
- package/package.json +1 -1
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/actions.ts +10 -12
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/anchored-region.ts +5 -5
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/archive-task.ts +42 -17
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/baseline-capture.ts +1 -2
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/branch-topology-gate.ts +3 -3
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/brief-render.ts +554 -95
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/brief-validation.ts +264 -44
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/claude-code-transcript.ts +9 -9
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/coherence-checks.ts +211 -30
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/consumer-enumeration.ts +2 -2
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/control-store/index.ts +75 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/control-store/local.ts +961 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/control-store/migration.ts +222 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/control-store/outcomes.ts +135 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/control-store/records.ts +394 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/dead-branch-push-audit.ts +1 -2
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/dead-branch-push-guard.ts +1 -1
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/derive-section7.ts +2 -2
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/dev-review-loop/assess-round.ts +514 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/dev-review-loop/fakes.ts +110 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/dev-review-loop/index.ts +30 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/dev-review-loop/journal-reconstruction.ts +219 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/dev-review-loop/render-summary.ts +97 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/dev-review-loop/types.ts +240 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/diagram-model.ts +1 -1
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/direct-main-push.ts +1 -2
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/dispatch-gate.ts +65 -22
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/doc-claim.ts +238 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/doc-owners.ts +14 -1
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/docs/docs-coherence.ts +1 -1
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/docs/legacy-anchors.ts +1 -1
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/docs/node-route.ts +1 -1
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/docs/surfaced-manifest.ts +1 -1
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/doctrine-no-procedures.ts +1 -1
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/doctrine-portability.ts +5 -5
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/ensure-label.ts +1 -1
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/first-push-dispatch-gate.ts +1 -1
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/gate-audience.ts +14 -3
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/index.ts +425 -11
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/issue-assignment.ts +3 -4
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/issue-validation.ts +1450 -33
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/leftover-detection.ts +1 -2
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/local-anchor-coverage.ts +2 -2
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/log/envelope.ts +119 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/log/index.ts +75 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/log/redact.ts +87 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/log/schema.ts +801 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/log/store.ts +373 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/main-branch-refusal.ts +2 -2
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/metering-io-guard.ts +1 -1
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/milestone-validation.ts +2 -3
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/no-disk-state.ts +2 -2
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/objectives.ts +288 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/parse-token-report.ts +3 -3
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/parse-tranche.ts +1 -1
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/pr-report-density.ts +30 -16
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/pr-tier.ts +17 -1
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/premise-check.ts +1 -1
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/quoted-command.ts +1 -1
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/reader-resolvable-prose.ts +267 -19
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/registry-checks.ts +91 -24
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/registry-scaffold.ts +6 -6
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/report-tokens.ts +4 -4
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/review-gate.ts +254 -110
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/review-input-manifest.ts +384 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/review-policy.ts +208 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/review-status.ts +80 -28
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/ruling-ordinal.ts +92 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/single-plan-pr.ts +4 -4
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/state-machine-model.ts +40 -27
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/symbol-collisions.ts +2 -2
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/task-branch-identity.ts +38 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/task-phase-history.ts +194 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/task-tools.ts +712 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/test-plan-gate.ts +7 -9
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/test-plan-section.ts +5 -5
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/types.ts +4 -4
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/verdict-extraction.ts +368 -56
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/waiver-label.ts +2 -3
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/workspace-escape.ts +3 -3
- package/studio-standalone/apps/vinaya-studio/web/.next/BUILD_ID +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/build-manifest.json +3 -3
- package/studio-standalone/apps/vinaya-studio/web/.next/prerender-manifest.json +3 -3
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/_global-error.html +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/_global-error.rsc +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/_not-found/page/server-reference-manifest.json +2 -2
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/api/coherence/route.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/api/coherence/route.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/page/server-reference-manifest.json +2 -2
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/page_client-reference-manifest.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/backlog/page/server-reference-manifest.json +2 -2
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/backlog/page.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/backlog/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/backlog/page_client-reference-manifest.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/page/server-reference-manifest.json +2 -2
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/page.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/page_client-reference-manifest.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/[name]/page/server-reference-manifest.json +2 -2
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/[name]/page.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/[name]/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/[name]/page_client-reference-manifest.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/[name]/tranches/[slug]/page/server-reference-manifest.json +3 -3
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/[name]/tranches/[slug]/page.js +2 -2
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/[name]/tranches/[slug]/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/[name]/tranches/[slug]/page_client-reference-manifest.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/[name]/tranches/[slug]/tasks/[taskId]/page/server-reference-manifest.json +2 -2
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/[name]/tranches/[slug]/tasks/[taskId]/page.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/[name]/tranches/[slug]/tasks/[taskId]/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/[name]/tranches/[slug]/tasks/[taskId]/page_client-reference-manifest.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/page/server-reference-manifest.json +2 -2
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/page.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/projects/page_client-reference-manifest.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/tranches/page/server-reference-manifest.json +2 -2
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/tranches/page.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/tranches/page.js.nft.json +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/studio/tranches/page_client-reference-manifest.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/{[externals]__1agj1ww._.js → [externals]__0cki-x_._.js} +2 -2
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/[root-of-the-server]__02a-3g8._.js +6 -6
- 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
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/[root-of-the-server]__074w9nf._.js +3 -0
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/{[root-of-the-server]__0r7e54g._.js → [root-of-the-server]__07uhu5z._.js} +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/[root-of-the-server]__0ls23oh._.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/[root-of-the-server]__1gjqmhq._.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/[root-of-the-server]__1wc4-ip._.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/{[root-of-the-server]__1r47dr7._.js → _08onyya._.js} +3 -3
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_096f46i._.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_0af2one._.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_0e5tkdd._.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_0kf2g72._.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_0y1jv16._.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_0zf4d27._.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_1-wo68i._.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_15gdg48._.js +5 -5
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_1achbh9._.js +1 -1
- 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
- package/studio-standalone/apps/vinaya-studio/web/.next/server/middleware-build-manifest.js +3 -3
- package/studio-standalone/apps/vinaya-studio/web/.next/server/pages/500.html +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/server-reference-manifest.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/server-reference-manifest.json +4 -4
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/0bjnj-5fy4e7l.js +1 -0
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/0ko698wh8xx2g.css +1 -0
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/{1dc2_-c_gavj1.js → 0q9p7c6vn-x2w.js} +4 -4
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/{3xg6-flovrcx-.js → 2174nz5he_oc4.js} +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/3xnma0-359j17.js +1 -0
- package/studio-standalone/apps/vinaya-studio/web/package.json +2 -2
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/[root-of-the-server]__0hstap0._.js +0 -3
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/0bm4nrrzwc7zi.css +0 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/2t_rfsztmwu6y.js +0 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/3ua4rm5f-a9k6.js +0 -1
- /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/vinaya/studio-standalone/_node_modules/@attalabs/aeg-core}/bin/verify-coherence.ts +0 -0
- /package/studio-standalone/apps/vinaya-studio/web/.next/static/{e8XbZ2vlVz40KzHmlqhwP → HmoeqXdX1E4drt7GReFOO}/_buildManifest.js +0 -0
- /package/studio-standalone/apps/vinaya-studio/web/.next/static/{e8XbZ2vlVz40KzHmlqhwP → HmoeqXdX1E4drt7GReFOO}/_clientMiddlewareManifest.js +0 -0
- /package/studio-standalone/apps/vinaya-studio/web/.next/static/{e8XbZ2vlVz40KzHmlqhwP → HmoeqXdX1E4drt7GReFOO}/_ssgManifest.js +0 -0
|
@@ -195,8 +195,8 @@ function maskIndentedCode(body, fill) {
|
|
|
195
195
|
var SECTION_HEADER = /\*\*Dependency rationale\*\*/i;
|
|
196
196
|
var NEXT_HEADER = /\*\*[A-Z][^*]*\*\*/;
|
|
197
197
|
var FIELD_LABEL = /^(Depends-on|Conflicts-with)\s*:\s*(.*)$/i;
|
|
198
|
-
var ID_TOKEN = /^(?:[\w.-]+\s+)?#?\d
|
|
199
|
-
var SLUG_QUALIFIED_ID = /^([\w.-]+)\s+(#?\d+
|
|
198
|
+
var ID_TOKEN = /^(?:[\w.-]+\s+)?#?\d+$/i;
|
|
199
|
+
var SLUG_QUALIFIED_ID = /^([\w.-]+)\s+(#?\d+)$/i;
|
|
200
200
|
function splitSlugQualifiedEdge(edge) {
|
|
201
201
|
const m = edge.trim().match(SLUG_QUALIFIED_ID);
|
|
202
202
|
if (!m)
|
|
@@ -2044,12 +2044,24 @@ function extractBaseSha(comment) {
|
|
|
2044
2044
|
const m = firstThirteenLines(comment).match(BASE_SHA_PATTERN);
|
|
2045
2045
|
return m ? m[1].toLowerCase() : null;
|
|
2046
2046
|
}
|
|
2047
|
-
var
|
|
2047
|
+
var FINDING_DESCRIPTION_STATE = /^F(\d+)(?:\s+\S+)?(?:\s+(open|fix-claimed|reproduced|resolved))?:/;
|
|
2048
|
+
function parseFindingState(description) {
|
|
2049
|
+
const m = FINDING_DESCRIPTION_STATE.exec(description.trim());
|
|
2050
|
+
if (!m)
|
|
2051
|
+
return { id: null, state: null };
|
|
2052
|
+
return { id: `F${m[1]}`, state: m[2] ?? null };
|
|
2053
|
+
}
|
|
2054
|
+
var FINDING_SEVERITY_LINE = /^\d+\.\s+\[([A-Z][A-Z]*)\]\s+(.+?)\s+—(?:\s+(.*))?$/gm;
|
|
2048
2055
|
function extractFindingSeverities(comment) {
|
|
2049
|
-
return [...comment.matchAll(FINDING_SEVERITY_LINE)].map((m) =>
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2056
|
+
return [...comment.matchAll(FINDING_SEVERITY_LINE)].map((m) => {
|
|
2057
|
+
const { id, state } = parseFindingState(m[3] ?? "");
|
|
2058
|
+
return {
|
|
2059
|
+
severity: m[1],
|
|
2060
|
+
location: m[2],
|
|
2061
|
+
id,
|
|
2062
|
+
state
|
|
2063
|
+
};
|
|
2064
|
+
});
|
|
2053
2065
|
}
|
|
2054
2066
|
function extractVerdict(comments, valuePattern, missingLabel) {
|
|
2055
2067
|
const candidates = comments.filter((c) => valuePattern.test(c));
|
|
@@ -2463,6 +2475,12 @@ function evaluateReviewFindings(findings, scale, threshold) {
|
|
|
2463
2475
|
});
|
|
2464
2476
|
return { outcome: blockingFindings.length > 0 ? "blocked" : "clean", blockingFindings };
|
|
2465
2477
|
}
|
|
2478
|
+
function isConsequentialFinding(finding) {
|
|
2479
|
+
return finding.state !== "resolved";
|
|
2480
|
+
}
|
|
2481
|
+
function consequentialFindings(findings) {
|
|
2482
|
+
return findings.filter((f) => isConsequentialFinding(f));
|
|
2483
|
+
}
|
|
2466
2484
|
function evaluateCodeReview(findings, policy) {
|
|
2467
2485
|
return evaluateReviewFindings(findings, CODE_REVIEW_SEVERITY_ORDER, policy.codeReviewThreshold);
|
|
2468
2486
|
}
|
|
@@ -2599,7 +2617,7 @@ function isIssueNotFoundError(err) {
|
|
|
2599
2617
|
return /could not resolve to an (?:issue|pull request)|\b404\b|not found/i.test(haystack);
|
|
2600
2618
|
}
|
|
2601
2619
|
function resolveObjectivesSource(prBody, issue, cutoverIssue) {
|
|
2602
|
-
if (issue !== null && issue < cutoverIssue)
|
|
2620
|
+
if (issue !== null && cutoverIssue !== null && issue < cutoverIssue)
|
|
2603
2621
|
return { kind: "none" };
|
|
2604
2622
|
if (issue !== null)
|
|
2605
2623
|
return { kind: "issue", issue };
|
|
@@ -2875,9 +2893,18 @@ var COMMIT_TYPES = [
|
|
|
2875
2893
|
];
|
|
2876
2894
|
var COMMIT_TYPE_STYLE = new RegExp(`^(${COMMIT_TYPES.join("|")})(\\([a-z0-9-]+\\))?: \\S`);
|
|
2877
2895
|
function checkForgeTitle(title) {
|
|
2878
|
-
const taskStyle = /^\[[a-z0-9._-]+\] \
|
|
2896
|
+
const taskStyle = /^\[[a-z0-9._-]+\] \d+ — \S/;
|
|
2879
2897
|
if (COMMIT_TYPE_STYLE.test(title) || taskStyle.test(title))
|
|
2880
2898
|
return { status: "pass", errors: [] };
|
|
2899
|
+
const letteredTaskId = /^\[[a-z0-9._-]+\] (\S+) — \S/.exec(title);
|
|
2900
|
+
if (letteredTaskId) {
|
|
2901
|
+
return {
|
|
2902
|
+
status: "fail",
|
|
2903
|
+
errors: [
|
|
2904
|
+
`brief-validation title: "${title}" names task id \`${letteredTaskId[1]}\` — task ids are whole numbers (\`1\`, \`2\`), never lettered (\`2a\`). \`vinaya task run\` and \`task dispatch\` refuse a non-numeric id, so a plan titled this way names a task that cannot be started.`
|
|
2905
|
+
]
|
|
2906
|
+
};
|
|
2907
|
+
}
|
|
2881
2908
|
return {
|
|
2882
2909
|
status: "fail",
|
|
2883
2910
|
errors: [
|
|
@@ -2910,19 +2937,31 @@ function checkNoAgentBoxes(prBody) {
|
|
|
2910
2937
|
]
|
|
2911
2938
|
};
|
|
2912
2939
|
}
|
|
2913
|
-
function
|
|
2940
|
+
function rolloutRuleFor(message) {
|
|
2914
2941
|
if (message.startsWith("brief-validation unpinned code claim:") || message.startsWith("brief-validation commands carry output:") || message.startsWith("brief-validation consumer tests:") || message.startsWith("brief-validation defeat cases:")) {
|
|
2915
|
-
return
|
|
2942
|
+
return "briefRules";
|
|
2916
2943
|
}
|
|
2917
2944
|
if (message.startsWith("brief-validation no agent boxes:"))
|
|
2918
|
-
return
|
|
2945
|
+
return "agentBoxes";
|
|
2946
|
+
return null;
|
|
2947
|
+
}
|
|
2948
|
+
var DEFAULT_BRIEF_ROLLOUT_CUTOVERS = {
|
|
2949
|
+
briefRulesSincePr: BRIEF_RULES_SINCE_PR,
|
|
2950
|
+
agentBoxesRefusedSincePr: AGENT_BOXES_REFUSED_SINCE_PR
|
|
2951
|
+
};
|
|
2952
|
+
function rolloutThresholdFor(message, cutovers) {
|
|
2953
|
+
const rule = rolloutRuleFor(message);
|
|
2954
|
+
if (rule === "briefRules")
|
|
2955
|
+
return cutovers.briefRulesSincePr;
|
|
2956
|
+
if (rule === "agentBoxes")
|
|
2957
|
+
return cutovers.agentBoxesRefusedSincePr;
|
|
2919
2958
|
return null;
|
|
2920
2959
|
}
|
|
2921
|
-
function partitionBriefErrorsByRollout(errors, prNumber) {
|
|
2960
|
+
function partitionBriefErrorsByRollout(errors, prNumber, cutovers = DEFAULT_BRIEF_ROLLOUT_CUTOVERS) {
|
|
2922
2961
|
const blocking = [];
|
|
2923
2962
|
const info = [];
|
|
2924
2963
|
for (const e of errors) {
|
|
2925
|
-
const threshold = rolloutThresholdFor(e);
|
|
2964
|
+
const threshold = rolloutThresholdFor(e, cutovers);
|
|
2926
2965
|
const grandfathered = threshold !== null && prNumber !== null && prNumber < threshold;
|
|
2927
2966
|
(grandfathered ? info : blocking).push(e);
|
|
2928
2967
|
}
|
|
@@ -3390,8 +3429,8 @@ function checkIssueRationale(body) {
|
|
|
3390
3429
|
return { status: errors.length > 0 ? "fail" : "pass", errors };
|
|
3391
3430
|
}
|
|
3392
3431
|
var OBJECTIVES_SINCE_ISSUE = 404;
|
|
3393
|
-
function checkIssueObjectives(body, issueNumber) {
|
|
3394
|
-
if (issueNumber !== null && issueNumber <
|
|
3432
|
+
function checkIssueObjectives(body, issueNumber, sinceIssue = OBJECTIVES_SINCE_ISSUE) {
|
|
3433
|
+
if (sinceIssue !== null && issueNumber !== null && issueNumber < sinceIssue)
|
|
3395
3434
|
return { status: "pass", errors: [] };
|
|
3396
3435
|
const result = objectivesOf(body);
|
|
3397
3436
|
if (result.ok)
|
|
@@ -3836,7 +3875,7 @@ function resolveDepEntry(dep, trancheSlug, issueToEntry, taskToEntry) {
|
|
|
3836
3875
|
return issueToEntry.get(Number(issueMatch[1]));
|
|
3837
3876
|
return taskToEntry.get(`${trancheSlug}/${dep}`) ?? taskToEntry.get(dep);
|
|
3838
3877
|
}
|
|
3839
|
-
function checkR1(issuesBySlug, grandfatheredIssues, registeredNames = []) {
|
|
3878
|
+
function checkR1(issuesBySlug, grandfatheredIssues, registeredNames = [], objectivesSinceIssue) {
|
|
3840
3879
|
const failures = [];
|
|
3841
3880
|
for (const [slug, issues] of issuesBySlug) {
|
|
3842
3881
|
for (const issue of issues) {
|
|
@@ -3845,7 +3884,7 @@ function checkR1(issuesBySlug, grandfatheredIssues, registeredNames = []) {
|
|
|
3845
3884
|
const errors = [
|
|
3846
3885
|
...checkIssueRationale(issue.body).errors,
|
|
3847
3886
|
...checkProjectsRegistered(issue.body, issue.labels, registeredNames).errors,
|
|
3848
|
-
...checkIssueObjectives(issue.body, issue.number).errors,
|
|
3887
|
+
...checkIssueObjectives(issue.body, issue.number, objectivesSinceIssue).errors,
|
|
3849
3888
|
...checkPartsCiteDefinedObjectives(issue.body).errors
|
|
3850
3889
|
];
|
|
3851
3890
|
if (errors.length === 0)
|
|
@@ -4095,8 +4134,8 @@ function checkReviewGate(input) {
|
|
|
4095
4134
|
let codeReviewPolicyEvaluation;
|
|
4096
4135
|
let securityPolicyEvaluation;
|
|
4097
4136
|
try {
|
|
4098
|
-
codeReviewPolicyEvaluation = evaluateCodeReview(codeReview.findingSeverities, policy);
|
|
4099
|
-
securityPolicyEvaluation = evaluateSecurityReview(security.findingSeverities, policy);
|
|
4137
|
+
codeReviewPolicyEvaluation = evaluateCodeReview(consequentialFindings(codeReview.findingSeverities), policy);
|
|
4138
|
+
securityPolicyEvaluation = evaluateSecurityReview(consequentialFindings(security.findingSeverities), policy);
|
|
4100
4139
|
} catch (err) {
|
|
4101
4140
|
return {
|
|
4102
4141
|
verdict: "fail",
|
|
@@ -4468,13 +4507,27 @@ var SHIPS_PREFIX = "aeg-root/";
|
|
|
4468
4507
|
function shipsArchivePrefix(shipsPrefix) {
|
|
4469
4508
|
return `${shipsPrefix}tranches/completed/`;
|
|
4470
4509
|
}
|
|
4471
|
-
|
|
4472
|
-
|
|
4510
|
+
var DEFAULT_SPEC_PATHS = ["SPEC.md", "CONTEXT.md", "docs/adr"];
|
|
4511
|
+
function normalizeSpecPath(entry) {
|
|
4512
|
+
let out = entry.replace(/\\/g, "/");
|
|
4513
|
+
while (out.startsWith("./"))
|
|
4514
|
+
out = out.slice(2);
|
|
4515
|
+
out = out.replace(/\/{2,}/g, "/");
|
|
4516
|
+
while (out.endsWith("/"))
|
|
4517
|
+
out = out.slice(0, -1);
|
|
4518
|
+
return out;
|
|
4519
|
+
}
|
|
4520
|
+
function isSpecFile2(path, specPaths) {
|
|
4521
|
+
if (path.startsWith("apps/") && path.includes("/specs/") && path.endsWith(".md"))
|
|
4522
|
+
return true;
|
|
4523
|
+
if (!path.endsWith(".md"))
|
|
4524
|
+
return false;
|
|
4525
|
+
return specPaths.some((entry) => isUnderOrEqual(path, normalizeSpecPath(entry)));
|
|
4473
4526
|
}
|
|
4474
4527
|
function isClaudeMdFile(path) {
|
|
4475
4528
|
return path === "CLAUDE.md" || path.endsWith("/CLAUDE.md");
|
|
4476
4529
|
}
|
|
4477
|
-
function classifyProseFile(path, readerFacingPrefix, readerFacingSuffix, shipsPrefix = SHIPS_PREFIX) {
|
|
4530
|
+
function classifyProseFile(path, readerFacingPrefix, readerFacingSuffix, shipsPrefix = SHIPS_PREFIX, specPaths = DEFAULT_SPEC_PATHS) {
|
|
4478
4531
|
if (path.startsWith(shipsPrefix)) {
|
|
4479
4532
|
return path.startsWith(shipsArchivePrefix(shipsPrefix)) ? "internal" : "ships";
|
|
4480
4533
|
}
|
|
@@ -4483,7 +4536,7 @@ function classifyProseFile(path, readerFacingPrefix, readerFacingSuffix, shipsPr
|
|
|
4483
4536
|
}
|
|
4484
4537
|
if (isClaudeMdFile(path))
|
|
4485
4538
|
return "internal";
|
|
4486
|
-
if (isSpecFile2(path))
|
|
4539
|
+
if (isSpecFile2(path, specPaths))
|
|
4487
4540
|
return "spec";
|
|
4488
4541
|
if (isProductScopeFile(path))
|
|
4489
4542
|
return "product";
|
|
@@ -4512,13 +4565,14 @@ function lineAt(content, index) {
|
|
|
4512
4565
|
}
|
|
4513
4566
|
var FORGE_NUMBER_PATTERN = /#[0-9]{2,4}/g;
|
|
4514
4567
|
var TRANCHE_SLUG_VN_PATTERN = /[a-z][a-z-]+-v[0-9]/g;
|
|
4568
|
+
var TASK_NUMBER_PATTERN = /(^|[^a-z0-9-])(tasks?[ \t]+#?[0-9]+)/gi;
|
|
4515
4569
|
function legacySlugPattern(legacySlugs) {
|
|
4516
4570
|
if (legacySlugs.length === 0)
|
|
4517
4571
|
return null;
|
|
4518
4572
|
const alternation = legacySlugs.map((s) => s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("|");
|
|
4519
4573
|
return new RegExp(`(^|[^a-zA-Z0-9\\n-])(${alternation})([^a-zA-Z0-9\\n-]|$)`, "g");
|
|
4520
4574
|
}
|
|
4521
|
-
function checkUnresolvableReferences(files, readerFacingPrefix, readerFacingSuffix, legacySlugs = [], shipsPrefix = SHIPS_PREFIX, specGrandfather = []) {
|
|
4575
|
+
function checkUnresolvableReferences(files, readerFacingPrefix, readerFacingSuffix, legacySlugs = [], shipsPrefix = SHIPS_PREFIX, specGrandfather = [], specPaths = DEFAULT_SPEC_PATHS) {
|
|
4522
4576
|
const findings = [];
|
|
4523
4577
|
const legacyPattern = legacySlugPattern(legacySlugs);
|
|
4524
4578
|
const grandfathered = new Set(specGrandfather);
|
|
@@ -4530,8 +4584,12 @@ function checkUnresolvableReferences(files, readerFacingPrefix, readerFacingSuff
|
|
|
4530
4584
|
const productPatterns = [
|
|
4531
4585
|
{ pattern: TRANCHE_SLUG_VN_PATTERN, what: "an internal tranche slug in product code" }
|
|
4532
4586
|
];
|
|
4587
|
+
const specPatterns = [
|
|
4588
|
+
...patterns,
|
|
4589
|
+
{ pattern: TASK_NUMBER_PATTERN, what: "a task number", group: 2 }
|
|
4590
|
+
];
|
|
4533
4591
|
for (const file of files) {
|
|
4534
|
-
const cls = classifyProseFile(file.path, readerFacingPrefix, readerFacingSuffix, shipsPrefix);
|
|
4592
|
+
const cls = classifyProseFile(file.path, readerFacingPrefix, readerFacingSuffix, shipsPrefix, specPaths);
|
|
4535
4593
|
if (!cls || cls === "internal")
|
|
4536
4594
|
continue;
|
|
4537
4595
|
if (cls !== "product" && cls !== "spec" && !SWEPT_CLASSES.has(cls))
|
|
@@ -4540,15 +4598,16 @@ function checkUnresolvableReferences(files, readerFacingPrefix, readerFacingSuff
|
|
|
4540
4598
|
continue;
|
|
4541
4599
|
const blocking = cls === "product" || cls === "spec";
|
|
4542
4600
|
const scrubbed = cls === "product" ? stripNonProseForProduct(file.path, file.content) : stripNonProse(file.path, file.content);
|
|
4543
|
-
const patternsToRun = cls === "product" ? productPatterns : patterns;
|
|
4601
|
+
const patternsToRun = cls === "product" ? productPatterns : cls === "spec" ? specPatterns : patterns;
|
|
4544
4602
|
for (const { pattern, what, group } of patternsToRun) {
|
|
4545
4603
|
pattern.lastIndex = 0;
|
|
4546
4604
|
let match = pattern.exec(scrubbed);
|
|
4547
4605
|
while (match !== null) {
|
|
4548
4606
|
const cited = group !== undefined ? match[group] ?? match[0] : match[0];
|
|
4607
|
+
const citedIndex = match.index + match[0].indexOf(cited);
|
|
4549
4608
|
findings.push({
|
|
4550
4609
|
file: file.path,
|
|
4551
|
-
line: lineAt(scrubbed,
|
|
4610
|
+
line: lineAt(scrubbed, citedIndex),
|
|
4552
4611
|
message: `references ${what} ("${cited}") a reader outside this repo's tracker cannot resolve`,
|
|
4553
4612
|
blocking
|
|
4554
4613
|
});
|
|
@@ -4734,9 +4793,9 @@ function checkSourceComments(files, allowlist = []) {
|
|
|
4734
4793
|
}
|
|
4735
4794
|
return findings;
|
|
4736
4795
|
}
|
|
4737
|
-
function checkReaderResolvableProse(files, glossaryTerms, readerFacingPrefix, readerFacingSuffix, legacySlugs = [], shipsPrefix = SHIPS_PREFIX, specGrandfather = []) {
|
|
4796
|
+
function checkReaderResolvableProse(files, glossaryTerms, readerFacingPrefix, readerFacingSuffix, legacySlugs = [], shipsPrefix = SHIPS_PREFIX, specGrandfather = [], specPaths = DEFAULT_SPEC_PATHS) {
|
|
4738
4797
|
return [
|
|
4739
|
-
...checkUnresolvableReferences(files, readerFacingPrefix, readerFacingSuffix, legacySlugs, shipsPrefix, specGrandfather),
|
|
4798
|
+
...checkUnresolvableReferences(files, readerFacingPrefix, readerFacingSuffix, legacySlugs, shipsPrefix, specGrandfather, specPaths),
|
|
4740
4799
|
...checkUndefinedVocabulary(files, glossaryTerms, readerFacingPrefix, readerFacingSuffix, shipsPrefix)
|
|
4741
4800
|
];
|
|
4742
4801
|
}
|
|
@@ -5177,15 +5236,32 @@ var ObservedSchema = z.object({
|
|
|
5177
5236
|
var TaskStatusInputSchema = z.object({
|
|
5178
5237
|
task: TaskToolRefSchema.optional()
|
|
5179
5238
|
}).merge(PageRequestSchema).strict();
|
|
5239
|
+
var TaskConfidenceSchema = z.object({
|
|
5240
|
+
round: z.number().int().positive(),
|
|
5241
|
+
percent: z.number().int().min(0).max(100).nullable(),
|
|
5242
|
+
source: z.enum(["stated", "published-summary"])
|
|
5243
|
+
}).strict();
|
|
5244
|
+
var TaskPhaseHistorySchema = z.object({
|
|
5245
|
+
typicalPhaseMinutes: z.number().nonnegative(),
|
|
5246
|
+
typicalPhaseSamples: z.number().int().positive()
|
|
5247
|
+
}).strict();
|
|
5180
5248
|
var TaskStatusItemSchema = z.object({
|
|
5181
5249
|
task: TaskToolRefSchema,
|
|
5182
5250
|
issue: z.number().int().positive(),
|
|
5183
5251
|
pr: z.number().int().positive().nullable(),
|
|
5184
|
-
state: z.string()
|
|
5252
|
+
state: z.string(),
|
|
5253
|
+
round: z.number().int().positive().nullable().optional(),
|
|
5254
|
+
phase: z.string().min(1).nullable().optional(),
|
|
5255
|
+
minutesInPhase: z.number().nonnegative().nullable().optional(),
|
|
5256
|
+
phaseIsCurrent: z.boolean().nullable().optional(),
|
|
5257
|
+
lastConfidence: TaskConfidenceSchema.nullable().optional(),
|
|
5258
|
+
lastConfidenceUnread: z.boolean().optional(),
|
|
5259
|
+
phaseHistory: TaskPhaseHistorySchema.nullable().optional()
|
|
5185
5260
|
}).merge(ObservedSchema);
|
|
5186
5261
|
var TaskStatusResultSchema = z.object({
|
|
5187
5262
|
items: z.array(TaskStatusItemSchema),
|
|
5188
|
-
nextCursor: z.string().nullable()
|
|
5263
|
+
nextCursor: z.string().nullable(),
|
|
5264
|
+
table: z.string()
|
|
5189
5265
|
});
|
|
5190
5266
|
var RequestedAuthoritySchema = z.enum(["planner", "principal", "operator", "self"]);
|
|
5191
5267
|
var EscalationInputsSchema = z.object({
|
|
@@ -5193,7 +5269,7 @@ var EscalationInputsSchema = z.object({
|
|
|
5193
5269
|
round: z.number().int().nonnegative(),
|
|
5194
5270
|
head: z.string(),
|
|
5195
5271
|
branch: z.string(),
|
|
5196
|
-
prNumber: z.number().int().positive()
|
|
5272
|
+
prNumber: z.number().int().positive().nullable()
|
|
5197
5273
|
});
|
|
5198
5274
|
var EscalationEvidenceSchema = z.object({
|
|
5199
5275
|
round: z.number().int().nonnegative(),
|
|
@@ -5229,13 +5305,45 @@ var TaskEscalationReadResultSchema = z.object({
|
|
|
5229
5305
|
items: z.array(TaskEscalationPacketSchema),
|
|
5230
5306
|
nextCursor: z.string().nullable()
|
|
5231
5307
|
}).merge(ObservedSchema);
|
|
5232
|
-
var
|
|
5233
|
-
|
|
5234
|
-
|
|
5308
|
+
var TaskPrCheckSchema = z.object({
|
|
5309
|
+
name: z.string(),
|
|
5310
|
+
required: z.boolean(),
|
|
5311
|
+
status: z.string(),
|
|
5312
|
+
conclusion: z.string().nullable(),
|
|
5313
|
+
detailsUrl: z.string().nullable(),
|
|
5314
|
+
failureSummary: z.string().nullable()
|
|
5315
|
+
});
|
|
5316
|
+
var TaskPrVerdictSchema = z.object({
|
|
5317
|
+
role: z.enum(["code-review", "security"]),
|
|
5318
|
+
value: z.string(),
|
|
5319
|
+
judgedHead: z.string().nullable(),
|
|
5320
|
+
objectivesVersion: z.string().nullable()
|
|
5321
|
+
});
|
|
5322
|
+
var TaskPrPauseSchema = z.object({
|
|
5323
|
+
reason: z.string(),
|
|
5324
|
+
body: z.string()
|
|
5325
|
+
});
|
|
5326
|
+
var TaskPrReviewRecordSchema = z.object({
|
|
5327
|
+
verdicts: z.array(TaskPrVerdictSchema),
|
|
5328
|
+
roundMarkers: z.array(z.number().int().nonnegative()),
|
|
5329
|
+
summaryTable: z.string().nullable(),
|
|
5330
|
+
pause: TaskPrPauseSchema.nullable()
|
|
5331
|
+
});
|
|
5332
|
+
var TaskPrReadInputSchema = z.object({
|
|
5333
|
+
task: TaskToolRefSchema,
|
|
5334
|
+
pr: z.number().int().positive().optional()
|
|
5235
5335
|
}).strict();
|
|
5336
|
+
var TaskPrReadResultSchema = z.object({
|
|
5337
|
+
task: TaskToolRefSchema,
|
|
5338
|
+
issue: z.number().int().positive(),
|
|
5339
|
+
pr: z.number().int().positive(),
|
|
5340
|
+
head: z.string().nullable(),
|
|
5341
|
+
checks: z.array(TaskPrCheckSchema),
|
|
5342
|
+
review: TaskPrReviewRecordSchema
|
|
5343
|
+
}).merge(ObservedSchema);
|
|
5236
5344
|
var TaskStartResultSchema = z.object({
|
|
5237
5345
|
requestId: z.string().min(1),
|
|
5238
|
-
run:
|
|
5346
|
+
run: TaskToolRefSchema,
|
|
5239
5347
|
started: z.boolean(),
|
|
5240
5348
|
startedAt: z.string(),
|
|
5241
5349
|
mode: z.literal("attended")
|
|
@@ -5249,7 +5357,7 @@ var TaskCancelInputSchema = z.object({
|
|
|
5249
5357
|
}).strict();
|
|
5250
5358
|
var TaskResumeResultSchema = z.object({
|
|
5251
5359
|
task: z.number().int().positive(),
|
|
5252
|
-
pr: z.number().int().positive(),
|
|
5360
|
+
pr: z.number().int().positive().nullable(),
|
|
5253
5361
|
escalationId: z.string().min(1),
|
|
5254
5362
|
outcome: z.enum(["started", "already_resumed"]),
|
|
5255
5363
|
authenticatedBy: z.string().min(1),
|
|
@@ -5258,7 +5366,7 @@ var TaskResumeResultSchema = z.object({
|
|
|
5258
5366
|
var TaskCancelOutcomeSchema = z.enum(["confirmed", "pending", "uncertain"]);
|
|
5259
5367
|
var TaskCancelResultSchema = z.object({
|
|
5260
5368
|
task: z.number().int().positive(),
|
|
5261
|
-
pr: z.number().int().positive(),
|
|
5369
|
+
pr: z.number().int().positive().nullable(),
|
|
5262
5370
|
escalationId: z.string().min(1),
|
|
5263
5371
|
outcome: TaskCancelOutcomeSchema,
|
|
5264
5372
|
authenticatedBy: z.string().min(1),
|
|
@@ -5269,6 +5377,7 @@ var TASK_TOOL_NAMES = [
|
|
|
5269
5377
|
"task_start",
|
|
5270
5378
|
"task_status",
|
|
5271
5379
|
"task_escalation_read",
|
|
5380
|
+
"task_pr_read",
|
|
5272
5381
|
"task_resume",
|
|
5273
5382
|
"task_cancel"
|
|
5274
5383
|
];
|
|
@@ -5496,6 +5605,14 @@ function findWorkspaceEscapes(files, knownPaths, workspaceDirs = DEFAULT_WORKSPA
|
|
|
5496
5605
|
}
|
|
5497
5606
|
return findings;
|
|
5498
5607
|
}
|
|
5608
|
+
// ../../packages/aeg-core/src/gate-cutovers.ts
|
|
5609
|
+
var NO_GATE_CUTOVERS = {
|
|
5610
|
+
objectivesSinceIssue: null,
|
|
5611
|
+
briefSectionsSinceIssue: null,
|
|
5612
|
+
documentationSinceIssue: null,
|
|
5613
|
+
briefRulesSincePr: null,
|
|
5614
|
+
agentBoxesRefusedSincePr: null
|
|
5615
|
+
};
|
|
5499
5616
|
// ../../packages/aeg-core/src/dev-review-loop/types.ts
|
|
5500
5617
|
var SEVERITY_COLUMNS = ["blocker", "major", "minor", "critical", "high", "medium", "low"];
|
|
5501
5618
|
// ../../packages/aeg-core/src/dev-review-loop/journal-reconstruction.ts
|
|
@@ -5945,6 +6062,8 @@ function attemptFromEnv(value) {
|
|
|
5945
6062
|
function provenanceFor(input) {
|
|
5946
6063
|
if (input.provenance)
|
|
5947
6064
|
return input.provenance;
|
|
6065
|
+
if (issueFromTask(input.env.task) === null && (input.branchIssue ?? null) !== null)
|
|
6066
|
+
return "unavailable";
|
|
5948
6067
|
if (input.env.role || input.env.task)
|
|
5949
6068
|
return "env_correlated";
|
|
5950
6069
|
return "unavailable";
|
|
@@ -5965,7 +6084,7 @@ function buildHeader(input) {
|
|
|
5965
6084
|
const role = isRole(input.env.role) ? input.env.role : "unattributed";
|
|
5966
6085
|
const round = roundFromEnv(input.env.round);
|
|
5967
6086
|
const subject = {
|
|
5968
|
-
issue: issueFromTask(input.env.task),
|
|
6087
|
+
issue: issueFromTask(input.env.task) ?? input.branchIssue ?? null,
|
|
5969
6088
|
role,
|
|
5970
6089
|
...round !== undefined ? { round } : {},
|
|
5971
6090
|
...input.subject ?? {}
|