Fix package-backed Svelte/Vue scripts and delegated authority #428

Merged
buildagent merged 4 commits from codex/package-embedded-dispatch into master 2026-10-23 20:18:29 +02:00
Member

Svelte and Vue components with embedded scripts fail on the shipped generic runtime because delegation only consults native parsers. Reuse Claude's package-dispatch and base-source extraction implementation, then harden it so scripts use the project's approved TypeScript/JavaScript producer and template handlers bind to their own script declarations.

The wrapper retains contribution ownership. Each embedded contribution records its actual producer and container digest; resolver and read-only admissions intersect both producers' grants under the same active or pending generation. Delegation stays one level deep and shares the file deadline and aggregate fact/decoded-byte budget. Inner diagnostics, profiles and receiverless facts survive storage.

Installing a missing producer now reparses wrapper files on parser-free builds. Promotion and rollback also project the incoming contribution's verdict onto file metadata, so repaired facts do not retain an old refusal. Base-side diff extraction uses the same package producers, including embedded symbols.

Validation covers signed Svelte JS/TS and Vue TS packages through the four explicitly built parser-free binaries, template bindings, watching/restart, deleted base symbols, missing-producer refusal and live repair without deleting the database. Negative regressions cover nested delegation, aggregate budgets, nested/private names, foreign files, grant revocation, pending authority and container identity. An official signed-package v0.41.13 database upgrade passes. The existing generic acceptance lane carries these checks. The Linux GNU release job additionally runs the same acceptance against its four already-built binaries before packaging, so nightly-only coverage cannot allow a broken release. No additional Cargo build or CI lane was added.

Windows CI also exposed a daemon-restart disclosure defect when the operating system reuses a PID. Reconnect now compares the retained private authentication token as well as the PID, including after a timeout drops the channel. A deterministic regression covers changed-token replacements and same-token reconnects with and without a retained channel; no token is exposed in diagnostics.

Schema 89, host extraction epoch 4 and embedded dispatch semantics 2 intentionally invalidate stale caches. The first project start after upgrade rebuilds the index. Existing signed language packages remain compatible.

Adapted from Claude WIP commits 4f0bf992 and 58231e61; the original branches and worktrees are preserved. Related: #119, #279.

Fixes #424.

Local validation: 5,060 workspace tests passed; 121 focused generation/embedded checks passed; 32 full-corpus stage/lifecycle checks passed with condition-only baseline updates; Clippy with warnings denied and workspace doc tests passed. All 37 timing checks passed across the serial run and an isolated rerun of the documented shared-page memory measurement; its limits are unchanged. The release workflow's parsed acceptance step and release-script guards also passed. The parser-free four-binary acceptance and official-package v0.41.13 upgrade proofs both passed.

CI follow-up validation: all 281 daemon library tests, the full/minimal MCP restart E2E, and 43 release-gate tests passed. Daemon all-targets Clippy passed with warnings denied. The release acceptance step is mirrored in both Linux job blocks to preserve their parity guard; its GNU-only condition avoids duplicate execution.

Linux CI exposed five large XAML fixtures losing their measurement to the fixed 35-second host deadline under parallel load. All nine XAML checks pass serially with unchanged production limits. Seven large-fixture tests now run in the existing ci-timing profile; two lightweight checks stay in the parallel suite. The registry verifies helper-bound test declarations and exact profile partitioning; removing a term from both profiles is mutation-tested to fail. The registry, all 50 path-gating checks, cadence checks, and Clippy pass. No retries, new CI lane, test skip, or raised budget was introduced.

