@attalabs/vinaya 0.31.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.
- package/README.md +2 -3
- package/aeg-root/contracts/principal-operator.md +18 -5
- package/aeg-root/roles/developer/reference.md +3 -3
- package/aeg-root/roles/operator.md +69 -16
- package/aeg-root/roles/planner/reference.md +1 -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/pr-report-template.md +7 -2
- package/dist/checks/bin/check-body-bare-digits.js +340 -101
- package/dist/checks/bin/check-branch-topology.js +184 -105
- package/dist/checks/bin/check-brief-shape.js +333 -94
- package/dist/checks/bin/check-changeset-coverage.js +1028 -248
- package/dist/checks/bin/check-ci-shard-coverage.js +82 -0
- package/dist/checks/bin/check-closes-n.js +184 -105
- package/dist/checks/bin/check-coherence.js +345 -145
- package/dist/checks/bin/check-dead-branch-push.js +179 -59
- package/dist/checks/bin/check-dispatch-readiness.js +350 -150
- package/dist/checks/bin/check-doc-coverage-push.js +1011 -231
- package/dist/checks/bin/check-doc-coverage.js +1015 -235
- package/dist/checks/bin/check-doctrine-no-procedures.js +333 -94
- package/dist/checks/bin/check-doctrine-portability.js +1013 -233
- package/dist/checks/bin/check-evidence-fresh.js +1010 -222
- package/dist/checks/bin/check-exec-bits.js +1009 -229
- package/dist/checks/bin/check-first-push-dispatch.js +343 -145
- package/dist/checks/bin/check-issue-assignment.js +186 -107
- package/dist/checks/bin/check-issue-milestone-attach.js +176 -56
- package/dist/checks/bin/check-issue-objectives-numbering.js +176 -56
- package/dist/checks/bin/check-issue-parts-coverage.js +176 -56
- package/dist/checks/bin/check-issue-surface-globs.js +363 -143
- package/dist/checks/bin/check-issue-title-grammar.js +176 -56
- package/dist/checks/bin/check-issue-tranche-label.js +176 -56
- package/dist/checks/bin/check-main-branch-refusal.js +176 -56
- package/dist/checks/bin/check-no-disk-state.js +176 -56
- package/dist/checks/bin/check-pr-premise-reassert.js +333 -92
- package/dist/checks/bin/check-pr-report-density.js +176 -56
- package/dist/checks/bin/check-principal-test-plan-wait.js +176 -54
- package/dist/checks/bin/check-quoted-command.js +999 -217
- package/dist/checks/bin/check-reader-resolvable-prose.js +1011 -229
- package/dist/checks/bin/check-registry-gates.js +186 -56
- package/dist/checks/bin/check-retired-vocabulary.js +997 -215
- package/dist/checks/bin/check-review-gate.js +403 -203
- package/dist/checks/bin/check-single-plan-pr.js +176 -56
- package/dist/checks/bin/check-surface-scope.js +184 -105
- package/dist/checks/bin/check-test-plan.js +176 -54
- package/dist/checks/bin/check-token-collection-wired.js +182 -57
- package/dist/checks/bin/check-token-report.js +178 -58
- package/dist/checks/bin/check-workspace-escape.js +1011 -229
- package/dist/index.js +5971 -3489
- package/dist/lib/pre-push-cache-test-run.js +4431 -0
- package/dist/lib/pre-push-select-tests.js +799 -110
- package/package.json +3 -2
- 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 +212 -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 +27 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/dev-review-loop/journal-reconstruction.ts +123 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/dev-review-loop/render-summary.ts +27 -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 +379 -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 +239 -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 +184 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/review-status.ts +65 -18
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/ruling-ordinal.ts +76 -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-tools.ts +488 -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 +314 -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]__0ls23oh._.js +1 -1
- 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
- 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/{1dc2_-c_gavj1.js → 1ce2dj27_cgbj.js} +4 -4
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/{3xg6-flovrcx-.js → 22s44f5k3ecmj.js} +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/34hhdtbp20krb.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/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/aeg-core}/bin/verify-coherence.ts +0 -0
- /package/studio-standalone/apps/vinaya-studio/web/.next/static/{e8XbZ2vlVz40KzHmlqhwP → vl7QVqELe1AQ-9kaOd9mR}/_buildManifest.js +0 -0
- /package/studio-standalone/apps/vinaya-studio/web/.next/static/{e8XbZ2vlVz40KzHmlqhwP → vl7QVqELe1AQ-9kaOd9mR}/_clientMiddlewareManifest.js +0 -0
- /package/studio-standalone/apps/vinaya-studio/web/.next/static/{e8XbZ2vlVz40KzHmlqhwP → vl7QVqELe1AQ-9kaOd9mR}/_ssgManifest.js +0 -0
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { createRequire } from "node:module";
|
|
3
|
-
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
4
2
|
|
|
5
3
|
// src/checks/bin/check-registry-gates.ts
|
|
6
4
|
import { execSync, execFileSync as execFileSync2 } from "node:child_process";
|
|
@@ -1039,7 +1037,7 @@ function withDefaults(oldDefaults, newDefaults) {
|
|
|
1039
1037
|
var endpoint = withDefaults(null, DEFAULTS);
|
|
1040
1038
|
|
|
1041
1039
|
// ../../node_modules/fast-content-type-parse/index.js
|
|
1042
|
-
var NullObject = function
|
|
1040
|
+
var NullObject = function NullObject() {};
|
|
1043
1041
|
NullObject.prototype = Object.create(null);
|
|
1044
1042
|
var paramRE = /; *([!#$%&'*+.^\w`|~-]+)=("(?:[\v\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\v\u0020-\u00ff])*"|[!#$%&'*+.^\w`|~-]+) */gu;
|
|
1045
1043
|
var quotedPairRE = /\\([\v\u0020-\u00ff])/gu;
|
|
@@ -1783,27 +1781,27 @@ function splitTableRow(row) {
|
|
|
1783
1781
|
return parts.map((p) => p.split(PLACEHOLDER).join("|"));
|
|
1784
1782
|
}
|
|
1785
1783
|
// ../../packages/aeg-core/src/blast-radius-domains.ts
|
|
1786
|
-
function resolveWorkspaceEntry(
|
|
1787
|
-
if (
|
|
1788
|
-
const baseDir =
|
|
1784
|
+
function resolveWorkspaceEntry(entry, listDirs) {
|
|
1785
|
+
if (entry.endsWith("/*")) {
|
|
1786
|
+
const baseDir = entry.slice(0, -2);
|
|
1789
1787
|
return listDirs(baseDir).map((name) => `${baseDir}/${name}`);
|
|
1790
1788
|
}
|
|
1791
|
-
if (
|
|
1789
|
+
if (entry.includes("*"))
|
|
1792
1790
|
return [];
|
|
1793
|
-
return [
|
|
1791
|
+
return [entry];
|
|
1794
1792
|
}
|
|
1795
1793
|
// ../../packages/aeg-core/src/consumer-enumeration.ts
|
|
1796
1794
|
function deriveWorkspaceMemberDirs(workspaces, listDirs) {
|
|
1797
|
-
const positive = workspaces.filter((
|
|
1798
|
-
const negative = workspaces.filter((
|
|
1795
|
+
const positive = workspaces.filter((entry) => !entry.startsWith("!"));
|
|
1796
|
+
const negative = workspaces.filter((entry) => entry.startsWith("!")).map((entry) => entry.slice(1));
|
|
1799
1797
|
const excluded = new Set;
|
|
1800
|
-
for (const
|
|
1801
|
-
for (const member of resolveWorkspaceEntry(
|
|
1798
|
+
for (const entry of negative) {
|
|
1799
|
+
for (const member of resolveWorkspaceEntry(entry, listDirs))
|
|
1802
1800
|
excluded.add(member);
|
|
1803
1801
|
}
|
|
1804
1802
|
const members = new Set;
|
|
1805
|
-
for (const
|
|
1806
|
-
for (const member of resolveWorkspaceEntry(
|
|
1803
|
+
for (const entry of positive) {
|
|
1804
|
+
for (const member of resolveWorkspaceEntry(entry, listDirs)) {
|
|
1807
1805
|
if (!excluded.has(member))
|
|
1808
1806
|
members.add(member);
|
|
1809
1807
|
}
|
|
@@ -2049,12 +2047,24 @@ function extractBaseSha(comment) {
|
|
|
2049
2047
|
const m = firstThirteenLines(comment).match(BASE_SHA_PATTERN);
|
|
2050
2048
|
return m ? m[1].toLowerCase() : null;
|
|
2051
2049
|
}
|
|
2052
|
-
var
|
|
2050
|
+
var FINDING_DESCRIPTION_STATE = /^F(\d+)(?:\s+\S+)?(?:\s+(open|fix-claimed|reproduced|resolved))?:/;
|
|
2051
|
+
function parseFindingState(description) {
|
|
2052
|
+
const m = FINDING_DESCRIPTION_STATE.exec(description.trim());
|
|
2053
|
+
if (!m)
|
|
2054
|
+
return { id: null, state: null };
|
|
2055
|
+
return { id: `F${m[1]}`, state: m[2] ?? null };
|
|
2056
|
+
}
|
|
2057
|
+
var FINDING_SEVERITY_LINE = /^\d+\.\s+\[([A-Z][A-Z]*)\]\s+(.+?)\s+—(?:\s+(.*))?$/gm;
|
|
2053
2058
|
function extractFindingSeverities(comment) {
|
|
2054
|
-
return [...comment.matchAll(FINDING_SEVERITY_LINE)].map((m) =>
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2059
|
+
return [...comment.matchAll(FINDING_SEVERITY_LINE)].map((m) => {
|
|
2060
|
+
const { id, state } = parseFindingState(m[3] ?? "");
|
|
2061
|
+
return {
|
|
2062
|
+
severity: m[1],
|
|
2063
|
+
location: m[2],
|
|
2064
|
+
id,
|
|
2065
|
+
state
|
|
2066
|
+
};
|
|
2067
|
+
});
|
|
2058
2068
|
}
|
|
2059
2069
|
function extractVerdict(comments, valuePattern, missingLabel) {
|
|
2060
2070
|
const candidates = comments.filter((c) => valuePattern.test(c));
|
|
@@ -2127,15 +2137,15 @@ function summarizeTranscript(jsonl) {
|
|
|
2127
2137
|
const line = rawLine.trim();
|
|
2128
2138
|
if (!line)
|
|
2129
2139
|
continue;
|
|
2130
|
-
let
|
|
2140
|
+
let entry;
|
|
2131
2141
|
try {
|
|
2132
|
-
|
|
2142
|
+
entry = JSON.parse(line);
|
|
2133
2143
|
} catch {
|
|
2134
2144
|
continue;
|
|
2135
2145
|
}
|
|
2136
|
-
if (!
|
|
2146
|
+
if (!entry || typeof entry !== "object")
|
|
2137
2147
|
continue;
|
|
2138
|
-
const obj =
|
|
2148
|
+
const obj = entry;
|
|
2139
2149
|
if (obj.type !== "assistant")
|
|
2140
2150
|
continue;
|
|
2141
2151
|
const message = obj.message;
|
|
@@ -2468,6 +2478,12 @@ function evaluateReviewFindings(findings, scale, threshold) {
|
|
|
2468
2478
|
});
|
|
2469
2479
|
return { outcome: blockingFindings.length > 0 ? "blocked" : "clean", blockingFindings };
|
|
2470
2480
|
}
|
|
2481
|
+
function isConsequentialFinding(finding) {
|
|
2482
|
+
return finding.state !== "resolved";
|
|
2483
|
+
}
|
|
2484
|
+
function consequentialFindings(findings) {
|
|
2485
|
+
return findings.filter((f) => isConsequentialFinding(f));
|
|
2486
|
+
}
|
|
2471
2487
|
function evaluateCodeReview(findings, policy) {
|
|
2472
2488
|
return evaluateReviewFindings(findings, CODE_REVIEW_SEVERITY_ORDER, policy.codeReviewThreshold);
|
|
2473
2489
|
}
|
|
@@ -2983,7 +2999,7 @@ function isStep0Block(content) {
|
|
|
2983
2999
|
}
|
|
2984
3000
|
function checkCommandsCarryOutput(prBody) {
|
|
2985
3001
|
const errors = [];
|
|
2986
|
-
for (const [
|
|
3002
|
+
for (const [label, num] of [
|
|
2987
3003
|
["5", 5],
|
|
2988
3004
|
["6", 6]
|
|
2989
3005
|
]) {
|
|
@@ -2997,7 +3013,7 @@ function checkCommandsCarryOutput(prBody) {
|
|
|
2997
3013
|
continue;
|
|
2998
3014
|
const next = blocks[i + 1];
|
|
2999
3015
|
if (!next || isCommandBlock(next.content)) {
|
|
3000
|
-
errors.push(`brief-validation commands carry output: §${
|
|
3016
|
+
errors.push(`brief-validation commands carry output: §${label} has a command block ("${firstNonBlankLine(block.content)}") not immediately followed by a non-command output block — the very next fenced block must hold that command's actual output, not another command.`);
|
|
3001
3017
|
}
|
|
3002
3018
|
}
|
|
3003
3019
|
}
|
|
@@ -3434,8 +3450,8 @@ function stripPartBackticks(text) {
|
|
|
3434
3450
|
function partWordCount(text) {
|
|
3435
3451
|
return text.split(/\s+/).filter((w) => /[a-z]/i.test(w)).length;
|
|
3436
3452
|
}
|
|
3437
|
-
function looksLikeFilePath(
|
|
3438
|
-
const stripped =
|
|
3453
|
+
function looksLikeFilePath(entry) {
|
|
3454
|
+
const stripped = entry.replace(/\/\*\*?$/, "");
|
|
3439
3455
|
const lastSegment = stripped.split("/").pop() ?? stripped;
|
|
3440
3456
|
const extMatch = /\.[A-Za-z0-9]{1,6}$/.exec(lastSegment);
|
|
3441
3457
|
return extMatch !== null && extMatch.index > 0;
|
|
@@ -3921,14 +3937,14 @@ function checkClosesNTopology(branch, prBody, trancheFiles, taskIssueRefs) {
|
|
|
3921
3937
|
const referenced = extractClosesReferences(prBody);
|
|
3922
3938
|
if (taskIssueRefs) {
|
|
3923
3939
|
for (const n of referenced) {
|
|
3924
|
-
const
|
|
3925
|
-
if (!
|
|
3940
|
+
const ref = taskIssueRefs.get(n);
|
|
3941
|
+
if (!ref)
|
|
3926
3942
|
continue;
|
|
3927
|
-
const expectedBranch = `task/${
|
|
3943
|
+
const expectedBranch = `task/${ref.trancheSlug}/${ref.taskId}`;
|
|
3928
3944
|
if (branch !== expectedBranch) {
|
|
3929
3945
|
return {
|
|
3930
3946
|
ok: false,
|
|
3931
|
-
message: `closes-n-reverse: branch "${branch}" closes #${n} (task ${
|
|
3947
|
+
message: `closes-n-reverse: branch "${branch}" closes #${n} (task ${ref.taskId} of tranche "${ref.trancheSlug}") but is not named "${expectedBranch}" — rename the branch and re-push, or if this work is intentionally outside AEG's dispatch flow, remove the Closes reference.`
|
|
3932
3948
|
};
|
|
3933
3949
|
}
|
|
3934
3950
|
}
|
|
@@ -3937,15 +3953,15 @@ function checkClosesNTopology(branch, prBody, trancheFiles, taskIssueRefs) {
|
|
|
3937
3953
|
if (!ref)
|
|
3938
3954
|
return { ok: true };
|
|
3939
3955
|
if (ref.kind === "issue") {
|
|
3940
|
-
const
|
|
3941
|
-
if (!referenced.has(
|
|
3956
|
+
const expectedIssue = ref.issueNumber;
|
|
3957
|
+
if (!referenced.has(expectedIssue)) {
|
|
3942
3958
|
return {
|
|
3943
3959
|
ok: false,
|
|
3944
|
-
expectedIssue
|
|
3945
|
-
message: `closes-n: PR body does not contain \`Closes #${
|
|
3960
|
+
expectedIssue,
|
|
3961
|
+
message: `closes-n: PR body does not contain \`Closes #${expectedIssue}\` (required for branch "${branch}"). Add it to the PR body Summary section.`
|
|
3946
3962
|
};
|
|
3947
3963
|
}
|
|
3948
|
-
return { ok: true, expectedIssue
|
|
3964
|
+
return { ok: true, expectedIssue };
|
|
3949
3965
|
}
|
|
3950
3966
|
const trancheSlug = ref.tranche;
|
|
3951
3967
|
const taskId = ref.taskId;
|
|
@@ -3991,8 +4007,8 @@ function extractIssue(body) {
|
|
|
3991
4007
|
const anchorNums = closesRefs(anchored);
|
|
3992
4008
|
if (anchorNums.length === 0)
|
|
3993
4009
|
return { issue: null, extraIssues: bodyNums, outsideHeader: false };
|
|
3994
|
-
const
|
|
3995
|
-
return { issue
|
|
4010
|
+
const issue = anchorNums[0];
|
|
4011
|
+
return { issue, extraIssues: bodyNums.filter((n) => n !== issue), outsideHeader: false };
|
|
3996
4012
|
}
|
|
3997
4013
|
const headerNums = closesRefs(headerRegion(stripped));
|
|
3998
4014
|
if (bodyNums.length === 0)
|
|
@@ -4061,15 +4077,15 @@ function compareManifest(echoed, current, patchIdOf) {
|
|
|
4061
4077
|
const bothFullShas = echoedShaLen >= 40 && currentShaLen >= 40;
|
|
4062
4078
|
const base = patchHead || exactHead && bothFullShas ? true : isBoundToBase(echoed, current.baseSha);
|
|
4063
4079
|
const briefHashBound = isBoundToBriefHash(echoed, current.briefHash);
|
|
4064
|
-
const
|
|
4080
|
+
const objectivesVersion = isBoundToObjectives(echoed, current.objectivesVersion);
|
|
4065
4081
|
const rulingOrdinal = isBoundToRulings(echoed, current.rulingOrdinal);
|
|
4066
4082
|
const policyDigestBound = isBoundToPolicy(echoed, current.policyDigest);
|
|
4067
4083
|
return {
|
|
4068
|
-
bound: head && base && briefHashBound &&
|
|
4084
|
+
bound: head && base && briefHashBound && objectivesVersion && rulingOrdinal && policyDigestBound,
|
|
4069
4085
|
head,
|
|
4070
4086
|
base,
|
|
4071
4087
|
briefHash: briefHashBound,
|
|
4072
|
-
objectivesVersion
|
|
4088
|
+
objectivesVersion,
|
|
4073
4089
|
rulingOrdinal,
|
|
4074
4090
|
policyDigest: policyDigestBound
|
|
4075
4091
|
};
|
|
@@ -4100,8 +4116,8 @@ function checkReviewGate(input) {
|
|
|
4100
4116
|
let codeReviewPolicyEvaluation;
|
|
4101
4117
|
let securityPolicyEvaluation;
|
|
4102
4118
|
try {
|
|
4103
|
-
codeReviewPolicyEvaluation = evaluateCodeReview(codeReview.findingSeverities, policy);
|
|
4104
|
-
securityPolicyEvaluation = evaluateSecurityReview(security.findingSeverities, policy);
|
|
4119
|
+
codeReviewPolicyEvaluation = evaluateCodeReview(consequentialFindings(codeReview.findingSeverities), policy);
|
|
4120
|
+
securityPolicyEvaluation = evaluateSecurityReview(consequentialFindings(security.findingSeverities), policy);
|
|
4105
4121
|
} catch (err) {
|
|
4106
4122
|
return {
|
|
4107
4123
|
verdict: "fail",
|
|
@@ -5182,11 +5198,27 @@ var ObservedSchema = z.object({
|
|
|
5182
5198
|
var TaskStatusInputSchema = z.object({
|
|
5183
5199
|
task: TaskToolRefSchema.optional()
|
|
5184
5200
|
}).merge(PageRequestSchema).strict();
|
|
5201
|
+
var TaskConfidenceSchema = z.object({
|
|
5202
|
+
round: z.number().int().positive(),
|
|
5203
|
+
percent: z.number().int().min(0).max(100).nullable(),
|
|
5204
|
+
source: z.enum(["stated", "published-summary"])
|
|
5205
|
+
}).strict();
|
|
5206
|
+
var TaskPhaseHistorySchema = z.object({
|
|
5207
|
+
typicalPhaseMinutes: z.number().nonnegative(),
|
|
5208
|
+
typicalPhaseSamples: z.number().int().positive()
|
|
5209
|
+
}).strict();
|
|
5185
5210
|
var TaskStatusItemSchema = z.object({
|
|
5186
5211
|
task: TaskToolRefSchema,
|
|
5187
5212
|
issue: z.number().int().positive(),
|
|
5188
5213
|
pr: z.number().int().positive().nullable(),
|
|
5189
|
-
state: z.string()
|
|
5214
|
+
state: z.string(),
|
|
5215
|
+
round: z.number().int().positive().nullable().optional(),
|
|
5216
|
+
phase: z.string().min(1).nullable().optional(),
|
|
5217
|
+
minutesInPhase: z.number().nonnegative().nullable().optional(),
|
|
5218
|
+
phaseIsCurrent: z.boolean().nullable().optional(),
|
|
5219
|
+
lastConfidence: TaskConfidenceSchema.nullable().optional(),
|
|
5220
|
+
lastConfidenceUnread: z.boolean().optional(),
|
|
5221
|
+
phaseHistory: TaskPhaseHistorySchema.nullable().optional()
|
|
5190
5222
|
}).merge(ObservedSchema);
|
|
5191
5223
|
var TaskStatusResultSchema = z.object({
|
|
5192
5224
|
items: z.array(TaskStatusItemSchema),
|
|
@@ -5198,7 +5230,7 @@ var EscalationInputsSchema = z.object({
|
|
|
5198
5230
|
round: z.number().int().nonnegative(),
|
|
5199
5231
|
head: z.string(),
|
|
5200
5232
|
branch: z.string(),
|
|
5201
|
-
prNumber: z.number().int().positive()
|
|
5233
|
+
prNumber: z.number().int().positive().nullable()
|
|
5202
5234
|
});
|
|
5203
5235
|
var EscalationEvidenceSchema = z.object({
|
|
5204
5236
|
round: z.number().int().nonnegative(),
|
|
@@ -5234,13 +5266,45 @@ var TaskEscalationReadResultSchema = z.object({
|
|
|
5234
5266
|
items: z.array(TaskEscalationPacketSchema),
|
|
5235
5267
|
nextCursor: z.string().nullable()
|
|
5236
5268
|
}).merge(ObservedSchema);
|
|
5237
|
-
var
|
|
5238
|
-
|
|
5239
|
-
|
|
5269
|
+
var TaskPrCheckSchema = z.object({
|
|
5270
|
+
name: z.string(),
|
|
5271
|
+
required: z.boolean(),
|
|
5272
|
+
status: z.string(),
|
|
5273
|
+
conclusion: z.string().nullable(),
|
|
5274
|
+
detailsUrl: z.string().nullable(),
|
|
5275
|
+
failureSummary: z.string().nullable()
|
|
5276
|
+
});
|
|
5277
|
+
var TaskPrVerdictSchema = z.object({
|
|
5278
|
+
role: z.enum(["code-review", "security"]),
|
|
5279
|
+
value: z.string(),
|
|
5280
|
+
judgedHead: z.string().nullable(),
|
|
5281
|
+
objectivesVersion: z.string().nullable()
|
|
5282
|
+
});
|
|
5283
|
+
var TaskPrPauseSchema = z.object({
|
|
5284
|
+
reason: z.string(),
|
|
5285
|
+
body: z.string()
|
|
5286
|
+
});
|
|
5287
|
+
var TaskPrReviewRecordSchema = z.object({
|
|
5288
|
+
verdicts: z.array(TaskPrVerdictSchema),
|
|
5289
|
+
roundMarkers: z.array(z.number().int().nonnegative()),
|
|
5290
|
+
summaryTable: z.string().nullable(),
|
|
5291
|
+
pause: TaskPrPauseSchema.nullable()
|
|
5292
|
+
});
|
|
5293
|
+
var TaskPrReadInputSchema = z.object({
|
|
5294
|
+
task: TaskToolRefSchema,
|
|
5295
|
+
pr: z.number().int().positive().optional()
|
|
5240
5296
|
}).strict();
|
|
5297
|
+
var TaskPrReadResultSchema = z.object({
|
|
5298
|
+
task: TaskToolRefSchema,
|
|
5299
|
+
issue: z.number().int().positive(),
|
|
5300
|
+
pr: z.number().int().positive(),
|
|
5301
|
+
head: z.string().nullable(),
|
|
5302
|
+
checks: z.array(TaskPrCheckSchema),
|
|
5303
|
+
review: TaskPrReviewRecordSchema
|
|
5304
|
+
}).merge(ObservedSchema);
|
|
5241
5305
|
var TaskStartResultSchema = z.object({
|
|
5242
5306
|
requestId: z.string().min(1),
|
|
5243
|
-
run:
|
|
5307
|
+
run: TaskToolRefSchema,
|
|
5244
5308
|
started: z.boolean(),
|
|
5245
5309
|
startedAt: z.string(),
|
|
5246
5310
|
mode: z.literal("attended")
|
|
@@ -5254,7 +5318,7 @@ var TaskCancelInputSchema = z.object({
|
|
|
5254
5318
|
}).strict();
|
|
5255
5319
|
var TaskResumeResultSchema = z.object({
|
|
5256
5320
|
task: z.number().int().positive(),
|
|
5257
|
-
pr: z.number().int().positive(),
|
|
5321
|
+
pr: z.number().int().positive().nullable(),
|
|
5258
5322
|
escalationId: z.string().min(1),
|
|
5259
5323
|
outcome: z.enum(["started", "already_resumed"]),
|
|
5260
5324
|
authenticatedBy: z.string().min(1),
|
|
@@ -5263,7 +5327,7 @@ var TaskResumeResultSchema = z.object({
|
|
|
5263
5327
|
var TaskCancelOutcomeSchema = z.enum(["confirmed", "pending", "uncertain"]);
|
|
5264
5328
|
var TaskCancelResultSchema = z.object({
|
|
5265
5329
|
task: z.number().int().positive(),
|
|
5266
|
-
pr: z.number().int().positive(),
|
|
5330
|
+
pr: z.number().int().positive().nullable(),
|
|
5267
5331
|
escalationId: z.string().min(1),
|
|
5268
5332
|
outcome: TaskCancelOutcomeSchema,
|
|
5269
5333
|
authenticatedBy: z.string().min(1),
|
|
@@ -5274,6 +5338,7 @@ var TASK_TOOL_NAMES = [
|
|
|
5274
5338
|
"task_start",
|
|
5275
5339
|
"task_status",
|
|
5276
5340
|
"task_escalation_read",
|
|
5341
|
+
"task_pr_read",
|
|
5277
5342
|
"task_resume",
|
|
5278
5343
|
"task_cancel"
|
|
5279
5344
|
];
|
|
@@ -5501,6 +5566,10 @@ function findWorkspaceEscapes(files, knownPaths, workspaceDirs = DEFAULT_WORKSPA
|
|
|
5501
5566
|
}
|
|
5502
5567
|
return findings;
|
|
5503
5568
|
}
|
|
5569
|
+
// ../../packages/aeg-core/src/dev-review-loop/types.ts
|
|
5570
|
+
var SEVERITY_COLUMNS = ["blocker", "major", "minor", "critical", "high", "medium", "low"];
|
|
5571
|
+
// ../../packages/aeg-core/src/dev-review-loop/journal-reconstruction.ts
|
|
5572
|
+
var SUMMARY_TABLE_HEADER = `| round | ${SEVERITY_COLUMNS.join(" | ")} | confidence | outcome |`;
|
|
5504
5573
|
// ../../packages/aeg-core/src/log/envelope.ts
|
|
5505
5574
|
import { createHash as createHash5 } from "node:crypto";
|
|
5506
5575
|
|
|
@@ -6039,6 +6108,7 @@ function redact(value, home) {
|
|
|
6039
6108
|
return value;
|
|
6040
6109
|
}
|
|
6041
6110
|
// ../../packages/aeg-core/src/log/store.ts
|
|
6111
|
+
var KNOWN_SCHEMA_VERSIONS = [1, 2];
|
|
6042
6112
|
function metaOf(obj) {
|
|
6043
6113
|
if (obj === null || typeof obj !== "object")
|
|
6044
6114
|
return null;
|
|
@@ -6061,11 +6131,61 @@ function recordIdentity(obj) {
|
|
|
6061
6131
|
}
|
|
6062
6132
|
return null;
|
|
6063
6133
|
}
|
|
6064
|
-
|
|
6065
|
-
|
|
6066
|
-
|
|
6067
|
-
|
|
6068
|
-
|
|
6134
|
+
function schemaVersionOf(obj) {
|
|
6135
|
+
const meta = metaOf(obj);
|
|
6136
|
+
const schema = meta?.schema;
|
|
6137
|
+
return typeof schema === "number" ? schema : null;
|
|
6138
|
+
}
|
|
6139
|
+
function isKnownSchema(version) {
|
|
6140
|
+
return version !== null && KNOWN_SCHEMA_VERSIONS.includes(version);
|
|
6141
|
+
}
|
|
6142
|
+
function classifyStoredLine(raw, home) {
|
|
6143
|
+
let obj;
|
|
6144
|
+
try {
|
|
6145
|
+
obj = JSON.parse(raw);
|
|
6146
|
+
} catch {
|
|
6147
|
+
return { status: "invalid", identity: null, raw, reason: "not valid JSON" };
|
|
6148
|
+
}
|
|
6149
|
+
const version = schemaVersionOf(obj);
|
|
6150
|
+
if (version === null) {
|
|
6151
|
+
return { status: "invalid", identity: recordIdentity(obj), raw, reason: "no readable meta.schema" };
|
|
6152
|
+
}
|
|
6153
|
+
if (!isKnownSchema(version)) {
|
|
6154
|
+
return {
|
|
6155
|
+
status: "unknown_version",
|
|
6156
|
+
identity: recordIdentity(obj),
|
|
6157
|
+
schema: version,
|
|
6158
|
+
raw,
|
|
6159
|
+
reason: `schema version ${version} is not one this build validates (${KNOWN_SCHEMA_VERSIONS.join(", ")}) — kept for diagnosis`
|
|
6160
|
+
};
|
|
6161
|
+
}
|
|
6162
|
+
const result = LogEventSchema.safeParse(obj);
|
|
6163
|
+
if (!result.success) {
|
|
6164
|
+
return {
|
|
6165
|
+
status: "invalid",
|
|
6166
|
+
identity: recordIdentity(obj),
|
|
6167
|
+
raw,
|
|
6168
|
+
reason: result.error.issues[0]?.message ?? "schema violation"
|
|
6169
|
+
};
|
|
6170
|
+
}
|
|
6171
|
+
const event = result.data;
|
|
6172
|
+
const identity = recordIdentity(event);
|
|
6173
|
+
if (identity === null) {
|
|
6174
|
+
return { status: "invalid", identity: null, raw, reason: "valid event with no derivable identity" };
|
|
6175
|
+
}
|
|
6176
|
+
const redacted = redact(event, home);
|
|
6177
|
+
const provenance = version === 2 ? event.meta.provenance ?? null : null;
|
|
6178
|
+
return {
|
|
6179
|
+
status: "ok",
|
|
6180
|
+
identity,
|
|
6181
|
+
runId: event.meta.run_id,
|
|
6182
|
+
seq: event.meta.seq,
|
|
6183
|
+
schema: version,
|
|
6184
|
+
provenance,
|
|
6185
|
+
event,
|
|
6186
|
+
postLine: JSON.stringify(redacted)
|
|
6187
|
+
};
|
|
6188
|
+
}
|
|
6069
6189
|
// ../../packages/aeg-core/src/control-store/records.ts
|
|
6070
6190
|
import { z as z3 } from "zod";
|
|
6071
6191
|
var isoTimestamp = z3.string().min(1);
|
|
@@ -6641,6 +6761,16 @@ var REGISTRY = [
|
|
|
6641
6761
|
},
|
|
6642
6762
|
0
|
|
6643
6763
|
],
|
|
6764
|
+
[
|
|
6765
|
+
{
|
|
6766
|
+
name: "ci-shard-coverage",
|
|
6767
|
+
run: bin("check-ci-shard-coverage"),
|
|
6768
|
+
scope: "diff",
|
|
6769
|
+
timeoutMs: 15000,
|
|
6770
|
+
env: {}
|
|
6771
|
+
},
|
|
6772
|
+
0
|
|
6773
|
+
],
|
|
6644
6774
|
[
|
|
6645
6775
|
{
|
|
6646
6776
|
name: "workspace-escape",
|