refactor(bundle): derive ledger plans from canonical selection - #231
Conversation
|
@codex review |
|
Codex Review: Didn't find any major issues. 🎉 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cec7b59f8a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
cec7b59 to
45b61a6
Compare
|
Merging with the same recorded audit gap as #234, stated rather than glossed. Gap: no Mitigation: unlike #234, I validated Independent validation at
The 2137 count reconciles exactly against #234 at merge: 2132 there, plus this branch's 5. Neither branch silently dropped a test. Mutation-pinned on the merged content, not on the pre-merge head: removed Not run: |
Summary
Derive single-period bundle ledger plans from the existing canonical artifact-selection helper. Refs #115; this draft does not close the issue or claim authenticated runtime qualification.
Root Cause / Decision Record
artifactPlanForScoperestated the artifact expansion already owned byconcreteFiledReturnsArtifactTypesForSelection.214aabdf77dd3884a44db62878bab4345a2da970, however, every live call is guarded: creation checksisSupportedBundleScopebefore both plan uses;parsedArtifactPlanis called only after the same parser guard; reservation also rejects unsupported scopes before reading storage. The guard admits only normalizedPDF_AND_EXCEL, where the old and canonical rules produce identical ordered plans.Scope
src/background/filed-returns-single-period-bundle-ledger.ts; compute the creation plan once.Pack Workflow Preflight
pnpm workflow:preflightwas run before editing/push, or the skip reason is documented.Branch:
tapish-codex/canonical-bundle-plan-20260826. Pre-edit preflight exited 0:Pack workflow preflight passed for tapish-codex/canonical-bundle-plan-20260826 against master.Sanchika Adoption Gate
@sanchika/*packages or copied Sanchika guidance, Iread
sanchika/docs/adoption-pack.mdin the coordinated parent worktree.and records the Sanchika commit or copied guidance used.
../sanchika,sanchika/packages/*/src, or parentsource paths.
The two conditional Sanchika-consumption items are not applicable: no package or copied guidance is consumed.
Privacy And Data-Flow Impact
No public behavior claim is changed. Storage keys, schema, scopes, and writes remain unchanged; fixtures are synthetic.
Sensitive Surface Review
No download correlation, acquisition, completion, or persistence boundary is altered. Independent security and privacy reviewers inspected the diff at
b8f402a7066150d01857f12d5ec9d57a097765a1and reported no blocking findings; the parent reviewer also inspected the diff. These source reviews do not replace authenticated validation.Chrome Web Store Impact
docs/PUBLICATION_READINESS.mdis checked.Store-related conditional review is not applicable to this behavior-preserving refactor. No Store, release-readiness, or live-validation claim is made.
Verification
pnpm install --frozen-lockfilepnpm audit --audit-level highpnpm exec wxt preparepnpm exec prettier --check .pnpm exec eslint . --max-warnings 0pnpm exec tsc --noEmitpnpm exec vitest runpnpm exec wxt buildnode scripts/verify-extension-package.mjs .output/chrome-mv3pnpm exec wxt zipnode scripts/verify-extension-zip.mjsnode scripts/write-release-provenance.mjsnode scripts/verify-github-release-assets.mjs --tag <tag> --zip <zip> --checksum <sha256> --provenance <json>when release assets existnode scripts/publish-chrome-web-store.mjs --zip .output/<zip> --provenance .output/pack-release-provenance.v1.json --publisher-id <id> --dry-run truegit diff --checkpnpm review:gate -- --strict-head-review --wait-head-review-ms 180000before merge/readiness claim; a missing Codex review blocks readiness:All checked commands exited 0 on the code/test snapshot at head
b8f402a7066150d01857f12d5ec9d57a097765a1. Audit ran throughnode scripts/run-dependency-audit.mjs, which reportedNo known vulnerabilities found. Full suite was the first run, with JSON and default reporters enabled; no retry-until-green or timeout changes. The focused matching file passed 20 tests. The full suite included the source-graph unreferenced-module guard.Full suite: 125 test files passed. Verbatim test-summary tail:
Each new test was mutation-proven: the exact source mutation was confirmed before running the whole matching file. Every mutation produced exit 1 with exactly its intended test failing and 19 neighbors passing; all mutations were restored before final validation.
ZIP, provenance, release-asset, and Store commands were not run locally: this is not a release action. Hosted CI subsequently built and verified its ZIP. The strict designated-author gate exited 1 with
No review was found for current head b8f402a7066150d01857f12d5ec9d57a097765a1.The connector posted a clean exact-head comment but no formal review object; no PR readiness claim is made. Graphify was unavailable because the fresh worktree had no graph, and the documented refresh script is absent on this base. Exact-symbol source tracing was used; the canonical helper comes from a module already imported by the ledger, so no new module edge was introduced.Artifact Evidence
b8f402a7066150d01857f12d5ec9d57a097765a1; all seven reported PR checks passed at this snapshot.complyeazepack-0.5.1-chrome.zip; none produced locally, no release or Store submission.aa2cbf0a92b6919595085515031822f548682c00205c4f6d4dca6b7a974e0709, emitted by CI exact-ZIP verification and checksum steps.b8f402a7066150d01857f12d5ec9d57a097765a1, clean tracked tree after two logical commits. Runtime:30240669fffc472fac06be41242fe0dccaeb2451; tests:b8f402a7066150d01857f12d5ec9d57a097765a1.PR Review Follow-Up
The exact-head Codex comment reported no major issues. A post-CI GraphQL check returned zero review threads with no additional page, and zero formal review objects. No commits followed the reviewed head. The missing formal review remains a strict-gate audit gap, separate from the clean comment and passing hosted findings gate. This draft remains unqualified for live runtime use; #115 records the outstanding authenticated-validation requirement.
b8f402a7066150d01857f12d5ec9d57a097765a1Screenshots
Not applicable: no visual change. Test fixtures are synthetic.