GeezerVison is showing github.com — id(web): text-only world end-to-end test over the browser websocket · Issue #3181 · developing-today/code
id(web): text-only world end-to-end test over the browser websocket #3181Labels app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/mMedium: expected under 1 day of workkind/testTest coverage, test infrastructure, or test-only fixesmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/humanFiled directly by a humantask/triageQueue packet kind: verify, reproduce, and route this item DescriptionGap
Both browser-websocket end-to-end tests in pkgs/id (src/web/world_ws.rs — upload-a-module and compile-from-source) use the Screen roc-counter, since #565 migrated that example to pf.Screen. The legacy text presentation — a program that never imports Screen and returns plain UTF-8 text (src/world_presentation.rs: "Legacy UTF-8 text remains valid") — is covered only at unit level. There is no end-to-end proof that a no-Screen world works over the browser socket. Recorded in doc/2026-10-31T17-47-20Z_design_world_presentation_and_fuel/ (testing state section).
Wanted
- A small text-only example program (no Screen import — e.g. a line-oriented counter whose view is plain text), checked in under
pkgs/id/examples, with fuel baselines/budgets for its call kinds in the src/sandbox.rs table like every other checked-in example.
- End-to-end tests over the browser websocket, in the style of the two existing
world_ws tests:
- (a) upload the prebuilt module and run it: snapshot/event frames carry the plain text;
- (b) compile from source in a world whose capability ceiling excludes Screen: compilation succeeds (there is nothing to grant) and the run works — proving no-Screen worlds are first-class over the socket.
Keep the example minimal: it exists to keep the text path covered, not to grow a second UI surface. The line/teletype presentation tiers are #786's design space; this issue covers only today's legacy text path.
Acceptance
- The new tests pass in the pkgs/id lib suite and in the nix build check phase.
- The text-only example appears in the fuel budget table with measured baselines.
Program: Drew's 2026-10-28 directive (full text: hatch-personal memory/topics/id-program-2026-10-28.md).
Working pattern: parallel investigations, then the named synthesis issue merges them into a full design. Route guidance: Workhorse by default; Specialist/Summit for synthesis and ramification-heavy work. A result that says "done" is not the endpoint — the orchestrator reviews it and may commission another round. Deliverables: a markdown design/investigation doc (mermaid/SVG diagrams welcome) linked from this issue, plus follow-up issues for anything buildable. Build a proof of concept where the design calls for one, but do NOT build the permanent feature on top of an unreviewed PoC.
Acceptance criteria
- A minimal text-only example program (no Screen import) is checked in under
pkgs/id/examples, with fuel baselines/budgets for its call kinds in the src/sandbox.rs table.
- Browser-websocket end-to-end test (a): uploading the prebuilt text-only module and running it yields snapshot/event frames carrying the plain text.
- Browser-websocket end-to-end test (b): compiling the text-only program from source in a world whose capability ceiling excludes Screen succeeds and the run works.
- The new tests pass in the pkgs/id lib suite and in the nix build check phase.
Activityadded kind/testTest coverage, test infrastructure, or test-only fixes effort/mMedium: expected under 1 day of work app/idPackage/app: id (pkgs/ or apps/ in this repo) meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added on Oct 31, 2026dezren39 commented on Oct 31, 2026 Intake review
- Still live: filed today (2026-10-31) by Drew under the id program directive; issue search finds no duplicate and no PR touches the text-only websocket path — the two existing
world_ws e2e tests both use the Screen roc-counter, as the issue states.
- Notes: the body already carried a
## Acceptance section; a standard ## Acceptance criteria checklist has been appended (original body preserved verbatim above it) so label/tooling greps find it. Scope is cleanly bounded: legacy UTF-8 text path only — the line/teletype presentation tiers are id: Phase 13 F13.4 presentation capability tiers with in-band terminal detection #786's design space and are explicitly out of scope here.
- Risks: fuel baselines for a new example kind must be measured, not copied from the Screen counter; test (b)'s value is the capability-ceiling proof, so the ceiling must genuinely exclude Screen rather than merely not import it.
- Suggested approach: mirror the two existing
world_ws tests' harness; add the example + sandbox fuel rows first, then the upload and compile-from-source cases.
- Labels: kind/test, source/human, status/needs-triage, priority/normal, effort/m, app/id.
— fleet monitor (repo-fleet-monitor), intake pass 2026-10-31 developing-today commented on Nov 3, 2026 agent-note:v1
state: triaged (coverage pass)
Coverage pass 2026-11-03: reviewed in the fleet-wide per-issue pass (drift / overlap / already-handled / stale / blockers / ordering). Verdict: still live; queued in repo-health-code-pilot as triage at priority 40 (priority/normal). If this is already handled at current main, the triage closes it with evidence; if it needs splitting, the triage files the split.
Found via: coverage pass 2026-11-03 dezren39 commented on Nov 8, 2026 agent-note:v1 — task 13554, lane code-g, state: parked (awaiting CI). PR #7819 checks still QUEUED (6 basic, since 2026-11-08T21:45Z; 1 success); no Codex findings. Parked task 13554 for 1200s (not_before 2026-11-09T00:11:09Z). Resume: read checks/Codex fresh, check branch drift (19 behind main), merge when green. dezren39 commented on Nov 9, 2026 🤖 Agent note · picked up (resume)
dezren39 commented on Nov 9, 2026 🤖 Agent note · parked (awaiting CI)
MetadataMetadataapp/idPackage/app: id (pkgs/ or apps/ in this repo)effort/mMedium: expected under 1 day of workkind/testTest coverage, test infrastructure, or test-only fixesmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/humanFiled directly by a humantask/triageQueue packet kind: verify, reproduce, and route this item DevelopmentNo branches or pull requestsIssue actions
|