Repository navigation
claw: specs/claw/evidence.t27 -- the Evidence law every TRI CLAW and t27 MCP fact obeys (Closes #10412) - #10419
Merged
Merged
Conversation
…t27 MCP fact obeys (Closes #10412) Every published fact (check-run line, SARIF result, review suggestion, MCP tool answer row) is an Evidence record: claim text and strength, the instrument that measured it, source span, full seal digest, coverage (complete/partial/unknown) and one of the four T27F labels. Five rules, each a test block: coverage is read only from its exact word and a missing one is refused, never defaulted; unknown stays unknown and caps a composition at partial; parses/typechecks never becomes holds; ready/covered only over rows on one full seal digest; a publish is verified only by a read-back after the final write. evidence_pins.t27 pins every explicit length to .len and the labels to specs/t27f/spec_graph.t27. Idea from REA's Evidence model; no REA code. Lab: spec-status IMPLEMENTED; test-report 12/12 and 4/4, 0 vacuous; 6 of 6 mutants killed by the test of their rule; gen-c lowers and cc compiles the result. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Closes #10412
What
specs/claw/evidence.t27is the law every fact TRI CLAW and the t27 MCP server publish must obey. A fact can be a check-run line, a SARIF result, a review suggestion, or a row of an MCP tool answer. Each one is an Evidence record with these fields:CL_PARSES < CL_TYPECHECKS < CL_HOLDS);sha256:plus 64 hex digits);The idea comes from REA's Evidence model (morluto/rea, rea-agents 6.7.0, MIT). No REA code is used.
coverage_of,check_recordr1_missing_coverage_is_refused_not_defaulted,r1_every_coverage_and_label_word_round_tripscompose_coverage,compose_labelr2_unknown_never_composes_into_complete,r2_labels_compose_to_the_weakest,r2_an_unknown_label_cannot_claim_complete_coverageassert 1 > 2. Holds needs a green test-report with at least one runtime assert.strongest_claim,claim_supportedr3_typecheck_ok_never_becomes_holds,r3_a_suggested_row_never_says_holdscite,comparable,may_declare_ready,may_declare_coveredr4_ready_and_covered_need_one_seal,r4_a_display_prefix_is_not_a_digest,r4_covered_needs_complete_coverage_on_every_rowrecheckr5_recheck_reads_the_digest_after_the_final_writespecs/claw/evidence_pins.t27is a test-only companion module, following thegates_pins.t27pattern. It pins every explicit length to.len, and it pins the four labels (values and names) tospecs/t27f/spec_graph.t27.Verified on the Railway lab (t27c at /root/t27/target/release/t27c, PATH=/opt/zig)
t27c spec-status specs/claw/evidence.t27: IMPLEMENTED. The pins module reports NOFN, asgates_pins.t27does: it has tests and no functions.t27c test-report: evidence 12/12, 0 FAIL, 0 vacuous; pins 4/4, 0 FAIL, 0 vacuous.t27c gen-c specs/claw/evidence.t27lowers (569 lines), andcc -ccompiles the output. The feeds can therefore use it. It is not added to the gen-c drift list yet.Adopt next (each in its own PR)
specs/claw/sarif_feed.t27/sarif.t27: one Evidence per SARIF result. The span is already there. Addproperties.coverage,labelandseal. A parse-error or unwritten result has strength CL_PARSES or none, never holds.specs/claw/t27f_gate.t27: its check-run table shows a 12-digit digest. Cite the full seal (R4) before writingsealed, and recheck the posted summary (R5).specs/claw/suggest_feed.t27/suggest.t27: every suggestion is LABEL_SUGGESTED and can never claim holds (R3).specs/claw/gates.t27: the gate-audit check-run line declares coverage only throughmay_declare_covered.specs/claw/preview.t27: the preview environment's ready state goes throughmay_declare_readyover the spec seals it renders.specs/t27mcp/seal_verdict.t27(t27_spec receipt) andspec_brief.t27must emit coverage and label per row, and must never turn a typecheck into "works".specs/t27mcp/find.t27,examples.t27,check_hints.t27anddashboard.t27must label every answer row: a match is derived at best, and a hint is suggested.specs/claw/github_surface.t27: add the Evidence fields as a requirement of each publishing surface row.🤖 Generated with Claude Code