@attalabs/vinaya 0.35.0 → 0.37.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 +6 -6
- package/aeg-root/contracts/developer-reviewer.md +1 -1
- package/aeg-root/contracts/planner-operator.md +1 -1
- package/aeg-root/contracts/principal-operator.md +6 -6
- package/aeg-root/contracts/security-archivist.md +1 -1
- package/aeg-root/enforcement.md +9 -10
- package/aeg-root/process.md +3 -1
- package/aeg-root/roles/archivist.md +2 -2
- package/aeg-root/roles/developer/reference.md +13 -16
- package/aeg-root/roles/developer.md +7 -3
- package/aeg-root/roles/operator.md +18 -18
- package/aeg-root/roles/planner/reference.md +23 -8
- package/aeg-root/roles/planner.md +2 -0
- package/aeg-root/roles/principal.md +6 -1
- package/aeg-root/roles/reviewer.md +11 -3
- package/aeg-root/roles/security.md +19 -9
- package/aeg-root/roles/tranche-archivist.md +14 -2
- package/aeg-root/state-machine.md +11 -10
- package/aeg-root/templates/brief-template.md +10 -4
- package/aeg-root/templates/pr-report-template.md +1 -9
- package/aeg-root/tranche-model.md +4 -4
- package/dist/checks/bin/check-body-bare-digits.js +2081 -1883
- package/dist/checks/bin/check-branch-topology.js +1376 -1139
- package/dist/checks/bin/check-brief-shape.js +2081 -1883
- package/dist/checks/bin/check-changeset-coverage.js +2564 -2025
- package/dist/checks/bin/check-closes-n.js +1376 -1139
- package/dist/checks/bin/check-coherence.js +1480 -1228
- package/dist/checks/bin/check-dead-branch-push.js +1339 -1156
- package/dist/checks/bin/check-dispatch-readiness.js +1480 -1228
- package/dist/checks/bin/check-doc-coverage-push.js +2563 -2024
- package/dist/checks/bin/check-doc-coverage.js +2565 -2026
- package/dist/checks/bin/check-doctrine-no-procedures.js +2081 -1883
- package/dist/checks/bin/check-doctrine-portability.js +2563 -2024
- package/dist/checks/bin/check-evidence-fresh.js +1906 -1536
- package/dist/checks/bin/check-exec-bits.js +2136 -1597
- package/dist/checks/bin/check-first-push-dispatch.js +1480 -1228
- package/dist/checks/bin/check-issue-assignment.js +1376 -1139
- package/dist/checks/bin/check-issue-milestone-attach.js +1339 -1156
- package/dist/checks/bin/check-issue-objectives-numbering.js +2081 -1883
- package/dist/checks/bin/check-issue-parts-coverage.js +1339 -1156
- package/dist/checks/bin/check-issue-surface-globs.js +1488 -1227
- package/dist/checks/bin/check-issue-title-grammar.js +1339 -1156
- package/dist/checks/bin/check-issue-tranche-label.js +1339 -1156
- package/dist/checks/bin/check-main-branch-refusal.js +1342 -1159
- package/dist/checks/bin/check-no-disk-state.js +1342 -1159
- package/dist/checks/bin/check-pr-premise-reassert.js +2081 -1883
- package/dist/checks/bin/check-pr-report-density.js +1342 -1159
- package/dist/checks/bin/check-principal-test-plan-wait.js +1342 -1159
- package/dist/checks/bin/check-quoted-command.js +4063 -3526
- package/dist/checks/bin/check-reader-resolvable-prose.js +4082 -3533
- package/dist/checks/bin/check-registry-gates.js +1363 -1167
- package/dist/checks/bin/check-retired-vocabulary.js +4057 -3520
- package/dist/checks/bin/check-review-gate.js +2081 -1883
- package/dist/checks/bin/check-single-plan-pr.js +1339 -1156
- package/dist/checks/bin/check-surface-scope.js +1376 -1139
- package/dist/checks/bin/check-test-plan.js +1339 -1156
- package/dist/checks/bin/check-token-collection-wired.js +1342 -1159
- package/dist/checks/bin/check-token-report.js +1409 -1342
- package/dist/checks/bin/check-workspace-escape.js +2562 -2023
- package/dist/index.js +14171 -6490
- package/dist/lib/pre-push-cache-test-run.js +1044 -641
- package/dist/lib/pre-push-select-tests.js +641 -444
- package/package.json +2 -2
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/brief-render.ts +38 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/control-store/records.ts +19 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/dev-review-loop/assess-round.ts +257 -10
- 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 +2 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/dev-review-loop/render-summary.ts +69 -11
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/dev-review-loop/types.ts +139 -2
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/doc-claim.ts +32 -6
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/index.ts +27 -1
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/issue-validation.ts +757 -0
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/log/schema.ts +8 -1
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/review-gate.ts +52 -4
- package/studio-standalone/_node_modules/@attalabs/aeg-core/src/review-policy.ts +163 -21
- package/studio-standalone/apps/vinaya-studio/web/.next/BUILD_ID +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/app-path-routes-manifest.json +0 -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/required-server-files.json +0 -5
- package/studio-standalone/apps/vinaya-studio/web/.next/routes-manifest.json +0 -6
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/_global-error/page.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/_global-error/page.js.nft.json +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +5 -5
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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/app-paths-manifest.json +0 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/044u_vinaya-studio_web_src_app_studio_backlog__components_BacklogTable_tsx_0oha0bt._.js +3 -0
- 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]__1bh2awk._.js → [root-of-the-server]__038scsm._.js} +2 -2
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/{[root-of-the-server]__1widio3._.js → [root-of-the-server]__03__s45._.js} +2 -2
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/{_15gdg48._.js → [root-of-the-server]__04adkz-._.js} +3 -3
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/[root-of-the-server]__05zwn98._.js +14 -0
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/[root-of-the-server]__08e39jo._.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]__10riywf._.js +3 -0
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/{[root-of-the-server]__13znegp._.js → [root-of-the-server]__134x-65._.js} +2 -2
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/{[root-of-the-server]__0zc_0gx._.js → [root-of-the-server]__14ui9sz._.js} +2 -2
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/{[root-of-the-server]__13eeix2._.js → [root-of-the-server]__1_l_l1u._.js} +2 -2
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/[root-of-the-server]__1f4bb3_._.js +3 -0
- 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]__1dky4g0._.js → [root-of-the-server]__1my83lt._.js} +2 -2
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/[root-of-the-server]__1ng2x88._.js +3 -0
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/{[root-of-the-server]__040smoa._.js → [root-of-the-server]__1qpc6at._.js} +2 -2
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/[root-of-the-server]__1snpgaw._.js +56 -0
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/[root-of-the-server]__1wc4-ip._.js +2 -2
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_06h3wbl._.js +3 -0
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_08onyya._.js +1 -1
- 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/_0gs4gvl._.js +3 -0
- 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 +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/_121lrn5._.js +3 -0
- 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/_1o4v6lb._.js +3 -0
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_1q7h5mz._.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_1ztd4i3._.js +3 -0
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_209-ugd._.js +3 -0
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_214d71c._.js +3 -0
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/apps_vinaya-studio_web_src_app_studio_projects_[name]_tranches_[slug]_17dho0f._.js +3 -0
- 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/chunks/ssr/node_modules_next_dist_1lzmr5o._.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/packages_ui_libraries_animate_components_index_ts_186fje1._.js +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/packages_ui_libraries_basic_components_index_ts_0xk1vda._.js +1 -1
- 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/09fcolor69bun.js +1 -0
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/0lcwmwzxacdie.js +1 -0
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/0ojry7lrbzkfd.css +1 -0
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/0vtfb0g813gki.js +1 -0
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/1giu47hrbhroj.js +1 -0
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/1shz6lwruld25.js +1 -0
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/1ytvuy1mmnc6j.js +1 -0
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/{3oxhhhm_psozq.js → 21a6_5cr956wj.js} +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/2g8mwnydod96u.js +1 -0
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/{3li0ueedy-ozv.js → 2nrnuawd5fwpv.js} +1 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/2nw47832_uvfe.js +1 -0
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/2qdxnj8wk2h0s.js +1 -0
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/3b9q75p-z5ma5.js +1 -0
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/3cv-oe7153242.js +1 -0
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/{3ip5z3cf43bgo.js → 3l56x8wjdzvaw.js} +5 -5
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/3m310lbjj4p5u.js +1 -0
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/{3goaig_rysc6p.js → 3qtt1v3ya-ofe.js} +1 -1
- package/studio-standalone/apps/vinaya-studio/web/package.json +2 -2
- package/studio-standalone/apps/vinaya-studio/web/server.js +1 -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/vinaya/studio-standalone/_node_modules/@attalabs/vinaya/studio-standalone/_node_modules/@attalabs/vinaya/studio-standalone/_node_modules/@attalabs/aeg-core/bin/verify-coherence.ts +0 -1089
- package/studio-standalone/_node_modules/next/dist/compiled/next-server/app-route-turbo.runtime.prod.js +0 -6
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/api/coherence/route/app-paths-manifest.json +0 -3
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/api/coherence/route/build-manifest.json +0 -9
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/api/coherence/route/server-reference-manifest.json +0 -4
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/api/coherence/route.js +0 -6
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/api/coherence/route.js.map +0 -5
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/api/coherence/route.js.nft.json +0 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/server/app/api/coherence/route_client-reference-manifest.js +0 -3
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/044u_vinaya-studio_web__next-internal_server_app_api_coherence_route_actions_1rnzea1.js +0 -3
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/[externals]__0cki-x_._.js +0 -3
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/[root-of-the-server]__02a-3g8._.js +0 -15
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/[turbopack]_runtime.js +0 -903
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/[root-of-the-server]__074w9nf._.js +0 -3
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/[root-of-the-server]__0ln09ua._.js +0 -3
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/[root-of-the-server]__0oegopp._.js +0 -3
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/[root-of-the-server]__13yxbjd._.js +0 -51
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/[root-of-the-server]__1duqmtm._.js +0 -3
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/[root-of-the-server]__1z7dml9._.js +0 -9
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_0bfs_u4._.js +0 -3
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_0g8_eot._.js +0 -3
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_0hrh_v-._.js +0 -181
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_0i4-dea._.js +0 -3
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_0o54suy._.js +0 -3
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_0rxd7s0._.js +0 -3
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_0y1jv16._.js +0 -3
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_151m4rz._.js +0 -3
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_1a9dieq._.js +0 -3
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_1sxsf5q._.js +0 -3
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_1sy_yfr._.js +0 -3
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/_219v2an._.js +0 -3
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/apps_vinaya-studio_web_src_app_studio_projects_[name]_tranches_[slug]_05ufo8i._.js +0 -3
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/packages_ui_libraries_basic_components_form_input_tsx_0es8d8b._.js +0 -3
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/packages_ui_libraries_brutal_components_index_ts_0n_lcc4._.js +0 -3
- package/studio-standalone/apps/vinaya-studio/web/.next/server/chunks/ssr/packages_ui_libraries_retro_components_index_ts_0wvpm_z._.js +0 -3
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/0bjnj-5fy4e7l.js +0 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/0c8uwz_-m8s99.js +0 -165
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/0ct0c-xj0baf6.js +0 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/0ko698wh8xx2g.css +0 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/0t5n_r4xm__t-.js +0 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/0vc2u252q5q6o.js +0 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/16r_o07lw0vm0.js +0 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/1cah7_e5a1zvu.js +0 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/1gjo9-6dz7nup.js +0 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/24tz8aro1uto4.js +0 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/2ef2g5fozszw7.js +0 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/2ka8dg687auhj.js +0 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/2pf3f50gbrkyv.js +0 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/2qq49pct3q51-.js +0 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/3et66z7glk65w.js +0 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/3u9emqjwpd0t9.js +0 -1
- package/studio-standalone/apps/vinaya-studio/web/.next/static/chunks/3y6u3prmrkea-.js +0 -1
- /package/studio-standalone/apps/vinaya-studio/web/.next/static/{ca66rAHI_w9D7S7ceXDvR → yR5RsCxb1OGnYggiaO09S}/_buildManifest.js +0 -0
- /package/studio-standalone/apps/vinaya-studio/web/.next/static/{ca66rAHI_w9D7S7ceXDvR → yR5RsCxb1OGnYggiaO09S}/_clientMiddlewareManifest.js +0 -0
- /package/studio-standalone/apps/vinaya-studio/web/.next/static/{ca66rAHI_w9D7S7ceXDvR → yR5RsCxb1OGnYggiaO09S}/_ssgManifest.js +0 -0
package/studio-standalone/_node_modules/@attalabs/aeg-core/src/dev-review-loop/render-summary.ts
CHANGED
|
@@ -5,8 +5,16 @@
|
|
|
5
5
|
* `Judged head:`, or `Objectives version:` label anywhere in the output.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
import { DEFERRAL_REASON_TEXT } from '../review-policy'
|
|
8
9
|
import { SUMMARY_TABLE_HEADER } from './journal-reconstruction'
|
|
9
|
-
import {
|
|
10
|
+
import {
|
|
11
|
+
SEVERITY_COLUMNS,
|
|
12
|
+
type Confidence,
|
|
13
|
+
type DeferredFindingRow,
|
|
14
|
+
type Journal,
|
|
15
|
+
type NotReviewedReason,
|
|
16
|
+
type RoundRecord
|
|
17
|
+
} from './types'
|
|
10
18
|
|
|
11
19
|
/**
|
|
12
20
|
* The two non-numeric cells this table writes, named once so the parser below
|
|
@@ -38,14 +46,18 @@ function confidenceCell(confidence: Confidence | null): string {
|
|
|
38
46
|
*
|
|
39
47
|
* A round the loop ASSESSED records every severity column, zeros included
|
|
40
48
|
* (`buildRoundRecord`, `assess-round.ts`), so a record carrying none of them
|
|
41
|
-
* is one whose counts have no source: a round rebuilt
|
|
42
|
-
* own round markers after a restart, which name a
|
|
43
|
-
* carry no finding breakdown at all
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
+
* is one whose counts have no source. Two kinds carry none: a round rebuilt
|
|
50
|
+
* from the pull request's own round markers after a restart, which name a
|
|
51
|
+
* round's number and head and carry no finding breakdown at all
|
|
52
|
+
* (`journal-reconstruction.ts`); and a round no reviewer ever saw — its gate
|
|
53
|
+
* was red, or a low confidence sent the developer back — which records no
|
|
54
|
+
* counts on purpose (`buildUnreviewedRecord`, `assess-round.ts`) and names why
|
|
55
|
+
* in its outcome cell (`outcomeCell` below). Writing `0` for those cells told a
|
|
56
|
+
* reader the round was clean — four rounds of a real task's published table
|
|
57
|
+
* read as zero findings when the truth was that nobody knew, and an unreviewed
|
|
58
|
+
* round read as a clean review that never ran. The distinction is whether the
|
|
59
|
+
* counts were recorded, never whether they are zero: a round the loop assessed
|
|
60
|
+
* and found nothing in still reads `0`, because that zero is a measurement.
|
|
49
61
|
*/
|
|
50
62
|
function countCells(record: RoundRecord): string[] {
|
|
51
63
|
const recorded = SEVERITY_COLUMNS.some((key) => record.countsBySeverity[key] !== undefined)
|
|
@@ -53,15 +65,61 @@ function countCells(record: RoundRecord): string[] {
|
|
|
53
65
|
return SEVERITY_COLUMNS.map((key) => String(record.countsBySeverity[key] ?? 0))
|
|
54
66
|
}
|
|
55
67
|
|
|
68
|
+
/**
|
|
69
|
+
* The outcome cell. A round the loop assessed (or one rebuilt from a marker)
|
|
70
|
+
* prints its own `outcome` verbatim — the vocabulary `render-summary.test.ts`
|
|
71
|
+
* pins (`green`, `changes_requested`, `escalated`, `stopped`). A round no
|
|
72
|
+
* reviewer saw (`notReviewed` set, `buildUnreviewedRecord` in
|
|
73
|
+
* `assess-round.ts`) instead states that no review ran and why, so a reader
|
|
74
|
+
* never takes its `—` counts for a clean round the way the old `0` /
|
|
75
|
+
* `changes_requested` row read.
|
|
76
|
+
*/
|
|
77
|
+
const NOT_REVIEWED_REASON_TEXT: Record<NotReviewedReason, string> = {
|
|
78
|
+
checks_red: 'checks red',
|
|
79
|
+
low_confidence: 'low confidence',
|
|
80
|
+
mechanical_failure: 'mechanical failure'
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
function outcomeCell(record: RoundRecord): string {
|
|
84
|
+
if (record.notReviewed !== undefined) return `not reviewed — ${NOT_REVIEWED_REASON_TEXT[record.notReviewed]}`
|
|
85
|
+
return record.outcome
|
|
86
|
+
}
|
|
87
|
+
|
|
56
88
|
function row(record: RoundRecord): string {
|
|
57
|
-
return `| ${record.round} | ${countCells(record).join(' | ')} | ${confidenceCell(record.confidence)} | ${record
|
|
89
|
+
return `| ${record.round} | ${countCells(record).join(' | ')} | ${confidenceCell(record.confidence)} | ${outcomeCell(record)} |`
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/** The heading that opens the deferred-findings block, so a reader (and a test) can find it without matching a whole line. */
|
|
93
|
+
export const DEFERRED_FINDINGS_HEADING = 'Deferred findings (reported, not blocking this round):'
|
|
94
|
+
|
|
95
|
+
/** One deferred finding as the summary lists it (O4): its original severity, its `file:line` (or `(no location)` when it carried none), and why. */
|
|
96
|
+
export function renderDeferredFindingLine(round: number, f: DeferredFindingRow): string {
|
|
97
|
+
const where = f.location.length > 0 ? f.location : '(no location)'
|
|
98
|
+
return `- round ${round} — ${f.severity} ${where} — ${DEFERRAL_REASON_TEXT[f.reason]}`
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* The deferred-findings block appended below the table (O4) — one line per
|
|
103
|
+
* deferred finding across every round, in round then report order. Empty
|
|
104
|
+
* string when no round deferred anything, so the summary is byte-identical to
|
|
105
|
+
* what it was before this task on a run that deferred nothing. Deliberately
|
|
106
|
+
* NOT a `|`-delimited table: `parseSummaryConfidenceRows` reads the table by
|
|
107
|
+
* its pipe-delimited rows, so a plain-list block can never be misread as a
|
|
108
|
+
* round row.
|
|
109
|
+
*/
|
|
110
|
+
function renderDeferredBlock(journal: Journal): string[] {
|
|
111
|
+
const lines: string[] = []
|
|
112
|
+
for (const record of journal.rounds) {
|
|
113
|
+
for (const f of record.deferred ?? []) lines.push(renderDeferredFindingLine(record.round, f))
|
|
114
|
+
}
|
|
115
|
+
return lines.length === 0 ? [] : ['', DEFERRED_FINDINGS_HEADING, ...lines]
|
|
58
116
|
}
|
|
59
117
|
|
|
60
118
|
export function renderSummary(journal: Journal): string {
|
|
61
119
|
const header = SUMMARY_TABLE_HEADER
|
|
62
120
|
const divider = `| --- | ${SEVERITY_COLUMNS.map(() => '---').join(' | ')} | --- | --- |`
|
|
63
121
|
const rows = journal.rounds.map(row)
|
|
64
|
-
return [header, divider, ...rows].join('\n')
|
|
122
|
+
return [header, divider, ...rows, ...renderDeferredBlock(journal)].join('\n')
|
|
65
123
|
}
|
|
66
124
|
|
|
67
125
|
/**
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import type { DevReviewLoopEvent } from '../log'
|
|
9
|
+
import type { DeferralReason } from '../review-policy'
|
|
9
10
|
|
|
10
11
|
type Envelope = { meta: unknown; subject: unknown }
|
|
11
12
|
/**
|
|
@@ -40,9 +41,23 @@ export type FindingState = 'open' | 'fix-claimed' | 'reproduced' | 'resolved' |
|
|
|
40
41
|
export type FindingObservation = {
|
|
41
42
|
id: string
|
|
42
43
|
severity: string
|
|
44
|
+
/**
|
|
45
|
+
* The finding's own `file:line` (O4) — carried so the round summary can name
|
|
46
|
+
* every deferred finding's location. Optional: an older extraction shape, or
|
|
47
|
+
* a finding with none, simply has none to report.
|
|
48
|
+
*/
|
|
49
|
+
location?: string
|
|
43
50
|
state: FindingState
|
|
44
51
|
severityScale?: string
|
|
45
52
|
policyTreatment?: 'blocking' | 'non_blocking' | 'unavailable'
|
|
53
|
+
/**
|
|
54
|
+
* Set only when the round set this finding aside rather than let it block
|
|
55
|
+
* (O2/O3): `'unchanged-line'` (round 2 on, a line that did not change) or
|
|
56
|
+
* `'outside-surface'` (any round, a file the Surface `in:` does not cover).
|
|
57
|
+
* Absent means the finding was NOT deferred — it blocked, or was below
|
|
58
|
+
* threshold. `policyTreatment` reads `non_blocking` whenever this is set.
|
|
59
|
+
*/
|
|
60
|
+
deferred?: DeferralReason
|
|
46
61
|
confidence?: number
|
|
47
62
|
confidenceScale?: string
|
|
48
63
|
confidenceSource?: string
|
|
@@ -77,11 +92,42 @@ export type RoundStats = {
|
|
|
77
92
|
* round, before the loop pauses (spec §6.7's bounded re-ask).
|
|
78
93
|
*/
|
|
79
94
|
export type Observations =
|
|
80
|
-
| ({ kind: 'gate' } & {
|
|
95
|
+
| ({ kind: 'gate' } & {
|
|
96
|
+
round: number
|
|
97
|
+
green: boolean
|
|
98
|
+
confidence?: Confidence
|
|
99
|
+
stats: RoundStats
|
|
100
|
+
/**
|
|
101
|
+
* The mechanical failure that made this gate red, verbatim — the
|
|
102
|
+
* failing check-run names and premise re-assert messages the driver
|
|
103
|
+
* already holds, exactly as it would print them. Read only when
|
|
104
|
+
* `green` is false, and only to match this attempt's failure against
|
|
105
|
+
* the previous one's (`normalizeFailureSignature`, `assess-round.ts`);
|
|
106
|
+
* a red gate whose cause the driver could not name omits it, which
|
|
107
|
+
* breaks the repeat chain rather than matching an unknown to an
|
|
108
|
+
* unknown.
|
|
109
|
+
*/
|
|
110
|
+
failure?: string
|
|
111
|
+
})
|
|
81
112
|
| ({ kind: 'verdicts' } & {
|
|
82
113
|
round: number
|
|
83
114
|
verdicts: VerdictObservation[]
|
|
84
115
|
})
|
|
116
|
+
/**
|
|
117
|
+
* A mechanical failure that ended an attempt WITHOUT producing a head for
|
|
118
|
+
* the gate to read — a push the developer could not land (refused by a
|
|
119
|
+
* pre-push hook, or by the remote), or a turn that pushed nothing at all.
|
|
120
|
+
* There is no gate result to report for such an attempt, so it cannot
|
|
121
|
+
* arrive as a `gate` observation; it carries only the failure the driver
|
|
122
|
+
* observed, which the same `'repeat_failure'` rule matches against the
|
|
123
|
+
* previous attempt's. Unlike a `gate` observation, a non-repeat here
|
|
124
|
+
* records nothing but the signature: no round record, no events, no round
|
|
125
|
+
* accounting — the attempt produced no head, so there is nothing about it
|
|
126
|
+
* to publish, and the driver's own bounds (one resume then `'no_push'`,
|
|
127
|
+
* the stalled-head bound then `'infrastructure'`) still govern a first
|
|
128
|
+
* occurrence.
|
|
129
|
+
*/
|
|
130
|
+
| ({ kind: 'mechanical_failure' } & { round: number; failure: string; stats: RoundStats })
|
|
85
131
|
|
|
86
132
|
/**
|
|
87
133
|
* `'infrastructure'`: a review
|
|
@@ -136,6 +182,23 @@ export type Observations =
|
|
|
136
182
|
* what the merge gate (which DOES re-resolve policy fresh on every run)
|
|
137
183
|
* already checks.
|
|
138
184
|
*
|
|
185
|
+
* `'repeat_finding'`: the same blocking finding — same reviewer role, same
|
|
186
|
+
* finding id — was still open in two consecutive reviewed rounds. Unlike
|
|
187
|
+
* `'reappearance'` (an id the reviewer itself marked `resolved` and then
|
|
188
|
+
* reported again), nothing here was ever claimed fixed: the finding simply
|
|
189
|
+
* never left, and a third developer turn on it is a turn the loop has no
|
|
190
|
+
* reason to expect anything new from. Decided by `assessRound`, which
|
|
191
|
+
* carries the repeated key(s) in the pause's own `detail`.
|
|
192
|
+
*
|
|
193
|
+
* `'repeat_failure'`: two consecutive attempts ended on the same mechanical
|
|
194
|
+
* failure — a refused push, a premise re-check mismatch, a forge or network
|
|
195
|
+
* error, a failed pre-push test — matched by the normalised signature
|
|
196
|
+
* `normalizeFailureSignature` derives (`assess-round.ts`), never by raw
|
|
197
|
+
* string equality: the volatile parts of such a message (timestamps,
|
|
198
|
+
* temporary paths, process ids, durations) differ between two runs of the
|
|
199
|
+
* SAME failure. The driver reports the failure text it already has on the
|
|
200
|
+
* gate observation; the pause's `detail` is that exact message, unnormalised.
|
|
201
|
+
*
|
|
139
202
|
* `'no_push'`: a developer turn
|
|
140
203
|
* ended with a dirty worktree or local commits ahead of the remote, and no
|
|
141
204
|
* new head appeared on the branch even after one foreground resume asking
|
|
@@ -153,6 +216,8 @@ export type PauseReason =
|
|
|
153
216
|
| 'no_progress'
|
|
154
217
|
| 'confidence'
|
|
155
218
|
| 'reappearance'
|
|
219
|
+
| 'repeat_finding'
|
|
220
|
+
| 'repeat_failure'
|
|
156
221
|
| 'infrastructure'
|
|
157
222
|
| 'no_push'
|
|
158
223
|
| 'objectives_changed'
|
|
@@ -169,7 +234,15 @@ export type Decision =
|
|
|
169
234
|
| {
|
|
170
235
|
type: 'pause'
|
|
171
236
|
reason: PauseReason
|
|
172
|
-
/**
|
|
237
|
+
/**
|
|
238
|
+
* The pause's own narration, when the deciding component has one:
|
|
239
|
+
* `'infrastructure'` (the role and missing artifact(s) the driver
|
|
240
|
+
* observed), `'max_rounds'` (the configured cap), `'repeat_finding'`
|
|
241
|
+
* (the reviewer-qualified finding key(s) open two rounds running), and
|
|
242
|
+
* `'repeat_failure'` (the exact failure message, unnormalised). Every
|
|
243
|
+
* other reason omits it here — the driver narrates several of them
|
|
244
|
+
* itself from facts it already holds (`deriveVerdictPauseDetail`).
|
|
245
|
+
*/
|
|
173
246
|
detail?: string
|
|
174
247
|
}
|
|
175
248
|
|
|
@@ -184,12 +257,59 @@ export type Decision =
|
|
|
184
257
|
*/
|
|
185
258
|
export type RoundOutcome = 'green' | 'changes_requested' | 'escalated' | 'stopped'
|
|
186
259
|
|
|
260
|
+
/**
|
|
261
|
+
* Why a round ended before any reviewer ran, for the published table's outcome
|
|
262
|
+
* cell. A round no reviewer saw has no findings from any source, so it records
|
|
263
|
+
* no counts at all (an empty `countsBySeverity`, `render-summary.ts`' own `—`)
|
|
264
|
+
* rather than a zero that reads as a clean review — and this names the reason
|
|
265
|
+
* the outcome cell states instead of the log-parity `outcome` a reviewed round
|
|
266
|
+
* carries:
|
|
267
|
+
*
|
|
268
|
+
* - `'checks_red'` — the round's gate observation was not green, so reviewers
|
|
269
|
+
* were never dispatched;
|
|
270
|
+
* - `'low_confidence'` — a below-threshold confidence sent the developer back
|
|
271
|
+
* without dispatching reviewers;
|
|
272
|
+
* - `'mechanical_failure'` — the same mechanical failure ended two
|
|
273
|
+
* consecutive attempts that never produced a head (`'repeat_failure'`),
|
|
274
|
+
* so no gate ever judged one and no reviewer ever saw it.
|
|
275
|
+
*
|
|
276
|
+
* `outcome` stays whatever the round would otherwise carry (both reasons are
|
|
277
|
+
* `changes_requested` today), so the `round_ended` log event a reader parses is
|
|
278
|
+
* unaffected — only the summary table's rendering changes.
|
|
279
|
+
*/
|
|
280
|
+
export type NotReviewedReason = 'checks_red' | 'low_confidence' | 'mechanical_failure'
|
|
281
|
+
|
|
282
|
+
/** One deferred finding, as the published summary reports it (O4) — its original severity, its `file:line`, and why this round set it aside, never its reported severity mutated. */
|
|
283
|
+
export type DeferredFindingRow = {
|
|
284
|
+
severity: string
|
|
285
|
+
/** The finding's own `file:line`, or `''` when it carried none. */
|
|
286
|
+
location: string
|
|
287
|
+
reason: DeferralReason
|
|
288
|
+
}
|
|
289
|
+
|
|
187
290
|
/** One row of the published summary (`renderSummary`, O4) — counts only, no finding prose. */
|
|
188
291
|
export type RoundRecord = {
|
|
189
292
|
round: number
|
|
190
293
|
countsBySeverity: Record<string, number>
|
|
191
294
|
confidence: Confidence | null
|
|
192
295
|
outcome: RoundOutcome
|
|
296
|
+
/**
|
|
297
|
+
* Every finding this round set aside rather than let it block (O2/O3),
|
|
298
|
+
* carried so the published summary can list each with its original severity,
|
|
299
|
+
* location and reason (O4). Absent/`[]` for a round that deferred none, and
|
|
300
|
+
* for a marker-reconstructed round (its findings are unknown — see
|
|
301
|
+
* `journal-reconstruction.ts`).
|
|
302
|
+
*/
|
|
303
|
+
deferred?: DeferredFindingRow[]
|
|
304
|
+
/**
|
|
305
|
+
* Set only for a round no reviewer saw (`buildUnreviewedRecord`,
|
|
306
|
+
* `assess-round.ts`): its counts are absent (empty `countsBySeverity`) and the
|
|
307
|
+
* table's outcome cell names this reason. Absent for every round the loop
|
|
308
|
+
* assessed and for a round rebuilt from a marker — a marker-reconstructed
|
|
309
|
+
* round's counts are likewise unknown, but the round DID reach review, so it
|
|
310
|
+
* keeps its `outcome`, not a not-reviewed reason.
|
|
311
|
+
*/
|
|
312
|
+
notReviewed?: NotReviewedReason
|
|
193
313
|
}
|
|
194
314
|
|
|
195
315
|
export type Journal = { rounds: RoundRecord[] }
|
|
@@ -222,6 +342,21 @@ export type LoopState = {
|
|
|
222
342
|
extraTurnUsed: boolean
|
|
223
343
|
/** The most recent round's combined id → state map, carried forward for the next round's comparison. */
|
|
224
344
|
lastIds: Map<string, string | null>
|
|
345
|
+
/**
|
|
346
|
+
* The previous REVIEWED round's blocking-and-open finding keys
|
|
347
|
+
* (`<role>:<id>`, sorted), for the `'repeat_finding'` stop. Rounds no
|
|
348
|
+
* reviewer saw (a red gate, a low-confidence turn) never touch it: two
|
|
349
|
+
* consecutive rounds means two consecutive rounds that produced verdicts,
|
|
350
|
+
* not two iterations of the driver's loop.
|
|
351
|
+
*/
|
|
352
|
+
lastBlockingFindings: string[]
|
|
353
|
+
/**
|
|
354
|
+
* The previous attempt's mechanical failure — its normalised `signature`
|
|
355
|
+
* (what two attempts are matched on) and the `message` as reported (what
|
|
356
|
+
* the pause names). `null` whenever the last attempt reached a green gate,
|
|
357
|
+
* or failed with no reported cause: either breaks the repeat chain.
|
|
358
|
+
*/
|
|
359
|
+
lastFailure: { signature: string; message: string } | null
|
|
225
360
|
/** Running sums for `journal_finalized` — updated once per concluded round, never recomputed from `rounds` (which carries counts only, not diff stats). */
|
|
226
361
|
totalWallMs: number
|
|
227
362
|
totalFilesChanged: number
|
|
@@ -234,6 +369,8 @@ export function initialLoopState(config: LoopConfig): LoopState {
|
|
|
234
369
|
pending: null,
|
|
235
370
|
extraTurnUsed: false,
|
|
236
371
|
lastIds: new Map(),
|
|
372
|
+
lastBlockingFindings: [],
|
|
373
|
+
lastFailure: null,
|
|
237
374
|
totalWallMs: 0,
|
|
238
375
|
totalFilesChanged: 0
|
|
239
376
|
}
|
|
@@ -156,23 +156,49 @@ function withoutClaimMarkers(content: string): string {
|
|
|
156
156
|
.join('\n')
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
+
/**
|
|
160
|
+
* How a finding addresses the author of the thing that carries the binding.
|
|
161
|
+
*
|
|
162
|
+
* A doc sentence and a task Issue's `## Premises` line are the same assertion
|
|
163
|
+
* about the same file, evaluated by the same predicate — but the author reads
|
|
164
|
+
* a different sentence back. Defaulted to the doc-claim voice below, so every
|
|
165
|
+
* existing caller is unchanged; the Issue gate passes its own rather than
|
|
166
|
+
* growing a second evaluator whose predicate could drift from this one.
|
|
167
|
+
*/
|
|
168
|
+
export type ClaimVoice = {
|
|
169
|
+
/** Names where the binding is written — `${file}:${line}` by default. */
|
|
170
|
+
locate: (binding: ClaimBinding) => string
|
|
171
|
+
/** What to do when a `contains`/`absent` pin no longer holds. */
|
|
172
|
+
staleRemediation: (path: string) => string
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
const DOC_CLAIM_VOICE: ClaimVoice = {
|
|
176
|
+
locate: (binding) => `${binding.file}:${binding.line}`,
|
|
177
|
+
staleRemediation: (path) =>
|
|
178
|
+
`The sentence bound here claims something \`${path}\` no longer shows. Re-read the code, then correct the sentence and re-bind it, or remove it — never reword an unbound claim.`
|
|
179
|
+
}
|
|
180
|
+
|
|
159
181
|
/**
|
|
160
182
|
* Re-assert every binding against the cited file's current content. The
|
|
161
183
|
* predicate itself is delegated to `checkPremises` — one implementation of
|
|
162
184
|
* `contains`/`absent`/`sha256`, shared with the brief's own `Premise:` block,
|
|
163
185
|
* so the two grammars can never drift into disagreeing about what a pin
|
|
164
186
|
* means. Only the message is composed here, because a doc claim's remediation
|
|
165
|
-
* differs from a stale brief's
|
|
187
|
+
* differs from a stale brief's — and, since a task Issue's `## Premises`
|
|
188
|
+
* section reuses this same evaluation, `voice` is what lets that caller say
|
|
189
|
+
* "rewrite the premise" where a doc says "rewrite the sentence".
|
|
166
190
|
*/
|
|
167
191
|
export function evaluateClaimBindings(
|
|
168
192
|
bindings: readonly ClaimBinding[],
|
|
169
|
-
fileReader: (path: string) => string | null
|
|
193
|
+
fileReader: (path: string) => string | null,
|
|
194
|
+
voice: ClaimVoice = DOC_CLAIM_VOICE
|
|
170
195
|
): ClaimFinding[] {
|
|
171
196
|
const findings: ClaimFinding[] = []
|
|
172
197
|
|
|
173
198
|
for (const binding of bindings) {
|
|
174
199
|
const { file, line, assertion } = binding
|
|
175
200
|
const pin = `${assertion.path} ${assertion.kind}:${assertion.value}`
|
|
201
|
+
const at = voice.locate(binding)
|
|
176
202
|
|
|
177
203
|
// An invalid cited path never reaches the file-read stage. `quoted-command.ts`
|
|
178
204
|
// treats one as no marker at all, to deny an attacker any signal difference;
|
|
@@ -183,7 +209,7 @@ export function evaluateClaimBindings(
|
|
|
183
209
|
findings.push({
|
|
184
210
|
file,
|
|
185
211
|
line,
|
|
186
|
-
message: `${
|
|
212
|
+
message: `${at} binds \`${pin}\`, but \`${assertion.path}\` is not a repo-root-relative path (absolute paths and \`..\` traversal are refused). Cite a file inside the repository.`
|
|
187
213
|
})
|
|
188
214
|
continue
|
|
189
215
|
}
|
|
@@ -193,7 +219,7 @@ export function evaluateClaimBindings(
|
|
|
193
219
|
findings.push({
|
|
194
220
|
file,
|
|
195
221
|
line,
|
|
196
|
-
message: `${
|
|
222
|
+
message: `${at} binds \`${pin}\`, but \`${assertion.path}\` could not be read. Cite a file that exists, or remove it.`
|
|
197
223
|
})
|
|
198
224
|
continue
|
|
199
225
|
}
|
|
@@ -205,12 +231,12 @@ export function evaluateClaimBindings(
|
|
|
205
231
|
const remediation =
|
|
206
232
|
assertion.kind === 'sha256'
|
|
207
233
|
? `\`${assertion.path}\` changed, so the pinned hash is stale. If this PR is the change, update the pin in this same PR; otherwise the bound sentence may no longer be true — re-read it, then re-bind or remove it.`
|
|
208
|
-
:
|
|
234
|
+
: voice.staleRemediation(assertion.path)
|
|
209
235
|
|
|
210
236
|
findings.push({
|
|
211
237
|
file,
|
|
212
238
|
line,
|
|
213
|
-
message: `${
|
|
239
|
+
message: `${at} binds \`${pin}\`, which no longer holds. ${remediation}`
|
|
214
240
|
})
|
|
215
241
|
}
|
|
216
242
|
|
|
@@ -81,10 +81,12 @@ export {
|
|
|
81
81
|
} from './waiver-label'
|
|
82
82
|
export {
|
|
83
83
|
blockingSeverities,
|
|
84
|
+
classifyFinding,
|
|
84
85
|
CODE_REVIEW_SEVERITY_ORDER,
|
|
85
86
|
codeReviewBlockingSeverities,
|
|
86
87
|
consequentialFindings,
|
|
87
88
|
DEFAULT_REVIEW_POLICY,
|
|
89
|
+
DEFERRAL_REASON_TEXT,
|
|
88
90
|
evaluateCodeReview,
|
|
89
91
|
evaluateReviewFindings,
|
|
90
92
|
evaluateSecurityReview,
|
|
@@ -97,6 +99,11 @@ export {
|
|
|
97
99
|
} from './review-policy'
|
|
98
100
|
export type {
|
|
99
101
|
CodeReviewSeverity,
|
|
102
|
+
DeferralReason,
|
|
103
|
+
DeferredFinding,
|
|
104
|
+
FindingClassification,
|
|
105
|
+
FindingDeferralContext,
|
|
106
|
+
FindingPolicyOutcome,
|
|
100
107
|
PolicyEvaluation,
|
|
101
108
|
PolicyFinding,
|
|
102
109
|
ReviewPolicy,
|
|
@@ -249,21 +256,31 @@ export type {
|
|
|
249
256
|
ReviewInputManifestFacts
|
|
250
257
|
} from './review-input-manifest'
|
|
251
258
|
export {
|
|
259
|
+
boundaryPinnedFiles,
|
|
252
260
|
checkBlastRadiusScope,
|
|
261
|
+
checkBoundaryClaimsNeedPremise,
|
|
253
262
|
checkConflictCompleteness,
|
|
254
263
|
checkDocsWithinSurface,
|
|
264
|
+
checkFileCollisions,
|
|
265
|
+
DEFAULT_COLLISION_THRESHOLD,
|
|
255
266
|
checkDocumentationCitesObjective,
|
|
256
267
|
checkEdgeIdsWholeNumbers,
|
|
257
268
|
checkIssueBriefSections,
|
|
258
269
|
checkIssueObjectives,
|
|
270
|
+
checkIssuePremises,
|
|
259
271
|
checkIssueRationale,
|
|
260
272
|
checkIssueType,
|
|
273
|
+
checkIntroducedCommandsCovered,
|
|
274
|
+
checkIntroducedConfigKeysCovered,
|
|
261
275
|
checkMilestoneAttach,
|
|
262
276
|
checkNoBriefContent,
|
|
263
277
|
checkNoForeignTaskOwnership,
|
|
264
278
|
checkObjectivesRespectBoundary,
|
|
265
279
|
checkPartsCiteDefinedObjectives,
|
|
266
280
|
checkPartsCoverageAndSequence,
|
|
281
|
+
checkPinnedFileImportersCovered,
|
|
282
|
+
checkPremiseDependencyDeclared,
|
|
283
|
+
checkPremisesHold,
|
|
267
284
|
checkProjectsRegistered,
|
|
268
285
|
checkRationaleNamesDocs,
|
|
269
286
|
checkRationaleSurfaceCoverage,
|
|
@@ -283,21 +300,29 @@ export {
|
|
|
283
300
|
OBJECTIVES_SINCE_ISSUE,
|
|
284
301
|
parseIssueDocumentation,
|
|
285
302
|
parseIssueParts,
|
|
303
|
+
parseIssuePremises,
|
|
286
304
|
parseIssueStopConditions,
|
|
287
305
|
parseIssueSurface,
|
|
288
306
|
parseIssueTestPlan
|
|
289
307
|
} from './issue-validation'
|
|
290
308
|
export type {
|
|
309
|
+
CommandReferenceEntry,
|
|
310
|
+
CommandReferenceFacts,
|
|
311
|
+
ConfigReferenceFacts,
|
|
312
|
+
FileCollisionResult,
|
|
291
313
|
FrozenSection,
|
|
292
314
|
IssueDocumentation,
|
|
293
315
|
IssueDocumentationSource,
|
|
294
316
|
IssuePart,
|
|
317
|
+
IssuePremise,
|
|
295
318
|
IssueSectionResult,
|
|
296
319
|
IssueSurface,
|
|
297
320
|
IssueTestPlan,
|
|
321
|
+
PinnedFileImporters,
|
|
298
322
|
SurfaceScopeResult,
|
|
299
323
|
SurfaceScopeViolation,
|
|
300
324
|
ProjectPath,
|
|
325
|
+
TaskFileFacts,
|
|
301
326
|
TaskIssueFacts,
|
|
302
327
|
TaskSurfaceFacts
|
|
303
328
|
} from './issue-validation'
|
|
@@ -332,7 +357,7 @@ export type { DerivationRule, ForgeFactInput } from './state-machine-model'
|
|
|
332
357
|
export { checkPremises, parsePremiseBlock } from './premise-check'
|
|
333
358
|
export type { PremiseAssertion, PremiseCheckResult } from './premise-check'
|
|
334
359
|
export { checkDocClaims } from './doc-claim'
|
|
335
|
-
export type { ClaimBinding, ClaimFinding, DocClaimSourceFile } from './doc-claim'
|
|
360
|
+
export type { ClaimBinding, ClaimFinding, ClaimVoice, DocClaimSourceFile } from './doc-claim'
|
|
336
361
|
export { classifyLeftover } from './leftover-detection'
|
|
337
362
|
export type { LeftoverInput, LeftoverResult, LeftoverVerdict } from './leftover-detection'
|
|
338
363
|
export { checkDeadBranchPush } from './dead-branch-push-guard'
|
|
@@ -590,6 +615,7 @@ export type {
|
|
|
590
615
|
Journal,
|
|
591
616
|
LoopConfig,
|
|
592
617
|
LoopState,
|
|
618
|
+
NotReviewedReason,
|
|
593
619
|
Observations,
|
|
594
620
|
PauseReason,
|
|
595
621
|
PendingRound,
|