@awebai/oats 0.24.12 → 0.25.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 (52) hide show
  1. package/bin/oats.mjs +936 -2822
  2. package/docs/capabilities.md +136 -323
  3. package/docs/configuration.md +68 -533
  4. package/docs/design/2026-09-16-fresh-operator-walkthrough.md +19 -14
  5. package/docs/design/2026-09-16-portable-migration-evidence.md +2 -0
  6. package/docs/design/2026-09-16-portable-onboarding.md +4 -2
  7. package/docs/design/2026-09-20-redesign-program-board.md +1 -1
  8. package/docs/design/2026-09-20-workspace-and-portable-adoption-plan.md +2 -0
  9. package/docs/design/2026-09-23-simplified-workspace-model.md +711 -0
  10. package/docs/design/2026-09-23-workspace-module-contracts.md +309 -0
  11. package/docs/design/2026-09-23-workspace-v2-implementation-plan.md +65 -0
  12. package/docs/design/README.md +20 -8
  13. package/docs/design/operations-contract.md +1 -0
  14. package/docs/design/package-engine-contract.md +1 -1
  15. package/docs/design/package-runtime-api.md +1 -1
  16. package/docs/desktop-cli-api.md +386 -6
  17. package/docs/desktop-succession.md +3 -4
  18. package/docs/first-team.md +107 -224
  19. package/docs/implementation.md +6 -4
  20. package/docs/integrations.md +45 -44
  21. package/docs/knowledge-capability-authoring.md +10 -4
  22. package/docs/knowledge-migration.md +5 -4
  23. package/docs/knowledge-reference/package-craft.md +11 -3
  24. package/docs/knowledge.md +24 -8
  25. package/docs/layers.md +3 -3
  26. package/docs/oats-local.schema.json +50 -0
  27. package/docs/oats-membership.schema.json +23 -0
  28. package/docs/oats-workspace.schema.json +133 -48
  29. package/docs/official-marketplace.md +9 -6
  30. package/docs/packages.md +229 -440
  31. package/docs/rebuild-to-v2.md +233 -0
  32. package/docs/release-notes/v0.24.13.md +51 -0
  33. package/docs/release-notes/v0.25.0.md +99 -0
  34. package/docs/soul.schema.json +41 -68
  35. package/docs/souls-and-instances.md +175 -108
  36. package/docs/workspace-adoption.md +70 -345
  37. package/docs/workspaces.md +429 -119
  38. package/lib/core.mjs +419 -55
  39. package/lib/instance-resolution.mjs +312 -0
  40. package/lib/materialize.mjs +580 -0
  41. package/lib/packages.mjs +501 -1273
  42. package/lib/remote.mjs +639 -0
  43. package/lib/resolve.mjs +576 -0
  44. package/lib/schedule.mjs +194 -34
  45. package/lib/workspace.mjs +635 -0
  46. package/package.json +1 -1
  47. package/lib/portable-migration-artifacts.mjs +0 -135
  48. package/lib/portable-migration-evidence.mjs +0 -305
  49. package/lib/portable-migration-store.mjs +0 -199
  50. package/lib/portable-migration.mjs +0 -104
  51. package/lib/portable-onboarding-acceptance.mjs +0 -66
  52. package/lib/setup-expert-source.mjs +0 -100
@@ -1,5 +1,7 @@
1
1
  # Fresh operator walkthrough: working preparation versus pending launch
2
2
 
3
+ > **Superseded (2026-09-23).** The acceptance driver and helper this walkthrough runs (`test/portable-onboarding-public.acceptance.mjs`, `test/helpers/portable-onboarding-consumer.mjs`) were deleted with the workspace model v2; the 0.25 operator path is `oats onboard` → `oats sync` → `oats spawn` (`docs/first-team.md`). Read [2026-09-23-simplified-workspace-model.md](2026-09-23-simplified-workspace-model.md) (worked example) and [2026-09-23-workspace-module-contracts.md](2026-09-23-workspace-module-contracts.md) (normative) instead; kept as history.
4
+
3
5
  ## Scope of this evidence
4
6
 
5
7
  This is a **source-level integration walkthrough**, not a claim about an installed
@@ -20,24 +22,27 @@ backlink; inspection/preparation never adopts or contacts that workspace.
20
22
 
21
23
  ## Reproduce the pinned public consumer
22
24
 
