Repository navigation
fix: preserve admitted plugin release families - #4098
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Codex review: needs maintainer review before merge. What this changesThis PR stores each plugin release’s admitted family and uses it in release-specific metadata and scanner claims. Example: Bundle release 1.0.0 and native release 2.0.0 share a package whose current family is code-plugin.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Partial Merge readiness✅ Ready for maintainer review Keep this PR open: current main lacks release-specific family preservation, and the collaborator-authored change has no actionable code findings. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherClawHub’s Convex registry accepts package publications, stores releases, and supplies metadata and artifacts to public HTTP readers and security workers. flowchart LR
A[Package publication] --> B[Release admission]
B --> C[Stored release family]
D[Current package family] --> E[Release family resolver]
C --> E
E --> F[Public version metadata]
E --> G[Security worker claims]
Technical reviewBest possible solution: Land release-family preservation before a separate guarded repair snapshots historical releases and changes eligible parent families. Do we have a high-confidence way to reproduce the issue? Current-main readers derive historical release metadata from the current parent family, and the supplied same-database runtime trace demonstrates the resulting misclassification. Is this the best way to solve the issue? This is the best scoped fix: release-owned snapshots preserve history across existing readers, whereas changing only parent rows or individual HTTP responses would leave scanner claims and other consumers inconsistent. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c8483212e51d. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed October 27, 2026, 9:01 PM ET / October 28, 2026, 01:01 UTC (Revision 2). |
|
Native persisted-runtime proof (local-only, same database and original stored file bytes):
Before {
"mode": "before",
"families": {
"1.0.0": {
"version": "code-plugin",
"security": "code-plugin",
"detail": "code-plugin",
"downloadStatus": 200,
"originalSha256": "dd4e975886089a82280ab2f761d8d13aad7e49a8fb8b4913a5d688949569e34d"
},
"2.0.0": {
"version": "code-plugin",
"security": "code-plugin",
"detail": "code-plugin",
"downloadStatus": 200,
"originalSha256": "dd4e975886089a82280ab2f761d8d13aad7e49a8fb8b4913a5d688949569e34d"
}
},
"oldScanTargetFamily": "code-plugin",
"localOnly": true,
"checks": "Synthetic stored clean metadata; no real security scan or production recovery claimed."
}After {
"mode": "after",
"families": {
"1.0.0": {
"version": "bundle-plugin",
"security": "bundle-plugin",
"detail": "bundle-plugin",
"downloadStatus": 200,
"originalSha256": "dd4e975886089a82280ab2f761d8d13aad7e49a8fb8b4913a5d688949569e34d"
},
"2.0.0": {
"version": "code-plugin",
"security": "code-plugin",
"detail": "code-plugin",
"downloadStatus": 200,
"originalSha256": "dd4e975886089a82280ab2f761d8d13aad7e49a8fb8b4913a5d688949569e34d"
}
},
"oldScanTargetFamily": "bundle-plugin",
"localOnly": true,
"checks": "Synthetic stored clean metadata; no real security scan or production recovery claimed."
}All persisted package/release/job IDs were retained and compared locally. Both versions' downloaded original file hashes are unchanged. Temporary fixture functions were removed before review/publication. Exact candidate8225tests/3skipped/static/types/native push and independent P0–P3 review passed. Hosted unit retry remains blocked by the unrelated existing80MiB ZIP boundary fixture15s timeout (two failures;8225other tests passed). A test-only follow-up preserves the actual80MiB DEFLATE acceptance and1byte-overflow rejection, with a mutant proving the byte guard is still exercised. It cuts local fixture time1579→796ms without changing application code, caps, or timeouts;20import controls and independent P0–P3 review pass. Full-suite rerun is active before upload. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Summary
A package's current plugin family cannot describe both historical bundles and newer native releases. Persist each new release's admitted plugin family, then use that snapshot for version, detail, security, artifact, scanner and publish-claim metadata. Legacy releases retain the parent fallback; Claw and skill boundaries remain authoritative.
This is the history-preservation prerequisite for the guarded legacy-family recovery in #4086. The migration must snapshot historical releases before changing a parent.
Evidence
After: version/security/detail/scanner reads report bundle-plugin for1.0.0 and code-plugin for2.0.0. Both HTTP200 downloads preserve the original file SHA256. Fixture scan metadata is synthetic; this proves runtime selection and bytes, not production scanning.
ci:static,ci:types-build, strict native Convex push and regenerated API pass. Independent Sol/high/Standard P0–P3 review is scoped-clean.Merge Danger
Door: two-way
Blast Radius: plugins
The optional field preserves legacy fallback. Production reclassification and affected release retries require the subsequent guarded repair and separate verification.