@ai-outfitter/outfitter 1.11.0 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/.outfitter/skills/outfitter/SKILL.md +4 -0
  2. package/README.md +5 -1
  3. package/dist/cli/OutfitterCli.js +2 -0
  4. package/dist/cli/OutfitterCli.js.map +1 -1
  5. package/dist/cli/commands/DumpCommand.d.ts +1 -0
  6. package/dist/cli/commands/DumpCommand.js +12 -5
  7. package/dist/cli/commands/DumpCommand.js.map +1 -1
  8. package/dist/cli/commands/ListCommand.d.ts +9 -0
  9. package/dist/cli/commands/ListCommand.js +25 -9
  10. package/dist/cli/commands/ListCommand.js.map +1 -1
  11. package/dist/cli/commands/RunAgentCommand.d.ts +5 -0
  12. package/dist/cli/commands/RunAgentCommand.js +16 -1
  13. package/dist/cli/commands/RunAgentCommand.js.map +1 -1
  14. package/dist/cli/commands/SetupCommand.d.ts +2 -1
  15. package/dist/cli/commands/SetupCommand.js +1 -0
  16. package/dist/cli/commands/SetupCommand.js.map +1 -1
  17. package/dist/cli/commands/SourcesCommand.d.ts +19 -0
  18. package/dist/cli/commands/SourcesCommand.js +85 -0
  19. package/dist/cli/commands/SourcesCommand.js.map +1 -0
  20. package/dist/cli/commands/SyncCommand.js +8 -0
  21. package/dist/cli/commands/SyncCommand.js.map +1 -1
  22. package/dist/dump/WorkflowDump.d.ts +4 -0
  23. package/dist/dump/WorkflowDump.js +148 -0
  24. package/dist/dump/WorkflowDump.js.map +1 -0
  25. package/dist/resolver/Resolver.js +2 -0
  26. package/dist/resolver/Resolver.js.map +1 -1
  27. package/dist/resolver/ResolverValidation.js +156 -1
  28. package/dist/resolver/ResolverValidation.js.map +1 -1
  29. package/dist/resolver/Resource.d.ts +1 -1
  30. package/dist/resolver/Resource.js +1 -1
  31. package/dist/resolver/Resource.js.map +1 -1
  32. package/dist/resolver/WorkflowDefinition.d.ts +56 -0
  33. package/dist/resolver/WorkflowDefinition.js +23 -0
  34. package/dist/resolver/WorkflowDefinition.js.map +1 -0
  35. package/dist/schemas/settings.schema.json +5 -0
  36. package/dist/schemas/workflow.schema.json +81 -0
  37. package/dist/settings/Settings.d.ts +6 -0
  38. package/dist/settings/Settings.js +1 -0
  39. package/dist/settings/Settings.js.map +1 -1
  40. package/dist/settings/SettingsLoader.js +1 -0
  41. package/dist/settings/SettingsLoader.js.map +1 -1
  42. package/dist/settings/SettingsMerger.js +3 -0
  43. package/dist/settings/SettingsMerger.js.map +1 -1
  44. package/dist/setup/DefaultCatalog.js +19 -3
  45. package/dist/setup/DefaultCatalog.js.map +1 -1
  46. package/dist/sources/SourceCachePolicy.d.ts +11 -0
  47. package/dist/sources/SourceCachePolicy.js +48 -0
  48. package/dist/sources/SourceCachePolicy.js.map +1 -0
  49. package/dist/sources/SourceState.d.ts +32 -0
  50. package/dist/sources/SourceState.js +90 -0
  51. package/dist/sources/SourceState.js.map +1 -0
  52. package/dist/validation/SchemaValidator.d.ts +1 -1
  53. package/dist/validation/SchemaValidator.js +2 -0
  54. package/dist/validation/SchemaValidator.js.map +1 -1
  55. package/docs/documentation/README.md +5 -3
  56. package/docs/documentation/ai-outfitter.md +259 -0
  57. package/docs/documentation/assets/feature-to-pr.svg +70 -0
  58. package/docs/documentation/catalogs.md +9 -1
  59. package/docs/documentation/cli.md +21 -8
  60. package/docs/documentation/containers.md +3 -80
  61. package/docs/documentation/dump-and-bake.md +2 -0
  62. package/docs/documentation/settings.md +5 -0
  63. package/package.json +1 -1
  64. package/src/schemas/settings.schema.json +5 -0
  65. package/src/schemas/workflow.schema.json +81 -0
