Repository navigation
chat: the status line names the gate --yolo opened - #648
Merged
Merged
Conversation
`aforge chat --yolo` replaces the tool gate's default with `allow` for the whole session without writing the `tools.approvalMode` row, and the YOLO segment read that row alone — so the one posture the segment exists to remind somebody of was the one posture it never mentioned. An absent segment is the claim "you will be asked before anything runs", and under the flag the surface made that claim over an open gate for the whole run. The launch now hands the posture it forced down to the surface on the field that already carried the engine's posture over --host, and approvalPosture prefers a handed-down answer over the profile it reads live. A launch that forces nothing hands nothing down, so an ordinary launch keeps re-reading the profile at boot and at every turn end. Co-Authored-By: Claude Fable 5.1 <[email protected]>
The status-line table said "**`--yolo` does not raise it**" — corrected into the page by #326 when it was true, and false the moment the flag's posture reached the surface. Row 9 now names both ways the gate is open, and the permissions page's `--yolo` section says the badge is on screen for as long as such a session runs, which is where somebody asking about the flag actually lands. Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
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.
What was wrong
aforge chat --yoloopens the tool gate — every tool call runs without asking — and the status line showed noYOLOsegment. That segment is drawn only when the gate is open, so its absence is the surface's claim "you will be asked before anything runs". Under the flag the surface made that claim over an open gate, for the whole session. The cause: the flag replaces the gate's default incmd/aforgewithout writing thetools.approvalModerow, while the segment read that row alone. This is the same false safety claim #322 fixed for the profile-row case, by a different route, and it was named in #326's own change entry as still standing.What is true now
The launch hands the posture it forced down to the surface, on the same
Options.ApprovalModefield that already carried the engine's posture over--host, andapprovalPostureprefers a handed-down answer over the profile it reads live. A launch that forces nothing hands nothing down, so an ordinary launch keeps re-reading the profile at boot and at every turn end exactly as before.--yolois still refused over--hostand--at, so a hosted badge still names only the engine's own posture.Validation contract
YOLO, and it reaches the frame, with the profile row unset —TestTheYoloSegmentMatchesThePostureInForce/a launch the flag opened says so.an ordinary launch that asks first says nothing(unchanged).allow,YOLOdrawn live from the profile — same test,an ordinary launch with the asking off says so(unchanged).TestTheYoloBadgeNamesTheEnginesPostureNotThisMachines(unchanged).allowonly for the flag and nothing otherwise —TestTheSurfaceIsHandedThePostureOnlyWhenTheFlagForcedIt, which also pins that handed word to the sameapproval.ActionAllowthe gate's own default is built from.promptthe segment still saysYOLO, and the profile still answers its strict default afterwards —the row cannot close a gate the flag opened, and the write check inside the first subtest.--yolosection of the permissions page says the badge is on screen for as long as such a session runs —TestTheChatManualAnswersTheQuestionsPeopleAsk, with a new probedoes --yolo show on the status linereaching the screen page.Gates
go build ./...,go vet ./...,make fmt-checkgo generate ./internal/manual+go test -tags=aforge_packed_manual ./internal/manual, no tracked driftgo test ./internal/manual/andgo test -run Manual ./internal/tui3/ ./internal/session/make test-lawsgo test ./internal/e2e/(untagged needle table)./cmd/aforge ./internal/manual ./internal/tui3,-count=1 -p 1The real binary, driven in tmux from a home with no
tools.approvalModerow and no model call:chat --yolodrawscrew balanced · YOLO · idle, andchaton the same profile drawscrew balanced · idle.What was not verified
Nothing needed a model, so nothing was left to a live run. The project-settings layer is a separate, already documented gap and is deliberately untouched here:
v3Policyresolves the mode row through the workspace layer while the segment reads the profile, so a repository that setstools.approvalMode: allowin its own settings still draws nothing. That isdocs/conversations-design.md§A7 and it is not this issue.Closes #325
🤖 Generated with Claude Code