Svelte and Vue components with embedded scripts fail on the shipped generic runtime because delegation only consults native parsers. Reuse Claude's package-dispatch and base-source extraction implementation, then harden it so scripts use the project's approved TypeScript/JavaScript producer and template handlers bind to their own script declarations. The wrapper retains contribution ownership. Each embedded contribution records its actual producer and container digest; resolver and read-only admissions intersect both producers' grants under the same active or pending generation. Delegation stays one level deep and shares the file deadline and aggregate fact/decoded-byte budget. Inner diagnostics, profiles and receiverless facts survive storage. Installing a missing producer now reparses wrapper files on parser-free builds. Promotion and rollback also project the incoming contribution's verdict onto file metadata, so repaired facts do not retain an old refusal. Base-side diff extraction uses the same package producers, including embedded symbols. Validation covers signed Svelte JS/TS and Vue TS packages through the four explicitly built parser-free binaries, template bindings, watching/restart, deleted base symbols, missing-producer refusal and live repair without deleting the database. Negative regressions cover nested delegation, aggregate budgets, nested/private names, foreign files, grant revocation, pending authority and container identity. An official signed-package v0.41.13 database upgrade passes. The existing generic acceptance lane carries these checks. The Linux GNU release job additionally runs the same acceptance against its four already-built binaries before packaging, so nightly-only coverage cannot allow a broken release. No additional Cargo build or CI lane was added. Windows CI also exposed a daemon-restart disclosure defect when the operating system reuses a PID. Reconnect now compares the retained private authentication token as well as the PID, including after a timeout drops the channel. A deterministic regression covers changed-token replacements and same-token reconnects with and without a retained channel; no token is exposed in diagnostics. Schema 89, host extraction epoch 4 and embedded dispatch semantics 2 intentionally invalidate stale caches. The first project start after upgrade rebuilds the index. Existing signed language packages remain compatible. Adapted from Claude WIP commits 4f0bf992 and 58231e61; the original branches and worktrees are preserved. Related: #119, #279. Fixes #424. Local validation: 5,060 workspace tests passed; 121 focused generation/embedded checks passed; 32 full-corpus stage/lifecycle checks passed with condition-only baseline updates; Clippy with warnings denied and workspace doc tests passed. All 37 timing checks passed across the serial run and an isolated rerun of the documented shared-page memory measurement; its limits are unchanged. The release workflow's parsed acceptance step and release-script guards also passed. The parser-free four-binary acceptance and official-package v0.41.13 upgrade proofs both passed. CI follow-up validation: all 281 daemon library tests, the full/minimal MCP restart E2E, and 43 release-gate tests passed. Daemon all-targets Clippy passed with warnings denied. The release acceptance step is mirrored in both Linux job blocks to preserve their parity guard; its GNU-only condition avoids duplicate execution. Linux CI exposed five large XAML fixtures losing their measurement to the fixed 35-second host deadline under parallel load. All nine XAML checks pass serially with unchanged production limits. Seven large-fixture tests now run in the existing `ci-timing` profile; two lightweight checks stay in the parallel suite. The registry verifies helper-bound test declarations and exact profile partitioning; removing a term from both profiles is mutation-tested to fail. The registry, all 50 path-gating checks, cadence checks, and Clippy pass. No retries, new CI lane, test skip, or raised budget was introduced.
Fix package-backed embedded scripts and delegated authority
Some checks failed
Package CI / package (rust) (pull_request) Successful in 48s
Package CI / package-corpus (python) (pull_request) Successful in 21s
Package CI / package-corpus (php) (pull_request) Successful in 22s
Package CI / package-corpus (rust) (pull_request) Successful in 21s
Package CI / package (xaml) (pull_request) Successful in 43s
Package CI / package-corpus (ruby) (pull_request) Successful in 28s
Package CI / package-corpus (vue) (pull_request) Successful in 21s
Package CI / package-corpus (timeline) (pull_request) Successful in 25s
Package CI / package-corpus (javascript) (pull_request) Successful in 53s
Package CI / package-corpus (svelte) (pull_request) Successful in 48s
Package CI / package-corpus (typescript) (pull_request) Successful in 46s
Package CI / package-corpus (xaml) (pull_request) Successful in 52s
Package CI / package overhead budgets (nightly, one package at a time) (pull_request) Has been skipped
Pilot plugin compatibility / Fetch the pinned runtime once (pull_request) Successful in 2m12s
CI / guest crates (fmt, clippy, doc) (pull_request) Successful in 1m11s
CI / CI lane wall-clock headroom (pull_request) Successful in 1m27s
Pilot plugin compatibility / Pilot compatibility (csharp) (pull_request) Successful in 1m20s
Pilot plugin compatibility / Pilot compatibility (timeline) (pull_request) Successful in 1m37s
Pilot plugin compatibility / Pilot compatibility result (pull_request) Successful in 2s
CI (Windows) / fmt + clippy + build + test (windows) (pull_request) Has been cancelled
CI / cargo test (pull_request) Has been cancelled
CI / cargo test (daemon transport) (pull_request) Has been cancelled
CI / Plugin path cost + pool throughput (nightly) (pull_request) Has been cancelled
CI / cargo deny (pull_request) Has been cancelled
CI / cargo check (MSRV 1.98) (pull_request) Has been cancelled
CI / cargo test (abi, 32-bit + wasm32) (pull_request) Has been cancelled
CI / cargo check (windows-gnu) (pull_request) Has been cancelled
CI / OSS corpus (tier 1) (pull_request) Has been cancelled
CI / cargo clippy (pull_request) Has been cancelled
CI / cargo doc (intra-doc links) (pull_request) Has been cancelled
8f9f5d8ffd
Reuse Claude WIP commits 4f0bf992 and 58231e61 for project-routed
embedded extraction and package-backed base outlines. Preserve the
original WIP branches and worktrees.

