GeezerVison is showing github.com — id: text/1 presentation contract — text-only as the main mode, with a text projection for every surface (#2027) · Issue #2339 · developing-today/code
id: text/1 presentation contract — text-only as the main mode, with a text projection for every surface (#2027) #2339DescriptionFollow-up from the capability taxonomy v0 investigation (#2027, record: doc/2026-10-29T14-05-00Z_investigation_capability_taxonomy/, PR #2337).
Goal
Formalise text-only mode as the main presentation mode for agents and scripts: a text/1 contract plus a required text projection for every WorldSurface variant.
Why
parse_surface already accepts non-screen documents as legacy UTF-8 text, so text works today by accident. Agents and scripts are the primary consumers, text is what CI can assert without a renderer, and it is the degradation target every other surface needs.
Scope
Text(TextSurface) variant (kind: text) — UTF-8 lines, no escapes, no cursor addressing, no redraw, append semantics.
- Width-aware wrapping, default 80, capped like
MAX_SCREEN_WIDTH.
- A text projection for
Screen (existing render_ansi with colour stripped), Form, Media and Map, so no surface can exist without one.
- Contract documentation in
world_presentation.rs header and pkgs/id/ARCHITECTURE.md if it describes surfaces.
Acceptance
kind: text parses and round-trips; a surface without a text projection is rejected at the type level or by a test.
- A test renders one program's
Screen and Text documents and asserts the text projection is line-oriented and escape-free.
- Legacy plain-string documents stay valid.
Out of scope
A styling/theme system, cursor animation, terminal detection heuristics.
Acceptance criteria
-
kind: text (Text/TextSurface) parses and round-trips: UTF-8 lines, no escapes, no cursor addressing, append semantics, width-aware wrapping (default 80, capped like MAX_SCREEN_WIDTH)
- Every
WorldSurface variant on main (Screen, Text, Form, Scene, Audio, Widget) has a text projection, enforced by the exhaustive, wildcard-free match in WorldSurface::text_projection. Media/Map are not variants — the Media remainder is design-first in id: media/1 presentation surface — design a Media WorldSurface variant with a text projection (#2339 remainder) #13679.
- A test renders one program's Screen and Text documents and asserts the text projection is line-oriented and escape-free
- Legacy plain-string documents stay valid; contract documented in the world_presentation.rs header (and pkgs/id/ARCHITECTURE.md if it describes surfaces)
Activitydeveloping-today commented on Oct 29, 2026 dezren39 commented on Oct 29, 2026 Intake review
Related: parent investigation #2027 (record: PR #2337); siblings #2338-#2345 are the other taxonomy follow-ups
Notes: Filed 2026-10-29T14:04Z from #2027. Still live: no open or merged PR implements it. Text works today only by accident (parse_surface legacy UTF-8 path); this makes it the main mode for agents/scripts and the degradation target for all other surfaces.
Risks: If Form/Media/Map land before their text projections, surfaces exist that CI and agents cannot assert on — sequence this before or with #2340/#2342.
Suggested approach: Add the Text variant + Screen projection via the existing render_ansi (colour stripped) first, then the remaining projections with the line-oriented test.
🤖 Agent note · filed
- Agent: fleet monitor (repo-fleet-monitor)
- Session / ID: repo-fleet-monitor run 2026-10-29T14:30Z (09:30 CDT)
- Found via: monitor reconciliation
- Task: Duty 2 intake enrichment — acceptance criteria appended (original body preserved verbatim above it), labels normalized,
meta/enriched applied. Still-live check this pass: no merged PR or fix commit explicitly resolving this issue was found; where a queue triage task owns verification, it is named in the notes.
- Expectation: see the effort label; done = the appended acceptance criteria are met.
- Links: this issue
dezren39 commented on Nov 1, 2026 dezren39 commented on Nov 8, 2026 🤖 Agent note · duplicate follow-on cancelled
dezren39 commented on Nov 17, 2026 🤖 Agent note · triaged — both gates closed since the triage of record; remainder enqueued as task 19782
- Agent: queue worker (repo-worker-code), lane code-e
- Task: task 18225 — bulk-intake triage of issue id: text/1 presentation contract — text-only as the main mode, with a text projection for every surface (#2027) #2339
- Fresh verification (2026-11-17, this run): issue id: text/1 presentation contract — text-only as the main mode, with a text projection for every surface (#2027) #2339 OPEN, no hard-stop labels. PR id: text/1 foundation — TextSurface + exhaustive WorldSurface text projection (#2339 first slice) #4840 verified MERGED. Gate issues verified this run: id: form.* capability + Form surface — structured input without program-supplied HTML (#2027) #2340 (Form surface) CLOSED, id: media.* — typed media artifacts by default, one bounded raw stream for realtime (#2027) #2342 (Media surface) CLOSED.
- Triage of record stands, with its gate now cleared: task 12057 (2026-11-08) — first slice landed (PR id: text/1 foundation — TextSurface + exhaustive WorldSurface text projection (#2339 first slice) #4840:
WorldSurface::Text, exhaustive text_projection() with no wildcard arm, tests on main), and it deliberately enqueued no fix packet because the remaining text projections were gated on the Form and Media surfaces existing. Both surfaces now exist (their issues closed), so the remainder is actionable.
- Action taken this run: enqueued the remainder as task 19782 (small_fix, queued): add the Form and Media text projections to
text_projection() in world_presentation.rs, keeping exhaustiveness, with projection tests mirroring the existing text tests. Fix dedupe slot verified free before enqueue.
- Verdict: triaged, follow-on named above. Issue id: text/1 presentation contract — text-only as the main mode, with a text projection for every surface (#2027) #2339 stays OPEN until task 19782 lands.
dezren39 commented on Nov 17, 2026 agent-note:v1 — state: blocked (needs_input — packet premise partly stale), lane any-h, task 19782, at 2026-11-17T10:35Z
Working task 19782 (the #2339 remainder packet: Form + Media text projections) against current main produced a split finding:
Form half — already done on main. FormSurface::text_projection() exists in pkgs/id/crates/id-core/src/world_presentation.rs, the exhaustive WorldSurface::text_projection match already has its Self::Form arm (no wildcard), and a dedicated test (form_surface_parses_projects_and_rejects_unsafe_or_oversize_documents) asserts the exact projected lines. Nothing remains to implement for Form.
Media half — the surface does not exist. There is no Media variant of WorldSurface anywhere in pkgs/id (the enum is Screen / Text / Form), and no kind: media presentation document is parsed. Gate #2342 delivered media.* capabilities — typed media artifacts in id-store — not a presentation surface, so there is no Media input for a projection to cover. (The same is true of the Map surface named in this issue's scope.) Adding a Media presentation variant is a design task — document shape, validation bounds, and the adapter contract — not a remainder fill-in, and it should not be invented inside a scoped fix packet.
Decision needed (Drew / issue owner): either (a) re-scope this remainder to Form-only, in which case it is already satisfied on main and the packet can close with the evidence above, or (b) file a dedicated design+implementation packet for a Media (and possibly Map) WorldSurface variant, whose projection then lands with the variant under the existing exhaustive-match rule.
Housekeeping: a targeted cargo test -p id-core --lib world_presentation run was started to confirm the Form test green, but the laptop's fleet build queue was saturated (load average ~113, build-lock held by other lanes), so the run was abandoned rather than left competing; the Form evidence above is from direct inspection of main. Task 19782 is blocked needs_input on the decision above. dezren39 commented on Nov 23, 2026 Decision (UNBLOCK-393 sweep, under Drew's 2026-11-23 decision posture): BOTH — this remainder task is re-scoped to Form-only, and the Media half goes to a dedicated design packet.
Why: the Form text projection is already on main (FormSurface::text_projection in pkgs/id, per the 2026-11-17 finding on this issue), so the Form scope is satisfied; no Media WorldSurface variant exists in pkgs/id, so Media is a design-first item, not an implementation remainder. Keeping this packet blocked on a nonexistent variant helps neither half. The picking-up worker should verify the Form projection against acceptance and complete; the Media variant design packet is the follow-on. dezren39 commented on Nov 23, 2026 🤖 Agent note · Form half verified complete; Media half split to #13679 · task 19782 complete
- Agent: queue worker (
repo-worker-code), OpenChamber scheduled lane oc-code-04.
- Task: 19782 — the id: text/1 presentation contract — text-only as the main mode, with a text projection for every surface (#2027) #2339 remainder packet (Form + Media text projections), re-scoped to Form-only by the 2026-11-23 decision above.
- Verification (this run, on main):
WorldSurface variants are Screen, Text, Form, Scene, Audio, Widget. WorldSurface::text_projection matches all six with no wildcard arm (compile-time enforcement intact).
FormSurface::text_projection() is present (pkgs/id/crates/id-core/src/world_presentation.rs), and form_surface_parses_projects_and_rejects_unsafe_or_oversize_documents asserts the exact projected lines, including rejection of escapes/HTML/CSS/oversize input.
cargo test -p id-core --lib world_presentation: 49 passed, 0 failed (laptop, via fleet-build-lock), including screen_and_text_projections_are_line_oriented_and_escape_free, text_parses_and_round_trips, and the scene/audio/widget projection tests.
- Form half: satisfied — nothing remained to implement.
- Media half: there is no
Media (or Map) WorldSurface variant, and id: media.* — typed media artifacts by default, one bounded raw stream for realtime (#2027) #2342 delivered media.* artifacts/streams, not a presentation surface. Filed id: media/1 presentation surface — design a Media WorldSurface variant with a text projection (#2339 remainder) #13679 as the dedicated design-first packet (Media variant + validation + text projection, landing together under the exhaustive-match rule), and enqueued its triage packet as task 21457 in repo-health-code-pilot (same-pass filing rule).
- Issue body: the acceptance checklist is updated to name the actual variants and all four items are ticked.
dezren39 commented on Nov 23, 2026
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|