Repository navigation
fix: complete release inventories and preserve plugin inspection outcomes - #3563
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Codex review: needs real behavior proof before merge. Reviewed August 31, 2026, 6:35 AM ET / 10:35 UTC. ClawSweeper reviewWhat this changesThis PR raises the parent-release receipt limit, scopes plugin runtime-ID checks to publishers, preserves plugin-inspector results through cleanup failures, and hardens local authenticated browser-test setup. Merge readiness⛔ Blocked until stronger real behavior proof is added - 5 items remain Keep open: the new runtime-ID indexes are queried immediately but are not staged, so deploying this PR can block while the existing packages table is backfilled. The prior P1 finding remains after the index-name-only follow-up commit. Priority: P2 Review scores
Verification
How this fits togetherClawHub validates package publication ownership and plugin inspection before exposing releases to users. The changed runtime-ID path governs collision checks during publication, recovery, and malicious-release quarantine, while the local runner exercises these flows against an isolated backend. flowchart LR
A[Package publication or recovery] --> B[Publisher-scoped runtime ID check]
B --> C[Package indexes]
C --> D[Publish or reject]
E[Plugin inspector] --> D
F[Local browser runner] --> A
Before merge
Findings
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Roll out the indexes in a staged schema deployment while preserving the current lookup path, then switch collision checks to the completed indexes in a subsequent deployment and attach exact-head recovery/publish rejection evidence. Do we have a high-confidence way to reproduce the issue? No high-confidence live reproduction is needed to establish the deployment defect: the exact schema and checked-in Convex contract show that the immediately queried indexes are unstaged. The supplied runtime receipt is useful but does not identify the exact reviewed head. Is this the best way to solve the issue? No. The publisher-scoped lookup is the appropriate layer, but it must be activated after a staged index backfill rather than in the same deploy that creates the indexes. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against da21772a0347. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
What Problem This Solves
Resolves a problem where release preparation rejects valid full-package inventories, hides inspector failures behind cleanup errors, permits conflicting runtime identities during recovery, or cannot finish browser verification on a separate worktree volume.
Why This Change Was Made
The fixes preserve existing artifact bytes and publication authority while repairing the owning lifecycle and lookup boundaries.
User Impact
Release operators can submit complete authorized inventories, see both inspection and cleanup failures, and verify scoped plugin ownership without unrelated publishers exhausting the transaction budget. Recovery and quarantine preserve the canonical runtime claim.
Evidence
Independent structured review completed with no actionable findings after two scratch-path findings were repaired and regression-tested.
Validation: 55 receipt verifier tests; 17 focused runtime ownership tests; inspector lifecycle fail-before/pass-after cases; 11 final runner/config tests; static checks; full TypeScript/build gate and final typecheck. Four real local browser flows passed without retries: staged privacy and publication, malicious-scan privacy, hard-error rejection plus warning display, and the unchanged generated-card lifecycle. Real local Convex proofs completed 46 function calls, one synthetic-data import, and two HTTP reads, including recovery rejection and quarantine with artifact-identity preservation. An independent source-blind HTTP validator passed all supplied scoped-route, version, and rejected-duplicate clauses. A real SIGTERM-during-build proof confirmed original environment/backend configuration restoration, owned-port shutdown, and scratch removal.
The bounded full unit run had 6,295 passes, 3 skips, and one unchanged workflow-dispatch fixture timeout. Its isolated rerun passed both tests in 4.65 seconds without source or timeout changes. The original broad-suite failure remains recorded; it is not represented as a green run.
Remaining evidence limits: the earlier production generic action errors and ENOSPC recovered with unchanged artifacts, but their disk, inode, memory, or concurrency cause was not established. This change improves diagnostics and repairs confirmed lifecycle bugs; it does not claim a speculative resource-policy fix. A separate fresh-child explicit-recovery receipt contract issue is reported for coordinated producer/backend work; this PR does not loosen that authority boundary. Production promotion and package publication remain separate from this code change. The existing backend already accepts 64 KiB parent receipts; workflow consumers must pin the repaired reusable workflow to receive the file-preflight and parser fix.
Production changes add 206 and remove 105 lines. The net growth owns two exact indexed identity claims, preserves inspection and cleanup outcomes, and gives the browser runner interruptible child and same-volume scratch lifecycles. Tests and documentation are counted separately; no persisted fields, backfill, archive rewrite, or additional authorization path is introduced.
Inspectable real-behavior receipts and review disposition
These are recorded outcomes from the real isolated local Convex backend, not mocked transaction calls. Fixtures contain synthetic principals and package metadata. No archive publication, external scanner validity, or production mutation is claimed. The source hashes below bind the receipts to the reviewed implementation.
The namespace sequence published the same runtime id under two independent organizations, then rejected same-owner insertion, transfer, undelete, administrative repair, and staged finalization before their effects. Readbacks confirmed the original community record and scoped HTTP identities were preserved.
{ "result": "pass", "sourceSha256": "f6461b7e3b20c780f90196309de26a88ff913e7992ac51edacb89890937967bf", "communityUnchangedAfterCanonicalPublish": true, "steps": [ { "function": "devSeed:seedOrgDeletionFixture", "outcome": "success" }, { "function": "devSeed:seedOrgDeletionFixture", "outcome": "success" }, { "function": "packages:getPackageByNameInternal", "outcome": "success" }, { "function": "packages:getPackageByNameInternal", "outcome": "success" }, { "function": "packages:insertReleaseInternal", "outcome": "success" }, { "function": "packages:getPackageByNameInternal", "outcome": "success" }, { "function": "packages:insertReleaseInternal", "outcome": "success" }, { "function": "packages:getPackageByNameInternal", "outcome": "success" }, { "function": "packages:getPackageByNameInternal", "outcome": "success" }, { "function": "packages:insertReleaseInternal", "outcome": "rejected_same_owner_collision" }, { "function": "packages:transferPackageOwnerInternal", "outcome": "rejected_same_owner_collision" }, { "function": "packages:getPackageByNameInternal", "outcome": "success" }, { "function": "packages:softDeletePackageInternal", "outcome": "success" }, { "function": "packages:insertReleaseInternal", "outcome": "success" }, { "function": "packages:restorePackageInternal", "outcome": "rejected_same_owner_collision" }, { "function": "packages:getPackageByNameInternal", "outcome": "success" }, { "function": "packages:softDeletePackageInternal", "outcome": "success" }, { "function": "packages:restorePackageInternal", "outcome": "success" }, { "function": "packages:getPackageByNameInternal", "outcome": "success" }, { "function": "packages:insertReleaseInternal", "outcome": "success" }, { "function": "packages:insertReleaseInternal", "outcome": "success" }, { "function": "packages:repairPackageIdentityInternal", "outcome": "success" }, { "function": "packages:repairPackageIdentityInternal", "outcome": "rejected_same_owner_collision" }, { "function": "packages:insertReleaseInternal", "outcome": "success" }, { "function": "packages:insertReleaseInternal", "outcome": "success" }, { "function": "packages:repairPackageIdentityInternal", "outcome": "success" }, { "function": "packages:insertReleaseInternal", "outcome": "success" }, { "function": "packages:publishPendingReleaseInternal", "outcome": "rejected_same_owner_collision" } ] }Recovery and quarantine ran in the original failure order: create historical/latest releases, repair the parent identity, let another package claim the historical id, quarantine the malicious latest, then read parent and release records. A conflicting recovery destination was tested with both dry-run and apply calls and read back afterward.
{ "result": "pass", "scope": "Real isolated local Convex existing mutation/seed/import APIs; synthetic metadata and auth principals only, no external authorization or publication claim.", "historicalArtifactFieldsUnchanged": true, "maliciousReleaseQuarantined": true, "repairedRuntimePreserved": true, "conflictingRecoveryDryRunAndApplyRejected": true, "ownerUnchanged": true, "steps": [ { "function": "packages:getPackageByNameInternal", "outcome": "success" }, { "function": "packages:insertReleaseInternal", "outcome": "success" }, { "function": "packages:insertReleaseInternal", "outcome": "success" }, { "function": "packages:getReleaseByIdInternal", "outcome": "success" }, { "function": "packages:repairPackageIdentityInternal", "outcome": "success" }, { "function": "packages:insertReleaseInternal", "outcome": "success" }, { "function": "packages:updateReleaseLlmAnalysisInternal", "outcome": "success" }, { "function": "packages:getPackageByNameInternal", "outcome": "success" }, { "function": "packages:getReleaseByIdInternal", "outcome": "success" }, { "function": "packages:getReleaseByIdInternal", "outcome": "success" }, { "function": "packages:getPackageByNameInternal", "outcome": "success" }, { "function": "devSeed:seedAccountDeletionFixture", "outcome": "success" }, { "function": "packages:insertReleaseInternal", "outcome": "success" }, { "function": "packages:insertReleaseInternal", "outcome": "success" }, { "operation": "import_synthetic_local_auth_principals", "outcome": "success" }, { "function": "packages:getPackageByNameInternal", "outcome": "success" }, { "function": "publishers:recoverPersonalPublisherInternal", "outcome": "same_owner_collision_rejected" }, { "function": "publishers:recoverPersonalPublisherInternal", "outcome": "same_owner_collision_rejected" }, { "function": "packages:getPackageByNameInternal", "outcome": "success" } ], "sourceSha256": { "convex/lib/packageRuntimeIdentity.ts": "3d0c655d108a8e0b3adc1cbf93c3b6981be9662a5d5c4684aa553067ded1383f", "convex/packages.ts": "f6461b7e3b20c780f90196309de26a88ff913e7992ac51edacb89890937967bf", "convex/publishers.ts": "901e7706b442a95bf4de1d269b0f90bed6418622a18af3fb7636a08bc2fb14b9", "convex/schema.ts": "eb4f07946448a944e34c33b523d036797217c578290236cbe7b2824516776f83" } }Independent source-blind HTTP verification performed ten GET requests: both owner-qualified names and exact versions returned 200, repeat/reversed reads retained distinct record identities and the shared runtime id, and both the denied duplicate and a random nonexistent name returned 404. All six supplied clauses passed. Root-alias, archive, and prior-history verification were outside this contract.
The runner was interrupted with SIGTERM during its actual production build:
{ "result": "pass", "phase": "SIGTERM during production build", "exitCode": 143, "originalEnvironmentAndBackendConfigRestored": true, "ownedPortsStopped": [ 3430, 3431, 4228 ], "ownedScratchRemoved": true }Hosted browser proof on the exact PR head also passed: inspector and version flows, generated-card publication, and old CLI compatibility. Those jobs contain the run logs and browser report artifacts.
Final naming correction: commit
28c3c368747114ae2dd14020f4bf8743749d114bincludes every indexed field in both index names. It passed 382 ownership/public tests, static checks, typecheck, and an independent structured review with no actionable findings. A fresh real local Convex deployment and repeat of the 28 boundary calls plus two HTTP reads passed with the renamed indexes. The recorded final source hashes are:{ "convex/packages.ts": "f6461b7e3b20c780f90196309de26a88ff913e7992ac51edacb89890937967bf", "convex/lib/packageRuntimeIdentity.ts": "583bafff3acdb06453de5a2ba2c32dc927c23e5792eff7541ebe9542296b0bc1", "convex/schema.ts": "fccacb4fe03794b9882757ebed6a2a0cf032fd7eec7dee8be61cdbe90638c4e5" }The full first-head hosted CI run 33381219349 passed every job. The naming correction passed exact-head CI 33382326862.
Maintainer disposition of the rollout finding: accepted as a production promotion prerequisite, not represented as fixed by Test timing. The checked-in rule concerns a large existing table; total production
packagescardinality could not be established because the existing native read-only metric required unavailable production credentials. Public plugin totals are not a substitute. Production is manual-only and remains onda21772a03474e5c1788a0dfa4547132c45471e2; this task authorizes code landing and exact-SHA Test only.Before production promotion, the release owner must establish that ordinary additive deployment is appropriate from actual cardinality, or execute a reviewed staged sequence: add the two exact indexes with
staged: trueover the currently serving runtime without consumers; deploy and wait for native backfill metadata to report done; then removestaged: trueand deploy the reviewed consumers. A staged-only patch against the observed serving revision is prepared (SHA-256fa919faf745fd7ae53984324c4330a5816750815b702ea462f30379bef34af0f), but is not applied or claimed as a reviewed deployment artifact. If staging is necessary, its separate commit and deployment must be reviewed before production execution. Do not dispatch the final consumer head as the initial staged deployment, and do not disable any ownership guard.Review rank-up disposition: all-field naming is repaired; real denied-principal and hosted browser evidence is attached above; staged production rollout remains explicitly gated as described. No production deployment, manual data migration, archive rewrite, or package publication was performed.
Landed as
db2a12c4625ffa162910a3e6aa2cb786ced89e2f. Exact-SHA Deploy Test 33383451662 passed backend contract, candidate HTTP/UI, and stable Test URL checks. Postdeployment read-only verification confirmed Test reports that exact SHA, its package API returns 200, and the stable Test frontend returns 200. Production still reportsda21772a03474e5c1788a0dfa4547132c45471e2; its staged-index prerequisite remains outstanding. No production deployment or package publication occurred.