Repository navigation
feat(serving): run tier one patches in a sandbox - #221
Conversation
Astra reviewReviewed StandardsNo independent merge-blocking method or YAGNI findings. The standalone shell export, bounds and wire-retirement handling are explicitly requested, not speculative scope. Spec1. Intent / method — expose the route bridge and download through the shipped client#205 requires “Deep link and back/forward through the route bridge” and “a shell-owned download.” The broker implements these, but the actual client cannot consume them. Block until: wire these browser operations/events through the existing client transport and exercise that client in the route/download acceptance scenario, rather than requiring each patch to recreate the fixture's second transport. 2. Intent — production uploads clone bytes instead of transferring them#205 requires “bytes transferred as Block until: transfer the prepared upload buffer through the real transport and verify that path, not just Verification: disposable server/Postgres with fake Clerk credentials, actual source-built Summary: Standards 0 blockers; Spec 2 blockers, foremost the route/download functionality missing from the shipped client. |
|
Two-axis review of PR 221 against issue #205 (plus method, YAGNI, tests, surfaces, and containment). Diff is the three-dot range Intent vs #205#205’s product intent is the viewer promise: a colleague opens one company address and gets a trusted shell that never puts uploaded script on the session. Tier ≥ 1 binds a patch/version, frames This PR implements that intent, not a subset and not a different product. It copied the prototype’s shape (one-shot port, second Small drift, same intent: StandardsHard violations
That policy is
Smallest fix: drop CSP from Hit every surface (soft)
EffectNo Effect service findings. Broker is a browser IIFE ( UI otherwiseNotices / Baseline smells (judgement only)
Spec(a) Missing or partial Playwright is Chromium+Firefox, Gaps vs originating copy, not the Playwright bullets: spec §10 “Public tier 1: every op answers (b) Scope creep Device-login markup was restyled onto (c) Implemented but wrong Spec §10: browser-owned ops “ Otherwise the asked surface is present: exact content CSP; Permissions-Policy MethodThe architecture is the small model ADR-0010 asked for: one version-keyed renderer, opaque-origin iframe, document-bound port, first-party notices. Admission is the right size (tier ≥2 refused; tier 0 through Ownership is readable:
Overbuilt is almost all in Tests are proportional to “serial and few,” not a second serving stack. Weak method: YAGNIThe core is the small model. Spec reserved Real dings:
Acceptance tests vs “Done when”Harness matches the ticket: Chromium and Firefox,
Hit every surface
ContainmentBug — shell download mints a same-origin executable blob. Concern — no Note — listed threats otherwise hold. Content URL carries CSP sandbox + UI consistency / EffectNo UI consistency findings. Notice polish (a1c3b77) matches the skill: first-party No Effect service findings. Standards: 2 findings (1 hard, 1 soft). Worst: Auth-door CSP overlay blocking deactivated sign-out and Clerk session scripts. Spec: 4 findings (2 partial, 1 scope, 1 wrong). Worst: public |
|
Resolution of both Astra and Grok. Review fixes: 741b990; CI integration fixes: 51dd045; approved content-framing policy: 7d8ba8f. The framing decision is resolved; there is no pending product decision. Fixed
Retained, with reasons
Verification on the approved-policy commit
|
4576918 to
507bac1
Compare
The shell notices and the needs-rebuild door used the login door's card
but jumped straight to a headline and spoke in runtime terms ("unanswered
operations", "retired runtime wire", "the shell and this bundle disagree").
Give every notice a muted kicker above the title so the card reads as
Patchy stopping the patch, rewrite the copy in the reader's words (what
happened, what to do), and drop the trailing paragraph margin so notices
without an action are not bottom-heavy. The kicker is the device-login
page's existing treatment promoted to a shared `.auth-kicker` in the shell.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
7d8ba8f to
6dfb17c
Compare
Patch repos can be initialized and refreshed, but cannot yet be published without switching to a standalone HTML file. Add repo publishing for tiers 0 and 1, with release and declaration checks, typechecking, single-file bundling, and recoverable publication. Creates save the returned patch ID; share and delete use that repo identity. Update the CLI contracts and skills, and cover interrupted publication and bundle refusal paths. Stacked on `sdk/205-tier1-shell` (#221). This PR targets that branch and contains the #206 changes, not the preceding stack. Closes #206. ## Verification - `pnpm test`: 672 tests passed across 70 files. - `pnpm format:check`, `pnpm lint`, and `pnpm typecheck` passed. - `pnpm test:packed-cli-e2e` passed against a real disposable server. - Real-server/browser smoke verified provisioning, additive updates, refusal paths, and starter saves through the broker. - Standards and spec reviews completed; all findings fixed and confirmed resolved. Implemented with GPT-6 Astra in the Oh My Pi harness. Merge preparation: three multi-process CLI scenarios exceeded Vitest's five-second default on Node 22. Backported #223's existing 30-second budgets for the credential-precedence sequence and two repo-build scenarios. Assertions and product code are unchanged. All 113 CLI tests passed locally on Node 22 with two CPUs; all four focused cases passed with one CPU. Formatting and lint passed. CI correction and merge preparation: GPT-6 in Codex.
Tier 1 patches need to run browser code without inheriting the reader's login or gaining direct access to company resources.
This adds the sandboxed frame and document-bound broker, admits raw tier 1 bundles, and handles routes, files, session changes and stale versions. It includes a1c3b77's reader-facing polish for the notices and needs-rebuild door.
Stacked on #220 (
sdk/204-sdk-commands), which remains this PR's base branch.Review corrections in 741b990 expose the real client route/download APIs, transfer upload buffers, preserve Auth door policies, force inert shell downloads, retain public routing, serve UTF-8 content, share runtime limits, and correct the README/SDK guidance.
Approved framing policy, applied in 7d8ba8f: Static and scripted
/~contentresponses useframe-ancestors 'self', including content error responses. Outer shells and first-party pages retainframe-ancestors 'none'. Both Chromium and Firefox verify that normal shell framing works, foreign parents cannot embed content, and shells cannot themselves be embedded. The earlier policy decision is resolved.Verification
pnpm lintandpnpm typecheckpassed.pnpm test --maxWorkers=1: 661 tests passed across 70 files; no tests skipped or timeouts changed.Closes #205.
Implementation and PR prepared with GPT-6 Astra in Oh My Pi. Notice polish by Claude Fable 5.1.