@uchibeke/gallivant 0.0.0-stage → 0.2.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 (168) hide show
  1. package/CONTRIBUTING.md +26 -0
  2. package/LICENSE +204 -0
  3. package/README.md +239 -2
  4. package/SECURITY.md +19 -0
  5. package/bin/gallivant.mjs +261 -0
  6. package/bin/package-plugin.mjs +16 -0
  7. package/bin/release-live.mjs +29 -0
  8. package/bin/release-package.mjs +23 -0
  9. package/bin/session-runtime.mjs +13 -0
  10. package/bin/task-delivery-state.mjs +12 -0
  11. package/docs/README.md +72 -0
  12. package/docs/agent-setup.md +228 -0
  13. package/docs/app.md +111 -0
  14. package/docs/architecture.md +265 -0
  15. package/docs/chains.md +102 -0
  16. package/docs/codex-cloud.md +284 -0
  17. package/docs/commands.md +649 -0
  18. package/docs/config.md +437 -0
  19. package/docs/execution.md +796 -0
  20. package/docs/guardrails.md +311 -0
  21. package/docs/install.md +398 -0
  22. package/docs/launch.md +45 -0
  23. package/docs/learning.md +369 -0
  24. package/docs/network-recovery.md +101 -0
  25. package/docs/openai-agents.md +457 -0
  26. package/docs/prd.md +246 -0
  27. package/docs/preparation.md +110 -0
  28. package/docs/release-qualification.md +196 -0
  29. package/docs/releasing.md +149 -0
  30. package/docs/runtime-environment.md +113 -0
  31. package/docs/task-delivery.md +476 -0
  32. package/docs/tasks.md +739 -0
  33. package/lib/aport.mjs +95 -0
  34. package/lib/attribution.mjs +95 -0
  35. package/lib/block.mjs +89 -0
  36. package/lib/capabilities.mjs +3 -0
  37. package/lib/chains.mjs +222 -0
  38. package/lib/codex_cloud.mjs +160 -0
  39. package/lib/codex_cloud_config.mjs +20 -0
  40. package/lib/codex_cloud_input.mjs +49 -0
  41. package/lib/codex_cloud_result.mjs +74 -0
  42. package/lib/commands/doctor.mjs +466 -0
  43. package/lib/commands/init.mjs +245 -0
  44. package/lib/commands/learn.mjs +54 -0
  45. package/lib/commands/new.mjs +47 -0
  46. package/lib/commands/ready.mjs +45 -0
  47. package/lib/commands/register.mjs +249 -0
  48. package/lib/commands/resume.mjs +224 -0
  49. package/lib/commands/serve.mjs +349 -0
  50. package/lib/commands/start.mjs +247 -0
  51. package/lib/commands/start_services.mjs +22 -0
  52. package/lib/commands/status.mjs +150 -0
  53. package/lib/commands/task.mjs +73 -0
  54. package/lib/commands/up.mjs +228 -0
  55. package/lib/commands/why.mjs +143 -0
  56. package/lib/config.mjs +461 -0
  57. package/lib/context.mjs +102 -0
  58. package/lib/control.mjs +202 -0
  59. package/lib/control_contract.mjs +16 -0
  60. package/lib/coordinator.mjs +19 -0
  61. package/lib/credential.mjs +161 -0
  62. package/lib/daemon.mjs +156 -0
  63. package/lib/deliverable.mjs +357 -0
  64. package/lib/events.mjs +261 -0
  65. package/lib/executable.mjs +31 -0
  66. package/lib/execution.mjs +707 -0
  67. package/lib/execution_contract.mjs +15 -0
  68. package/lib/execution_input.mjs +4 -0
  69. package/lib/execution_io.mjs +94 -0
  70. package/lib/execution_journal.mjs +69 -0
  71. package/lib/execution_preparation.mjs +29 -0
  72. package/lib/execution_result.mjs +266 -0
  73. package/lib/fs.mjs +140 -0
  74. package/lib/gh.mjs +289 -0
  75. package/lib/git.mjs +434 -0
  76. package/lib/harness.mjs +521 -0
  77. package/lib/harness_log.mjs +432 -0
  78. package/lib/hash.mjs +16 -0
  79. package/lib/identity.mjs +98 -0
  80. package/lib/learning.mjs +654 -0
  81. package/lib/learning_contract.mjs +2 -0
  82. package/lib/learning_data.mjs +135 -0
  83. package/lib/learning_input.mjs +111 -0
  84. package/lib/learning_qualification.mjs +67 -0
  85. package/lib/learning_signer.mjs +151 -0
  86. package/lib/learning_store.mjs +88 -0
  87. package/lib/log.mjs +53 -0
  88. package/lib/network_diagnostics.mjs +64 -0
  89. package/lib/network_recovery.mjs +42 -0
  90. package/lib/notify.mjs +58 -0
  91. package/lib/openai_agents.mjs +373 -0
  92. package/lib/openai_agents_config.mjs +14 -0
  93. package/lib/openai_agents_http.mjs +87 -0
  94. package/lib/openai_agents_input.mjs +15 -0
  95. package/lib/openai_agents_sources.mjs +112 -0
  96. package/lib/owner_delivery.mjs +443 -0
  97. package/lib/plugin_package.mjs +340 -0
  98. package/lib/prd.mjs +635 -0
  99. package/lib/preparation_agents.mjs +33 -0
  100. package/lib/preparation_codex.mjs +212 -0
  101. package/lib/probe.mjs +126 -0
  102. package/lib/prompt.mjs +238 -0
  103. package/lib/provider_health.mjs +55 -0
  104. package/lib/public-format.mjs +31 -0
  105. package/lib/public_output.mjs +49 -0
  106. package/lib/release_package.mjs +154 -0
  107. package/lib/repository_files.mjs +86 -0
  108. package/lib/run.mjs +385 -0
  109. package/lib/run_log.mjs +94 -0
  110. package/lib/runtime-environment.mjs +87 -0
  111. package/lib/runtime_dependencies.mjs +15 -0
  112. package/lib/runtime_node.mjs +107 -0
  113. package/lib/runtime_state.mjs +174 -0
  114. package/lib/sources/index.mjs +27 -0
  115. package/lib/sources/prd.mjs +50 -0
  116. package/lib/start_contract.mjs +37 -0
  117. package/lib/state.mjs +246 -0
  118. package/lib/task_allowance.mjs +31 -0
  119. package/lib/task_completion.mjs +61 -0
  120. package/lib/task_contract.mjs +450 -0
  121. package/lib/task_delivery.mjs +219 -0
  122. package/lib/task_delivery_cancel.mjs +34 -0
  123. package/lib/task_delivery_contract.mjs +61 -0
  124. package/lib/task_delivery_mcp.mjs +40 -0
  125. package/lib/task_delivery_store.mjs +43 -0
  126. package/lib/task_delivery_view.mjs +88 -0
  127. package/lib/task_environment.mjs +281 -0
  128. package/lib/task_prepare.mjs +224 -0
  129. package/lib/task_store.mjs +38 -0
  130. package/lib/tasks.mjs +513 -0
  131. package/lib/tick.mjs +1654 -0
  132. package/lib/time.mjs +36 -0
  133. package/lib/tracker/assets.mjs +43 -0
  134. package/lib/tracker/pages.mjs +320 -0
  135. package/lib/tracker/runs.mjs +102 -0
  136. package/lib/tracker/stream.mjs +74 -0
  137. package/lib/tracker_process.mjs +107 -0
  138. package/lib/verification_sandbox.mjs +181 -0
  139. package/node_modules/smol-toml/LICENSE +24 -0
  140. package/node_modules/smol-toml/README.md +605 -0
  141. package/node_modules/smol-toml/dist/date.d.ts +41 -0
  142. package/node_modules/smol-toml/dist/date.js +156 -0
  143. package/node_modules/smol-toml/dist/error.d.ts +37 -0
  144. package/node_modules/smol-toml/dist/error.js +67 -0
  145. package/node_modules/smol-toml/dist/extract.js +289 -0
  146. package/node_modules/smol-toml/dist/index.cjs +770 -0
  147. package/node_modules/smol-toml/dist/index.d.ts +44 -0
  148. package/node_modules/smol-toml/dist/index.js +34 -0
  149. package/node_modules/smol-toml/dist/parse.d.ts +73 -0
  150. package/node_modules/smol-toml/dist/parse.js +164 -0
  151. package/node_modules/smol-toml/dist/primitive.js +151 -0
  152. package/node_modules/smol-toml/dist/stringify.d.ts +32 -0
  153. package/node_modules/smol-toml/dist/stringify.js +219 -0
  154. package/node_modules/smol-toml/dist/struct.js +156 -0
  155. package/node_modules/smol-toml/dist/util.d.ts +43 -0
  156. package/node_modules/smol-toml/dist/util.js +57 -0
  157. package/node_modules/smol-toml/package.json +68 -0
  158. package/npm-shrinkwrap.json +1823 -0
  159. package/package.json +105 -4
  160. package/templates/claude-settings.json +18 -0
  161. package/templates/passport.gallivant.json +83 -0
  162. package/templates/plugin/bundled-runtime.json +26 -0
  163. package/templates/plugin/schemas/mcp.schema.json +120 -0
  164. package/templates/plugin/schemas/plugin.schema.json +65 -0
  165. package/templates/plugin/task-delivery.SKILL.md +60 -0
  166. package/templates/prd.md +32 -0
  167. package/templates/tracker/tracker.css +301 -0
  168. package/templates/tracker/tracker.js +721 -0
