Repository navigation
mobile P5.4.4: the spec-shaping conversation as one pure function - #4199
Draft
fugaro-dev[bot] wants to merge 9 commits into
Draft
fugaro-dev[bot] wants to merge 9 commits into
fugaro-dev[bot] wants to merge 9 commits into
Conversation
The conversation that shapes one brief and takes the person's go, as a pure function of a transcript, the agent's reply and an injected clock. The transcript is the state and the ledger; the go is P6.2's phrase through P6.1's router, and the rule that an utterance carrying a command beside it is refused (`command-and-go`). P6.2's machine is not reused, because it reads back only the destructive verbs and lets a launch through (D162) while the front agent's launch is exactly the thing authorised; the rules, the cue and the costly-start policy are. Co-Authored-By: Claude Code <noreply@anthropic.com> Fugaro-Run: 20261127-020037-43e6 Fugaro-Rigor: startup Fugaro-Model: deepseek/deepseek-v4.1-flash
Every code in REFUSAL reached by a probe, the two tables accounting for all of them, and the shapes each refusal is for. Co-Authored-By: Claude Code <noreply@anthropic.com> Fugaro-Run: 20261127-020037-43e6 Fugaro-Rigor: startup Fugaro-Model: deepseek/deepseek-v4.1-flash
The turn is one pure call, so its cases are data: 34 conversations, the clock each is judged at, and the exact answer. P5.4.5's Go consumer cannot call into JavaScript and reimplements the turn, so both sides hold themselves to this file rather than to each other. vectors.generate.mjs asserts every case against the live module before it writes, so the file cannot be minted from a module that disagrees with a case. The constants travel with the cases, so the Go side reads no second set. vectors.test.js holds the file to the module and to the plan's verification list, claim by claim, from a table written by hand. Fugaro-Run: 20261127-020037-43e6 Fugaro-Rigor: startup Fugaro-Model: deepseek/deepseek-v4.1-flash
…4.4) README.md states the load-bearing claim the task's reviewer is asked to test: the go reuses P6.2's rules -- the phrase through P6.1's router, the confirm-token rule, the cue, the costly-start policy -- and does not reuse its machine, because P6.2 reads back only the destructive verbs and lets a launch pass through (D162) while the front agent's launch is the thing authorised. mutation-proof.sh plants 30 one-line bugs in turn.js and requires each to make the module's suite fail. Its first two guards are the task's own red step: the phase rule that refuses a second go, and the deadline. Fugaro-Run: 20261127-020037-43e6 Fugaro-Rigor: startup Fugaro-Model: deepseek/deepseek-v4.1-flash
…kept (P5.4.4) docs/pending-workflows/README.md lists every shared/*/mutation-proof.sh by name, and TestSharedTestsWorkflowReadmeNamesEveryProofScript holds that list to the glob in both directions. The module adds one, so it is named. Fugaro-Run: 20261127-020037-43e6 Fugaro-Rigor: startup Fugaro-Model: deepseek/deepseek-v4.1-flash
Review findings on the diff, all three about guards no test defended:
* the brief's empty-title rule was unproved -- the marker check was tested and
the title check was not, though it is the half that keeps every run's title
(the HARD RULE the module's own comment names). A vector case and a
mutation-proof guard now pin it;
* three encoding branches survived removal: an id's control characters, an
id's lone surrogate, and a lone surrogate in a text or a brief. Each has its
own case in bounds.test.js, reached by its own value rather than through
another field's refusal, and its own guard;
* the id and text charsets disagreed with P6.3, against this module's own
claim that the two must not. U+2028 and U+2029 are now refused where
mailbox-schema's readers refuse them -- in keyIdField and in
hasBadCharacter -- which is also the read-back's rule: the title is
interpolated verbatim into the one sentence the person is meant to trust,
and either character is a line break inside it.
mutation-proof.sh is 36 guards, 36 killed.
Fugaro-Run: 20261127-020037-43e6
Fugaro-Rigor: startup
Fugaro-Model: deepseek/deepseek-v4.1-flash
…(P5.4.4) The README's own list is held to the tree by a reader's eye, so it says 36 guards now, and it names the separator rule beside the branches bounds.test.js reaches. Fugaro-Run: 20261127-020037-43e6 Fugaro-Rigor: startup Fugaro-Model: deepseek/deepseek-v4.1-flash
The finding's vectors case took the file from 34 cases to 35; the README's tests section still named the old count. Co-Authored-By: Claude Code <noreply@anthropic.com> Fugaro-Run: 20261127-020037-43e6 Fugaro-Rigor: startup Fugaro-Model: deepseek/deepseek-v4.1-flash
…(P5.4.4) The new proof script is a fifth that runs its own module's tests rather than the whole package's, and the sentence the last commit edited still said four. Co-Authored-By: Claude Code <noreply@anthropic.com> Fugaro-Run: 20261127-020037-43e6 Fugaro-Rigor: startup Fugaro-Model: deepseek/deepseek-v4.1-flash
This branch has not been deployed
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.
Opened by Fugaro run
43e6.mobile P5.4.4: the spec-shaping conversation as one pure function
Task
Task: mobile P5.4.4: the spec-shaping conversation as one pure function
Do task P5.4.4 of docs/mobile/implementation-plan.md exactly as its block says (SECURITY-SENSITIVE). P5.4.1 (the design of record, docs/mobile/design/front-agent.md), P0.1, P6.1 and P6.2 are merged. Red test first. Targeted tests only, the block's Command. Laconic PR text.
Fugaro status
Running: work in progress, not verified · checkpoint during stage
fix· tests failed onea5a283· branch at7a59c2a: not verified · model cost $1.90 of $10 cap · updated 2026-11-27 04:10ZRun
43e6(a stale time here means the run died:fugaro diagnose 20261127-020037-43e6)//: # (fugaro:status end)