Skip to content

chat: the status line names the gate --yolo opened - #648

Merged
AbirAbbas merged 3 commits into
devfrom
fix/325-yolo-shows-on-the-status-line
Sep 8, 2026
Merged

AbirAbbas merged 3 commits into
devfrom
fix/325-yolo-shows-on-the-status-line

Conversation

@AbirAbbas

Copy link
Copy Markdown
Collaborator

What was wrong

aforge chat --yolo opens the tool gate — every tool call runs without asking — and the status line showed no YOLO segment. 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 in cmd/aforge without writing the tools.approvalMode row, 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.ApprovalMode 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 exactly as before. --yolo is still refused over --host and --at, so a hosted badge still names only the engine's own posture.

Validation contract

  • The flag raises the segment. A surface whose launch forced the posture draws YOLO, and it reaches the frame, with the profile row unset — TestTheYoloSegmentMatchesThePostureInForce/a launch the flag opened says so.
  • Absence is still the safe state. No flag, row unset, nothing drawn — same test, an ordinary launch that asks first says nothing (unchanged).
  • The tui3: the first-run and provider-connection screens never open on an ordinary launch — three more sites read an empty profile directory as absence #322 case is unchanged. No flag, row allow, YOLO drawn live from the profile — same test, an ordinary launch with the asking off says so (unchanged).
  • The hosted window is unchanged. The engine's carried posture decides, never this laptop's — same test's two hosted subtests and TestTheYoloBadgeNamesTheEnginesPostureNotThisMachines (unchanged).
  • The profile is still read live when nothing was forced. The door hands down allow only for the flag and nothing otherwise — TestTheSurfaceIsHandedThePostureOnlyWhenTheFlagForcedIt, which also pins that handed word to the same approval.ActionAllow the gate's own default is built from.
  • The flag outranks the row it did not write, and writes nothing. With the row at prompt the segment still says YOLO, 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.
  • The manual no longer denies it. Row 9 of the status-line table names both ways the gate is open; the --yolo section of the permissions page says the badge is on screen for as long as such a session runs — TestTheChatManualAnswersTheQuestionsPeopleAsk, with a new probe does --yolo show on the status line reaching the screen page.

Gates

Gate Result
go build ./..., go vet ./..., make fmt-check pass
go generate ./internal/manual + go test -tags=aforge_packed_manual ./internal/manual, no tracked drift pass
go test ./internal/manual/ and go test -run Manual ./internal/tui3/ ./internal/session/ pass
make test-laws pass, 14 packages
go test ./internal/e2e/ (untagged needle table) pass
touched packages — ./cmd/aforge ./internal/manual ./internal/tui3, -count=1 -p 1 pass (cmd/aforge 177s, manual 1s, tui3 460s)

The real binary, driven in tmux from a home with no tools.approvalMode row and no model call: chat --yolo draws crew balanced · YOLO · idle, and chat on the same profile draws crew 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: v3Policy resolves the mode row through the workspace layer while the segment reads the profile, so a repository that sets tools.approvalMode: allow in its own settings still draws nothing. That is docs/conversations-design.md §A7 and it is not this issue.

Closes #325

🤖 Generated with Claude Code

AbirAbbas and others added 3 commits September 4, 2026 13:33
`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]>
@AbirAbbas
AbirAbbas merged commit 5a8cea3 into dev Sep 8, 2026
3 checks passed
@AbirAbbas
AbirAbbas deleted the fix/325-yolo-shows-on-the-status-line branch September 8, 2026 12:54
@santoshkumarradha santoshkumarradha added the area:chat The v3 surface a person sits in front of (internal/tui3) label Oct 3, 2026
@santoshkumarradha santoshkumarradha added this to the Chat & connections milestone Oct 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:chat The v3 surface a person sits in front of (internal/tui3)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chat --yolo opens the gate and the status line shows no YOLO segment — the surface asserts a closed gate over an open one

2 participants