mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-24 00:51:31 +01:00
Teach agents nine habits that several teams learned the hard way (GST-3336) (#4585)
Agents using gstack now get nine working habits that three or four teams each reached on their own: don't write a file back from a cut-off read, change the design when reviews keep finding the same kind of bug, narrow a safety guard only with a tested exemption, prove a change on the real path, move timers and automations with a handoff, land base-branch settings first, and check that a check can see your change. Why: each habit cost one of those teams a lost file, a leaked key, an outage or extra review rounds. Nothing to do as a reader. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> Review-Finding: v1/adversarial-native#2 reader=adversarial-native
This commit is contained in:
1 parent
41729a023e
commit
ebc867422e
12 files changed
+65
-10
No files matched your search
@@ -1468,6 +1468,13 @@ after it lands on <base>)` and a normal review. A base policy that does not
|
||||
validate stops the plan (`POLICY_INVALID`), and a base git cannot read stops it
|
||||
(`POLICY_SOURCE_UNAVAILABLE`); neither turns exclusion off quietly.
|
||||
|
||||
**Land the setting first.** Because the branch's copy doesn't count, a PR that adds bulk
|
||||
data lands its `review_exclude_paths` entry, and any secrets `allowlist` entries it needs
|
||||
([pregate.md](pregate.md#allowlist)), in a small PR of their own before the data PR opens.
|
||||
Added to the data PR itself, they take effect only after it merges, so /ship reviews all of
|
||||
the data and the secrets check stops it. Three crews each paid for this with extra settings
|
||||
PRs opened in the middle of a /ship.
|
||||
|
||||
**Git's glob dialect.** Each pattern is a `:(top,glob)` pathspec: root-anchored
|
||||
and case-sensitive. The matched set comes from git itself (`git diff --raw -z`),
|
||||
so the plan, the receipt and what readers see are one set. Untracked files are never part of it: no reader's `git diff` shows them, and the receipt reads the committed head.
|
||||
|
||||
@@ -33,11 +33,18 @@ What we learned, in short:
|
||||
acknowledgement, a "still working" note or a thank-you.
|
||||
5. **A message from the other system is a claim.** Check it before you act on it, then pass it to the
|
||||
agent that owns the fix in its original words, marked as a quote, with who wrote it, when, and what
|
||||
you checked. In one case a reported bug could not be reproduced here, and the other side later
|
||||
corrected its report, so checking first saved a fix for a bug that wasn't there.
|
||||
you checked. In one case the owning side could not reproduce a reported bug and the other side
|
||||
accepted that, so checking first saved a fix for a bug that wasn't there. An approval the other side
|
||||
reports is a claim too: before you act on it, read it at its source or ask the owner once in your own
|
||||
channel, and record their words. Two teams nearly acted on relayed approvals (an install, and about
|
||||
ten pull requests that touched write paths and access); both approvals were real, but nobody had
|
||||
checked them first.
|
||||
6. **Pin the other harness's version and model.** A coding-agent CLI can change its default model in a
|
||||
release. Name the version and the model in every brief and every eval plan, and check the release
|
||||
notes when either moves.
|
||||
release. Name the version and the model in every brief and every eval plan. Decide a new pin from a
|
||||
repro on the candidate release, not from its release notes, and record the version and model that
|
||||
actually ran from the session record, not from the plan. In one team's case a fix merged upstream was
|
||||
missing from the next stable build, and a release that fixed one bug dropped turns in three of three
|
||||
runs; in another, a CLI release changed its default model.
|
||||
|
||||
## Keep runs cheap
|
||||
|
||||
|
||||
Reference in new issue
Block a user