@defrex/autobuild 1.0.0-beta.4 → 1.0.1

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 (54) hide show
  1. package/README.md +1 -1
  2. package/SPEC.md +45 -36
  3. package/docs/agent-runtimes.md +157 -0
  4. package/docs/build-store.md +123 -0
  5. package/docs/builds.md +82 -0
  6. package/docs/cli.md +48 -0
  7. package/docs/configuration-overview.md +93 -0
  8. package/docs/configuration.md +1626 -204
  9. package/docs/dispatcher-hosting.md +115 -0
  10. package/docs/dispatcher.md +59 -0
  11. package/docs/forges.md +121 -0
  12. package/docs/getting-started.md +60 -0
  13. package/docs/glossary.md +60 -0
  14. package/docs/hosted-service.md +2 -2
  15. package/docs/intake.md +48 -0
  16. package/docs/integration-overview.md +81 -0
  17. package/docs/operating.md +114 -0
  18. package/docs/operator-api.md +6 -6
  19. package/docs/operator-surfaces.md +90 -0
  20. package/docs/overview.md +49 -0
  21. package/docs/plugin-authoring.md +426 -0
  22. package/docs/remote-store-protocol.md +8 -8
  23. package/docs/seams.md +66 -0
  24. package/docs/setup.md +8 -6
  25. package/docs/skills.md +119 -0
  26. package/docs/ticket-sources.md +132 -0
  27. package/docs/tickets.md +69 -0
  28. package/docs/troubleshooting.md +111 -0
  29. package/docs/upgrading.md +50 -0
  30. package/docs/verification.md +146 -0
  31. package/docs/website.md +47 -5
  32. package/docs/workspaces.md +152 -0
  33. package/package.json +5 -4
  34. package/packages/core/src/cli/env.ts +1 -1
  35. package/packages/core/src/cli/help.ts +4 -2
  36. package/packages/core/src/config/landing.ts +8 -0
  37. package/packages/core/src/config/reference-metadata.ts +31 -0
  38. package/packages/core/src/config/reference.ts +342 -0
  39. package/packages/core/src/config/roles.ts +1 -1
  40. package/packages/core/src/config/schema.ts +344 -6
  41. package/packages/core/src/ontology.ts +2 -2
  42. package/packages/core/src/open-map.ts +3 -1
  43. package/skills/finalize/SKILL.md +3 -1
  44. package/skills/guide/SKILL.md +42 -25
  45. package/skills/guide/references/operator-api.md +18 -10
  46. package/skills/guide/references/plugin-authoring.md +227 -303
  47. package/skills/guide/references/remote-store-protocol.md +8 -8
  48. package/skills/guide/references/setup.md +8 -6
  49. package/skills/implement/SKILL.md +4 -2
  50. package/skills/operate/SKILL.md +26 -27
  51. package/skills/plan/SKILL.md +12 -4
  52. package/skills/spec/SKILL.md +1 -1
  53. package/skills/tickets/SKILL.md +1 -1
  54. package/templates/hosted-service/package.json +2 -2
