@attalabs/vinaya 0.40.0 → 0.41.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/aeg-root/contracts/developer-reviewer.md +2 -2
- package/aeg-root/contracts/planner-developer.md +4 -4
- package/aeg-root/process.md +3 -3
- package/aeg-root/roles/developer/reference.md +3 -0
- package/aeg-root/state-machine.md +2 -2
- package/aeg-root/templates/brief-template.md +1 -1
- package/dist/checks/bin/check-body-bare-digits.js +165 -65
- package/dist/checks/bin/check-branch-topology.js +169 -60
- package/dist/checks/bin/check-brief-shape.js +165 -65
- package/dist/checks/bin/check-changeset-coverage.js +342 -122
- package/dist/checks/bin/check-ci-shard-coverage.js +384 -130
- package/dist/checks/bin/check-closes-n.js +169 -60
- package/dist/checks/bin/check-coherence.js +165 -65
- package/dist/checks/bin/check-dead-branch-push.js +142 -59
- package/dist/checks/bin/check-dispatch-readiness.js +211 -81
- package/dist/checks/bin/check-doc-claims.js +165 -65
- package/dist/checks/bin/check-doc-coverage-push.js +342 -122
- package/dist/checks/bin/check-doc-coverage.js +344 -124
- package/dist/checks/bin/check-doctrine-no-procedures.js +165 -65
- package/dist/checks/bin/check-doctrine-portability.js +342 -122
- package/dist/checks/bin/check-evidence-fresh.js +376 -129
- package/dist/checks/bin/check-exec-bits.js +342 -122
- package/dist/checks/bin/check-first-push-dispatch.js +208 -78
- package/dist/checks/bin/check-issue-milestone-attach.js +142 -59
- package/dist/checks/bin/check-issue-objectives-numbering.js +165 -65
- package/dist/checks/bin/check-issue-parts-coverage.js +142 -59
- package/dist/checks/bin/check-issue-surface-globs.js +218 -88
- package/dist/checks/bin/check-issue-title-grammar.js +142 -59
- package/dist/checks/bin/check-main-branch-refusal.js +142 -59
- package/dist/checks/bin/check-no-disk-state.js +142 -59
- package/dist/checks/bin/check-pr-premise-reassert.js +165 -65
- package/dist/checks/bin/check-pr-report-density.js +142 -59
- package/dist/checks/bin/check-principal-test-plan-wait.js +165 -65
- package/dist/checks/bin/check-quoted-command.js +338 -118
- package/dist/checks/bin/check-reader-resolvable-prose.js +338 -118
- package/dist/checks/bin/check-registry-gates.js +206 -78
- package/dist/checks/bin/check-retired-vocabulary.js +338 -118
- package/dist/checks/bin/check-review-gate.js +203 -83
- package/dist/checks/bin/check-single-plan-pr.js +142 -59
- package/dist/checks/bin/check-surface-scope.js +169 -60
- package/dist/checks/bin/check-test-plan.js +165 -65
- package/dist/checks/bin/check-token-collection-wired.js +142 -59
- package/dist/checks/bin/check-workspace-escape.js +340 -120
- package/dist/checks/bin/verify-coherence.js +153 -60
- package/dist/checks/bin/verify-dispatch.js +169 -69
- package/dist/checks/bin/verify-docs.js +142 -57
- package/dist/index.js +16280 -11764
- package/dist/lib/pre-push-cache-test-run.js +791 -68
- package/dist/lib/pre-push-changed-files.js +65 -19
- package/dist/lib/pre-push-mode.js +466 -0
- package/dist/lib/pre-push-progress-dir.js +4205 -0
- package/dist/lib/pre-push-record-tests.js +446 -0
- package/dist/lib/pre-push-select-tests.js +1426 -454
- package/dist/lib/push-progress-observer.js +4213 -0
- package/package.json +11 -5
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/anchored-region.ts +5 -2
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/brief-render.ts +18 -4
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/brief-validation.ts +3 -3
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/coherence-checks.ts +2 -2
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/control-store/local.ts +88 -5
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/control-store/records.ts +34 -2
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/dev-review-loop/assess-round.ts +26 -4
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/dev-review-loop/fakes.ts +7 -2
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/dev-review-loop/index.ts +7 -1
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/dev-review-loop/types.ts +17 -2
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/dispatch-gate.ts +13 -17
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/docs/index.ts +1 -1
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/docs/published-prose.ts +70 -45
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/gate-audience.ts +1 -4
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/index.ts +77 -7
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/issue-assignment.ts +24 -54
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/issue-validation.ts +221 -56
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/live-record.ts +179 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/log/envelope.ts +8 -2
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/log/index.ts +1 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/log/narration.ts +1 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/log/schema-digest.ts +225 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/log/schema.ts +7 -1
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/main-branch-refusal.ts +23 -1
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/principals-config.ts +44 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/prose-rules.ts +532 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/protected-paths.ts +31 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/reader-resolvable-prose.ts +157 -80
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/registry-checks.ts +8 -12
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/retired-vocabulary.ts +52 -109
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/review-gate.ts +46 -17
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/review-input-manifest.ts +85 -1
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/ruling-ordinal.ts +46 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/task-branch-identity.ts +2 -4
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/test-plan-gate.ts +63 -8
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/verdict-extraction.ts +24 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/waiver-label.ts +0 -1
- 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/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.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.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.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.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.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.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.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/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]__08e39jo._.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]__1a3j3n1._.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/{[root-of-the-server]__1wzfiav._.js → [root-of-the-server]__1d4eth3._.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]__1snpgaw._.js +3 -3
- 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/_08onyya._.js +2 -2
- 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/_0zf4d27._.js +3 -3
- 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/_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/{38kom-9c-oi65.js → 0x7u6si-ai179.js} +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/{1p3vr9qts86_b.js → 2fu7mfsj4oima.js} +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/{21tunzmxjvm2a.js → 34b4ruddunn3q.js} +1 -1
- package/studio-standalone/apps/vinaya-studio/web/package.json +2 -2
- /package/studio-standalone/apps/vinaya-studio/web/.next/static/{Y3oaZSTSP9PivUuJvxK1W → 2ZARxTwpuRew8-SvYsRdU}/_buildManifest.js +0 -0
- /package/studio-standalone/apps/vinaya-studio/web/.next/static/{Y3oaZSTSP9PivUuJvxK1W → 2ZARxTwpuRew8-SvYsRdU}/_clientMiddlewareManifest.js +0 -0
- /package/studio-standalone/apps/vinaya-studio/web/.next/static/{Y3oaZSTSP9PivUuJvxK1W → 2ZARxTwpuRew8-SvYsRdU}/_ssgManifest.js +0 -0
|
@@ -781,10 +781,11 @@ function trancheSlugsFromLabels(labels) {
|
|
|
781
781
|
}
|
|
782
782
|
return slugs;
|
|
783
783
|
}
|
|
784
|
-
async function indexTrancheMilestonesAsync(owner, repo) {
|
|
784
|
+
async function indexTrancheMilestonesAsync(owner, repo, options = {}) {
|
|
785
|
+
const read = (fetch) => options.retryFailedReads ? retryOnce(fetch) : fetch();
|
|
785
786
|
const [milestones, labels] = await Promise.all([
|
|
786
|
-
ghApiGetAllPagesAsync(`repos/${owner}/${repo}/milestones?state=all&per_page=100`),
|
|
787
|
-
ghApiGetAllPagesAsync(`repos/${owner}/${repo}/labels?per_page=100`)
|
|
787
|
+
read(() => ghApiGetAllPagesAsync(`repos/${owner}/${repo}/milestones?state=all&per_page=100`)),
|
|
788
|
+
read(() => ghApiGetAllPagesAsync(`repos/${owner}/${repo}/labels?per_page=100`))
|
|
788
789
|
]);
|
|
789
790
|
const active = [];
|
|
790
791
|
const archived = [];
|
|
@@ -795,9 +796,16 @@ async function indexTrancheMilestonesAsync(owner, repo) {
|
|
|
795
796
|
const uniqueNewPathSlugs = [...new Set(newPathSlugs)];
|
|
796
797
|
const uniqueLegacySlugs = [...legacySlugs];
|
|
797
798
|
const [legacyIssuesBySlug, newPathIssuesBySlug] = await Promise.all([
|
|
798
|
-
Promise.all(uniqueLegacySlugs.map((slug) => ghIssueListByLabelAsync(owner, repo, trancheLabel(slug)))),
|
|
799
|
-
Promise.all(uniqueNewPathSlugs.map((slug) => ghIssueListByLabelAsync(owner, repo, trancheLabel(slug))))
|
|
799
|
+
Promise.all(uniqueLegacySlugs.map((slug) => read(() => ghIssueListByLabelAsync(owner, repo, trancheLabel(slug))))),
|
|
800
|
+
Promise.all(uniqueNewPathSlugs.map((slug) => read(() => ghIssueListByLabelAsync(owner, repo, trancheLabel(slug)))))
|
|
800
801
|
]);
|
|
802
|
+
const issuesBySlug = new Map;
|
|
803
|
+
uniqueLegacySlugs.forEach((slug, i) => {
|
|
804
|
+
issuesBySlug.set(slug, legacyIssuesBySlug[i] ?? []);
|
|
805
|
+
});
|
|
806
|
+
uniqueNewPathSlugs.forEach((slug, i) => {
|
|
807
|
+
issuesBySlug.set(slug, newPathIssuesBySlug[i] ?? []);
|
|
808
|
+
});
|
|
801
809
|
uniqueLegacySlugs.forEach((slug, i) => {
|
|
802
810
|
const m = legacyMilestoneBySlug.get(slug);
|
|
803
811
|
if (!m)
|
|
@@ -821,7 +829,14 @@ async function indexTrancheMilestonesAsync(owner, repo) {
|
|
|
821
829
|
else if (lifecycle === "complete")
|
|
822
830
|
archived.push({ slug, goal });
|
|
823
831
|
});
|
|
824
|
-
return { active, archived, facts, legacySlugs };
|
|
832
|
+
return { active, archived, facts, legacySlugs, issuesBySlug };
|
|
833
|
+
}
|
|
834
|
+
async function retryOnce(fetch) {
|
|
835
|
+
try {
|
|
836
|
+
return await fetch();
|
|
837
|
+
} catch {
|
|
838
|
+
return fetch();
|
|
839
|
+
}
|
|
825
840
|
}
|
|
826
841
|
async function indexTrancheMilestonesForSlugAsync(owner, repo, slug) {
|
|
827
842
|
const [milestones, labels, issues] = await Promise.all([
|
|
@@ -1866,15 +1881,16 @@ function describeError(err) {
|
|
|
1866
1881
|
}
|
|
1867
1882
|
// ../../packages/aeg-forge-state/src/prior-tranche-archival.ts
|
|
1868
1883
|
function defaultPriorTrancheArchivalDeps() {
|
|
1869
|
-
let facts = new Map;
|
|
1870
1884
|
return {
|
|
1871
|
-
|
|
1872
|
-
const index = await indexTrancheMilestonesAsync(repo.owner, repo.repo);
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1885
|
+
activeTranches: async (excludeSlug, repo) => {
|
|
1886
|
+
const index = await indexTrancheMilestonesAsync(repo.owner, repo.repo, { retryFailedReads: true });
|
|
1887
|
+
return index.active.filter((m) => m.slug !== excludeSlug).map((m) => {
|
|
1888
|
+
const issues = index.issuesBySlug?.get(m.slug);
|
|
1889
|
+
if (!issues)
|
|
1890
|
+
throw new Error(`the Milestone index holds no Issue list for tranche \`${m.slug}\``);
|
|
1891
|
+
return { slug: m.slug, issues };
|
|
1892
|
+
});
|
|
1893
|
+
}
|
|
1878
1894
|
};
|
|
1879
1895
|
}
|
|
1880
1896
|
function reason(err) {
|
|
@@ -1886,61 +1902,28 @@ async function resolvePriorTrancheArchival(projects, excludeSlug, repo, deps = d
|
|
|
1886
1902
|
return { facts: [], infraFailure: null };
|
|
1887
1903
|
let candidates;
|
|
1888
1904
|
try {
|
|
1889
|
-
candidates = await deps.
|
|
1905
|
+
candidates = await deps.activeTranches(excludeSlug, repo);
|
|
1890
1906
|
} catch (err) {
|
|
1891
1907
|
return {
|
|
1892
1908
|
facts: [],
|
|
1893
1909
|
infraFailure: `severity:infra — could not read the active tranches (${reason(err)}); whether a prior tranche is archived is unknown.`
|
|
1894
1910
|
};
|
|
1895
1911
|
}
|
|
1912
|
+
const tasksBySlug = new Map(candidates.map((c) => [c.slug, tasksFromIssues(c.issues)]));
|
|
1896
1913
|
const facts = [];
|
|
1897
|
-
const unreadable = [];
|
|
1898
|
-
const derived = new Map;
|
|
1899
|
-
const derive = (slug) => {
|
|
1900
|
-
let p = derived.get(slug);
|
|
1901
|
-
if (!p) {
|
|
1902
|
-
p = deps.deriveTranche(slug, repo);
|
|
1903
|
-
derived.set(slug, p);
|
|
1904
|
-
}
|
|
1905
|
-
return p;
|
|
1906
|
-
};
|
|
1907
1914
|
for (const project of projects) {
|
|
1908
1915
|
let found = null;
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
let candidateTranche;
|
|
1912
|
-
try {
|
|
1913
|
-
candidateTranche = await derive(slug);
|
|
1914
|
-
} catch {
|
|
1915
|
-
unknown = true;
|
|
1916
|
-
unreadable.push(`the tasks of tranche \`${slug}\` (project \`${project}\`)`);
|
|
1917
|
-
break;
|
|
1918
|
-
}
|
|
1919
|
-
if (!candidateTranche.tasks.some((t) => t.projects.includes(project)))
|
|
1916
|
+
for (const { slug, issues } of candidates) {
|
|
1917
|
+
if (!(tasksBySlug.get(slug) ?? []).some((t) => t.projects.includes(project)))
|
|
1920
1918
|
continue;
|
|
1921
|
-
|
|
1922
|
-
try {
|
|
1923
|
-
openIssues = await deps.openIssues(slug, repo);
|
|
1924
|
-
} catch {
|
|
1925
|
-
openIssues = null;
|
|
1926
|
-
}
|
|
1927
|
-
if (openIssues === null) {
|
|
1928
|
-
unknown = true;
|
|
1929
|
-
unreadable.push(`the open Issues of tranche \`${slug}\` (project \`${project}\`)`);
|
|
1930
|
-
break;
|
|
1931
|
-
}
|
|
1932
|
-
if (openIssues.length === 0) {
|
|
1919
|
+
if (!issues.some((issue) => issue.state === "OPEN")) {
|
|
1933
1920
|
found = { project, priorTrancheSlug: slug, archived: false };
|
|
1934
1921
|
break;
|
|
1935
1922
|
}
|
|
1936
1923
|
}
|
|
1937
|
-
|
|
1938
|
-
facts.push(found ?? { project, priorTrancheSlug: null, archived: false });
|
|
1924
|
+
facts.push(found ?? { project, priorTrancheSlug: null, archived: false });
|
|
1939
1925
|
}
|
|
1940
|
-
return {
|
|
1941
|
-
facts,
|
|
1942
|
-
infraFailure: unreadable.length === 0 ? null : `severity:infra — could not read ${unreadable.join(", ")}; whether a prior tranche is archived is unknown.`
|
|
1943
|
-
};
|
|
1926
|
+
return { facts, infraFailure: null };
|
|
1944
1927
|
}
|
|
1945
1928
|
// ../../packages/aeg-forge-state/src/fetch-open-issues.ts
|
|
1946
1929
|
async function fetchOpenIssuesByLabel(slugs, owner, repo, token) {
|
|
@@ -2766,11 +2749,13 @@ var CODE_REVIEW_SEVERITY_ORDER = ["BLOCKER", "MAJOR", "MINOR"];
|
|
|
2766
2749
|
var SECURITY_SEVERITY_ORDER = ["CRITICAL", "HIGH", "MEDIUM", "LOW"];
|
|
2767
2750
|
var DEFAULT_MAX_ROUNDS = 3;
|
|
2768
2751
|
var DEFAULT_MAX_TASK_MINUTES = 180;
|
|
2752
|
+
var DEFAULT_READY_PUSH_TIMEOUT_MINUTES = 20;
|
|
2769
2753
|
var DEFAULT_REVIEW_POLICY = {
|
|
2770
2754
|
codeReviewThreshold: "BLOCKER",
|
|
2771
2755
|
securityThreshold: "HIGH",
|
|
2772
2756
|
maxRounds: DEFAULT_MAX_ROUNDS,
|
|
2773
|
-
maxTaskMinutes: DEFAULT_MAX_TASK_MINUTES
|
|
2757
|
+
maxTaskMinutes: DEFAULT_MAX_TASK_MINUTES,
|
|
2758
|
+
readyPushTimeoutMinutes: DEFAULT_READY_PUSH_TIMEOUT_MINUTES
|
|
2774
2759
|
};
|
|
2775
2760
|
var FILE_SHAPED_LOCATION = /\.[a-zA-Z0-9]{1,10}(:\d+)?\s*$/;
|
|
2776
2761
|
var PROSE_LOCATION_PATTERNS = [/\bpr\s*body\b/i, /\bcomment\b/i];
|
|
@@ -6959,7 +6944,17 @@ var HeaderMetaV3Schema = z3.object({
|
|
|
6959
6944
|
runtime: z3.string().nullable(),
|
|
6960
6945
|
source: z3.string().nullable()
|
|
6961
6946
|
}).strict();
|
|
6962
|
-
var
|
|
6947
|
+
var HeaderMetaV4Schema = HeaderMetaV3Schema.extend({
|
|
6948
|
+
schema: z3.literal(4),
|
|
6949
|
+
process: z3.object({ id: z3.string(), version: z3.string().nullable(), digest: z3.string().nullable() }).strict(),
|
|
6950
|
+
runner: z3.object({ id: z3.string(), version: z3.string().nullable() }).strict()
|
|
6951
|
+
}).strict();
|
|
6952
|
+
var HeaderMetaSchema = z3.discriminatedUnion("schema", [
|
|
6953
|
+
HeaderMetaV1Schema,
|
|
6954
|
+
HeaderMetaV2Schema,
|
|
6955
|
+
HeaderMetaV3Schema,
|
|
6956
|
+
HeaderMetaV4Schema
|
|
6957
|
+
]);
|
|
6963
6958
|
var SubjectSchema = z3.object({
|
|
6964
6959
|
issue: z3.number().int().nullable(),
|
|
6965
6960
|
pr: z3.number().int().optional(),
|
|
@@ -7179,6 +7174,75 @@ var DevReviewLoopEventSchema = z3.discriminatedUnion("event", [
|
|
|
7179
7174
|
round: z3.number().int(),
|
|
7180
7175
|
phase: z3.string()
|
|
7181
7176
|
}).strict(),
|
|
7177
|
+
z3.object({
|
|
7178
|
+
...loopShared,
|
|
7179
|
+
event: z3.literal("conflict_reentry"),
|
|
7180
|
+
task: z3.number().int(),
|
|
7181
|
+
pr: z3.number().int().positive(),
|
|
7182
|
+
attempt: z3.number().int().positive(),
|
|
7183
|
+
bound: z3.number().int().positive()
|
|
7184
|
+
}).strict(),
|
|
7185
|
+
z3.object({
|
|
7186
|
+
...loopShared,
|
|
7187
|
+
event: z3.literal("storage_push"),
|
|
7188
|
+
round: z3.number().int(),
|
|
7189
|
+
branch: z3.string(),
|
|
7190
|
+
head: z3.string()
|
|
7191
|
+
}).strict(),
|
|
7192
|
+
z3.object({
|
|
7193
|
+
...loopShared,
|
|
7194
|
+
event: z3.literal("local_checks_run"),
|
|
7195
|
+
round: z3.number().int(),
|
|
7196
|
+
head: z3.string().nullable(),
|
|
7197
|
+
passed: z3.boolean(),
|
|
7198
|
+
wall_ms: z3.number().nonnegative()
|
|
7199
|
+
}).strict(),
|
|
7200
|
+
z3.object({
|
|
7201
|
+
...loopShared,
|
|
7202
|
+
event: z3.literal("ready_push"),
|
|
7203
|
+
round: z3.number().int(),
|
|
7204
|
+
head: z3.string(),
|
|
7205
|
+
outcome: z3.enum(["passed", "refused"]),
|
|
7206
|
+
selected: z3.number().int().nonnegative(),
|
|
7207
|
+
failed: z3.number().int().nonnegative(),
|
|
7208
|
+
rerun: z3.boolean(),
|
|
7209
|
+
wall_ms: z3.number().nonnegative()
|
|
7210
|
+
}).strict(),
|
|
7211
|
+
z3.object({
|
|
7212
|
+
...loopShared,
|
|
7213
|
+
event: z3.literal("failed_tests_rerun"),
|
|
7214
|
+
round: z3.number().int(),
|
|
7215
|
+
head: z3.string(),
|
|
7216
|
+
rerun_of: z3.string(),
|
|
7217
|
+
failed_files: z3.number().int().nonnegative(),
|
|
7218
|
+
affected_files: z3.number().int().nonnegative(),
|
|
7219
|
+
full_count: z3.number().int().nonnegative()
|
|
7220
|
+
}).strict(),
|
|
7221
|
+
z3.object({
|
|
7222
|
+
...loopShared,
|
|
7223
|
+
event: z3.literal("pr_opened"),
|
|
7224
|
+
round: z3.number().int(),
|
|
7225
|
+
pr: z3.number().int().positive(),
|
|
7226
|
+
head: z3.string()
|
|
7227
|
+
}).strict(),
|
|
7228
|
+
z3.object({
|
|
7229
|
+
...loopShared,
|
|
7230
|
+
event: z3.literal("ci_result_read"),
|
|
7231
|
+
round: z3.number().int(),
|
|
7232
|
+
pr: z3.number().int().positive(),
|
|
7233
|
+
head: z3.string(),
|
|
7234
|
+
conclusion: z3.enum(["green", "red", "pending", "skipped"]),
|
|
7235
|
+
failing_checks: z3.array(z3.string()),
|
|
7236
|
+
wait_ms: z3.number().nonnegative()
|
|
7237
|
+
}).strict(),
|
|
7238
|
+
z3.object({
|
|
7239
|
+
...loopShared,
|
|
7240
|
+
event: z3.literal("phase_time"),
|
|
7241
|
+
round: z3.number().int(),
|
|
7242
|
+
phase: z3.enum(["developer", "local_checks", "review", "push", "ci", "other"]),
|
|
7243
|
+
step: z3.string(),
|
|
7244
|
+
wall_ms: z3.number().nonnegative()
|
|
7245
|
+
}).strict(),
|
|
7182
7246
|
z3.object({
|
|
7183
7247
|
...loopShared,
|
|
7184
7248
|
event: z3.literal("driver_exited"),
|
|
@@ -7366,7 +7430,7 @@ var EffectEventSchema = z3.discriminatedUnion("event", [
|
|
|
7366
7430
|
]);
|
|
7367
7431
|
var CustomFieldValueSchema = z3.union([z3.string().max(CUSTOM_TEXT_MAX_LENGTH), z3.number().finite(), z3.boolean()]);
|
|
7368
7432
|
var customShared = {
|
|
7369
|
-
meta:
|
|
7433
|
+
meta: HeaderMetaSchema,
|
|
7370
7434
|
subject: SubjectSchema,
|
|
7371
7435
|
kind: z3.literal("custom"),
|
|
7372
7436
|
...envelopeTail
|
|
@@ -7451,7 +7515,7 @@ function buildHeader(input) {
|
|
|
7451
7515
|
const issue = subject.issue;
|
|
7452
7516
|
return {
|
|
7453
7517
|
meta: {
|
|
7454
|
-
schema:
|
|
7518
|
+
schema: 4,
|
|
7455
7519
|
ts: input.now.toISOString(),
|
|
7456
7520
|
run_id: input.runId,
|
|
7457
7521
|
seq: input.seq,
|
|
@@ -7488,6 +7552,15 @@ function buildHeader(input) {
|
|
|
7488
7552
|
version: lineageFieldFromEnv(input.env.flowVersion)
|
|
7489
7553
|
},
|
|
7490
7554
|
runtime: lineageFieldFromEnv(input.env.runtime),
|
|
7555
|
+
process: {
|
|
7556
|
+
id: lineageFieldFromEnv(input.env.processId) ?? "vinaya",
|
|
7557
|
+
version: lineageFieldFromEnv(input.env.processVersion),
|
|
7558
|
+
digest: lineageFieldFromEnv(input.env.processDigest)
|
|
7559
|
+
},
|
|
7560
|
+
runner: {
|
|
7561
|
+
id: lineageFieldFromEnv(input.env.runnerId) ?? "standalone",
|
|
7562
|
+
version: lineageFieldFromEnv(input.env.runnerVersion)
|
|
7563
|
+
},
|
|
7491
7564
|
source: lineageFieldFromEnv(input.env.source)
|
|
7492
7565
|
},
|
|
7493
7566
|
subject
|
|
@@ -7531,7 +7604,7 @@ function redact(value, home) {
|
|
|
7531
7604
|
return value;
|
|
7532
7605
|
}
|
|
7533
7606
|
// ../../packages/aeg-core/src/log/store.ts
|
|
7534
|
-
var KNOWN_SCHEMA_VERSIONS = [1, 2, 3];
|
|
7607
|
+
var KNOWN_SCHEMA_VERSIONS = [1, 2, 3, 4];
|
|
7535
7608
|
function metaOf(obj) {
|
|
7536
7609
|
if (obj === null || typeof obj !== "object")
|
|
7537
7610
|
return null;
|
|
@@ -7755,6 +7828,16 @@ var ResolutionRecordSchema = z4.object({
|
|
|
7755
7828
|
authenticatedFrom: z4.string().min(1),
|
|
7756
7829
|
consumedAt: isoTimestamp
|
|
7757
7830
|
}).strict();
|
|
7831
|
+
var ExecutionRoundMirrorRecordSchema = z4.object({
|
|
7832
|
+
version: z4.literal(1),
|
|
7833
|
+
kind: z4.literal("execution_round"),
|
|
7834
|
+
task: taskId,
|
|
7835
|
+
repository: z4.string().min(1),
|
|
7836
|
+
threadId: z4.string().min(1),
|
|
7837
|
+
checkpointId: z4.string().min(1),
|
|
7838
|
+
round: z4.number().int().positive(),
|
|
7839
|
+
recordedAt: isoTimestamp
|
|
7840
|
+
}).strict();
|
|
7758
7841
|
// ../../packages/aeg-core/src/control-store/local.ts
|
|
7759
7842
|
var CONTROL_AREA_DIRNAME = "control";
|
|
7760
7843
|
// src/checks/contract.ts
|