Record inner producer identity, intersect generation-scoped grants,
share file deadlines and fact budgets, preserve diagnostics and bind
template handlers to their own script declarations. Repair activation
routing without native parsers and project fact verdicts on promotion
and rollback. Extend the existing generic acceptance lane and release
as 0.41.14.

Fixes #424.
Gate releases on signed generic-runtime acceptance
Some checks failed
Package CI / package (ruby) (pull_request) Successful in 40s
Package CI / package-corpus (php) (pull_request) Successful in 24s
Package CI / package-corpus (javascript) (pull_request) Successful in 29s
Package CI / package-corpus (typescript) (pull_request) Successful in 25s
Package CI / package-corpus (python) (pull_request) Successful in 29s
Package CI / package-corpus (csharp) (pull_request) Successful in 39s
Package CI / package-corpus (ruby) (pull_request) Successful in 30s
Package CI / package-corpus (rust) (pull_request) Successful in 34s
Package CI / package-corpus (timeline) (pull_request) Successful in 33s
Package CI / package-corpus (xaml) (pull_request) Successful in 19s
Package CI / package-corpus (svelte) (pull_request) Successful in 42s
Package CI / package-corpus (vue) (pull_request) Successful in 36s
Package CI / package overhead budgets (nightly, one package at a time) (pull_request) Has been skipped
CI / guest crates (fmt, clippy, doc) (pull_request) Successful in 59s
Pilot plugin compatibility / Fetch the pinned runtime once (pull_request) Successful in 1m28s
CI / CI lane wall-clock headroom (pull_request) Successful in 1m33s
Pilot plugin compatibility / Pilot compatibility (csharp) (pull_request) Successful in 1m1s
Pilot plugin compatibility / Pilot compatibility (timeline) (pull_request) Successful in 1m15s
Pilot plugin compatibility / Pilot compatibility result (pull_request) Successful in 2s
CI / cargo doc (intra-doc links) (pull_request) Successful in 12m30s
CI / cargo clippy (pull_request) Successful in 14m17s
CI / cargo deny (pull_request) Successful in 14m33s
CI / cargo test (abi, 32-bit + wasm32) (pull_request) Successful in 16m35s
CI / cargo check (MSRV 1.98) (pull_request) Successful in 18m29s
CI / cargo check (windows-gnu) (pull_request) Successful in 20m21s
CI (Windows) / fmt + clippy + build + test (windows) (pull_request) Failing after 35m16s
CI / cargo test (daemon transport) (pull_request) Has been cancelled
CI / Plugin path cost + pool throughput (nightly) (pull_request) Has been cancelled
CI / cargo test (pull_request) Has been cancelled
CI / OSS corpus (tier 1) (pull_request) Has been cancelled
a4f49e0d61
Detect daemon replacement across reused process ids
Some checks failed
Package CI / package (typescript) (pull_request) Successful in 38s
Package CI / package (php) (pull_request) Successful in 37s
Package CI / package-corpus (php) (pull_request) Successful in 37s
Package CI / package (vue) (pull_request) Successful in 42s
Package CI / package-corpus (timeline) (pull_request) Successful in 29s
Package CI / package-corpus (javascript) (pull_request) Successful in 49s
Package CI / package-corpus (svelte) (pull_request) Successful in 41s
Package CI / package-corpus (rust) (pull_request) Successful in 46s
Package CI / package-corpus (typescript) (pull_request) Successful in 32s
Package CI / package-corpus (vue) (pull_request) Successful in 24s
Package CI / package-corpus (ruby) (pull_request) Successful in 55s
Pilot plugin compatibility / Fetch the pinned runtime once (pull_request) Successful in 1m26s
Package CI / package-corpus (xaml) (pull_request) Successful in 43s
Package CI / package overhead budgets (nightly, one package at a time) (pull_request) Has been skipped
CI / CI lane wall-clock headroom (pull_request) Successful in 1m11s
CI / guest crates (fmt, clippy, doc) (pull_request) Successful in 1m8s
Pilot plugin compatibility / Pilot compatibility (timeline) (pull_request) Successful in 1m13s
Pilot plugin compatibility / Pilot compatibility (csharp) (pull_request) Successful in 1m18s
Pilot plugin compatibility / Pilot compatibility result (pull_request) Successful in 2s
CI / cargo doc (intra-doc links) (pull_request) Successful in 7m41s
CI / cargo deny (pull_request) Successful in 8m55s
CI / cargo clippy (pull_request) Successful in 9m11s
CI / cargo check (MSRV 1.98) (pull_request) Successful in 11m3s
CI / cargo test (abi, 32-bit + wasm32) (pull_request) Successful in 10m56s
CI / cargo check (windows-gnu) (pull_request) Successful in 11m28s
CI (Windows) / fmt + clippy + build + test (windows) (pull_request) Successful in 43m24s
CI / cargo test (daemon transport) (pull_request) Has been cancelled
CI / Plugin path cost + pool throughput (nightly) (pull_request) Has been cancelled
CI / cargo test (pull_request) Has been cancelled
CI / OSS corpus (tier 1) (pull_request) Has been cancelled
2c2b3711a0
Retain the authenticated daemon identity across channel loss and disclose a changed token even when the OS reuses the pid. Exercise retained and dropped channels with same-token controls. Mirror the GNU-only release acceptance step into the musl job to preserve the existing workflow-parity invariant.
Run large XAML deadline fixtures in the serial CI profile
All checks were successful
Package CI / package (python) (pull_request) Successful in 37s
Package CI / package-corpus (ruby) (pull_request) Successful in 33s
Package CI / package-corpus (javascript) (pull_request) Successful in 30s
Package CI / package (ruby) (pull_request) Successful in 48s
Package CI / package-corpus (python) (pull_request) Successful in 43s
Package CI / package-corpus (csharp) (pull_request) Successful in 46s
Package CI / package-corpus (rust) (pull_request) Successful in 45s
Package CI / package-corpus (timeline) (pull_request) Successful in 36s
Package CI / package-corpus (typescript) (pull_request) Successful in 42s
Package CI / package-corpus (svelte) (pull_request) Successful in 52s
Package CI / package-corpus (xaml) (pull_request) Successful in 46s
Package CI / package-corpus (vue) (pull_request) Successful in 51s
Package CI / package overhead budgets (nightly, one package at a time) (pull_request) Has been skipped
CI / guest crates (fmt, clippy, doc) (pull_request) Successful in 1m9s
CI / CI lane wall-clock headroom (pull_request) Successful in 1m22s
Pilot plugin compatibility / Fetch the pinned runtime once (pull_request) Successful in 2m3s
Pilot plugin compatibility / Pilot compatibility (csharp) (pull_request) Successful in 1m12s
Pilot plugin compatibility / Pilot compatibility (timeline) (pull_request) Successful in 1m10s
Pilot plugin compatibility / Pilot compatibility result (pull_request) Successful in 1s
CI / cargo clippy (pull_request) Successful in 9m50s
CI / cargo doc (intra-doc links) (pull_request) Successful in 9m43s
CI / cargo deny (pull_request) Successful in 11m28s
CI / cargo test (abi, 32-bit + wasm32) (pull_request) Successful in 13m7s
CI / cargo check (MSRV 1.98) (pull_request) Successful in 14m9s
CI / cargo check (windows-gnu) (pull_request) Successful in 15m21s
CI (Windows) / fmt + clippy + build + test (windows) (pull_request) Successful in 44m25s
CI / OSS corpus (tier 1) (pull_request) Successful in 50m8s
CI / cargo test (pull_request) Successful in 38m12s
CI / cargo test (daemon transport) (pull_request) Successful in 11m52s
CI / Plugin path cost + pool throughput (nightly) (pull_request) Has been skipped
05971c3a5b
Keep shipped host and fact ceilings unchanged. Five fixtures in run 1587 lost their measurement to the 35-second process deadline under parallel load; all nine XAML checks pass serially. Register helper-enforced deadline bounds against real declarations and ensure the timing and parallel profiles partition every test without retries or omissions.
buildagent deleted branch codex/package-embedded-dispatch 2026-10-23 20:18:30 +02:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
h-dv/code-index!428
No description provided.