Repository navigation
spec(042): name the explanation request and answer documents (3.8.3) - #404
Conversation
AI review (findings)The diff revises section 3 of spec 042 to specify the
{"head": "0095e3ea7af948655714494fadc0a6194f10f945", "verdict": "findings", "findings": [{"path": "specs/042-decision-service-and-remote-seams/spec.md", "line": 557, "summary": "Inline amendment note records prior approved text in the spec body, violating the contract rule that the amended spec.md is not edited to record its own amendment history."}]}Subject: ca81e1e...0095e3e, diff digest 5804dcc3fd26289c5a786993149c0731e8e558266718ea1ede3208f93e6b1d39, 1 call(s). An AI comment is not an approval. |
0095e3e to
8e5d94b
Compare
AI review (no-findings)Reading through the diff, the spec replaces a brief description of Checking for internal consistency and security: Options presence rule: The sentence " Scope enforcement: "options.scope must equal the scope the host resolves for the caller's principal … otherwise the answer is Redaction: Correctly migrated from the caller-supplied field to the per-listener configuration (3.15), with a sane default of unredacted when none is configured. Error mapping: Spec 040 refusals mapped to Security: No cross-scope information leak path is introduced; the scope check ( No concrete defect found in the supplied evidence. {"head": "8e5d94bcc46e3927847570a6f3d181519c12005c", "verdict": "no-findings", "findings": []}Subject: ca81e1e...8e5d94b, diff digest 90c825cceb4c8a15a4821e33fbe10aabf3244bab54ad9c6da92145d102bfab00, 1 call(s). An AI comment is not an approval. |
8e5d94b to
9d19156
Compare
AI review (no-findings)Reviewing the diff, which replaces the terse prose description of Key points examined: Logic of options biconditional (scope + now_ms vs. bundle presence) Scope enforcement Security: no caller-supplied redaction policy Refusal surfacing Generated schema files No concrete defect, security problem, or governance inconsistency found. {"head": "9d19156e495f57185259bd9c801a90cbf8850462", "verdict": "no-findings", "findings": []}Subject: 8cd9c0c...9d19156, diff digest 7e6af556eb1e7ddb8ca3fcf94e3a34575bf5cc0f671441fa04d7940b24581fc6, 1 call(s). An AI comment is not an approval. |
Amends approved spec 042 section 3.8.3. Needs the owner's ratification before it is implemented.
The approved text says
POST /v1/explain"takes the evidence and query of the spec implementing D2 (proposed as spec 040)" and returns "that spec's explanation record canonical bytes unchanged and its Markdown rendering", without naming a request or an answer document. The operation table has no request schema for it, so the route cannot be implemented as written. Spec 040 (now implemented) leaves the envelope to this spec in 040 3.15.3, quoted in the diff.The amendment:
rustev.serve-explain/1:{ evidence, query, options }, the shape spec 040 3.15.2 gives the bindings.evidenceis{ record, plan? }or{ bundle }, each member embedded or a resolver reference (3.8.2).queryis 040 3.3's query or{ diff: { other } }.optionsis{ scope, now_ms }exactly when a side is a bundle (040 3.16.2), andinvalid_requestotherwise.options.scopemust equal the host-resolved scope of the caller's principal, as for replay; otherwisedecision_not_found.redaction_policy, never from the body. With none, the explanation is unredacted (the library default).rustev.serve-explanation/1:{ explanation, markdown }, with therustev.explanation/1canonical bytes embedded unchanged. A spec 040 refusal isinvalid_documentwith the refusal code string indetail.When implemented, the operation table (request
rustev.serve-explain/1, responserustev.serve-explanation/1) and the generated.protocomments change with it.Alternatives the owner may prefer: return the bare
rustev.explanation/1body and put the Markdown behind a separate route orAcceptvalue; or takeredactionfrom the body when the listener has none.