@@ -0,0 +1,259 @@
1
+ # How AI Outfitter fits together
2
+
3
+ Open, vendor-neutral tooling for configuring and operating agents: ramp a
4
+ user, a team, or an organization from AI-assisted coding to an autonomous
5
+ software development lifecycle.
6
+
7
+ Everything here builds on one convention: an agent's context, tools, skills,
8
+ and permissions are plain files in a `.agents/` directory — committed,
9
+ reviewed, and shared like the rest of your code. The same plain-file definition
10
+ can be shared across environments and model vendors; runtime support varies by
11
+ harness, as shown in the
12
+ [support matrix](https://github.com/ai-outfitter/outfitter/blob/main/docs/documentation/support-matrix.md).
13
+ The core is open source under MIT.
14
+
15
+ ## Why we built AI Outfitter
16
+
17
+ We built AI Outfitter to give teams a shared path from local agent use to
18
+ automated and governed workflows. Its defaults are customizable, so teams can
19
+ begin at the rung that matches their current process.
20
+
21
+ ## The adoption ramp
22
+
23
+ Five rungs, from AI-assisted coding to an autonomous lifecycle
24
+ ([full definition](https://github.com/ai-outfitter/outfitter/blob/main/docs/philosophy.md)).
25
+ Each Outfitter component targets a rung, so you climb without rebuilding what
26
+ got you here — and without adopting complexity too early. Rungs 2, 3, and 4
27
+ each open with the **runbook** that gets you there: the concrete steps, and a
28
+ success check you run rather than judge.
29
+
30
+ 1. **Assisted** — autocomplete and chat; a human's hands stay on the
31
+ keyboard. _You are here if_ you use autocomplete in an IDE.
32
+ There is nothing to govern yet — but the habit that matters starts here:
33
+ document what works and what doesn't in `AGENTS.md`/`CLAUDE.md`, and
34
+ keep it in the repo.
35
+ - [First-time CLI agent users](https://github.com/ai-outfitter/outfitter/blob/main/docs/documentation/first-time-cli-agent-users.md#context-engineering)
36
+ — what belongs in a first `AGENTS.md`, and how to ask an agent to use
37
+ it.
38
+
39
+ 2. **Delegated** — a local agent does the task; you define the idea and
40
+ review the PR. _You are here if_ engineers run a coding agent in a
41
+ terminal and push the result. This is where configuration starts to
42
+ matter.
43
+ - **Runbook: [Share one catalog](https://github.com/ai-outfitter/outfitter/blob/main/docs/runbooks/share-one-catalog.md)**
44
+ — one pinned catalog the organization shares, instead of per-laptop
45
+ configuration.
46
+ - [outfitter](https://github.com/ai-outfitter/outfitter) — composes what
47
+ an agent knows and may do into a **profile**: plain files in your
48
+ `.agents/` folder, reviewed like code and portable across environments
49
+ and **harnesses** (the CLI that runs an agent: Claude Code, Pi, Codex).
50
+ - [deepwork](https://github.com/ai-outfitter/deepwork) — step-by-step
51
+ quality gates so the agent checks its own work.
52
+
53
+ 3. **Automated** — a workflow runs without your laptop: an issue, a message,
54
+ or a schedule triggers agents in CI, on a cluster, or on a remote server
55
+ you never sit at; adversarial review is part of the pipeline; session
56
+ logs are captured before merge. _You are here when_ you close your laptop
57
+ and the work keeps going. What promotes you is the trigger, not the
58
+ hardware: an agent you drive over SSH is rung 2 on a bigger machine.
59
+ - **Runbook: [Run it without your laptop](https://github.com/ai-outfitter/outfitter/blob/main/docs/runbooks/run-without-your-laptop.md)**
60
+ — an event triggers the workflow, its output lands through review, and
61
+ the session is captured.
62
+ - [actions](https://github.com/ai-outfitter/actions) — runs any profile
63
+ headless in GitHub Actions, on any trigger.
64
+ - [channels](https://github.com/ai-outfitter/channels) — pushes email,
65
+ Slack, Signal, and forge events (GitHub or GitLab activity) into an
66
+ agent session, so one message can start the same workflow.
67
+ - [agent-operator](https://github.com/ai-outfitter/agent-operator) —
68
+ hosts the same profiles on your own infrastructure, well before you
69
+ need its resident-agent story on the next rung.
70
+
71
+ 4. **Governed** — the organization shares one version-pinned catalog of
72
+ agents, skills, and policy; every agent action lands in an auditable
73
+ record; **[resident agents](https://github.com/ai-outfitter/outfitter/blob/main/docs/documentation/in-cluster.md)**
74
+ — long-lived agents onboarded like teammates,
75
+ with their own accounts and boundaries — take on standing jobs. _You are
76
+ here when_ agents work across many teams, and the organization needs
77
+ shared policy — and proof of what every agent did.
78
+ - **Runbook: [Give the agent a residence](https://github.com/ai-outfitter/outfitter/blob/main/docs/runbooks/give-the-agent-a-residence.md)**
79
+ — a named, assignable agent with an account and somewhere to live.
80
+ - **Build your agent catalog: [Share one catalog](https://github.com/ai-outfitter/outfitter/blob/main/docs/runbooks/share-one-catalog.md)**
81
+ — the rung 2 runbook creates it and links to guidance on its layout,
82
+ version pinning, and governance. Our own
83
+ [.agents](https://github.com/ai-outfitter/.agents) is a worked example
84
+ you can read end to end.
85
+ - [agent-operator](https://github.com/ai-outfitter/agent-operator) —
86
+ provisions and supervises resident agents on your own infrastructure.
87
+ - [pensieve](https://github.com/ai-outfitter/pensieve) — designed to retain
88
+ evidence from agent sessions, including environments, agents, tools,
89
+ artifacts, and costs. That record can support audits, compliance reviews,
90
+ and evaluation workflows.
91
+
92
+ 5. **Self-improving** — the audit record feeds evals and improvement; humans
93
+ set goals and acceptance gates, agents own the middle. Rung 5 is where
94
+ the stack is thinnest today.
95
+ - [evals](https://github.com/ai-outfitter/evals) — evaluates changes to a
96
+ profile, model, or workflow with reproducible, attested benchmarks.
97
+ - [autoimprove](https://github.com/ai-outfitter/autoimprove) — improves
98
+ portable skills against measured outcomes.
99
+
100
+ ## Start with one workflow end to end
101
+
102
+ One useful first workflow takes **a feature idea to a merged PR**, automated
103
+ end to end, with every step leaving evidence. This is what rung 3 looks like
104
+ up close.
105
+
106
+ ![A feature idea flows through plan, implement, and adversarial review to a merged PR, with every transition writing to the evidence record](./assets/feature-to-pr.svg)
107
+
108
+ 1. **Entry point.** Someone files an issue and assigns it to an agent — from
109
+ the forge, from chat, or from a planning session at a desk. Different
110
+ doors, same workflow.
111
+ 2. **Plan.** A planner profile with read-only tools turns the issue into a
112
+ spec artifact and posts it back to the issue, where a human can approve
113
+ it (we recommend an enforced spec system, like
114
+ [2119](https://github.com/Unsupervisedcom/2119), for more autonomous
115
+ workflows).
116
+ 3. **Implement.** An implementer profile picks up the approved spec in a
117
+ fresh container with exactly the tools the work needs — a different
118
+ agent, a clean context window, the same shared catalog.
119
+ 4. **Review.** An adversarial reviewer profile, which shares none of the
120
+ implementer's context, tries to break the change before any human reads
121
+ it.
122
+ 5. **Merge.** The PR arrives with its history attached: session transcripts,
123
+ tool calls, and diffs captured as artifacts before the environment that
124
+ produced them is torn down.
125
+
126
+ The same shape handles other starting workflows. A vulnerability report
127
+ instead of a feature idea turns the pipeline into governed security
128
+ remediation: the scanner files the issue (most scanners already can), the
129
+ planner scopes the fix, and the same steps carry it to a tested, approved
130
+ PR. Bug reports run the same way with a triage step in front: an agent
131
+ reproduces and prioritizes each report, and only the ones that clear triage
132
+ enter the pipeline.
133
+
134
+ Teams adopt the system through the same composition process: an engineer
135
+ refines a skill in their own
136
+ [`~/.agents`](https://github.com/ai-outfitter/outfitter/blob/main/docs/documentation/local-development.md)
137
+ against real work; the team mines
138
+ [pensieve](https://github.com/ai-outfitter/pensieve) for the patterns behind
139
+ successful and failing runs. When a change earns trust it moves by pull
140
+ request into the org catalog, where every agent composes it by name. One
141
+ person's improvement becomes everyone's default at the next pin bump — no
142
+ one else reconfigures anything.
143
+
144
+ ## Start this afternoon
145
+
146
+ You can begin with a local assessment and CLI trial before committing to an
147
+ organization-wide rollout or additional infrastructure.
148
+
149
+ ### 1. See where you are
150
+
151
+ The read-only assessment takes one afternoon. The
152
+ [org-onboarding runbook](https://github.com/ai-outfitter/outfitter/blob/main/docs/documentation/usecases/org-onboarding-sdlc-report.md)
153
+ produces a baseline **SDLC report**: where your organization sits on the
154
+ ramp, with evidence, gaps, and next-rung recommendations. Concretely: one
155
+ engineer runs the `sdlc-report` skill from their own local agent with a
156
+ read-only forge token. It reads through the API — never clones, never
157
+ writes — and produces two local files you review before anyone else sees
158
+ them. We ran it on this organization the day we wrote this page; the output
159
+ is committed at
160
+ [.agents/reports/sdlc](https://github.com/ai-outfitter/.agents/tree/main/reports/sdlc),
161
+ so you can see exactly what you would get.
162
+
163
+ ### 2. Try the toolchain
164
+
165
+ The first run takes about ten minutes.
166
+
167
+ ```bash
168
+ npx @ai-outfitter/outfitter
169
+ ```
170
+
171
+ This launches the Outfitter CLI with the
172
+ [Pi](https://github.com/earendil-works/pi) harness bundled and walks you
173
+ through composing your first agent profile from a starter catalog. You end
174
+ in a working agent session, and everything it created is plain files under
175
+ `~/.agents` — which you can read, edit, or delete afterward.
176
+
177
+ ### 3. Automate one workflow
178
+
179
+ Pick feature-to-PR or bug-to-PR, keep it to
180
+ one repository, and promote the profiles you already trust at a desk into
181
+ [CI](https://github.com/ai-outfitter/actions). Work the runbooks in order —
182
+ [share one catalog](https://github.com/ai-outfitter/outfitter/blob/main/docs/runbooks/share-one-catalog.md),
183
+ [run it without your laptop](https://github.com/ai-outfitter/outfitter/blob/main/docs/runbooks/run-without-your-laptop.md),
184
+ then [give the agent a residence](https://github.com/ai-outfitter/outfitter/blob/main/docs/runbooks/give-the-agent-a-residence.md).
185
+ Each ends with the one concrete step that starts the next.
186
+
187
+ Every runbook closes with a **Done when** section naming the signals the report
188
+ above checks — for this one, `triggered-agents`, `protected-landing`, and
189
+ `session-capture`. Re-run the report and it names whichever is still unmet.
190
+
191
+ ## Agent configuration as code
192
+
193
+ Your agent setup is already configuration: system prompts, skills, MCP
194
+ servers, model choices, permissions. Today that configuration lives per tool
195
+ and per laptop, gets pasted between repositories, and drifts. Every other
196
+ kind of configuration your organization depends on graduated from that stage
197
+ years ago — into files, in a repository, behind review.
198
+
199
+ The [`.agents` convention](https://github.com/ai-outfitter/outfitter/blob/main/docs/documentation/concepts.md#the-agents-protocol)
200
+ is an open standard for doing the same for agents:
201
+
202
+ ```text
203
+ .agents/
204
+ agents.md # shared operating context
205
+ system-prompt.md # base system prompt
206
+ mcp.json # MCP servers
207
+ models.json # model configuration
208
+ agents/<id>/agent.md # agent identities + loadouts
209
+ skills/<id>/... # capability packages
210
+ knowledge/ # reference documents
211
+ commands/ # slash commands
212
+ ```
213
+
214
+ Because the configuration is Markdown and JSON, you can read, review, and
215
+ audit it with ordinary repository tools. Layers merge by name — a project's
216
+ `.agents/` over an engineer's `~/.agents/` over the organization's
217
+ **[catalog](https://github.com/ai-outfitter/outfitter/blob/main/docs/documentation/catalogs.md)**,
218
+ a shared collection pinned by version — so individuals keep their preferences and
219
+ organizations keep their policy
220
+ ([conventions](https://github.com/ai-outfitter/outfitter/blob/main/docs/documentation/conventions.md)).
221
+
222
+ Composition beats accumulation. A profile is a selection from those files,
223
+ and profiles stack: a personal baseline, a team convention, a project role,
224
+ switched as the work changes. That keeps each profile tight, and tight
225
+ profiles preserve the context headroom that turns into faster, better
226
+ sessions.
227
+
228
+ The directory is also the exit door. It is the source of truth, and it is
229
+ useful without Outfitter. Vendor-neutral cuts in every direction — models,
230
+ harnesses, and us. Swap model vendors freely. Run the catalog through any
231
+ harness: Pi has the deepest runtime support today, with Claude Code tracked
232
+ component by component in the
233
+ [support matrix](https://github.com/ai-outfitter/outfitter/blob/main/docs/documentation/support-matrix.md)
234
+ — a Claude Code team starts on Claude Code, and the matrix shows the gaps
235
+ before you hit them. And if you drop Outfitter itself, the catalog you
236
+ built is still yours — plain files, still working.
237
+
238
+ ## Where this is today
239
+
240
+ Outfitter and several supporting projects are in active development. Actions
241
+ and the catalogs run AI Outfitter's own workloads today; rung 5 remains the
242
+ least developed part of the stack. Check each linked repository for its current
243
+ implementation status.
244
+
245
+ The model is open core: the convention, the toolchain, and the defaults are
246
+ MIT — modules you can rip out and replace — while some advanced capabilities
247
+ ship under an enterprise license. If you are evaluating this for an
248
+ organization, [open an issue](https://github.com/ai-outfitter/outfitter/issues)
249
+ with what you found. The gaps you hit are the roadmap we want.
250
+
251
+ ## As you climb
252
+
253
+ Two suggestions we make strongly, and follow ourselves:
254
+
255
+ 1. **Automate nothing you have not first done manually.**
256
+ 2. **Hand over control one layer at a time.**
257
+
258
+ You never skip a step you don't understand, and nothing you build on one
259
+ rung is thrown away on the next.
@@ -0,0 +1,70 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 980 284" font-family="-apple-system, 'Segoe UI', Helvetica, Arial, sans-serif">
2
+ <defs>
3
+ <marker id="arr" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
4
+ <path d="M 0 1 L 8 5 L 0 9 z" fill="#57606a"/>
5
+ </marker>
6
+ <marker id="arrdim" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse">
7
+ <path d="M 0 1 L 8 5 L 0 9 z" fill="#d4a72c"/>
8
+ </marker>
9
+ </defs>
10
+
11
+ <rect x="0.5" y="0.5" width="979" height="283" rx="12" fill="#ffffff" stroke="#d0d7de"/>
12
+
13
+ <!-- step boxes -->
14
+ <g>
15
+ <rect x="28" y="36" width="168" height="88" rx="8" fill="#f6f8fa" stroke="#d0d7de"/>
16
+ <text x="112" y="58" text-anchor="middle" font-size="10.5" fill="#0969da" font-weight="600" letter-spacing="0.5">1 · ENTRY POINT</text>
17
+ <text x="112" y="78" text-anchor="middle" font-size="14" fill="#1f2328" font-weight="600">Issue assigned</text>
18
+ <text x="112" y="96" text-anchor="middle" font-size="11" fill="#57606a">from the forge, chat,</text>
19
+ <text x="112" y="110" text-anchor="middle" font-size="11" fill="#57606a">or a desk session</text>
20
+ </g>
21
+ <g>
22
+ <rect x="217" y="36" width="168" height="88" rx="8" fill="#f6f8fa" stroke="#d0d7de"/>
23
+ <text x="301" y="58" text-anchor="middle" font-size="10.5" fill="#0969da" font-weight="600" letter-spacing="0.5">2 · PLAN</text>
24
+ <text x="301" y="78" text-anchor="middle" font-size="14" fill="#1f2328" font-weight="600">Planner agent</text>
25
+ <text x="301" y="96" text-anchor="middle" font-size="11" fill="#57606a">read-only tools →</text>
26
+ <text x="301" y="110" text-anchor="middle" font-size="11" fill="#57606a">spec posted for approval</text>
27
+ </g>
28
+ <g>
29
+ <rect x="406" y="36" width="168" height="88" rx="8" fill="#f6f8fa" stroke="#d0d7de"/>
30
+ <text x="490" y="58" text-anchor="middle" font-size="10.5" fill="#0969da" font-weight="600" letter-spacing="0.5">3 · IMPLEMENT</text>
31
+ <text x="490" y="78" text-anchor="middle" font-size="14" fill="#1f2328" font-weight="600">Implementer agent</text>
32
+ <text x="490" y="96" text-anchor="middle" font-size="11" fill="#57606a">fresh container,</text>
33
+ <text x="490" y="110" text-anchor="middle" font-size="11" fill="#57606a">scoped tools, clean context</text>
34
+ </g>
35
+ <g>
36
+ <rect x="595" y="36" width="168" height="88" rx="8" fill="#f6f8fa" stroke="#d0d7de"/>
37
+ <text x="679" y="58" text-anchor="middle" font-size="10.5" fill="#0969da" font-weight="600" letter-spacing="0.5">4 · REVIEW</text>
38
+ <text x="679" y="78" text-anchor="middle" font-size="14" fill="#1f2328" font-weight="600">Adversarial reviewer</text>
39
+ <text x="679" y="96" text-anchor="middle" font-size="11" fill="#57606a">shares no context,</text>
40
+ <text x="679" y="110" text-anchor="middle" font-size="11" fill="#57606a">tries to break the change</text>
41
+ </g>
42
+ <g>
43
+ <rect x="784" y="36" width="168" height="88" rx="8" fill="#f6f8fa" stroke="#d0d7de"/>
44
+ <text x="868" y="58" text-anchor="middle" font-size="10.5" fill="#0969da" font-weight="600" letter-spacing="0.5">5 · MERGE</text>
45
+ <text x="868" y="78" text-anchor="middle" font-size="14" fill="#1f2328" font-weight="600">PR, with history</text>
46
+ <text x="868" y="96" text-anchor="middle" font-size="11" fill="#57606a">transcripts &amp; diffs attached</text>
47
+ <text x="868" y="110" text-anchor="middle" font-size="11" fill="#57606a">before teardown</text>
48
+ </g>
49
+
50
+ <!-- horizontal arrows -->
51
+ <line x1="198" y1="80" x2="213" y2="80" stroke="#57606a" stroke-width="1.5" marker-end="url(#arr)"/>
52
+ <line x1="387" y1="80" x2="402" y2="80" stroke="#57606a" stroke-width="1.5" marker-end="url(#arr)"/>
53
+ <line x1="576" y1="80" x2="591" y2="80" stroke="#57606a" stroke-width="1.5" marker-end="url(#arr)"/>
54
+ <line x1="765" y1="80" x2="780" y2="80" stroke="#57606a" stroke-width="1.5" marker-end="url(#arr)"/>
55
+
56
+ <!-- drop lines to the record -->
57
+ <line x1="112" y1="124" x2="112" y2="162" stroke="#d4a72c" stroke-width="1.2" stroke-dasharray="3 3" marker-end="url(#arrdim)"/>
58
+ <line x1="301" y1="124" x2="301" y2="162" stroke="#d4a72c" stroke-width="1.2" stroke-dasharray="3 3" marker-end="url(#arrdim)"/>
59
+ <line x1="490" y1="124" x2="490" y2="162" stroke="#d4a72c" stroke-width="1.2" stroke-dasharray="3 3" marker-end="url(#arrdim)"/>
60
+ <line x1="679" y1="124" x2="679" y2="162" stroke="#d4a72c" stroke-width="1.2" stroke-dasharray="3 3" marker-end="url(#arrdim)"/>
61
+ <line x1="868" y1="124" x2="868" y2="162" stroke="#d4a72c" stroke-width="1.2" stroke-dasharray="3 3" marker-end="url(#arrdim)"/>
62
+
63
+ <!-- evidence record band -->
64
+ <rect x="28" y="166" width="924" height="52" rx="8" fill="#fff8c5" stroke="#d4a72c" stroke-dasharray="5 4"/>
65
+ <text x="490" y="188" text-anchor="middle" font-size="11" fill="#7d4e00" font-weight="600" letter-spacing="1">THE RECORD</text>
66
+ <text x="490" y="206" text-anchor="middle" font-size="12" fill="#7d4e00">session transcripts · tool calls · diffs · approvals — written at every transition</text>
67
+
68
+ <!-- footer caption -->
69
+ <text x="490" y="252" text-anchor="middle" font-size="12" fill="#57606a" font-style="italic">Each step is an agent profile from a shared catalog — designed to run the same at a desk, in CI, or in a cluster.</text>
70
+ </svg>
@@ -1,6 +1,6 @@
1
1
  # Catalogs
2
2
 
3
- A catalog is a git repository that publishes a `.agents` payload — agents, skills, tasks, knowledge, commands — so a person, team, or organization can share it. You can bootstrap a machine or project from one, or add one as an ongoing source that Outfitter keeps synchronized.
3
+ A catalog is a git repository that publishes a `.agents` payload — agents, skills, workflows, tasks, knowledge, commands — so a person, team, or organization can share it. You can bootstrap a machine or project from one, or add one as an ongoing source that Outfitter keeps synchronized.
4
4
 
5
5
  ```bash
6
6
  outfitter setup https://github.com/ncrmro/.agents
@@ -33,6 +33,8 @@ ncrmro/.agents/ # repository root
33
33
  tasks/
34
34
  weekly-kpis/task.md
35
35
  knowledge/
36
+ workflows/
37
+ engineer/workflow.yaml
36
38
  settings.yml # Outfitter settings (optional; see settings.md)
37
39
  settings.local.yml # gitignored machine-local overrides
38
40
  ```
@@ -83,6 +85,12 @@ Remote entries additionally accept:
83
85
 
84
86
  Resources from all sources resolve by slug behind local layers, following [layer precedence](./concepts.md#layer-precedence). Agent-local skills keep their owning-agent namespace through cache and source merging. Outfitter reports shadowed IDs so consumers can see which source supplies a selected resource.
85
87
 
88
+ ### Workflows are configuration, not an execution engine
89
+
90
+ Each `workflows/<slug>/workflow.yaml` is a typed graph that names its human, agent, tool, and system actors. Agent actors reference ordinary catalog profiles. Node-level skill, prompt, and MCP assertions must already belong to the selected agent's composed closure. Nested workflow references resolve by slug and may not form cycles.
91
+
92
+ `outfitter validate --strict` validates the graph and the complete composed dependency closure. `outfitter dump --workflow <slug>` produces a reviewable `.agents` bundle for distribution. Outfitter never schedules or executes the graph.
93
+
86
94
  ### Catalog dependencies (transitive sources)
87
95
 
88
96
  A catalog can depend on other catalogs by declaring `sources` in its own settings file
@@ -71,13 +71,15 @@ resolution tells you to run `outfitter sync`.
71
71
 
72
72
  List resolvable resources across all layers, with the winning source for each slug and any shadowed IDs.
73
73
 
74
- | Argument | Description |
75
- | -------- | ------------------------------------------------------------- |
76
- | `[kind]` | Optional filter: `agents`, `skills`, `knowledge`, `commands`. |
74
+ | Argument | Description |
75
+ | -------- | -------------------------------------------------------------------------- |
76
+ | `[kind]` | Optional filter: `agents`, `skills`, `knowledge`, `commands`, `workflows`. |
77
+
78
+ `--json` emits an object containing `ok`, `resources`, and `diagnostics`; diagnostics remain available when strict mode fails.
77
79
 
78
80
  ## `outfitter validate`
79
81
 
80
- Validate the effective resource set: protocol layout, frontmatter, unresolved slugs in agent loadouts, broken or escaping skill references, and settings schema.
82
+ Validate the effective resource set: protocol layout, frontmatter, unresolved slugs in agent loadouts, broken or escaping skill references, workflow graphs and composed closures, and settings schema.
81
83
 
82
84
  | Option | Description |
83
85
  | ---------- | ---------------------------------------- |
@@ -88,9 +90,20 @@ Validate the effective resource set: protocol layout, frontmatter, unresolved sl
88
90
 
89
91
  Write the composed resource tree as a self-contained `.agents/` directory for review, vendoring, or air-gapped use. Identical sources, refs, and selections produce byte-identical output; dumps never contain credentials, sessions, caches, or other mutable runtime state.
90
92
 
91
- | Option | Description |
92
- | -------------- | ---------------------------------------------------- |
93
- | `--agent <id>` | Restrict the dump to one agent's transitive closure. |
94
- | `--out <dir>` | Destination directory (default `./.agents`). |
93
+ | Option | Description |
94
+ | ----------------- | ------------------------------------------------------------------------------ |
95
+ | `--agent <id>` | Restrict the dump to one agent's transitive closure. |
96
+ | `--workflow <id>` | Export one workflow, its nested workflows, and every referenced agent closure. |
97
+ | `--out <dir>` | Destination directory (default `./.agents`). |
98
+
99
+ Workflow dumps are non-executable configuration bundles. They contain the canonical workflow YAML, composed agent resources, and a hash/provenance manifest. A workflow dump refuses an existing destination instead of replacing user files.
95
100
 
96
101
  > **Tasks and `outfitter task bake`** — baking a task and its inputs into an immutable execution artifact — are the subject of a separate upcoming RFC and are not part of this command surface yet. See [Tasks](./tasks.md).
102
+
103
+ `outfitter run` verifies these caches before composition. Use
104
+ `--source-cache-policy <repair|locked|offline>` to override the configured startup policy.
105
+
106
+ ## `outfitter sources`
107
+
108
+ Report local and remote source precedence, requested and resolved revisions, origins, and cache
109
+ health. `outfitter sources --json` emits stable credential-redacted machine-readable output.
@@ -13,9 +13,6 @@ servers, or other use-case behavior. The default runtime user and group are
13
13
  both `1000` (named `outfitter`), with `/tmp` as the home directory and
14
14
  `/workspace` as the working directory.
15
15
 
16
- A Nix closure variant of the image is also published under the `-nix` suffix;
17
- see [the `-nix` variant](#the--nix-variant) below.
18
-
19
16
  ## Run a resident agent
20
17
 
21
18
  A resident container is an ordinary `outfitter run` whose harness stays in RPC
@@ -47,7 +44,7 @@ spec:
47
44
  fsGroup: 1000
48
45
  containers:
49
46
  - name: agent
50
- # The primary Debian-based image; append -nix for the Nix variant.
47
+ # The published Debian-based image.
51
48
  image: ghcr.io/ai-outfitter/outfitter:<version>
52
49
  stdin: true
53
50
  workingDir: /workspace
@@ -85,8 +82,8 @@ The image is a normal Debian base: extend it with an ordinary Dockerfile.
85
82
  `apt-get` works, and so does `COPY`ing binaries. A dynamically linked binary
86
83
  runs when it matches the image — same architecture, glibc-linked, and its
87
84
  shared-library dependencies present. The standard ELF interpreter is where
88
- tools expect it (unlike the `-nix` variant), but the slim base ships a small
89
- library set: `apt-get install` a binary's runtime libraries when it needs more.
85
+ tools expect it, but the slim base ships a small library set. Use `apt-get
86
+ install` when a binary needs more runtime libraries.
90
87
  Switch to `root` for the layers that install, then drop back to `1000`:
91
88
 
92
89
  ```dockerfile
@@ -111,77 +108,3 @@ docker run --rm --entrypoint /bin/sh example-agent \
111
108
 
112
109
  The entrypoint stays `outfitter`; override `ENTRYPOINT` only when the derived
113
110
  image wraps the launch itself.
114
-
115
- ## The `-nix` variant
116
-
117
- The Nix closure image that was previously the primary tag remains published
118
- for `lib.mkContainer` consumers:
119
-
120
- ```text
121
- ghcr.io/ai-outfitter/outfitter:<version>-nix
122
- ```
123
-
124
- It is built by the flake, includes the Nix CLI, Bash, core utilities, Git,
125
- SSH, and CA certificates, and its entrypoint is an absolute `/nix/store` path.
126
- It is not conventionally extensible — there is no apt, and foreign dynamic
127
- binaries do not run — so extend it through Nix instead: the flake exports
128
- `lib.mkContainer` for reproducible derivative images:
129
-
130
- ```nix
131
- {
132
- inputs = {
133
- nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
134
- outfitter = {
135
- url = "github:ai-outfitter/outfitter/v1.4.0";
136
- inputs.nixpkgs.follows = "nixpkgs";
137
- };
138
- };
139
-
140
- outputs =
141
- { nixpkgs, outfitter, ... }:
142
- let
143
- system = "x86_64-linux";
144
- pkgs = nixpkgs.legacyPackages.${system};
145
- in
146
- {
147
- packages.${system}.default = outfitter.lib.mkContainer {
148
- inherit pkgs;
149
- outfitterPackage = outfitter.packages.${system}.outfitter;
150
- name = "example-agent";
151
- extraPackages = [
152
- pkgs.jq
153
- pkgs.ripgrep
154
- ];
155
- };
156
- };
157
- }
158
- ```
159
-
160
- Build and exercise the exact image:
161
-
162
- ```sh
163
- nix build
164
- docker load < result
165
- docker run --rm example-agent:latest --version
166
- docker run --rm --entrypoint /bin/sh example-agent:latest \
167
- -c 'nix --version && jq --version && rg --version'
168
- ```
169
-
170
- Prefer adding known runtime packages through `extraPackages`. The resulting
171
- image stays reproducible, and it avoids the trap below.
172
-
173
- **Do not mount an empty volume over `/nix` of the `-nix` variant.** That image
174
- _is_ its Nix store: the entrypoint is an absolute store path and every binary
175
- in `/bin` is a symlink into `/nix/store`. Mounting a fresh volume there hides
176
- all of it, so the container cannot start — it fails before it could initialize
177
- the very store you mounted the volume to populate. (The primary Debian image
178
- has no `/nix` and is not affected.)
179
-
180
- Runtime installation in the `-nix` variant therefore needs one of:
181
-
182
- - a volume **pre-populated** with the image's closure, seeded from the image
183
- before the agent starts (an init container copying `/nix` into the volume);
184
- - an **overlay** whose lower layer is the image's `/nix`, so the closure stays
185
- visible while writes land in the upper layer; or
186
- - writable Nix **state** only — `/nix/var` and a per-user profile — leaving the
187
- store itself as the image shipped it.
@@ -9,6 +9,7 @@
9
9
  ```bash
10
10
  outfitter dump --out ./review
11
11
  outfitter dump --agent engineer --out ./engineer # one agent's transitive closure only
12
+ outfitter dump --workflow engineer --out ./workflow # graph + nested graphs + agent closures
12
13
  ```
13
14
 
14
15
  Use dumps to:
@@ -24,6 +25,7 @@ Use dumps to:
24
25
  - **Safe** — a dump may include reviewable source provenance, but never credentials, auth state, sessions, transcripts, caches, backups, mutable harness state, or symlinks escaping the tree.
25
26
  - **Protocol-shaped** — the output is a valid `.agents` payload usable by any protocol consumer, not just Outfitter. Any Outfitter-specific provenance metadata is namespaced, JSON-based, and removable without losing the underlying resources.
26
27
  - **Harness-discoverable** — selected agent-local skills are flattened into top-level `skills/<id>/` in the closure output, with their packaged references, scripts, and assets intact.
28
+ - **Workflow-auditable** — workflow exports preserve canonical YAML and record every nested workflow, agent composition, file hash, and winning source in `.outfitter/workflow-composition.json`.
27
29
 
28
30
  ## Bake
29
31
 
@@ -41,6 +41,8 @@ remote_settings:
41
41
  ref: 9c47d1e2b8a05f36c4d7e90a12b3f8c5d6e71a04
42
42
 
43
43
  cache_directory: ./cache # optional; relative to this settings file
44
+ source_cache:
45
+ policy: repair # repair (default), locked, or offline
44
46
 
45
47
  # Pseudonymous product analytics consent; defaults to true when absent.
46
48
  telemetry:
@@ -53,6 +55,9 @@ telemetry:
53
55
  - `remote_settings` — shared settings a repository distributes; cached locally and merged below your project and user settings, so anything you set locally wins.
54
56
  - `cache_directory` — the repository cache root used consistently by sync, remote settings, remote
55
57
  source resolution, and default-catalog setup. It defaults to `~/.agents/cache`; repositories live
58
+ - `source_cache.policy` — verifies remote caches before `run`: `repair` reuses healthy caches and
59
+ atomically repairs unhealthy ones, `locked` also requires full commit pins, and `offline` never
60
+ accesses the network.
56
61
  below its `repos/` directory.
57
62
  - `telemetry.enabled` — the primary and sole persistent control for pseudonymous product analytics. Edit it directly to enable or disable telemetry. See [Telemetry](./telemetry.md) for consent precedence, automatic identifier cleanup, the event contract, and the current inert-build status.
58
63
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-outfitter/outfitter",
3
- "version": "1.11.0",
3
+ "version": "1.13.0",
4
4
  "description": "Profile-oriented wrapper for launching pi, Claude Code, and future agent CLIs with reproducible configuration.",
5
5
  "type": "module",
6
6
  "repository": {
@@ -11,6 +11,11 @@
11
11
  "description": "Whether a run stands on the machine's native harness configuration (inherit, the default) or on the projection alone (isolated). Honored only from home-scope settings."
12
12
  },
13
13
  "cache_directory": { "type": "string", "minLength": 1 },
14
+ "source_cache": {
15
+ "type": "object",
16
+ "properties": { "policy": { "enum": ["repair", "locked", "offline"] } },
17
+ "additionalProperties": false
18
+ },
14
19
  "state_persistence": {
15
20
  "type": "object",
16
21
  "description": "Maps adapter-declared state paths to a persistence strategy.",