You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Gap]: UI kit inlines its stylesheet, which the default oshp CSP blocks #287
ai-firstReduces friction for AI agents authoring URLCode projectsenhancementNew feature or requestextensionInvolves an extension or companion package (store, ui, auth, admin)importantHigh-priority work selected for near-term focus
Tried: serve pages built with @jimhoyd/urlcode-ui under policies.security.headers: oshp. Got: the kit inlines its stylesheet and the stock oshp CSP has no style-src 'unsafe-inline', so the agent had to switch to oshp-no-csp and hand-write a CSP. Expected: the kit works under the default security profile, or a documented preset/option exists next to the kit docs. Suggestion: external hashed stylesheet, CSP nonce/hash support, or a named CSP preset for the kit. docs/policies/security.md documents the general inline-style block but not the kit interaction.
Evidence: A/B benchmark on URLCode 0.4.2, Sonnet 5 agent building a blog from the repo docs (n=1; the agent's own report, not independently reproduced). Artifacts: urlcode-benchmarks/blog-2026-09-20/ (local). The agent finished with 25/25 acceptance checks; the control used 58,773 tokens vs 125,443 for URLCode.
Progress: PR #295 opened. renderDocument gets an optional style: {nonce} plus documentContentSecurityPolicy(nonce); oshp is unchanged. The kit's own hashed-stylesheet path already worked; only renderDocument emitted an un-nonced inline style. Not yet checked in a real browser.
Fixed in #295: renderDocument takes an optional style: {nonce}, and documentContentSecurityPolicy(nonce) returns the matching strict CSP, so pages run under the default oshp profile without weakening it. The kit's own hashed-stylesheet path already worked. Whether renderDocument should stop inlining its stylesheet altogether is recorded on the open-decisions list. Not verified in a real browser.
ai-firstReduces friction for AI agents authoring URLCode projectsenhancementNew feature or requestextensionInvolves an extension or companion package (store, ui, auth, admin)importantHigh-priority work selected for near-term focus
Activity
jimhoyd commentedon Sep 20, 2026
Progress: an agent is working on this; a PR will be linked here when it opens.
jimhoyd commentedon Sep 20, 2026
Progress: PR #295 opened.
renderDocumentgets an optionalstyle: {nonce}plusdocumentContentSecurityPolicy(nonce);oshpis unchanged. The kit's own hashed-stylesheet path already worked; onlyrenderDocumentemitted an un-nonced inline style. Not yet checked in a real browser.Let renderDocument pages run under the default oshp CSP (refs #287)
Let renderDocument pages run under the default oshp CSP (refs #287) (#…
jimhoyd commentedon Sep 20, 2026
Fixed in #295: renderDocument takes an optional style: {nonce}, and documentContentSecurityPolicy(nonce) returns the matching strict CSP, so pages run under the default oshp profile without weakening it. The kit's own hashed-stylesheet path already worked. Whether renderDocument should stop inlining its stylesheet altogether is recorded on the open-decisions list. Not verified in a real browser.