Repository navigation
spec(t27f): four rule fixes from running the skill on both demo briefs (Refs #9951) - #9960
Merged
Merged
Conversation
…9951) Ran .claude/skills/t27f/SKILL.md end to end on the villa brief and the GF16 topic against the merged spec (7181e6b). Four rule defects: - demo_villa_sale_brief asserted route(1, 0, 0, 4) by counting "List" as "listing"; a whole-token count gives 3 sales hits. Fixed the fixture. - "whole words, case-insensitive" left splitting, stems, plurals and repeats open. New KEYWORD_MATCH states the rule the host applies. - Sales and content DELIVER is verified only by EVIDENCE_CLIENT_APPROVAL, but sending to a client required VERIFIED, so the client could never see what they must approve. A DRAFT may now be sent to the client with the user's yes and stays a DRAFT; publishing still needs VERIFIED. - No rule said where the Bee goes when nothing is OPEN, which is every brief without sources. New bee_target(), TARGET_FIRST_GAP, GAP_BEE and ground() (GAP -> OPEN or LOCKED once a source is attached). SKILL.md follows: KEYWORD_MATCH in routing, sources found by the agent are not intake, GAP rows keep their title, first_grounded is the lowest step, the no-OPEN case, and the corrected send gate. Lab (Railway, t27c 0.5.2 built from 7181e6b, zig 0.16.0): test-report 12/12 pass, 4 invariants proved, 0 vacuous; gen-c and gen-js succeed. Negative controls, each one token: send-draft gate reverted -> 1 FAIL; bee_target flattened -> 2 FAIL; after_action guard dropped -> 1 FAIL. Refs #9951 Refs gHashTag/trinity#1677 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
gHashTag
enabled auto-merge (squash)
October 17, 2026 14:22
Contributor
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.
Follow-up to #9952. I ran
.claude/skills/t27f/SKILL.mdend to end on the two Phase 1 demo briefs, using the merged spec (7181e6bc9). Four rules were wrong or missing, and this PR fixes them inspecs/t27f/topic_engine.t27, with tests. The skill prose is updated to match.Refs #9951
Refs gHashTag/trinity#1677
How the run loaded the spec
mcp__t27__t27_spec path=specs/t27f/topic_engine.t27answers "not found", because publication has stalled (details below). Skill section 0 allows a checkout as the fallback, so the run read the spec fromorigin/masterwithgit show. The file was not copied anywhere.Routing, counted as the new
KEYWORD_MATCHsaysNeither brief came with sources. Intake is therefore
INTAKE_NO_SOURCES, all 27 lessons are GAP, andmap_verdict(0,0,0)isMAP_NEED_SOURCES.Defects fixed
demo_villa_sale_briefassertedroute(1, 0, 0, 4)because it counted "List" as a hit on "listing". The spec's own whole-word rule gives 3.KEYWORD_MATCHstates the rule.EVIDENCE_CLIENT_APPROVAL. Butaction_allowedlet only a VERIFIED item go to a client, so the client could never see the draft they had to approve.bee_target(),TARGET_FIRST_GAPandGAP_BEE = "researcher"(every*_BEESlist has it). Also new:ground(), which turns a GAP into OPEN or LOCKED once a source is attached.SKILL.md changes:
KEYWORD_MATCHin the routing step;ground);first_groundedis the grounded lesson with the lowest step (now stated in the spec too);active_beescomes from;Left open (product decisions, not changed here)
opens_next(DRAFT)says the learner may move on, but not which lesson opens.Lab (Railway; nothing ran on the Mac)
Run with the lab compiler, version 0.5.2, built from
7181e6bc9, and zig 0.16.0. The spec file on the lab was checked against the local one by sha256 (ccbef1f7...).client_approves_a_draft_it_was_sent)bee_targetflattenedafter_actionVERIFIED guard droppedPublication blocker (not fixed here: it needs foreign code)
The t27.ai manifest is still built from t27 commit
1d9c5960d(2026-10-08). trinity's nightly "t27 world scan" has failed since 2026-10-09; on the latest run, its gateagents-from-specsreports 54 problems:CLARA_ROLEtoAR_ROLEinspecs/agents/*.t27;apps/website/scripts/agents-from-specs.mjsstill requiresCLARA_ROLE.Until that
.mjsgate changes, no t27 spec merged after Oct 8 reaches the MCP, including this one and #9952.🤖 Generated with Claude Code