package/docs/cli.md ADDED
@@ -0,0 +1,48 @@
1
+ ---
2
+ title: CLI
3
+ group: reference
4
+ order: 16
5
+ description: "Every command, grouped by your responsibilities and your operator agent’s."
6
+ ---
7
+
8
+ # CLI
9
+
10
+ Run `bun ab <command>`; `bun ab help <command>` lists flags and subcommands. See [Operating](operating.md) for workflows.
11
+
12
+ ## For you
13
+
14
+ - `dispatch` — Run the dispatcher and dashboard.
15
+ - `init` — Install skills and hand setup to a coding agent.
16
+ - `upgrade` — Update Autobuild and merge default skills.
17
+ - `connect` — Connect to a hosted service with browser approval.
18
+ - `disconnect` — Revoke and remove the saved credential.
19
+
20
+ ## For your operator agent
21
+
22
+ - `help` — Show the overview or one command's help.
23
+ - `ticket` — Create, groom, inspect, and move tickets.
24
+ - `repository` — Inspect durable dispatcher settings.
25
+ - `landings` — List landings awaiting consent.
26
+ - `builds` — List builds and status.
27
+ - `build` — Inspect one build's state and events.
28
+ - `watch` — Follow events with a resumable cursor.
29
+ - `wait` — Block until a build condition holds; print one record.
30
+ - `mcp` — Serve the operator tools over stdio.
31
+ - `pause` — Request a build or repository pause.
32
+ - `resume` — Resume a paused build or repository.
33
+ - `answer` — Answer escalations or request a retry.
34
+ - `abort` — Request irreversible build termination and cleanup.
35
+ - `restack` — Request a node restack onto its current parent.
36
+ - `hold` — Hold a landing, withdrawing consent.
37
+ - `land` — Consent to a ready landing.
38
+ - `models` — Search Pi's model catalog.
39
+ - `plugin` — Inspect, diagnose, and contract-test adapters.
40
+ - `context` — Materialize the current phase's inputs.
41
+ - `artifact` — Deposit, fetch, or download versioned artifacts.
42
+ - `observe` — Record an observation outside the build's scope.
43
+ - `done` — Complete a producer phase.
44
+ - `verdict` — Complete a review or verification phase.
45
+ - `escalate` — Park the build with a question for you.
46
+ - `harvest` — Inspect or drive observation harvesting.
47
+
48
+ Phase commands (`context`, `done`, `verdict`) use runner-scoped session authority: the runner starts phase agents, never your operator agent. See [Skills](skills.md).
@@ -0,0 +1,93 @@
1
+ ---
2
+ title: "Repository configuration"
3
+ group: "reference"
4
+ description: "Map autobuild.toml settings to verification, agent roles, capacity, ticket readiness, landing policy, and editable skills."
5
+ label: "Configuration"
6
+ order: 8
7
+ slug: "configuration"
8
+ ---
9
+
10
+ # Repository configuration
11
+
12
+ `autobuild.toml` declares your repository's infrastructure, commands, agent roles, checks and operating limits.
13
+
14
+
15
+ ## Commands and extension steps
16
+
17
+ Verify and finalize steps run named commands or agent skills, in order:
18
+
19
+ ```toml
20
+ [commands]
21
+ typecheck = "bun tsc --noEmit"
22
+
23
+ [verify]
24
+ steps = ["types", "acceptance"]
25
+
26
+ [verify.types]
27
+ kind = "check"
28
+ command = "typecheck"
29
+ always = true
30
+
31
+ [verify.acceptance]
32
+ kind = "agent"
33
+ skill = "verify-acceptance" # repository-authored skill
34
+ ```
35
+
36
+ - **Verify**: command checks and agent verifiers. A build's plan selects optional steps.
37
+ - **Finalize** post-steps run after PR creation, e.g. a changelog update. A failed post-step is recorded without failing a green build.
38
+ - These are the only extension points; configuration can't add or reorder phases.
39
+
40
+ See the [verification guide](verification.md).
41
+
42
+
43
+ ## Roles, models, and limits
44
+
45
+ Roles inherit runtime and model from `roles.default` and override them per job. Ordered `alternates` are fallbacks when a provider is unavailable.
46
+
47
+ ```toml
48
+ capacity = 2
49
+
50
+ [roles.default]
51
+ runtime = "claude"
52
+
53
+ [roles.code-review]
54
+ runtime = "pi"
55
+ model = "kimi-coding/k3"
56
+
57
+ [policy]
58
+ maxReviewRounds = 6
59
+ maxVerifyAttempts = 3
60
+ sessionBudgetSeconds = 3600
61
+ ```
62
+
63
+ - **Capacity** bounds concurrent work.
64
+ - **Policy limits** bound review rounds, retries and session budgets, and decide when automation stops for attention.
65
+
66
+
67
+ ## Admission and landing
68
+
69
+ - **Tickets.** `[tickets]` sets the source and readiness criteria for admitting work.
70
+ - **Landing.** Ordered, first-match `[[landing]]` rules on source and destination select automatic landing or explicit consent. See [Integrating related work](integration-overview.md#policy-authorizes-landing) for matching and defaults, [Working with your operator agent](operating.md) for consent and hold commands.
71
+ - **Reloads.** Build execution configuration is pinned; dispatcher policy and role settings reload live.
72
+ - **Secrets** stay out of committed TOML.
73
+
74
+
75
+ ## Editable skills and installation
76
+
77
+ The vendored `ab-*` skills are editable repository files supplying agent judgment: how to plan, implement, review and operate. Code owns transitions, state and gates.
78
+
79
+ ```
80
+ bun ab init
81
+ bun ab init --validate
82
+ ```
83
+
84
+ - **`init`** writes a stack-neutral configuration if none exists, vendors skills, and hands repository-aware setup (commands, adapter prerequisites) to a coding agent. Existing configuration is preserved.
85
+ - **`init --validate`** checks readiness for the configured arrangement.
86
+
87
+ Every repository must configure an **acceptance check**: an agent verify step that runs the built software, exercises each acceptance criterion, attaches evidence and returns a typed verdict. It leaves no test files behind. An existing end-to-end or browser suite goes in an ordinary `check` step; setup doesn't create one.
88
+
89
+ ```
90
+ bun ab upgrade
91
+ ```
92
+
93
+ `upgrade` updates the installation on its distribution channel and merges upstream skill changes into your edits, surfacing conflicts instead of overwriting. See [Upgrading](upgrading.md) and [Skills](skills.md#how-upgrades-preserve-customization).