0018 — The editor is a front door: every harness surface from VS Code, through the same entry points¶
- Status: ratified
- Number: 0018
- Date: 2026-11-02
- Proposed by: agent (Claude Fable 5.1, on a branch opened for bamr87 at Amr's request on 2026-11-02)
- Ratified by: https://github.com/bamr87/bamr87/pull/592 (merged 2026-11-03 by @bamr87)
- Affects: constitution new § 20 (follows § 19
fleet-pr-review), § 7 (new gate line); specs UPS-REPO-40 (new row, SHOULD);_data/standards.yml(new artifactvscode);tools/conformance.py(new checkUPS-REPO-40);tools/test_vscode_launch.py(new gate);.vscode/SCHEMA.mdand the rootSCHEMA.mdrow; featureHUB-067; requirementFR63 - Supersedes: none (extends § 2's SCHEMA protocol and § 7)
- Related:
.vscode/README.md, docs/CONTAINERS.md, docs/FLEET-COMPOSE.md, docs/DASH.md, specs/REPOSITORY.md UPS-REPO-30 / UPS-REPO-34, 0016fleet-design-consistency(the warn-then-fail rollout pattern)
Context¶
The hub's tools/dash is the one command router the CLI, the Harness Console's job API and CI share, and the constitution already says the console never carries a second implementation of anything (tools/console/README.md, § 11). The editor was the exception. .vscode/launch.json had grown by accretion: it called tools/fleet-dev.sh directly instead of tools/dash dev, it started a second hub compose project (fleet-hub) that collided with the running core on 4000/4001, it carried hand-picked ports for devenv that the workspace container no longer published, and about a dozen of its entries pointed at repositories that no longer exist at those paths (cv-builder-pro, gitnexus as a top-level project, lawmode, books, git-with-the-program, zer0-cms/packages/zer0-mistakes). Nothing held it to the registries, so nothing noticed.
The 2026-11-02 rewrite (refactor/vscode-harness-launch) put every surface behind F5 — the container plane, the console (natively under debugpy, with its page under Vite), the public site and verify, the lake and log planes, the generators, the JEV loop runner, every gate, every compose-hosted and workspace-hosted submodule — each one through tools/dash or the tool's own entry point. That is only durable if the rule is written down and a gate holds it: which registry each picker follows, which plane an entry talks to, and that a new surface adds its entry in the same PR.
Prior art checked: § 2 (the SCHEMA protocol: add, remove, rename in the same change — the same discipline, applied to editor entries); § 7 (gates the repo's guide names); UPS-REPO-30 (compose + devcontainer pin the fleet extension set) and UPS-REPO-34 (published ports come from _data/ports.yml); 0016's warn-then-fail rollout for a fleet-wide convention; tools/docker_view.py, which already joins launch.json to the port registry for the /docker/ page. No section covers the editor as a surface.
Amendment¶
Add to the constitution:
20. The editor is a front door¶
- One front door — every development tool, loop, gate and surface of the hub is reachable from the editor:
.vscode/launch.jsonand.vscode/tasks.jsoncalltools/dash, a tool's own entry point, ordocker composeagainst the hub's own services, and never carry a second implementation of anything the CLI, the Harness Console's job API or CI runs.- Registries, not numbers — a port, project, site, scenario or loop named in an editor configuration comes from its registry (
_data/ports.yml,_data/fleet.ymlcontainers.ports,docker-compose.yml,.gitmodules,verify/scenarios/,content.sites); a picker is held equal to its registry bytools/test_vscode_launch.py, which is one of the § 7 gates.- Parity in the same PR — a new
tools/dashsubcommand, loop, gate, user scenario, content site or submodule adds its editor entry and the.vscode/README.mdline that describes it in the same pull request (README-Last applies to.vscode/); an entry that points at a retired path is removed, never left to fail.- Debuggers, not terminals — where a surface can be debugged (the console's API and page, a generator or hub test, a container that ships a debug layer) the entry is a real debugger (
debugpy, a browser with source maps, an attach) on a hub port that never collides with the running core; a terminal launcher is the fallback, not the default.- Fleet — a fleet repo with a run, test or debug command carries its own
.vscode/launch.jsonandtasks.jsonthat call the repo's own one-command entry points (UPS-REPO-40); the hub's.devcontainer/and.vscode/extensions.jsonare the reference extension set (UPS-REPO-30). Warn-only per repo until a seed kit exists and its fan-out PR lands.- Exemptions — content repos, forks and archived or retired repos are exempt; any other exemption is recorded as a standard deviation (UPS README "Deviating").
And to § 7 (Quality gates):
python3 tools/test_vscode_launch.py(the editor is a front door:.vscode/callstools/dash, its pickers and ports follow the registries — § 20)
Consequences¶
- Hub.
.vscode/gains aSCHEMA.mdand a row in the rootSCHEMA.md;tools/test_vscode_launch.pyruns intools/run-all-tests.shand holds the four files parseable, every pre-launch task and input resolvable, each picker equal to its registry, every named port published by the plane its entry talks to, and the front-door rule (nofleet-dev.sh, nofleet-hub, no--all).AGENTS.mdgains the convention in one line. - Standards.
specs/REPOSITORY.mdgains UPS-REPO-40 (SHOULD; app, api, site, ext, cli, lib):.vscode/launch.json+tasks.jsonpresent, JSONC-parseable, everypreLaunchTaskresolving — audited bytools/conformance.py;_data/standards.ymlgains the artifactvscode(.vscode/launch.json),recommendedfor the active tier andnaelsewhere, sodash auditsurfaces the gap amber without blocking. - Fleet. The seed is a gap: a
templates/vscode/kit (per stack profile inspecs/STACKS.md) is the follow-up, tracked on the roadmap once the maintainer approves it; the row stays SHOULD and the audit warn-only until the kit's fan-out PRs land (0016's rollout pattern). Repos that already adopted the 2026-09 "fleet .vscode run/debug convention" are the first conformers. - Known seam, not decided here. Two dev-stack systems coexist (
tools/dash upon networkfleetwith registrydev_ports;tools/dash devonfleet-netwith_data/ports.yml). The editor entries usedash upfor the core anddash devfor projects and document the seam in.vscode/README.md; reconciling the two maps is a separate decision (an ADR), and this amendment does not pre-empt it.