Close W6: give the layer gate its own upstream, prove the cartridge removable by deletion, and name its fences in AGENTS.md
Before adoption: this commit came in with the history the project adopted, so no landing records it.
W6 integration (699). Found live on dev-oscabriel, fixed red first: - The layer gate's private upstream was the public one: privateUpstream piped the same UpstreamRepoHost layer the core ports build over ARTIFACTS, and a layer built twice in one memo map is shared, so every layer clone or push on a stage asked the public namespace and answered "no repo datekit--maintainers" (the DO had made the repo in layers-dev-oscabriel). It is Layer.fresh now. Test: layer-gateway.test.ts "the stage's layer gate asks the private namespace for a layer repo, never the public one" (red by assertion: the fake binding touched was ARTIFACTS.get). The Node world never saw it: its upstream is not UpstreamRepoHost. From the cartridge deletion test (a scratch worktree, discarded): - The Cartridge type lives in apps/platform/src/cartridges.ts, so the module keeps a line when its last marked line is deleted (an empty module fails lint's no-empty-file), and serve-world.ts types the cartridges as ports.ts does (an empty namespace made them never). - cartridge.test.ts also lists seed-layer.test.ts (it runs the world the cartridge plugs into) and examples/datekit/layers/ (content only the cartridge can seed), and its header names every line outside the manifest a deletion takes. Decision: cartridge.test.ts goes with the cartridge rather than skipping, since a fence for a cartridge that is gone holds nothing. - Result: deleting the manifest, those files, the marked line, the two dependency lines, ARTIFACTS_PRIVATE and MASTER_KEY (with their test wiring, two bootstrap.test.ts rows and seed.test.ts's three Layer lines), then bun run types and bun install, left bun run verify green: 103 files, 18,364 lines deleted; platform entry 1,518,193 bytes without it, 1,605,141 with it. AGENTS.md "Held by": principle 6 names cartridge.test.ts; principle 7 names the layer gateway, held-back, guards and landing-guard tests that now exist (its "No fence yet: the gateway's layer guard" is gone). Live on dev-oscabriel (deployed from 191b3b5 plus the gate fix, smoke seven of seven): ines-v landed datekit's visibility config (0-day notice, ASSUMPTION recorded in spec §8.8) and accepted its PostureChange; the seed pushed the maintainers layer; admission ran ten container runs and admitted export (7 checks by 3 authors) and parser (4 by 3); a contributor's clone got 403 and a maintainer's held checks/held-back/**; bram's answer that broke quote escaping got HeldBackFailed{export} in status, verdict and git notes; his fix landed with "Held-back: export 7/7 @ sha256:…; parser 4/4 @ sha256:…"; env set SENTRY_AUTH_TOKEN showed "set by ines-v" in env shape, ledger and web, and a later run's recorded env held only __SENTRY_AUTH_TOKEN_PLACEHOLDER__.
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
7 files+106 added−23 removed
- tests:+80 added−10 removed
- other:+26 added−13 removed