Skip to content

docs(gaia): say git push, reset and rebase ask once instead of being refused - #6201

Merged
kovtcharov-amd merged 1 commit into
amd:mainfrom
burgulvedant:docs/spec-git-push-asks-once
Oct 31, 2026
Merged

kovtcharov-amd merged 1 commit into
amd:mainfrom
burgulvedant:docs/spec-git-push-asks-once

Conversation

@burgulvedant

Copy link
Copy Markdown
Contributor

Closes #5198

The flagship SPEC told integrators that git push, reset and rebase are refused outright. They now ask the user once, so a client built from the SPEC would not handle the approval prompt. This brings the SPEC and the shell tools spec in line with SKILL.md and the CHANGELOG.

Test plan

Docs only. Compared the new wording with the shell tool code (shell_tools.py, call_risk.py) and the CHANGELOG entry for #5094.
Checked no test pins the old wording.

Left for follow up, not in this PR: the same stale claim in hub/skills/coding/SKILL.md and docs/plans/security-model.mdx.

…refused

The flagship SPEC and the shell tools spec still said git push, reset and
rebase are refused outright. Since amd#5094 they ask the user once, and only
the destructive forms (git push --force, git reset --hard) are refused with
no prompt, as SKILL.md and the CHANGELOG already say. An integrator building
from SPEC.md would not expect the approval prompt these commands raise.

Fixes the SPEC.md bypass paragraph and the matching sentence in
docs/spec/shell-tools-mixin.mdx.

Closes amd#5198
@github-actions github-actions Bot added the documentation Documentation changes label Oct 31, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Approve

This fixes two docs that still said git push, reset and rebase are refused outright. They now ask the user once. I checked the new wording against the shell tool code and it matches, including the part saying force-push and hard reset are still refused without a prompt.

Real-world evidence

N/A: docs only. No evidence bundle was produced, and nothing here runs. The verdict rests on reading the docs against the code.

🔍 Technical details

Issues found

🟢 The same old claim is still in a code comment (src/gaia/agents/tools/shell_tools.py:435). The comment above DEVELOPER_COMMANDS still says "its policy's outright refusals (push, reset, rebase)". It is next to the paragraph this PR fixes in shell-tools-mixin.mdx, so it is worth adding to the follow-up the PR already lists for hub/skills/coding/SKILL.md and docs/plans/security-model.mdx.

Checked against the code

  • _destroys() in shell_tools.py refuses git push --force / --force-with-lease / --mirror / --delete, short flag groups containing -f or -d, and +ref / :ref, all with no prompt. It also refuses anything call_risk._git_risk marks DESTRUCTIVE, which includes reset --hard. This matches "the destructive forms … are refused with no prompt."
  • A plain push gets NOTE_PUSH through _policy_note, which fits the new "ask once" wording.

Strengths

  • The PR description lists what it left out of scope, so the remaining stale copies are tracked.
  • The SPEC change covers the non-bypass case too, which is the case an integrator most needs to handle.

@kovtcharov-amd
kovtcharov-amd added this pull request to the merge queue Oct 31, 2026
Merged via the queue into amd:main with commit d262b39 Oct 31, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Documentation changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flagship SPEC still says git push/reset/rebase are refused; they now ask once

2 participants