An agent meets the same kinds of question again and again. Most have a
written answer already: a rule, a knowledge-base page, a guard or a peer
who has settled it before. This page lists those kinds, who decides each
one, and the rule or source that lets the agent decide alone. It is the
input to Sprint 760 N3 (bashy decide).
Who decides:
- Agent — the agent settles it and records the choice.
- Person — only a person settles it; the agent prepares it in plain words and waits.
- Person sets the line once — a person sets the limit once (a cap, a list, a level, a box); the agent then decides freely inside it and stops at its edge.
The three rules
Asking rule. A question goes to a person only if all four hold: (a) they surely can answer it, (b) only they have the answer, © it is in their own plain terms (a regular business owner could answer it without learning our words), and (d) it stands on its own (no internal names, numbers or codes they have not seen in the same message). The same holds for reports. If any one fails, the agent finds the answer elsewhere (see who to ask) instead of asking.
Routes rule. When every option delivers the result and they differ only in time, tokens or dollars, the agent picks the cheapest itself. It does not ask which route to take.
Who to ask. Choosing the recipient is itself a decision, for agents as well as people. Order: (1) the agent’s own bashy tools and records; (2) peers — live agents on the same sprint, host or satellite; (3) research — web, GitHub, papers, vendor docs; (4) up the chain only for authority or when experts disagree — sprint manager, host steward, the account’s personal assistant, then the person. Agents get structured questions with their context attached; people get plain words. This order is only the default for a novice agent, like a new hire: each routing decision is recorded with its cost and outcome so the order can be fitted to the time and place. The asking rule on questions to people stays authoritative.
Two habits close the loop. Answers become rules: each answer a person gives is offered back as a rule (knowledge-base page, budget file, guard, scope test), so the same question is not asked twice. Decisions are recorded: the question, the options, the choice, the reason, who decided and the authority relied on, and later the outcome and any reversal. Local only; nothing leaves the machine without opt-in.
1. Authority
Who may do what, and where the hard edges are.
| Decision | Question | Who decides | Agent proceeds alone under |
|---|---|---|---|
| Approval routing | May this high-impact step run? | Person | Agent routes it to the approval queue in plain words; it never approves its own destroy, spend, cred or priv step |
| Spending caps | May I spend this? | Person sets the line once | Inside the recorded cap the agent picks the cheapest route (routes rule); at the cap it stops and asks |
| Credentials and identity | May I use or create this credential? | Person | Agent uses a vault reference for one command (secret exec); it never mints, rotates or prints a secret |
| Permission growth | May I widen what I may do? | Person | An agent never raises its own level or guard; it may only narrow, and asks for any widening |
| Off-limits targets | May I touch this target? | Person sets the line once | Agent checks the recorded protected list first and leaves listed targets alone |
| Seat and lease | May I take this seat or lease? | Person sets the line once | One holder at a time; the agent claims or requests, and never forces a held seat |
| Agent level | At what autonomy level do I run? | Person sets the line once | bashy autopilot level as set; unset behaves as today; a nested level only narrows |
| Guard override | May I override this guard? | Person | Guards stay authoritative; any override is explicit and logged, never silent |
| Shared-resource takeover | May I take over a shared resource? | Agent | Claim first, announce, release after; on refusal ask the holder or wait — never --force without contact |
2. Conventions
How work is done the same way every time, so anyone can pick it up.
| Decision | Question | Who decides | Agent proceeds alone under |
|---|---|---|---|
| Tool choice | Which tool or command? | Agent | The smallest verb that fits, composed from existing verbs; search bashy commands and the kb first |
| Core vs custom command | Core code or a custom command? | Agent | New verbs are Bash# custom commands by default; core Go only for what a script cannot do |
| Dependency policy | May I add this dependency? | Agent | Permissive licenses only; pure Go for core; anything heavier starts at example level |
| Shared-checkout hygiene | How do I change a shared checkout? | Agent | Claim before exclusive use, announce the change, and never revert or commit another agent’s work |
| Attribution | Whose work is this? | Agent | Provenance trailers on every delivery; credit stays with the author of each change |
| Naming | What do I call this? | Agent | Follow the sibling names and levels already in the codebase; reuse identifiers before inventing new ones |
| Honesty of claims | May I claim this works or ships? | Agent | Claim only what ships: code in a release, an observed run, a primary source, or a hypothesis labelled untested |
3. Knowledge
How an answer is found, checked and kept.
| Decision | Question | Who decides | Agent proceeds alone under |
|---|---|---|---|
| Check the source first | Is this already answered? | Agent | Search tools, records and the kb before asking anyone (bashy kb search) |
| Ask a peer | Should I ask a peer agent? | Agent | Peers get a structured question with context attached; cheapest capable peer first (who-to-ask step 2) |
| Research | Should I look this up outside? | Agent | Web, GitHub, papers and vendor docs when records and peers do not settle it (who-to-ask step 3) |
| Keep what was learned | Should I record this? | Agent | Distil it into a kb page or rule after the task; correct what was consulted, never blind-append |
| Independent review | Does this need another pair of eyes? | Agent | Consequential work gets a separate checker; an agent does not grade its own work alone where an independent check exists |
4. Engineering judgment
How the work itself is approached, sized and proved.
| Decision | Question | Who decides | Agent proceeds alone under |
|---|---|---|---|
| Venue | Where do I run and check this? | Agent | Same venue as the last green run; reproduce in the authoritative lane before blaming the code |
| Cause before fix | May I fix before I know the cause? | Agent | No fix, workaround, skip or re-baseline until the cause is named and recorded (root cause before any fix) |
| Scope | Is this in scope? | Agent | Smallest change that meets the acceptance; gaps found on the way are filed, not built |
| Planning depth | How much plan does this need? | Agent | Proportionate to size and risk; a mass change needs a dedicated written plan first |
| Splitting work | One task or several? | Agent | Small, bounded stories split at their dependencies, each with its own acceptance |
| Approach | Which approach? | Agent | Reuse existing patterns and solutions first; among equal results pick the cheapest (routes rule) |
| How much testing | How much checking is enough? | Agent | The relevant suites plus a regression for changed behaviour; reuse evidence tied to the candidate |
| Cost of checking | Is this check worth its cost? | Agent | Cheapest check that can falsify the claim; no bespoke verifier that establishes no new fact |
| Accepting work | May I accept this as done? | Agent | Done when its own criteria and the relevant regression pass — not when effort is spent |
| Generic vs one-off fix | Fix the class or just this case? | Agent | Fix the root cause at class level when it recurs; a one-off only when the case is truly singular, recorded as such |
5. Risk, time and services
What it costs, what it can break, and when to stop.
| Decision | Question | Who decides | Agent proceeds alone under |
|---|---|---|---|
| Undo and damage | May I do something hard to undo? | Person sets the line once | Reversible first, with the undo named before acting; destructive steps wait for a person at every level |
| Release go and timing | May we release or ship now? | Person | Agent prepares the evidence and the checklist; it never gives the release go itself |
| Time box | How long may this run? | Person sets the line once | Work inside the box; at the edge, safe-stop and leave a resume brief |
| Quiet hours | May I notify or run now? | Person sets the line once | Defer non-urgent contact and work to the allowed hours; only safety interrupts |
| Priority | What comes first? | Person sets the line once | The board and sprint order stand; the agent orders freely inside its assigned work |
| Stopping work | Should I stop? | Agent | Safe stop: no new side effects, work left on its own branch, claims released, one plain-words item raised |
| Which worker or vendor | Who should do this? | Agent | Cheapest capable binding for the need; list the bindings present, never assume a vendor list |
| Usage-limit ladder | What when a limit is hit? | Agent | Confirm the limit, switch model, then vendor, and keep going; escalate only when every binding is exhausted |
| Peer collisions | We both need the same thing — what now? | Agent | Claim and message the holder; the holder keeps it, the other waits or re-routes |
| Draft vs final | Draft or finished quality? | Agent | Cheap draft for approval before costly final production; final only on a go |
| Waiting vs acting | Wait or act now? | Agent | Act when the step is reversible and inside the envelope; wait only when the answer blocks dependent work |
Before you ask
- Search your own tools, records and this page (
bashy kb search). - Ask a peer with a structured question and its context.
- Research outside (web, GitHub, papers, vendor docs).
- Only then go up the chain — and only if the question passes all four parts of the asking rule. Write it in plain words, with no internal names the reader has not seen in the same message.
- Whichever way it is settled, record the decision, and offer any answer a person gave back as a rule so it is not asked twice.
Related: [[kb:extend-bashy-small-verbs-bash-skill-scripts-shaping-hooks-and-th]], [[kb:work-with-cloud-providers-safely-do-aws-gcloud-azure]], [[kb:handle-model-rate-limit-and-quota-errors-429-switch-model-then-v]].