Repository navigation
feat(workspace): the intent walk's decision points, a note on points answer, and points retract - #3404
Merged
Conversation
…answer, and points retract The reference workspace declares hud's three intent-walk questions as quorum-only points (intent-origin, intent-judgment, intent-disposition) over region.id and node.id, with node a new point input naming any node of graph --intent. points answer takes --note, kept as the record's note. points retract takes an answer back under the point's quorum: the question is escalated to people again and the answer, its note, and who retracted it, when and why move into the record's retractions (ws-084). The MCP server gains points-retract, and the writer conformance suite covers the new action. Closes #3351
# Conflicts: # docs/src/content/docs/reference/boundary.mdx # docs/src/content/docs/reference/workspace-writer-conformance.mdx
# Conflicts: # docs/design/decisions/README.md
# Conflicts: # docs/design/decisions/README.md # docs/src/content/docs/reference/boundary.mdx # docs/src/content/docs/reference/workspace-writer-conformance.mdx # packages/core/src/workspace/conformance/writer.test.ts
# Conflicts: # docs/design/decisions/README.md # docs/src/content/docs/reference/boundary.mdx # docs/src/content/docs/reference/workspace-read-contract.mdx # packages/core/src/workspace/decide.ts # packages/core/src/workspace/points-write.schema.json
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.
hud's intent walk asks one of three questions at each node of a region (origin, judgment, disposition), keeps the person's answer with a note, and lets the person clear it. arugula-salad/hud#729 moves those answers out of
.hud/events.dbinto the repo, and chant had no points for the questions, no note on an answer, and no way to take an answer back. This adds all three, recorded as ws-084.The reference workspace's
decisions/points.jsondeclaresintent-origin(carried-out-decision, incidental, unknown),intent-judgment(drift, unwritten-supersession, decision-wrong, no-gap, not-decidable) andintent-disposition(handled, skipped, needs-discussion), the answer sets of hud'sANSWER_SETS. Each readsregion.idandnode.idand is decided by a quorum of one, so asking it escalates to the person walking.nodeis a new point input output: any node ofgraph --intent. The guide documents how a workspace declares its own points with these inputs when it wants other answer sets.points answer --note <text>keeps the note as the record'snote.points retract <id> --by <name> [--note <why>]takes an answer back under the point's quorum and refuses a steward's turn, as an answer does. The question goes back toescalatedwith the quorum as its decider, and the answer, its decider, who gave it, when and its note move into a newretractionslist with who retracted it, when and why. A confirmed model proposal goes back intoescalations. People answer again withpoints answer, and asking the point again returns the retracted question unchanged.point-answer.schema.jsongainsnoteandretractions. A workspace whose copy predates them getsanswer-field-unsupportedfor a note or a retraction rather than losing what a person wrote. Retracting an open question isanswer-not-answered.points --jsonand the write documents carrynoteandretractionson each question, and the write document'sverbtakesretract. The MCP server gainspoints-retractand anoteonpoints-answer.The writer conformance suite adds the
points retractaction. Its script answers with a note, retracts, and answers again, and the read-back checks thatpoints --jsonlists the retraction. The writer fixture's answer schema and points stay copies of the reference workspace's.This leaves #3403 open: the record already carries the candidates it was asked with, and the new input and verbs don't assume a points file fixes them.
Verified with core tsc, the targeted unit tests (decide, points, reason codes, read contract, writer, MCP tools, boundary roster, reference workspace), the unit project, the writer conformance e2e, and docs-check. I also ran a manual ask, answer with a note, retract and re-answer against a copy of the reference workspace.
Closes #3351