Repository navigation
Conversation
urlcode-docs is being retired with urlcode-short and urlcode-dynamic-link. It held its own copy of 51 of this repository's 57 docs pages, drifted from them by hundreds of lines in places, and in several was ahead. Reconciling 51 pairs page by page was not the answer; judging each one and bringing across what was genuinely ahead is. Trusted-by-default corrections it carried and this repository did not: - docs/POLICIES.md and docs/policies/compression.md both still said policies run "outside the sandbox". Since 0.4.0-alpha.2 that is wrong in both directions: they run outside function/middleware execution, trusted or sandboxed alike. These were the last two occurrences of that phrasing. - docs/BEST-PRACTICES.md described guest state, middleware overhead and test coverage as if every route were sandboxed. All three now distinguish the trusted default from a route that declares sandbox: true. - docs/ASSETS.md said asset routes expose no filesystem APIs "to sandboxed code", which read as though trusted code had some. - docs/PRERENDER.md described the sandbox as the thing kept off the request path, rather than whatever mode the source routes used. Two pages existed only in urlcode-docs and would have been lost: - MANAGEMENT-SECURITY.md, which docs/SECURITY-AUDIT.md already linked to twice from this repository and urlcode-template links to at the tagged URL. It was a live broken link here. - EXTENSION-IMPLEMENTATION.md. Both are added to the docs index, and llms-full.txt is regenerated for them. Not everything there was ahead, and nothing was taken wholesale. Its PRERENDER.md and VERCEL.md still describe the native link handler that 0.4.0-alpha.2 removed, so copying either would have reintroduced a removed feature; this repository's VERCEL.md was already the more correct of the two. Its YAML-GUIDE.md and POLICIES.md are the pre-split monolithic versions. Four of its six unique-looking pages are copies of docs owned by urlcode-auth, urlcode-admin, urlcode-ui and urlcode-dynamic-link. AGENTS.md, CONTRIBUTING.md, README.md and the version register now record the retirement, and OPEN-DECISIONS.md item 6 records that the duplication it raised is resolved by retirement rather than by merging. Verified: npm run check (trust-model prose now 140 files, no stale claims; guidance claims clean) and the full suite -- 512 tests, 510 pass, 2 skipped, 0 fail. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_0182esjdk1XbbHSY3wA7PYUi
… claims they each caught (#166) * Bring urlcode-docs' content across before it is retired Takes the trusted-by-default corrections urlcode-docs carried and this repository did not, and rescues the two pages that existed only there. Co-Authored-By: Claude Opus 5 <[email protected]> * Record urlcode-dynamic-link and urlcode-short as retired, not pending Both packages were unpublished from npm and their repositories deleted. Core never depended on either, but live guidance still described stored short links as "moving to a future urlcode-dynamic-link extension package, not yet published", and README, docs/README.md and the spike banners still linked to repositories that now 404. Every such link is gone, and the guidance says what is true: core has no native `link` handler, no supported extension provides stored links, and a project needing them owns that storage itself. Dated records keep their bodies and get retirement notes; SPIKE-MONOREPO's note is reconciled with the urlcode-docs reversal already on main rather than reverting it, and now records that urlcode-docs is retiring too. Two trust-by-default corrections that were missing here: - docs/FUNCTION-SECURITY.md gains "Migrating to the trusted default", which warns that on upgrade every existing function/middleware route silently changes execution mode from sandboxed to trusted unless it declares `sandbox: true`, and says to opt routes back in before upgrading. The two-worker concurrency cap that motivated the change is the real default in src/functions.ts. It also gains "Trusted code, not trusted requests": trusted describes authorship, never the request data. - examples/prerender claimed its function "runs in the QuickJS/WASM sandbox with no filesystem, network or host code" while no route declared `sandbox: true`, so under the trusted default it ran in-process with full Node access. The three routes now declare `sandbox: true` deliberately and the prose says why. check-trust-model-prose.ts scans Markdown only, which is why a .mjs comment and YAML went unflagged. README also had two `## Documentation` and two `## Built with URLCode` sections; they are merged. docs/README.md linked to local SPIKE-AUTH/ADMIN/UI pages that do not exist here — they are owned by urlcode-auth, urlcode-admin and urlcode-ui, and the same table already said so two rows down. The links now point at the owning repositories rather than vendoring 1528 lines of copies, which is the duplication this cleanup exists to end. Verified: npm run verify — lint, typecheck, check, build and 512 tests (510 pass, 2 skipped, 0 fail). The prerender recipe was run end to end after the sandbox change: 7 fixtures pass, 3 pages render, audit passes 12 checks. Co-Authored-By: Claude Opus 5 <[email protected]> * Make the trust-model prose check see the files where the claim slipped through check-trust-model-prose.ts scanned Markdown only. That is why examples/prerender asserted, in a .mjs comment, that it "runs in the QuickJS/WASM sandbox with no filesystem, network or host code" while its urlcode.yaml declared no `sandbox: true` — under the trusted default it ran in-process with full Node access, and neither half of the contradiction was in a file the check read. Two additions: - Comments of runnable project material under examples/ and starters/ (`.mjs`/`.cjs`/`.js`/`.ts` and `urlcode.yaml`) are scanned. Only comment text is extracted, with line numbers preserved, so a rule never matches a string literal or a route path that happens to contain the word. - A new `unbacked-isolation-claim` rule cross-checks each project against its own YAML: prose claiming sandbox or QuickJS/WASM isolation must be backed by at least one route declaring `sandbox: true`. This is the rule that catches the original defect rather than its symptom — deleting the three `sandbox: true` lines from examples/prerender now fails the check with all three claims named. `llms.txt` and `llms-full.txt` are .txt, so they take the prose path, not the comment path; verified by planting a violation in llms.txt and seeing it reported. Scans 140 files → 185. Also drops the three `docs/README.md` rows linking SPIKE-AUTH/ADMIN/UI as local pages. They are owned by urlcode-auth, urlcode-admin and urlcode-ui, and the "Auth, admin and UI spikes" row below already points there. Verified: npm run verify — 512 tests, 510 pass, 2 skipped, 0 fail. Co-Authored-By: Claude Opus 5 <[email protected]> --------- Co-authored-by: Claude Opus 5 <[email protected]>
|
Superseded by #166, merged as 10c2439. Everything here landed unchanged: the trusted-by-default corrections in #166 adds what #164 had caught and this PR had not: the upgrade migration guide in |
urlcode-docsis being retired withurlcode-shortandurlcode-dynamic-link. It held its own copy of 51 of this repository's 57 docs pages, drifted from them by hundreds of lines in places, and in several was ahead. This brings across what was genuinely ahead, so retiring it loses nothing.Reconciling 51 pairs page-by-page was not the answer. Each page was judged individually, and most of them were left alone.
Trusted-by-default corrections it carried and this repository did not
docs/POLICIES.mddocs/policies/compression.mddocs/BEST-PRACTICES.mddocs/ASSETS.mddocs/PRERENDER.mdSince
0.4.0-alpha.2, "outside the sandbox" is wrong in both directions: policies run outside function/middleware execution, trusted or sandboxed alike. Those were the last two occurrences of that phrasing in the tree.Two pages existed only there and would have been lost
MANAGEMENT-SECURITY.md—docs/SECURITY-AUDIT.mdalready links to it twice from this repository, andurlcode-template's README links to it at the tagged URL. It was a live broken link here.EXTENSION-IMPLEMENTATION.mdBoth are added to the docs index, and
llms-full.txtis regenerated for them (thecheckgate caught that it had gone stale).What was deliberately not taken
Nothing was copied wholesale, because not everything there was ahead:
PRERENDER.mdandVERCEL.mdstill describe the nativelinkhandler that0.4.0-alpha.2removed. Copying either would have reintroduced a removed feature. I took only the trust hunks from itsPRERENDER.mdand nothing from itsVERCEL.md— this repository's version was already the more correct of the two.YAML-GUIDE.mdandPOLICIES.mdare the pre-split monolithic versions; this repository has since split them intodocs/yaml/anddocs/policies/.urlcode-auth,urlcode-admin,urlcode-uiandurlcode-dynamic-link.Retirement recorded
AGENTS.md,CONTRIBUTING.md,README.mdanddocs/VERSION-ALIGNMENT.mdnow record the retirement and tell agents not to copy pages back.docs/OPEN-DECISIONS.mditem 6 records that the duplication it raised is resolved by retirement rather than by merging, and keeps the lesson: the drift reached this size because the same page existed in two places with no record of which side won.The issue-filing table drops the
urlcode-docsrow.Companion PR: jimhoyd-com/urlcode-docs#20.
Verification
npm run check— trust-model prose now scans 140 files, no stale claims; guidance claims clean against 130 schema fields; YAML reference, llms-full, cookbook index and plugin distribution currentnpm run verify— 512 tests, 510 pass, 2 skipped, 0 failCompatibility and security
No runtime, schema or API change. Documentation only, plus two rescued pages.
🤖 Generated with Claude Code
https://claude.ai/code/session_0182esjdk1XbbHSY3wA7PYUi
Generated by Claude Code