23
- From the framework worktree, with the existing locked root dependencies installed
24
- and both exact core commits available in the local Git object database:
25
+ **No longer runnable.** The acceptance driver and its helper were deleted with
26
+ the workspace model v2; the command below fails with `Could not find
27
+ 'test/portable-onboarding-public.acceptance.mjs'`. The equivalent 0.25 evidence
28
+ is the CLI suite over the Northwind fixture (`test/onboard.test.mjs`,
29
+ `test/spawn-standalone.test.mjs`, `test/fixtures/northwind/build.mjs`).
25
30
 
26
- ```bash
27
- node --test --test-timeout=60000 test/portable-onboarding-public.acceptance.mjs
31
+ ```text
32
+ # historical (deleted): node --test --test-timeout=60000 test/portable-onboarding-public.acceptance.mjs
28
33
  ```
29
34
 
30
- This explicit acceptance driver is separate from the default `*.test.mjs` suite:
35
+ This explicit acceptance driver was separate from the default `*.test.mjs` suite:
31
36
  a shallow checkout or source tarball need not contain a historical cross-branch
32
- commit. An explicit run **fails** if the pin or matching dependency lock is absent;
33
- it never silently skips, fetches a moving branch, substitutes current core or
34
- strips unsupported request fields.
35
-
36
- `test/helpers/portable-onboarding-consumer.mjs` archives committed core objects
37
- into owned ignored `stage/onboarding-consumer-*` scratch and verifies the pin and
38
- held-patch exclusion. It links only this worktree's dependencies after comparing
39
- the complete npm lock. No working files from another agent are loaded and no Git
40
- worktree/branch is added, reset or merged. Only the fixture's scratch is removed
37
+ commit. An explicit run **failed** if the pin or matching dependency lock was absent;
38
+ it never silently skipped, fetched a moving branch, substituted current core or
39
+ stripped unsupported request fields.
40
+
41
+ `test/helpers/portable-onboarding-consumer.mjs` (deleted) archived committed core objects
42
+ into owned ignored `stage/onboarding-consumer-*` scratch and verified the pin and
43
+ held-patch exclusion. It linked only this worktree's dependencies after comparing
44
+ the complete npm lock. No working files from another agent were loaded and no Git
45
+ worktree/branch was added, reset or merged. Only the fixture's scratch was removed
41
46
  on completion.
42
47
 
43
48
  The test runs real native Git observations with isolated host configuration and
@@ -1,5 +1,7 @@
1
1
  # Portable migration evidence reader and planner
2
2
 
3
+ > **Superseded (2026-09-23).** The modules this note describes (`lib/portable-migration-evidence.mjs`, `lib/portable-migration.mjs`, `lib/portable-migration-store.mjs`, `lib/portable-migration-artifacts.mjs`, `lib/legacy-lock-codec.mjs`) were deleted with the workspace model v2 — there is no migration (decision 5/15: a 0.24 lock is `E_LOCK_SCHEMA`, not evidence). Read [2026-09-23-simplified-workspace-model.md](2026-09-23-simplified-workspace-model.md) (worked example) and [2026-09-23-workspace-module-contracts.md](2026-09-23-workspace-module-contracts.md) (normative) instead; kept as history.
4
+
3
5
  16 September 2026. This is the first read-only implementation slice of the
4
6
  Portable Souls consumer migration. The retention contract and the fifteen
5
7
  binding decisions in `2026-09-15-portable-souls-handoff.md` remain authoritative.
@@ -1,5 +1,7 @@
1
1
  # Portable fresh onboarding and source discovery
2
2
 
3
+ > **Superseded (2026-09-23).** The 0.24 onboarding facade this note describes (`lib/portable-onboarding-acceptance.mjs`, `test/portable-onboarding-public.acceptance.mjs`, source editions, exports) was deleted with the workspace model v2; the 0.25 bootstrap is `oats onboard [<dir>] --workspace <ref>` (contract §6, `docs/desktop-cli-api.md`). Read [2026-09-23-simplified-workspace-model.md](2026-09-23-simplified-workspace-model.md) (worked example) and [2026-09-23-workspace-module-contracts.md](2026-09-23-workspace-module-contracts.md) (normative) instead; kept as history.
4
+
3
5
  16 September 2026. This module supports a controlled fresh setup path while
4
6
  historical in-place migration is deferred. It does not alter the Portable Souls
5
7
  architecture or weaken the existing partial/unknown evidence safeguards.
@@ -109,7 +111,7 @@ onboarding CLI is still separate integration work.
109
111
 
110
112
  ## Fresh acceptance driver
111
113
 
112
- `lib/portable-onboarding-acceptance.mjs` keeps acceptance above the same facade:
114
+ `lib/portable-onboarding-acceptance.mjs` (deleted with v2) kept acceptance above the same facade:
113
115
 
114
116
  - `compareFreshSourceAcceptance({organization,standalone})` accepts only issued,
115
117
  ready inspections and proves qualified identity, exact commit, export and
@@ -147,7 +149,7 @@ the helper does not claim CLI router availability.
147
149
 
148
150
  ## Pinned real public consumer
149
151
 
150
- `test/portable-onboarding-public.acceptance.mjs` additionally executes the real
152
+ `test/portable-onboarding-public.acceptance.mjs` (deleted with v2) additionally executed the real
151
153
  public preparation/approval/retained-inspection APIs archived from exact core
152
154
  `c5c6a3c9171e424a36a1bdbf3932b9319a3c6c72`, without merging its branch. It uses
153
155
  isolated local Git transport, temporary deployments and a declared inert fixture
@@ -2,7 +2,7 @@
2
2
 
3
3
  **Purpose:** the one accurate view of every work stream in the redesign, what is on main, what is in flight, who owns it, and what blocks it. Lead: `oats-expert` (redesign lead). Updated whenever anything merges, is returned, or reality changes. Older per-lane boards are superseded by this file.
4
4
 
5
- **Last update:** 2026-09-22 21:40Z · K7b on main (PR89 `e808fbfc`; PR90 `17182cdb` open-time O_NOFOLLOW+fstat guard + DTO pins) · **K6h PR91 → main `dcd2bc89`**: kernel-field neutrality + receipt exclusions now opt-in for instance homes only (work/recovery trees fully significant) · **7b wiring head = `dcd2bc89`** · engineer wiring 7b → 8 · 0.24.12 after 7b Desktop PR · open: K11, attach-knowledge, auto-PR, branch enumeration
5
+ **Last update:** 2026-09-23 17:40Z · **Workspace model v2 phases A–C ON MAIN (`59ae22df`, PR99) → `v0.25.0` tagged (release run in flight)** · Phase D next (framework repos as the first workspace; six expert souls; `oats.core`/`oats.setup` rewrite) · ⏸ parity pipeline still paused except 10B-0 (→ 0.24.14 when the engineer hands off; note: 0.24.14 must be cut from the 0.24 line, not main).
6
6
 
7
7
  Legend: ✅ on main/published · 🔄 in flight (PR/branch) · 🟡 preserved, not adopted · ⬜ not started · ⛔ blocked
8
8
 
@@ -4,6 +4,8 @@
4
4
 
5
5
  **Status:** Phase1 implementation authorised by the human, using the existing developers under lead supervision/review. The workspace home is confirmed as `oats`; `oats-dev` remains development capabilities. This does not claim completed conversion or authorise unspecified new contracts, credential operations or live deployment mutations.
6
6
 
7
+ > **2026-09-23 — direction change, read first.** Phases 1–3 delivered as written (workspace on Git, five souls + central knowledge, all contract-bearing Desktop parity slices, releases 0.24.7–0.24.13). Reviewing the result, the human judged the *declaration model* itself too heavy and, in one sitting, accepted a simplified **workspace model v2**: one workspace per org; reciprocal membership as the only gate and as the trust decision; a soul says `from:` (member repo | `here` | `package`) — a location, never a version; packages are the only versioned thing; **nothing is installed** — every capability is copied whole into the instance at spawn; discovery over Git remotes; teams as labels; harnesses start normally. Record: `agents/oats-expert/soul/knowledge/decisions/workspace-model-v2.md`; worked example: [2026-09-23-simplified-workspace-model.md](2026-09-23-simplified-workspace-model.md). **Consequences for this plan:** P1.3's `oats.yaml` export indexes and P1.4's `oats-config.yaml` activation are superseded (→ `oats-membership.yaml`, derived activation); D1/D4 stand (`oats.core` becomes `from: package` by default; the catalog stays as discovery); D2's "explicit `oats.core` on every soul" is met by the workspace default; D3 gains the `<name>-workspace/` convention and clone-then-spawn. **No migration** — clean v2, the framework's own repos are the first workspace. A Phase 4 implementation plan is proposed to the human before any `lib/`/`bin/` change; the Desktop parity pipeline is paused meanwhile except for the in-flight 10B-0 security fix.
8
+
7
9
  ## Goal and order
8
10
 
9
11
  1. Put OATS development onto the Git-workspace and Portable Souls architecture: a real shared workspace definition, qualified repository exports, by-reference sources and usable local deployments.