Commit 3fbf756
committed
fix(v1.6.4): codex round-1 + doc-bug — bootstrap degraded mode + workforce list filter
First codex (GPT-5) operator session in tmux produced 4 concrete
friction points. Addresses 3; F2 (local node-type schema) is bigger
scope, deferred. Also caught a real doc/code mismatch I shipped earlier.
Fixes:
1. (F1, codex) `af bootstrap` hid backend failure
Previously returned `auth.health: false` alongside an empty `agents`
and `workforces` array — indistinguishable from a genuinely empty
workspace. Codex's exact words: "either a hard stop up front or a
much louder degraded-mode signal."
Now returns:
- `auth.health_error` with the underlying fetch error message
- `data_fresh: boolean` at top level
- `data_fresh_hint` string when the backend is unreachable
Plus a new `--strict` flag that exits non-zero on health failure,
so CI pipelines don't race into mutations on a degraded workspace.
2. (F3, codex) `af workforce init --help` stale paperclip ref
Help text said `--blueprint <slug> Blueprint id (run 'af paperclip
blueprints' to list)`. Replaced with inline blueprint slugs + a
pointer to `af bootstrap --json > blueprints[]`.
3. (Own bug caught during doc pass) `af workforce list` missing
`--name-contains` + `--fields` flags. Documented in v1.6.1 changelog
and in both README and command-reference gitbook pages, but the code
never shipped the flags — every invocation returned 'unknown option'.
Now implemented as client-side filter + projection, matching the
`agent list` / `mcp-clients list` pattern.
Deferred (F2): bundling workforce node-type schemas locally so
`af workforce node-types` works offline. Non-trivial — requires
versioning the node-type catalog and syncing with the backend.
Tests: 392 pass, 14 skip, 10 todo. Zero regressions.
Notes:
- Codex validated all prior v1.6 improvements: bootstrap/schema/--dry-run
called "genuinely useful", "strong", "excellent". Consistent error
envelope (agenticflow.error.v1) acknowledged. --skeleton-only deemed
a "smart discovery path".
- Codex's sandbox blocked outbound HTTPS entirely, so the journey
was local-shape + dry-run. The network-failure signal itself is what
drove the bootstrap degraded-mode fix.1 parent d9e7f57 commit 3fbf756
3 files changed
Lines changed: 59 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
16 | 32 | | |
17 | 33 | | |
18 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1139 | 1139 | | |
1140 | 1140 | | |
1141 | 1141 | | |
1142 | | - | |
| 1142 | + | |
| 1143 | + | |
1143 | 1144 | | |
1144 | 1145 | | |
1145 | 1146 | | |
1146 | 1147 | | |
1147 | 1148 | | |
| 1149 | + | |
1148 | 1150 | | |
1149 | 1151 | | |
1150 | 1152 | | |
1151 | 1153 | | |
1152 | 1154 | | |
1153 | | - | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
1154 | 1159 | | |
1155 | 1160 | | |
1156 | 1161 | | |
1157 | | - | |
| 1162 | + | |
1158 | 1163 | | |
1159 | 1164 | | |
1160 | 1165 | | |
| |||
1164 | 1169 | | |
1165 | 1170 | | |
1166 | 1171 | | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
1167 | 1177 | | |
1168 | 1178 | | |
1169 | 1179 | | |
1170 | 1180 | | |
1171 | 1181 | | |
| 1182 | + | |
1172 | 1183 | | |
1173 | 1184 | | |
1174 | 1185 | | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
1175 | 1190 | | |
1176 | 1191 | | |
1177 | 1192 | | |
| |||
1228 | 1243 | | |
1229 | 1244 | | |
1230 | 1245 | | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
1231 | 1251 | | |
1232 | 1252 | | |
1233 | 1253 | | |
| |||
4833 | 4853 | | |
4834 | 4854 | | |
4835 | 4855 | | |
| 4856 | + | |
| 4857 | + | |
4836 | 4858 | | |
4837 | 4859 | | |
4838 | | - | |
4839 | | - | |
4840 | | - | |
4841 | | - | |
4842 | | - | |
| 4860 | + | |
| 4861 | + | |
| 4862 | + | |
| 4863 | + | |
| 4864 | + | |
| 4865 | + | |
| 4866 | + | |
| 4867 | + | |
| 4868 | + | |
| 4869 | + | |
| 4870 | + | |
| 4871 | + | |
| 4872 | + | |
| 4873 | + | |
| 4874 | + | |
| 4875 | + | |
4843 | 4876 | | |
4844 | 4877 | | |
4845 | 4878 | | |
| |||
5228 | 5261 | | |
5229 | 5262 | | |
5230 | 5263 | | |
5231 | | - | |
| 5264 | + | |
5232 | 5265 | | |
5233 | 5266 | | |
5234 | 5267 | | |
| |||
0 commit comments