Repository navigation
spec(t27mcp): visual_output.t27 -- every answer carries a T27F visual, by host (Closes #10531) - #10504
Merged
Conversation
Contributor
This was referenced Oct 18, 2026
gHashTag
added a commit
that referenced
this pull request
Oct 18, 2026
…the rule from t27mcp::visual_output (#10504) (Closes #10508) The owner picked specs/t27mcp/visual_output.t27 as the single home of the visual-output rule. The claw spec now imports needs_visual, answer_channel and the K_/HOST_/CH_ numbers from it and adds only takes_still, still_channel, place_for, still_ms_ok and still_report_ok. Lab: 6/6, 0 vacuous; t27mcp spec 9/9, 0 vacuous. Resealed. Ledger row for specs/t27mcp/visual_output.t27 (t27b pass, per #10504's own ratchet run). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, by host, readable or redrawn (Closes #10531) One rule for the t27 MCP server's instructions and TRI CLAW's chat prompt: needs_visual, answer_channel (desktop inline widget, TRI CLAW image URL, markdown table fallback), inline_readable (font * 680 >= 11 * width), inline_source (embed or redraw from t27f_outline), answer_verdict. Lab: t27c test-report 9/9, 0 vacuous; a mutant readability rule fails 3. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Closes #10531
gHashTag
force-pushed
the
spec/visual-output
branch
from
October 18, 2026 16:47
d6f9478 to
33b4da6
Compare
This was referenced Oct 18, 2026
Merged
Contributor
PR DashboardGenerated at: 2026-10-18 17:18:05 UTC
Summary
Seal Status
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #10531
What
specs/t27mcp/visual_output.t27holds one rule, written down once: every answer that explains a spec, a flow, numbers or a piece of work carries one visual, drawn the T27F way (gHashTag/trinity#1648). The spec says three things:Both consumers read the rule's text (
RULE_CLAUDE_CODE,RULE_TRI_CLAW) from this spec, so the rule lives in one place:instructions, which Claude Code puts in the model's system prompt (gHashTag/t27-mcp);Epic #10066.
The rule
needs_visual(kind): a spec, a flow, numbers and a report carry a visual. A one-sentence reply or a question back to the user does not.answer_channel(host, inline_tool, svg): hosts 0..3 and channels 0..3 reusereel.t27's numbers. This spec adds TRI CLAW, the inline widget, the image URL and the markdown table.show_widget).svgURL (the chat renders it as an image)MCP Apps →
ui://resource. Site → live player.inline_readable(w, font):font * 680 >= 11 * w, for the drawing's smallest text.inline_source(w, font, bytes): embed the SVG as it is only when it is readable and at most 16384 bytes. Otherwise redraw it 680 px wide fromt27f_outlinerows.answer_verdict(...): returns one ofok,no visual,invented(a drawn node no tool row backs),no legend,no sourceandunreadable.Measured, not assumed
These are the tests' numbers, measured from t27-mcp at db98153:
t27f_graphreel fixture is 1860 px wide with 13 px text. Shown at 680 px, that text is about 4.75 px, so it must be redrawn.t27f_viewdeck-evidence-wide is 1280 px wide. Its 26 px body text is readable inline. Its 15 px caption is not.Evidence (lab, t27c 0.5.2, zig 0.16.0)
t27c check: typecheck OK, 0 errors. The one warning is thatanswer_verdicttakes 9 parameters.t27c test-report: 9 of 9 pass and 0 are vacuous. Of the 9 tests, 2 are negative controls.font_px >= 11. Three tests fail: the measured drawings, the embed/redraw choice and the unreadable-text negative control..trinity/seals/t27mcp_T27mcpVisualOutput.json, with 9/9 passed and not forced. Itsspec_hashmatches the file.Next (not here)
instructionsbuilt fromRULE_CLAUDE_CODE(gen-js table);t27f_graphandt27f_viewreport theinline_sourceverdict;RULE_TRI_CLAWfrom thet27-mcppackage;🤖 Generated with Claude Code