@@ -0,0 +1,26 @@
1
+ # Contributing
2
+
3
+ Use macOS or Linux with Node 22 or 24. Install dependencies with
4
+ `npm ci --ignore-scripts`. Run `npm run lint`, `npm test` and `npm run test:install`
5
+ before opening a pull request. Native isolation tests need Command Line Tools on
6
+ macOS or Bubblewrap with user namespaces allowed on Linux; see
7
+ `.github/workflows/runtime-portability.yml` for the tested host setup.
8
+
9
+ `npm test` uses fixtures and disposable repositories. Live harness suites are
10
+ separate opt-in commands: they need authenticated provider access and can spend
11
+ credits. Do not include credentials, private run logs, local config or customer
12
+ content in a contribution. Follow [SECURITY.md](SECURITY.md) for vulnerabilities.
13
+
14
+ Keep orchestration in shared services so CLI, daemon and UI use the same rules.
15
+ Preserve each adapter's supported continuation, bounded retries, ownership checks, sandbox
16
+ refusals and human merge gates. Add focused regressions for correctness fixes,
17
+ and update the relevant command/configuration documentation when behavior changes.
18
+
19
+ [The documentation index](docs/README.md) separates current operator guides from
20
+ implementation PRDs, plans and dated evidence. Update guides with behavior changes;
21
+ preserve queued brief/source contracts and historical test results. New provider
22
+ support must state preparation and implementation capabilities separately, along
23
+ with credentials, permissions, costs, continuation and qualification limits.
24
+
25
+ Describe the user-visible problem, the resulting behavior and the checks you ran.
26
+ An implemented adapter is not a live-qualified provider; record that distinction.
package/LICENSE ADDED
@@ -0,0 +1,204 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (which shall not include Communications that are clearly marked or
39
+ otherwise designated in writing by the copyright owner as "Not a Work").
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution".
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ ---
180
+
181
+ APPENDIX: How to apply the Apache License to your work.
182
+
183
+ To apply the Apache License to your work, attach the following
184
+ boilerplate notice, with the fields enclosed by brackets "[]"
185
+ replaced with your own identifying information. (Don't include
186
+ the brackets!) The text should be enclosed in the appropriate
187
+ comment syntax for the file format. We also recommend that a
188
+ file or class name and description of purpose be included on the
189
+ same "printed page" as the copyright notice for easier
190
+ identification within third-party archives.
191
+
192
+ Copyright 2026 Gallivant contributors
193
+
194
+ Licensed under the Apache License, Version 2.0 (the "License");
195
+ you may not use this file except in compliance with the License.
196
+ You may obtain a copy of the License at
197
+
198
+ http://www.apache.org/licenses/LICENSE-2.0
199
+
200
+ Unless required by applicable law or agreed to in writing, software
201
+ distributed under the License is distributed on an "AS IS" BASIS,
202
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
203
+ See the License for the specific language governing permissions and
204
+ limitations under the License.
package/README.md CHANGED
@@ -1,3 +1,240 @@
1
- # Temporary Holding Version
1
+ # Gallivant
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ **Give an agent a task. Let the review loop run. Go outside.**
4
+
5
+ Gallivant turns a repository task into a reviewed pull request. It runs a coding
6
+ agent in a separate checkout, opens the PR, watches CI and reviewer feedback, and
7
+ continues the same session until the PR is ready for you. You decide what merges.
8
+
9
+ ```text
10
+ Your task → agent works → PR → review + CI → fixes → ready for you
11
+ ↑___________|
12
+ ```
13
+
14
+ ## Set up in one command
15
+
16
+ Run this inside the Git checkout you want to work in:
17
+
18
+ ```sh
19
+ npx --yes @uchibeke/gallivant init --harness codex # or: --harness claude
20
+ ```
21
+
22
+ The setup flow below requires **0.2.1 or newer**. At verification on 2026-10-20,
23
+ npm's `latest` was still 0.2.0, whose `init` only creates the config. A maintainer
24
+ must [publish 0.2.1](docs/releasing.md) before this command provides repository
25
+ registration, repeat safety and the diagnostic report described below.
26
+
27
+ `init` writes a private config at `~/.gallivant/config.json`, records this
28
+ repository, creates a separate directory for task checkouts, and ends with the
29
+ same report as `gallivant doctor`: one line per check and the exact fix for each
30
+ failing one. Run it again in another repository to add that repository; nothing
31
+ else in the config changes.
32
+
33
+ Before you run it you need:
34
+
35
+ | Prerequisite | Check | If it fails |
36
+ | --- | --- | --- |
37
+ | macOS or Linux, Node 22+, Git, jq | `node --version`, `git --version`, `jq --version` | install from your package manager |
38
+ | GitHub CLI signed in | `gh auth status` | `gh auth login` |
39
+ | Codex CLI 0.160.0+ signed in | `codex login status` | `codex login` |
40
+ | or Claude Code 2.1.263+ signed in | `claude auth status` | `claude auth login` |
41
+
42
+ A signed-out `gh` or harness stops `init` before it writes anything, and the
43
+ message repeats the login command above. `init` never asks for passwords, tokens
44
+ or browser cookies; sign in with each tool's own flow. Inference is billed to
45
+ your own provider account.
46
+
47
+ `npx` downloads and runs the package on demand. Nothing is installed globally
48
+ and no `gallivant` command is added to your PATH. If you want one:
49
+
50
+ ```sh
51
+ npm install -g @uchibeke/gallivant
52
+ ```
53
+
54
+ The rest of this page writes `gallivant`. With `npx`, read that as
55
+ `npx --yes @uchibeke/gallivant`. Contributors who want to run from a source
56
+ checkout: see [installing from source](docs/install.md#install-from-source).
57
+
58
+ ## Finish what setup cannot do for you
59
+
60
+ `doctor` names these. `init` does not do them, because each needs a decision
61
+ from you or an account with a third party.
62
+
63
+ - **Reviewer.** The default loop waits for the Codex GitHub review integration
64
+ (`chatgpt-codex-connector[bot]`). Enable it on the repository, configure
65
+ another reviewer, or set `"reviewer": null` in the config to rely on CI and
66
+ trusted human feedback. Without one of these, the first PR waits for a review
67
+ that never arrives. See [the reviewer key](docs/config.md#the-reviewer-object).
68
+ - **Branch protection.** `doctor` prints the `gh api` call that creates a
69
+ ruleset blocking direct and force pushes to the default branch. Run it
70
+ yourself. Setup never changes repository settings.
71
+ - **Harness guardrails.** The APort hook for Claude or Codex is installed by its
72
+ own `npx @aporthq/aport-agent-guardrails` command, and Codex asks you to trust
73
+ the hook inside its own interface. Setup does not install hooks.
74
+ [Guardrails](docs/guardrails.md) explains what each control covers.
75
+ - **Spend.** Defaults are 30 fix rounds per PR and a 5 USD per-run cap that
76
+ only Claude enforces natively. Review [limits](docs/config.md) before
77
+ unattended work.
78
+
79
+ ## Run a first task
80
+
81
+ ```sh
82
+ gallivant task "Document how to run the existing tests in CONTRIBUTING.md. Use the commands already defined in the repository. Change documentation only." \
83
+ --harness codex --verify 'git diff --check' --run
84
+ gallivant start
85
+ ```
86
+
87
+ What happens: `task` uses your harness to prepare a brief, which is a paid
88
+ inference call, and may ask you questions. `--run` authorizes implementation
89
+ once the brief is ready; omit it to read the draft first and follow the printed
90
+ `Next` action. The agent then works in a clone under `~/.gallivant-worktrees`,
91
+ pushes a branch, opens a PR against the default branch, and the daemon watches CI
92
+ and the reviewer, sending each round of feedback back to the same session.
93
+ `gallivant start` opens the dashboard at **http://127.0.0.1:8791** and keeps
94
+ the daemon running; closing the browser does not stop the work.
95
+
96
+ Expected outcome: a PR with a small CONTRIBUTING.md change and a completion
97
+ receipt in its body, and `gallivant status` showing the entry as **ready** once
98
+ checks, reviewer and the acceptance gate pass. You review and merge. Missing
99
+ access, failing checks or an exhausted round allowance produce an inspectable
100
+ stop instead; `gallivant why <handle>` explains it.
101
+
102
+ ### Bring a written brief
103
+
104
+ ```sh
105
+ gallivant new add-csv-export
106
+ # Edit docs/prds/add-csv-export.md: outcome, scope, acceptance criteria and checks.
107
+ gallivant ready docs/prds/add-csv-export.md --check
108
+ gallivant ready docs/prds/add-csv-export.md
109
+ gallivant start docs/prds/add-csv-export.md
110
+ ```
111
+
112
+ You do not have to write a PRD yourself. Both entry points use a validated brief
113
+ and the same review loop. [Writing briefs](docs/prd.md) · [Task commands](docs/tasks.md).
114
+
115
+ ## How the review loop runs
116
+
117
+ 1. The agent implements the brief, runs the brief's verification commands and
118
+ opens the PR.
119
+ 2. Each tick (every two minutes by default) the daemon reads CI and reviewer
120
+ state. A blocking review or a failing check starts a fix round in the same
121
+ agent session, and the fix is pushed to the same PR.
122
+ 3. Rounds stop at `max_iterations` (30 by default), when the reviewer stays
123
+ silent for `stall_hours`, or when a run exceeds its timeout. Every stop is
124
+ recorded with a reason you can read with `gallivant why`.
125
+ 4. **Ready** means the configured checks, reviewer and acceptance gate passed.
126
+ Nothing merges automatically. Natural-language tasks stop at a review
127
+ handoff by default; choose `integrated` to keep watching until you merge.
128
+
129
+ ## While it works
130
+
131
+ | What you need | Action |
132
+ | --- | --- |
133
+ | Follow runs | `gallivant start` or `gallivant status` |
134
+ | Correct the agent | **Send message** on its dashboard page; context and existing work are preserved |
135
+ | Inspect a stop | `gallivant why <handle>` |
136
+ | Continue after fixing a blocker | `gallivant resume <handle>` or **Resume agent** |
137
+ | Refresh review and CI | **Recheck PR**; this does not resume a failed agent |
138
+ | Keep the dashboard without opening a browser | `gallivant start --no-open` |
139
+ | Run only the daemon | `gallivant start --no-server` |
140
+ | Stop monitoring and the standalone dashboard | `gallivant down`; existing agent processes continue |
141
+
142
+ If services fail to start after a task is accepted, retry `gallivant start`
143
+ without the PRD path. Do not submit the same task again.
144
+
145
+ Temporary connection failures have bounded same-session recovery. For DNS errors,
146
+ use `gallivant doctor --network https://api.anthropic.com` with your provider's
147
+ actual HTTPS origin. [Recovery and troubleshooting](docs/network-recovery.md).
148
+
149
+ ## More than one task
150
+
151
+ ```sh
152
+ gallivant chain launch docs/prds/foundation.md docs/prds/integration.md docs/prds/launch.md
153
+ ```
154
+
155
+ The next milestone starts only after its predecessor is merged into the planned
156
+ base. You can plan longer work while retaining the merge decision.
157
+ [Chaining tasks](docs/chains.md).
158
+
159
+ ## Harness support
160
+
161
+ `init --harness` accepts `codex` and `claude`. Other adapters are configured by
162
+ hand in `config.json`; see [configuration](docs/config.md#execution-providers).
163
+
164
+ | Harness (`harness` key) | Runs on | Prepare requests | Implementation status |
165
+ | --- | --- | --- | --- |
166
+ | Claude Code (`claude`) | Your host | Yes | Recommended; live usage evidence |
167
+ | Codex CLI (`codex`) | Your host | Yes, 0.160.0+ | Recommended; live usage evidence |
168
+ | Gemini CLI (`gemini`) | Your host | Written PRDs only | Adapter implemented; unattended end-to-end qualification incomplete |
169
+ | OpenCode (`opencode`) | Your host | Written PRDs only | Adapter implemented; unattended end-to-end qualification incomplete |
170
+ | Goose (`goose`) | Your host | Written PRDs only | Adapter implemented; unattended end-to-end qualification incomplete |
171
+ | OpenAI Agents API (`openai-agents`) | OpenAI-hosted sandbox | Yes, text-only | Hosted adapter implemented; eligible API account, explicit model/environment and live qualification required |
172
+ | Codex Cloud (`codex-cloud`) | Codex Cloud | No | New dispatch disabled until the selected environment's repository binding can be verified |
173
+
174
+ Local Codex, Codex Cloud and the Agents API are distinct integrations. Local
175
+ Codex and Claude work independently of the Cloud dispatch restriction.
176
+ `openai-agents` supports remote progress, continuation, cancellation and artifact
177
+ retrieval; the coordinator verifies returned changes and publishes the PR.
178
+ Implemented transport support is not a claim that every account has access or
179
+ that the full live lifecycle has passed qualification.
180
+
181
+ For local harnesses, provider and model selection belongs to that harness's own
182
+ configuration. Gallivant has no general per-task local model router and does not
183
+ turn a provider API key into a configured harness automatically. Hosted Agents
184
+ requires an explicit authorized model; there is no automatic model fallback.
185
+ [Hosted setup](docs/install.md#hosted-agents-api-instead-of-a-local-cli) ·
186
+ [Detailed capabilities](docs/config.md#execution-providers) ·
187
+ [Recorded qualification](https://github.com/uchibeke/gallivant/blob/main/docs/audit/harness-live-validation.md).
188
+
189
+ ## Feature map
190
+
191
+ | Capability | What you can do | Guide |
192
+ | --- | --- | --- |
193
+ | Task intake | Prepare a brief from a request, answer clarification questions, inspect revisions and authorize the ready task | [Tasks](docs/tasks.md) |
194
+ | Written briefs and context | Define acceptance criteria, verification commands and carried source files | [PRDs](docs/prd.md) |
195
+ | Review loop | Watch CI and trusted feedback, continue corrections, recover bounded connection failures and inspect stops | [Commands](docs/commands.md), [recovery](docs/network-recovery.md) |
196
+ | Run controls | Message, resume, recheck or cancel from the CLI/dashboard; inspect saved progress and logs | [Dashboard](docs/app.md) |
197
+ | Sequential plans | Queue dependent briefs with a merge gate between milestones | [Chains](docs/chains.md) |
198
+ | Completion checks | Evaluate acceptance evidence with APort or the explicit local evaluator; choose review handoff or watching for merge | [Guardrails](docs/guardrails.md), [milestones](docs/tasks.md#choose-the-delivery-milestone) |
199
+ | Notifications | Configure transition notifications through ntfy | [Configuration](docs/config.md) |
200
+ | Embedding and integrations | Use versioned task-delivery operations, Node coordination, MCP and plugin packaging; deployment is separate | [Task delivery](docs/task-delivery.md) |
201
+ | Review learning | Collect historical feedback and inspect candidates; rule activation remains unqualified | [Learning](docs/learning.md) |
202
+
203
+ The [command index](docs/commands.md#command-index) covers every top-level CLI
204
+ command and points to the task and learning subcommands. Run `gallivant --help`
205
+ for the installed version's flags.
206
+
207
+ ## What to expect
208
+
209
+ - **Your machine coordinates the work.** Keep it awake, online and running the
210
+ daemon, including when execution is hosted. Gallivant is not a managed service.
211
+ - **Your accounts pay for inference.** Subscriptions and API credits differ.
212
+ There is no automatic provider fallback. Review [limits](docs/config.md) before
213
+ unattended work; the default review allowance is 30 rounds.
214
+ - **Your permissions apply.** Scope GitHub access to the required repositories.
215
+ Harness permissions, OS sandboxing and optional APort checks are different
216
+ controls. [Security boundaries](docs/guardrails.md).
217
+ - **Ready does not mean merged.** Natural-language tasks default to stopping at a
218
+ qualified review handoff. Choose `integrated` to keep watching for your merge.
219
+ Written-PRD runs retain their monitoring behavior. No mode authorizes automatic
220
+ merge, release or deployment. [Delivery milestones](docs/tasks.md#choose-the-delivery-milestone).
221
+ - **Learning is experimental.** Review feedback can be collected, but production
222
+ activation of learned rules is not qualified. [Learning](docs/learning.md).
223
+
224
+ ## Documentation
225
+
226
+ [Getting started](docs/install.md) · [Agent setup](docs/agent-setup.md) ·
227
+ [Commands](docs/commands.md) · [Configuration](docs/config.md) ·
228
+ [Dashboard](docs/app.md) · [All guides](docs/README.md)
229
+
230
+ **Asking a coding agent to set this up?** Give it the
231
+ [setup-agent instructions](docs/agent-setup.md). They cover inspection, the
232
+ `npx` command, the points where your login or decision is required, and what a
233
+ setup run may not do on its own.
234
+
235
+ Embedding the same workflow in another application? See
236
+ [task delivery](docs/task-delivery.md). Installing this CLI does not deploy a
237
+ hosted service or publish a chat plugin.
238
+
239
+ [Contributing](CONTRIBUTING.md) · [Security reports](SECURITY.md) ·
240
+ [Releasing](docs/releasing.md) · [Apache-2.0 license](LICENSE)
package/SECURITY.md ADDED
@@ -0,0 +1,19 @@
1
+ # Security
2
+
3
+ Report suspected vulnerabilities through
4
+ [GitHub private vulnerability reporting](https://github.com/uchibeke/gallivant/security/advisories/new).
5
+ If private reporting is unavailable, open an issue requesting a private contact
6
+ channel without disclosing the vulnerability. Do not include credentials,
7
+ exploit payloads or private run logs in a public issue.
8
+
9
+ Include the version/commit, affected command, platform, reproduction and expected
10
+ permission boundary. Remove tokens and personal data. Fixes target the current
11
+ release; there is no separate long-term support branch yet.
12
+
13
+ Read [the guardrails](docs/guardrails.md) before unattended operation. Local
14
+ dashboard access is trusted operator access. Local implementation workers receive
15
+ the configured GitHub credential; scope it to the repositories and operations
16
+ they need. Automatic approval is not equivalent to an operating-system sandbox.
17
+ The [OpenAI Agents API adapter](docs/openai-agents.md) keeps service credentials
18
+ on the coordinator and publishes returned artifacts through that coordinator.
19
+ Its hosted execution controls differ from local harness hooks and sandboxes.