Repository navigation
spec(t27mcp): examples -- which short slice of the corpus answers a .t27 idiom question - #10083
Merged
Merged
Conversation
…uestion about .t27 idioms (Closes #10081) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This was referenced Oct 17, 2026
This was referenced Oct 17, 2026
Merged
This was referenced Oct 17, 2026
spec(policy): l2_generation -- gen/json/ is t27c gen-json's backend directory (Closes #10079)
#10082
Merged
Merged
Merged
Merged
gHashTag
added a commit
that referenced
this pull request
Oct 18, 2026
#10083 and #10092 were merged into their stacked base branches (mcp-t27-check, mcp-t27-examples) after #10080 had already landed, so neither spec reached master. This carries the two specs and the OWNERS row unchanged from mcp-t27-examples. Closes #10081 Closes #10090 Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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 #10081
Part of the epic #10066 (learnability: worked examples for cheap models). Stacked on #10080 (
mcp-t27-check), which addsspecs/t27mcp/and itsOWNERS.mdrow.What
specs/t27mcp/examples.t27(moduleT27mcpExamples): the decision behind the t27 MCP server's newt27_examplestool (gHashTag/t27-mcp). A model that learns.t27idioms from failed compiles pays one round trip each; the corpus already shows each idiom in a small tested spec, butt27_specreturns the whole file. This spec holds the pointers.topic_code(q): maps the words of a question to one of seven topics (clocked,comb,fn,test,reset_async,reset_sync,reset_none), in a fixed order.asyncis tested beforesync, which it contains. A question no rule knows getsT_NONE, and the server then lists the topics and invents no example.pick(topic, k): the row of the k-th example of a topic, orNO_ROW.t27c gen-js):PIN(one commit of this repository, so a pointer cannot drift), and per row the path, the line range, an optional module /use/ footer line and a one-line reason.row_ok/bad_rows: every row names a non-empty range and a rebuilt slice of at most 40 lines.specs/OWNERS.mdextends thet27mcp/row.Evidence (Railway lab, t27c 0.5.2)
t27c test-report specs/t27mcp/examples.t27: 8 of 8 pass, 0 vacuous.row_okrefuses topic 0, an out-of-range topic, an empty or reversed range and 41 lines. With one row widened past 40 lines the table test fails (7 of 8).PINand run witht27c test-report: parse and typecheck clean and, where the slice has tests, all pass with 0 vacuous. Thereset_syncslice has no tests and says so. A candidate forreset_none(verilog_prim.t27) was dropped because it does not compile on its own (undeclared identifier 'Startupe2Out', it needs itsuseclosure).t27c gen-cpluszig cc -target wasm32-wasilowers it to a 914-byte wasm; the build and sha256 are inwasm/BUILDof the server PR.Known limit
reset_syncis weak: the corpus has no small, tested synchronous reset. A synchronous reset is ordinary logic (the slice shows theResetKindenum and the release-path shift register, with no tests), so the row's reason says that instead of claiming more.findandhasrepeat the two helpers ofcheck_hints.t27instead of importing them (I did not tryuseacross the two specs). A shared string-helper spec fort27mcp/is a follow-up.🤖 Generated with Claude Code