Commit 187eec6
committed
Distinguish the three prerequisite-check failure modes
`foundry version`, `foundry profile active`, and `foundry apps list` fail for unrelated reasons, and the skill treated them as one class, so an agent that hit any of them went looking for broken credentials.
Only `apps list` reaches the tenant; the other two read local state. So a failure there while `profile active` succeeds rules out credentials and points at network, an approval gate, or an old CLI. `apps list` also landed in CLI 2.0.2, and on anything older it fails as an unknown command, which reads like an auth error but is not one. It exists to catch app-name collisions, so skipping it costs a collision check rather than the workflow.
Adds the approval-gate case, which assistants that run only a small trusted command set unattended will hit on every `foundry` call. A denied or still-pending command has produced no evidence either way, so it should not be retried in a loop or answered by rewriting profiles and config paths. Ask once, or hand the user the command.
Detail lives in the headless-operation reference because SKILL.md is at 99% of its size budget.1 parent 3fe8fb9 commit 187eec6
2 files changed
Lines changed: 25 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
146 | | - | |
| 145 | + | |
| 146 | + | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
150 | | - | |
151 | | - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
152 | 154 | | |
153 | 155 | | |
154 | 156 | | |
| |||
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
119 | 137 | | |
120 | 138 | | |
121 | 139 | | |
| |||
0 commit comments