loomrail 0.1.0-alpha.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.
- package/LICENSE +202 -0
- package/NOTICE +4 -0
- package/README.md +266 -0
- package/apps/cli/dist/index.js +11154 -0
- package/apps/cli/migrations/0001_initial.sql +99 -0
- package/apps/cli/migrations/0002_mock_workflow.sql +169 -0
- package/apps/cli/migrations/0003_budget_pause_recovery.sql +154 -0
- package/apps/cli/migrations/0004_pipeline_started_budget_backfill.sql +72 -0
- package/apps/cli/migrations/0005_acceptance_evidence.sql +129 -0
- package/apps/cli/migrations/0006_session_handoff.sql +166 -0
- package/apps/cli/migrations/0007_pack_share_backoff.sql +11 -0
- package/apps/cli/migrations/0008_stage_attempt_counter_backfill.sql +169 -0
- package/apps/cli/migrations/0009_session_window_occupancy.sql +44 -0
- package/apps/cli/migrations/0010_provider_session_pid.sql +5 -0
- package/apps/cli/migrations/0011_work_item_workspaces.sql +94 -0
- package/apps/cli/migrations/0012_registered_repository_projects.sql +54 -0
- package/apps/cli/migrations/0013_stage_attempt_result_tree.sql +166 -0
- package/apps/cli/migrations/0014_live_evidence_provider.sql +49 -0
- package/apps/web/dist/assets/index-DjwvCSSY.js +5 -0
- package/apps/web/dist/assets/index-DjwvCSSY.js.map +1 -0
- package/apps/web/dist/assets/index-Z88TqCIf.css +1 -0
- package/apps/web/dist/assets/radix-vendor-CRdHXIPR.js +42 -0
- package/apps/web/dist/assets/radix-vendor-CRdHXIPR.js.map +1 -0
- package/apps/web/dist/assets/react-vendor-BicOiEU0.js +10 -0
- package/apps/web/dist/assets/react-vendor-BicOiEU0.js.map +1 -0
- package/apps/web/dist/assets/rolldown-runtime-CbXtAM7H.js +1 -0
- package/apps/web/dist/assets/tanstack-vendor-ec08LVZ_.js +2 -0
- package/apps/web/dist/assets/tanstack-vendor-ec08LVZ_.js.map +1 -0
- package/apps/web/dist/assets/validation-vendor-CGrOSWd3.js +65 -0
- package/apps/web/dist/assets/validation-vendor-CGrOSWd3.js.map +1 -0
- package/apps/web/dist/favicon.svg +5 -0
- package/apps/web/dist/index.html +60 -0
- package/apps/web/dist/theme-bootstrap.js +46 -0
- package/fixtures/projects/api-service-b/README.md +3 -0
- package/fixtures/projects/api-service-b/loomrail-fixture.json +6 -0
- package/fixtures/projects/web-app-a/README.md +3 -0
- package/fixtures/projects/web-app-a/loomrail-fixture.json +6 -0
- package/package.json +46 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
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
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/NOTICE
ADDED
package/README.md
ADDED
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
<img src="docs/assets/brand/loomrail-wordmark.svg" alt="Loomrail" width="360" />
|
|
3
|
+
<p><strong>The local control plane for accountable AI software teams.</strong></p>
|
|
4
|
+
<p>
|
|
5
|
+
<a href="https://github.com/loomrail/loomrail/actions/workflows/ci.yml"><img src="https://github.com/loomrail/loomrail/actions/workflows/ci.yml/badge.svg" alt="CI" /></a>
|
|
6
|
+
<a href="LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-5e6ad2" alt="Apache 2.0 license" /></a>
|
|
7
|
+
<img src="https://img.shields.io/badge/status-pre--alpha-c58b20" alt="Pre-alpha status" />
|
|
8
|
+
<img src="https://img.shields.io/badge/Node.js-24.19-43853d" alt="Node.js 24.19" />
|
|
9
|
+
</p>
|
|
10
|
+
</div>
|
|
11
|
+
|
|
12
|
+
Loomrail is a local-first workspace for planning, running, and supervising complete software-delivery workflows
|
|
13
|
+
across coding agents such as Codex and Claude Code. It is designed around tasks, evidence, budgets, review, and human
|
|
14
|
+
decisions instead of disconnected chat sessions.
|
|
15
|
+
|
|
16
|
+
> [!IMPORTANT]
|
|
17
|
+
> Loomrail is an early pre-alpha. The local kernel, authenticated browser session, SQLite state, audit log, and
|
|
18
|
+
> cross-platform CI are real. The Workbench now runs a restart-safe synthetic Discovery → Plan → Implement → Review
|
|
19
|
+
> → QA → Acceptance workflow with durable budgets, evidence, Human Requests, and owner Decisions in English and
|
|
20
|
+
> Russian. A live Codex session now runs inside a Git worktree cut for the task it works on, so all six stages can
|
|
21
|
+
> reach a real repository; the Claude Code adapter still serves DISCOVERY, PLAN and REVIEW only.
|
|
22
|
+
|
|
23
|
+
<picture>
|
|
24
|
+
<source media="(prefers-color-scheme: dark)" srcset="docs/assets/screenshots/workbench-dark.png" />
|
|
25
|
+
<source media="(prefers-color-scheme: light)" srcset="docs/assets/screenshots/workbench-light.png" />
|
|
26
|
+
<img src="docs/assets/screenshots/workbench-light.png" alt="Loomrail Workbench with a Kanban delivery board and task inspector" width="100%" />
|
|
27
|
+
</picture>
|
|
28
|
+
|
|
29
|
+
## Why Loomrail
|
|
30
|
+
|
|
31
|
+
- **Task-centric delivery.** Keep discovery, planning, implementation, review, QA, and acceptance on one accountable
|
|
32
|
+
route.
|
|
33
|
+
- **Local by default.** The daemon binds to loopback, state lives in local SQLite, and the browser uses a one-time
|
|
34
|
+
authenticated bootstrap session.
|
|
35
|
+
- **Human control.** Questions, approvals, budgets, recovery decisions, and acceptance stay visible and explicit.
|
|
36
|
+
- **Auditable work.** Commands are idempotent and state changes are recorded as append-only events.
|
|
37
|
+
- **Cross-platform baseline.** macOS and Windows run the same blocking verification and browser smoke tests.
|
|
38
|
+
|
|
39
|
+
## Current checkpoint
|
|
40
|
+
|
|
41
|
+
| Area | Today | Next |
|
|
42
|
+
| ------------- | ------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------- |
|
|
43
|
+
| Local runtime | Loopback daemon, CLI launcher, one-time browser session, installable tarball | Published package and desktop installer |
|
|
44
|
+
| State | Tasks, runs, budgets, recovery, typed evidence, acceptance packages, Decisions, append-only Events | Retention and restore hardening |
|
|
45
|
+
| Workbench | Persisted board, workflow cockpit, command summary, evidence matrix, owner acceptance, EN/RU, light/dark | Full Attention Inbox and richer workflow views |
|
|
46
|
+
| Agents | Capability-checked provider contract, live Codex/Claude CLI adapters, per-task Git worktrees, and on-demand change diffs | The Claude Code adapter on the write path |
|
|
47
|
+
| Projects | Bundled demo repositories, plus any local Git repository registered by absolute path | Per-project guardrails and permissions |
|
|
48
|
+
| Platforms | macOS and Windows CI are green | Clean-machine acceptance and hardening |
|
|
49
|
+
|
|
50
|
+
## How it is intended to work
|
|
51
|
+
|
|
52
|
+
```mermaid
|
|
53
|
+
flowchart LR
|
|
54
|
+
Brief[Task brief] --> Plan[Delivery plan]
|
|
55
|
+
Plan --> Build[Implementation agents]
|
|
56
|
+
Build --> Review[Independent review]
|
|
57
|
+
Review --> QA[Browser QA and evidence]
|
|
58
|
+
QA --> Accept{Human acceptance}
|
|
59
|
+
Accept -->|Approved| Done[Done]
|
|
60
|
+
Accept -->|Changes requested| Plan
|
|
61
|
+
Guardrails[Rules · permissions · budgets] -. constrain .-> Plan
|
|
62
|
+
Guardrails -. constrain .-> Build
|
|
63
|
+
Guardrails -. constrain .-> Review
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Loomrail is the control plane around this route. It does not replace the coding agents; it gives their work a shared
|
|
67
|
+
model, clear permissions, recoverable state, and an inspectable history.
|
|
68
|
+
|
|
69
|
+
## Install
|
|
70
|
+
|
|
71
|
+
For the complete route from installation through the first Human Request, budget decision, acceptance, live provider,
|
|
72
|
+
change review, restart, and state backup, use the [English user guide](docs/guides/USER-GUIDE.md) or the
|
|
73
|
+
[руководство на русском](docs/guides/USER-GUIDE.ru.md).
|
|
74
|
+
|
|
75
|
+
Loomrail ships as a single package: a bundled launcher, the prebuilt Workbench, the SQLite migrations and the bundled
|
|
76
|
+
fixture projects. Pre-alpha releases use the explicit `next` channel so they are never installed as a stable release:
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
npm install loomrail@next
|
|
80
|
+
npx loomrail --port 4176
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
To verify a source revision before it reaches the registry, build and install the exact release tarball instead:
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
pnpm pack:release
|
|
87
|
+
npm install ./dist-release/loomrail-0.1.0-alpha.1.tgz
|
|
88
|
+
npx loomrail --port 4176
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Install it globally with `npm install -g` instead if you want `loomrail` on your `PATH`. Either way the launcher
|
|
92
|
+
starts on loopback and opens a one-time authenticated URL; add `--no-open` and it prints that URL instead, so a
|
|
93
|
+
same-machine browser can still sign in without being opened automatically.
|
|
94
|
+
|
|
95
|
+
`pnpm test:release` performs exactly this install into an empty project using only the public registry, and runs on
|
|
96
|
+
macOS and Windows in CI. See the [release guide](docs/RELEASE.md) for the full procedure.
|
|
97
|
+
|
|
98
|
+
## Run from source
|
|
99
|
+
|
|
100
|
+
There is no desktop installer yet. To develop Loomrail, or to try the current checkpoint without building a package,
|
|
101
|
+
run the repository directly.
|
|
102
|
+
|
|
103
|
+
### Requirements
|
|
104
|
+
|
|
105
|
+
- Node.js as pinned in [`.nvmrc`](.nvmrc)
|
|
106
|
+
- Corepack
|
|
107
|
+
- macOS or Windows
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
git clone https://github.com/loomrail/loomrail.git
|
|
111
|
+
cd loomrail
|
|
112
|
+
nvm use # or: fnm use
|
|
113
|
+
corepack enable # installs the pnpm version pinned by packageManager
|
|
114
|
+
pnpm install --frozen-lockfile
|
|
115
|
+
pnpm dev
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
`pnpm dev` builds the workspace, starts Loomrail on an available loopback port, and opens a one-time authenticated URL
|
|
119
|
+
in the default browser. Stop it with `Ctrl+C`.
|
|
120
|
+
|
|
121
|
+
For a fixed port after the first build:
|
|
122
|
+
|
|
123
|
+
```bash
|
|
124
|
+
pnpm build
|
|
125
|
+
pnpm start --port 4176
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
Use `pnpm start --no-open --port 4176` when the browser should not open automatically; the launcher then prints the
|
|
129
|
+
one-time sign-in URL for a browser on the same machine. That URL signs in a single browser, expires after 60 seconds,
|
|
130
|
+
and is replaced on every restart. `LOOMRAIL_DATA_DIR` can point a development run at an isolated data directory.
|
|
131
|
+
|
|
132
|
+
| Platform | Default local state |
|
|
133
|
+
| -------- | ----------------------------------------------------- |
|
|
134
|
+
| macOS | `~/Library/Application Support/Loomrail/state.sqlite` |
|
|
135
|
+
| Windows | `%LOCALAPPDATA%\Loomrail\state.sqlite` |
|
|
136
|
+
|
|
137
|
+
## Repository
|
|
138
|
+
|
|
139
|
+
```text
|
|
140
|
+
apps/
|
|
141
|
+
cli/ # local launcher and authenticated browser bootstrap
|
|
142
|
+
daemon/ # loopback API, commands, events, and SQLite lifecycle
|
|
143
|
+
web/ # React Workbench
|
|
144
|
+
packages/
|
|
145
|
+
contracts/ # shared schemas and transport contracts
|
|
146
|
+
domain/ # deterministic WorkItem and workflow decisions
|
|
147
|
+
persistence-sqlite/ # SQLite repositories, queue, and migrations
|
|
148
|
+
context-assembly/ # what a provider session is told, and in what order
|
|
149
|
+
workspace/ # Git process boundary, repository inspection, worktrees
|
|
150
|
+
provider-core/ # provider lifecycle and capability boundary
|
|
151
|
+
provider-mock/ # deterministic synthetic provider scenarios
|
|
152
|
+
provider-codex/ # the real `codex` CLI as a child process
|
|
153
|
+
provider-claude-code/ # the real `claude` CLI as a child process
|
|
154
|
+
workflow-engine/ # versioned workflow template validation
|
|
155
|
+
ui/ # shared product primitives and patterns
|
|
156
|
+
docs/ # product, architecture, security, design, plans, and evidence
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
The daemon owns state and capability boundaries. The web app never receives raw provider credentials and never talks
|
|
160
|
+
to an agent, a shell or Git directly: every one of those crossings goes through the daemon.
|
|
161
|
+
|
|
162
|
+
## Roadmap
|
|
163
|
+
|
|
164
|
+
- [x] **M0 — Foundation:** monorepo, contracts, CI, public-readiness rules
|
|
165
|
+
- [x] **M1 — Walking skeleton:** CLI → daemon → authenticated browser UI
|
|
166
|
+
- [x] **M2 — Local kernel:** SQLite state, idempotent commands, append-only events, macOS/Windows gate
|
|
167
|
+
- [x] **M3 — Real task cockpit:** authenticated API client, persisted projects/work items, editing, EN/RU, activity
|
|
168
|
+
replay and secure reconnect guidance
|
|
169
|
+
- [x] **M4 — Mock delivery workflow:** restart-safe dispatch queue, Human Request, Decision, and resumable task
|
|
170
|
+
pipeline
|
|
171
|
+
- [x] **M5 — Budgets and recovery:** explicit limits, pause/resume, crash recovery
|
|
172
|
+
- [x] **M6 — Acceptance:** typed Review/QA evidence, criterion matrix, owner-only final approval, audit surface
|
|
173
|
+
- [ ] **M7 — Public checkpoint:** packaged launcher and clean-install gate are in place; remaining work is hardening
|
|
174
|
+
and the first published release
|
|
175
|
+
|
|
176
|
+
Real Codex and Claude Code execution has landed, and milestone E1 has since given it somewhere to work. Before
|
|
177
|
+
dispatching a work item's first agent stage, Loomrail cuts a Git worktree for that work item on a branch of its own and
|
|
178
|
+
runs the CLI there — for every stage but your own acceptance decision, because a review reads the change it judges and a
|
|
179
|
+
plan is worth more when it can read the code it plans against — so **the Codex adapter now serves all six stages** under
|
|
180
|
+
`codex exec -s workspace-write`. The Claude Code
|
|
181
|
+
adapter still declares DISCOVERY, PLAN and REVIEW only: its write path has never been exercised against the real CLI
|
|
182
|
+
here, and one adapter's evidence is not taken as proof about the other. A stage an adapter does not declare is refused
|
|
183
|
+
to you as a blocking question rather than dispatched, and Loomrail never enables a permission-bypass flag on any code
|
|
184
|
+
path.
|
|
185
|
+
|
|
186
|
+
Your own checkout is never the working directory. Worktrees are cut under the Loomrail data directory
|
|
187
|
+
(`<data>/workspaces/<project>/<work item>`), the branch is deleted only while it still is the one Loomrail cut, and a
|
|
188
|
+
workspace whose directory has disappeared is reconciled at startup instead of being quietly reused.
|
|
189
|
+
|
|
190
|
+
Everything downstream of the edit itself remains outside the current checkpoint: Loomrail commits nothing, pushes
|
|
191
|
+
nothing and merges nothing, so a stage's work stays on its worktree's branch for you to inspect and dispose of. Plugins,
|
|
192
|
+
remote mode and desktop packaging are outside it too. What comes next — project guardrails and extensibility — is
|
|
193
|
+
decomposed in the [post-Phase-0 plan](docs/plans/06-post-phase-0-decomposition.ru.md).
|
|
194
|
+
|
|
195
|
+
### Pointing Loomrail at a repository
|
|
196
|
+
|
|
197
|
+
A Project no longer has to be one of the two bundled demos. Open **Settings → Projects**, give it the absolute path
|
|
198
|
+
of a Git repository on this machine, and that repository becomes a Project you can create tasks against; the
|
|
199
|
+
directory's own name becomes the project name. The path has to be absolute — a relative one would resolve against
|
|
200
|
+
whatever directory the daemon happened to start in — and it has to be a repository's top level, because registering a
|
|
201
|
+
subdirectory would branch the repository enclosing it without you having chosen that.
|
|
202
|
+
|
|
203
|
+
Nothing stops you pointing it at this checkout, and that is deliberate. What keeps it safe is the shape of the work
|
|
204
|
+
rather than a refusal: the agent writes only inside a worktree cut outside the repository, your working copy, index
|
|
205
|
+
and checked-out branch are untouched, and nothing is ever pushed. Loomrail does add the worktree's bookkeeping and
|
|
206
|
+
its own `loomrail/…` ref to your `.git`, and creates one commit — the carry-in snapshot that branch starts from —
|
|
207
|
+
but it never moves or deletes a ref you made. Be aware of what travels with it, though — everything you have not committed is carried
|
|
208
|
+
into the worktree, including untracked files the repository does not ignore, and the agent has network access in that
|
|
209
|
+
same tree. The [threat model](docs/security/THREAT-MODEL.md) records this as an accepted risk rather than a solved one.
|
|
210
|
+
|
|
211
|
+
Once a stage has cut one, the task card shows the workspace itself: which repository it came from, the branch, the
|
|
212
|
+
base commit and the worktree path, so you can open the tree in your editor or run `git diff` against it yourself.
|
|
213
|
+
|
|
214
|
+
### Choosing a provider
|
|
215
|
+
|
|
216
|
+
One adapter serves every stage a daemon dispatches, for the life of the process. It is chosen by a single environment
|
|
217
|
+
variable, read once at startup:
|
|
218
|
+
|
|
219
|
+
| `LOOMRAIL_PROVIDER` | What runs |
|
|
220
|
+
| ------------------- | ------------------------------------------------------------------------------------- |
|
|
221
|
+
| unset, or `MOCK` | The deterministic mock adapter. No real agent runs; every stage completes on its own. |
|
|
222
|
+
| `CODEX` | The real `codex` CLI, as a child process. |
|
|
223
|
+
| `CLAUDE_CODE` | The real `claude` CLI, as a child process. |
|
|
224
|
+
|
|
225
|
+
The values are case-sensitive. A value Loomrail cannot read falls back to `MOCK` — a typo must not stop the daemon from
|
|
226
|
+
starting — but it is never silent: the launcher and the daemon log both name the value and the accepted spellings,
|
|
227
|
+
because the mock completes stages successfully and you would otherwise watch a whole delivery run believing a live agent
|
|
228
|
+
did it. The launcher also says when a selected adapter's CLI is not installed on this machine.
|
|
229
|
+
|
|
230
|
+
The CLIs authenticate themselves: Loomrail adds nothing to the child's environment and never handles your provider
|
|
231
|
+
credentials.
|
|
232
|
+
|
|
233
|
+
The task card shows the files in that worktree that differ from its starting snapshot and reads one unified diff only
|
|
234
|
+
when you expand that file. This is inspection, not Git authority: Loomrail still does not commit, push, or merge those
|
|
235
|
+
changes.
|
|
236
|
+
|
|
237
|
+
```bash
|
|
238
|
+
LOOMRAIL_PROVIDER=CODEX loomrail
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
## Development
|
|
242
|
+
|
|
243
|
+
```bash
|
|
244
|
+
pnpm verify
|
|
245
|
+
pnpm exec playwright install chromium
|
|
246
|
+
pnpm test:e2e
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
`pnpm verify` runs formatting, public-tree safety checks, linting, type checks, and the test suite. Changes to the CLI,
|
|
250
|
+
daemon session flow, or web shell should also pass the browser smoke test on both blocking platforms.
|
|
251
|
+
|
|
252
|
+
Start with [CONTRIBUTING.md](CONTRIBUTING.md). Product and engineering sources of truth:
|
|
253
|
+
|
|
254
|
+
- [Release guide](docs/RELEASE.md)
|
|
255
|
+
- [Master plan](docs/product/MASTER-PLAN.ru.md)
|
|
256
|
+
- [Product decisions](docs/product/PRODUCT-DECISIONS.ru.md)
|
|
257
|
+
- [Architecture overview](docs/architecture/OVERVIEW.md)
|
|
258
|
+
- [Phase 0 implementation plan](docs/plans/00-phase-0-implementation-plan.ru.md)
|
|
259
|
+
- [Threat model](docs/security/THREAT-MODEL.md)
|
|
260
|
+
- [Component system](docs/design/COMPONENT-SYSTEM.md)
|
|
261
|
+
- [Brand guide](docs/design/BRAND.md)
|
|
262
|
+
- [Localization contract](docs/design/LOCALIZATION.md)
|
|
263
|
+
|
|
264
|
+
## License
|
|
265
|
+
|
|
266
|
+
Licensed under the [Apache License 2.0](LICENSE).
|