dominus-sdk-nodejs 11.0.5 → 11.0.7

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 (59) hide show
  1. package/README.md +351 -351
  2. package/dist/index.d.ts +8 -0
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +7 -0
  5. package/dist/index.js.map +1 -1
  6. package/dist/namespaces/artifacts.d.ts.map +1 -1
  7. package/dist/namespaces/artifacts.js +13 -2
  8. package/dist/namespaces/artifacts.js.map +1 -1
  9. package/dist/namespaces/browser.d.ts +2 -0
  10. package/dist/namespaces/browser.d.ts.map +1 -1
  11. package/dist/namespaces/browser.js.map +1 -1
  12. package/dist/namespaces/recipes.d.ts +17 -1
  13. package/dist/namespaces/recipes.d.ts.map +1 -1
  14. package/dist/namespaces/recipes.js +23 -2
  15. package/dist/namespaces/recipes.js.map +1 -1
  16. package/dist/refs/grammar.d.ts +54 -0
  17. package/dist/refs/grammar.d.ts.map +1 -0
  18. package/dist/refs/grammar.js +179 -0
  19. package/dist/refs/grammar.js.map +1 -0
  20. package/dist/refs/resolve.d.ts +49 -0
  21. package/dist/refs/resolve.d.ts.map +1 -0
  22. package/dist/refs/resolve.js +129 -0
  23. package/dist/refs/resolve.js.map +1 -0
  24. package/dist/refs/types.d.ts +56 -0
  25. package/dist/refs/types.d.ts.map +1 -0
  26. package/dist/refs/types.js +15 -0
  27. package/dist/refs/types.js.map +1 -0
  28. package/docs/agent-guide/2026-06-27-0849-sdk-orient/00-reading-order.md +35 -35
  29. package/docs/agent-guide/2026-06-27-0849-sdk-orient/01-purpose-and-boundaries.md +48 -48
  30. package/docs/agent-guide/2026-06-27-0849-sdk-orient/02-repo-map-and-entrypoints.md +46 -46
  31. package/docs/agent-guide/2026-06-27-0849-sdk-orient/03-api-surface.md +59 -59
  32. package/docs/agent-guide/2026-06-27-0849-sdk-orient/04-data-state-and-storage.md +36 -36
  33. package/docs/agent-guide/2026-06-27-0849-sdk-orient/05-integrations-and-runtime.md +40 -40
  34. package/docs/agent-guide/2026-06-27-0849-sdk-orient/06-workflows-commands-and-ci.md +58 -58
  35. package/docs/agent-guide/2026-06-27-0849-sdk-orient/07-operations-release-and-live-proof.md +40 -40
  36. package/docs/agent-guide/2026-06-27-0849-sdk-orient/08-security-privacy-and-secrets.md +38 -38
  37. package/docs/agent-guide/2026-06-27-0849-sdk-orient/09-known-risks-and-debt.md +34 -34
  38. package/docs/agent-guide/2026-06-27-0849-sdk-orient/10-agent-playbook.md +48 -48
  39. package/docs/agent-guide/2026-08-04-sdk-nodejs/00-reading-order.md +11 -11
  40. package/docs/agent-guide/2026-08-04-sdk-nodejs/01-purpose-and-boundaries.md +14 -14
  41. package/docs/agent-guide/2026-08-04-sdk-nodejs/03-api-surface.md +16 -16
  42. package/docs/agent-guide/2026-08-04-sdk-nodejs/10-agent-playbook.md +14 -14
  43. package/docs/agent-guide/INDEX.md +14 -14
  44. package/docs/agent-guide/current.md +22 -22
  45. package/docs/architecture.md +119 -119
  46. package/docs/atlas/2026-07-24-1231-sdk-nodejs-blockers.md +15 -15
  47. package/docs/atlas/2026-07-24-1231-sdk-nodejs-proof-ladder.md +25 -25
  48. package/docs/atlas/2026-07-24-1231-sdk-nodejs-truthmap.md +43 -43
  49. package/docs/atlas/2026-08-04-sdk-nodejs-blockers.md +12 -12
  50. package/docs/atlas/2026-08-04-sdk-nodejs-proof-ladder.md +9 -9
  51. package/docs/atlas/2026-08-04-sdk-nodejs-truthmap.md +21 -21
  52. package/docs/atlas/INDEX.md +26 -26
  53. package/docs/janitor/2026-06-27-0849-sdk-orient-cleanup-audit.md +102 -102
  54. package/docs/janitor/2026-08-04-sdk-nodejs-cleanup-audit.md +14 -14
  55. package/docs/plans/2026-08-04-pending-work-fruition-summary.md +46 -46
  56. package/docs/routes-services.md +85 -80
  57. package/docs/usage-reference.md +713 -698
  58. package/docs/workflow-hard-cut-release.md +24 -24
  59. package/package.json +55 -55
@@ -1,25 +1,25 @@
1
- # Atlas Proof Ladder: dominus-sdk-nodejs
2
-
3
- ## Local Proof
4
-
5
- | Command | Expected signal | Status |
6
- |---|---|---|
7
- | `git status -sb` | Clean production branch @ `8f41170` | Observed via gather |
8
- | Test / typecheck | Pass | NOT RUN this pass |
9
-
10
- ## CI / Release Proof
11
-
12
- | Surface | Expected signal | Status |
13
- |---|---|---|
14
- | Repo deploy workflows | Green on production branch pushes | Not re-run this pass |
15
-
16
- ## Deploy / Live Proof
17
-
18
- | Surface | Expected signal | Status |
19
- |---|---|---|
20
- | Service health / package publish | Live or published artifact | Not probed this pass |
21
-
22
- ## Positive vs No-Regression
23
-
24
- - **Positive:** Atlas pack exists at HEAD `8f41170` with dated proof pointers.
25
- - **No-regression:** Do not “fix” docs by reverting recent behavioral commits listed in the truthmap log.
1
+ # Atlas Proof Ladder: dominus-sdk-nodejs
2
+
3
+ ## Local Proof
4
+
5
+ | Command | Expected signal | Status |
6
+ |---|---|---|
7
+ | `git status -sb` | Clean production branch @ `8f41170` | Observed via gather |
8
+ | Test / typecheck | Pass | NOT RUN this pass |
9
+
10
+ ## CI / Release Proof
11
+
12
+ | Surface | Expected signal | Status |
13
+ |---|---|---|
14
+ | Repo deploy workflows | Green on production branch pushes | Not re-run this pass |
15
+
16
+ ## Deploy / Live Proof
17
+
18
+ | Surface | Expected signal | Status |
19
+ |---|---|---|
20
+ | Service health / package publish | Live or published artifact | Not probed this pass |
21
+
22
+ ## Positive vs No-Regression
23
+
24
+ - **Positive:** Atlas pack exists at HEAD `8f41170` with dated proof pointers.
25
+ - **No-regression:** Do not “fix” docs by reverting recent behavioral commits listed in the truthmap log.
@@ -1,43 +1,43 @@
1
- # Atlas Truthmap: dominus-sdk-nodejs
2
-
3
- Generated: 2026-07-24 12:31 EDT
4
-
5
- Target repo: `C:\developer\codingroot\repos\dominus_active\dominus-sdk-nodejs`
6
-
7
- Branch/status: `## production...origin/production [behind 4]
8
- ?? _worktrees/`
9
- HEAD: `8f41170dc3bf2eda08195031ab2d956c127a7a34`
10
-
11
- ## Executive Truth
12
-
13
- - TypeScript/ESM SDK for Dominus platform services.
14
- - Production truth checked at `8f41170` on the repo's production branch after ff-pull when available.
15
- - Sample code surfaces: `src/index.ts`, `src/contracts/versioned-storage.ts`, `src/lib/cache.ts`, `src/lib/client.ts`, `src/lib/config.ts`, `src/lib/console-capture.ts`, `src/lib/conversation-format.ts`, `src/lib/crypto.ts`, `src/lib/errors.ts`, `src/lib/page-rules.ts`, `src/lib/schema-builder.ts`, `src/lib/trace.ts`.
16
- - Recent commits:
17
- - `8f41170 feat(db): hard-cut provisioning verify to capabilities`
18
- - `3d60ff8 Release SDK 7.3.0: dominus.db.verifyProvisioning (required-provisioning probe)`
19
- - `cd35f90 feat: browser session-capture fields on ensureRun (storageState, sessionSlotId, sessionArtifactRef)`
20
- - `563eca4 Release SDK 7.1.0: per-call seed/bootstrap timeouts + service-JWT force refresh`
21
- - `2a2d4d7 Release Node SDK Authority verdict API`
22
- - `ffaef8a docs: clarify routes-services.md namespace counts (#2)`
23
- - Agent-guide snapshot(s) 2026-06-27-0849 — verify vs HEAD commits.
24
-
25
- ## Claim Map
26
-
27
- | Claim | Status | Strongest evidence | Freshness | Disproves / weakens |
28
- |---|---|---|---|---|
29
- | Repo purpose matches README/CLAUDE | PRESENT | README/CLAUDE heads | HEAD | — |
30
- | Agent-guide fully current vs HEAD | STALE/CHECK | dated guide vs recent log | guide dates | Prefer code |
31
- | Local test matrix green | UNKNOWN | not run this pass | — | Do not claim green |
32
-
33
- ## Source Graph
34
-
35
- | Area | Code | Tests | Docs | Live/CI/deploy | Owner |
36
- |---|---|---|---|---|---|
37
- | Primary | code roots above | tests/ if present | README, CLAUDE, agent-guide | deploy workflows / wrangler / Cloud Run as applicable | maintainers |
38
-
39
- ## Agent Read Order
40
-
41
- 1. `CLAUDE.md` / `README.md`
42
- 2. Primary entry module(s)
43
- 3. This atlas when docs disagree with code
1
+ # Atlas Truthmap: dominus-sdk-nodejs
2
+
3
+ Generated: 2026-07-24 12:31 EDT
4
+
5
+ Target repo: `C:\developer\codingroot\repos\dominus_active\dominus-sdk-nodejs`
6
+
7
+ Branch/status: `## production...origin/production [behind 4]
8
+ ?? _worktrees/`
9
+ HEAD: `8f41170dc3bf2eda08195031ab2d956c127a7a34`
10
+
11
+ ## Executive Truth
12
+
13
+ - TypeScript/ESM SDK for Dominus platform services.
14
+ - Production truth checked at `8f41170` on the repo's production branch after ff-pull when available.
15
+ - Sample code surfaces: `src/index.ts`, `src/contracts/versioned-storage.ts`, `src/lib/cache.ts`, `src/lib/client.ts`, `src/lib/config.ts`, `src/lib/console-capture.ts`, `src/lib/conversation-format.ts`, `src/lib/crypto.ts`, `src/lib/errors.ts`, `src/lib/page-rules.ts`, `src/lib/schema-builder.ts`, `src/lib/trace.ts`.
16
+ - Recent commits:
17
+ - `8f41170 feat(db): hard-cut provisioning verify to capabilities`
18
+ - `3d60ff8 Release SDK 7.3.0: dominus.db.verifyProvisioning (required-provisioning probe)`
19
+ - `cd35f90 feat: browser session-capture fields on ensureRun (storageState, sessionSlotId, sessionArtifactRef)`
20
+ - `563eca4 Release SDK 7.1.0: per-call seed/bootstrap timeouts + service-JWT force refresh`
21
+ - `2a2d4d7 Release Node SDK Authority verdict API`
22
+ - `ffaef8a docs: clarify routes-services.md namespace counts (#2)`
23
+ - Agent-guide snapshot(s) 2026-06-27-0849 — verify vs HEAD commits.
24
+
25
+ ## Claim Map
26
+
27
+ | Claim | Status | Strongest evidence | Freshness | Disproves / weakens |
28
+ |---|---|---|---|---|
29
+ | Repo purpose matches README/CLAUDE | PRESENT | README/CLAUDE heads | HEAD | — |
30
+ | Agent-guide fully current vs HEAD | STALE/CHECK | dated guide vs recent log | guide dates | Prefer code |
31
+ | Local test matrix green | UNKNOWN | not run this pass | — | Do not claim green |
32
+
33
+ ## Source Graph
34
+
35
+ | Area | Code | Tests | Docs | Live/CI/deploy | Owner |
36
+ |---|---|---|---|---|---|
37
+ | Primary | code roots above | tests/ if present | README, CLAUDE, agent-guide | deploy workflows / wrangler / Cloud Run as applicable | maintainers |
38
+
39
+ ## Agent Read Order
40
+
41
+ 1. `CLAUDE.md` / `README.md`
42
+ 2. Primary entry module(s)
43
+ 3. This atlas when docs disagree with code
@@ -1,12 +1,12 @@
1
- # Blocker map: dominus-sdk-nodejs
2
-
3
- Generated: 2026-08-04 local.
4
-
5
- | Item | Status | Interpretation |
6
- |---|---|---|
7
- | Linked worktree reconciliation | Open | Timeline v9 and secret-presence v10 branches need one explicit candidate selection. |
8
- | Production branch freshness | Addressed for snapshot | Docs are based on current `origin/production` tip `0e68c79`; main checkout remains preserved. |
9
- | Package release version | Candidate-dependent | Class D publication requires a new version not already present in the registry. |
10
- | Hosted service parity | Ongoing | SDK contract proof should be paired with the corresponding Gateway/worker contracts. |
11
-
12
- This is a coordination map, not a negative judgment on the feature branches.
1
+ # Blocker map: dominus-sdk-nodejs
2
+
3
+ Generated: 2026-08-04 local.
4
+
5
+ | Item | Status | Interpretation |
6
+ |---|---|---|
7
+ | Linked worktree reconciliation | Open | Timeline v9 and secret-presence v10 branches need one explicit candidate selection. |
8
+ | Production branch freshness | Addressed for snapshot | Docs are based on current `origin/production` tip `0e68c79`; main checkout remains preserved. |
9
+ | Package release version | Candidate-dependent | Class D publication requires a new version not already present in the registry. |
10
+ | Hosted service parity | Ongoing | SDK contract proof should be paired with the corresponding Gateway/worker contracts. |
11
+
12
+ This is a coordination map, not a negative judgment on the feature branches.
@@ -1,9 +1,9 @@
1
- # Proof ladder: dominus-sdk-nodejs
2
-
3
- | Layer | Evidence | Audit result / next proof |
4
- |---|---|---|
5
- | Source map | README, package entry, namespaces, tests, publish workflow | Production snapshot mapped at `0e68c79`. |
6
- | Build/type proof | `npm run build`; `npm run test:types` | Passed on the production snapshot with the temporary release version. |
7
- | Runtime suite | `npm test` | 106 Node tests passed after `npm ci` in the isolated snapshot. Linked worktree feature lines were not merged in this pass. |
8
- | Registry publish | `publish-production.yml` | Production push targets new package version 10.0.1; registry check found that version absent. |
9
- | Service behavior | Gateway/worker contract evidence | SDK tests do not establish current hosted server behavior. |
1
+ # Proof ladder: dominus-sdk-nodejs
2
+
3
+ | Layer | Evidence | Audit result / next proof |
4
+ |---|---|---|
5
+ | Source map | README, package entry, namespaces, tests, publish workflow | Production snapshot mapped at `0e68c79`. |
6
+ | Build/type proof | `npm run build`; `npm run test:types` | Passed on the production snapshot with the temporary release version. |
7
+ | Runtime suite | `npm test` | 106 Node tests passed after `npm ci` in the isolated snapshot. Linked worktree feature lines were not merged in this pass. |
8
+ | Registry publish | `publish-production.yml` | Production push targets new package version 10.0.1; registry check found that version absent. |
9
+ | Service behavior | Gateway/worker contract evidence | SDK tests do not establish current hosted server behavior. |
@@ -1,21 +1,21 @@
1
- # Atlas truth map: dominus-sdk-nodejs
2
-
3
- Generated: 2026-08-04 local. Production snapshot: `0e68c79`.
4
-
5
- | Concern | Strongest source | Current truth |
6
- |---|---|---|
7
- | Package contract | `package.json`, `src/index.ts` | ESM package version 10.0.0 in the production snapshot, root export only, Node >=18. |
8
- | Namespace surface | `src/` and public export tests | Broad typed facades for gateway-first Dominus services. |
9
- | Workflow | workflow namespace and tests | Authority-backed `ensure` lifecycle is preferred over the retired saved-workflow chain. |
10
- | Timeline/archive | Authority and Logs namespaces | Timeline truth, archive status, bounded archive/repair/verify/prune helpers. |
11
- | Secret/admin | secret and admin namespaces | Safe presence grids/previews and persisted root-role reads without secret values. |
12
- | Gateway contracts | client/transport helpers and contract tests | Base64/text envelope, route transforms, typed errors, actor/per-call controls. |
13
- | Release | `publish-production.yml` | Production branch publishes the package to the configured registry. |
14
-
15
- ## Preserved local work
16
-
17
- Repo-local worktrees cover a timeline contract v9 line that retires the company
18
- query option after adding a target filter, and a secret-presence-grid v10 line
19
- that adds safe presence data, persisted root-role exposure, and code-point-aware
20
- preview counting. Reconciled/release branches carry those changes, while the
21
- main checkout was left untouched for this docs pass.
1
+ # Atlas truth map: dominus-sdk-nodejs
2
+
3
+ Generated: 2026-08-04 local. Production snapshot: `0e68c79`.
4
+
5
+ | Concern | Strongest source | Current truth |
6
+ |---|---|---|
7
+ | Package contract | `package.json`, `src/index.ts` | ESM package version 10.0.0 in the production snapshot, root export only, Node >=18. |
8
+ | Namespace surface | `src/` and public export tests | Broad typed facades for gateway-first Dominus services. |
9
+ | Workflow | workflow namespace and tests | Authority-backed `ensure` lifecycle is preferred over the retired saved-workflow chain. |
10
+ | Timeline/archive | Authority and Logs namespaces | Timeline truth, archive status, bounded archive/repair/verify/prune helpers. |
11
+ | Secret/admin | secret and admin namespaces | Safe presence grids/previews and persisted root-role reads without secret values. |
12
+ | Gateway contracts | client/transport helpers and contract tests | Base64/text envelope, route transforms, typed errors, actor/per-call controls. |
13
+ | Release | `publish-production.yml` | Production branch publishes the package to the configured registry. |
14
+
15
+ ## Preserved local work
16
+
17
+ Repo-local worktrees cover a timeline contract v9 line that retires the company
18
+ query option after adding a target filter, and a secret-presence-grid v10 line
19
+ that adds safe presence data, persisted root-role exposure, and code-point-aware
20
+ preview counting. Reconciled/release branches carry those changes, while the
21
+ main checkout was left untouched for this docs pass.
@@ -1,26 +1,26 @@
1
- # Atlas Index
2
-
3
- Last updated: 2026-08-04 local
4
-
5
- Latest snapshot:
6
- [truthmap](2026-08-04-sdk-nodejs-truthmap.md),
7
- [proof ladder](2026-08-04-sdk-nodejs-proof-ladder.md), and
8
- [blockers](2026-08-04-sdk-nodejs-blockers.md).
9
-
10
- ## Current Truth Owners
11
-
12
- | Area | Strongest source | Notes |
13
- |---|---|---|
14
- | Public package | `package.json`, `src/index.ts`, `dist/` build | One root export: `dominus-sdk-nodejs`; no subpath exports. |
15
- | Namespace APIs | `src/` | Auth, DB/DDL, files/stash, AI/runtime, browser, jobs, workflow, Authority, logs, platform, publisher, admin, and control-plane facades. |
16
- | Workflow lifecycle | `src/namespaces/workflow*`, Authority namespace | Authority-backed `workflow.ensure` is preferred; saved-workflow legacy chain is retired. |
17
- | Secret/admin surfaces | `src/namespaces/secrets*`, admin namespace | Safe presence/preview and persisted root-role surfaces avoid returning secret values. |
18
- | Runtime transport | shared gateway/client helpers in `src/` | Gateway-first route transforms, typed error/wire contracts, and per-call controls. |
19
- | Publish | `.github/workflows/publish-production.yml` | Registry package publication on the `production` lane. |
20
-
21
- ## Preserved local work
22
-
23
- The main checkout is clean in tracked files but has four repo-local linked
24
- worktrees: Authority timeline contract v9 and three secret-presence-grid
25
- reconciled/release lines. The high-level path for that work is in the pending
26
- summary; the implementation was not merged or modified here.
1
+ # Atlas Index
2
+
3
+ Last updated: 2026-08-04 local
4
+
5
+ Latest snapshot:
6
+ [truthmap](2026-08-04-sdk-nodejs-truthmap.md),
7
+ [proof ladder](2026-08-04-sdk-nodejs-proof-ladder.md), and
8
+ [blockers](2026-08-04-sdk-nodejs-blockers.md).
9
+
10
+ ## Current Truth Owners
11
+
12
+ | Area | Strongest source | Notes |
13
+ |---|---|---|
14
+ | Public package | `package.json`, `src/index.ts`, `dist/` build | One root export: `dominus-sdk-nodejs`; no subpath exports. |
15
+ | Namespace APIs | `src/` | Auth, DB/DDL, files/stash, AI/runtime, browser, jobs, workflow, Authority, logs, platform, publisher, admin, and control-plane facades. |
16
+ | Workflow lifecycle | `src/namespaces/workflow*`, Authority namespace | Authority-backed `workflow.ensure` is preferred; saved-workflow legacy chain is retired. |
17
+ | Secret/admin surfaces | `src/namespaces/secrets*`, admin namespace | Safe presence/preview and persisted root-role surfaces avoid returning secret values. |
18
+ | Runtime transport | shared gateway/client helpers in `src/` | Gateway-first route transforms, typed error/wire contracts, and per-call controls. |
19
+ | Publish | `.github/workflows/publish-production.yml` | Registry package publication on the `production` lane. |
20
+
21
+ ## Preserved local work
22
+
23
+ The main checkout is clean in tracked files but has four repo-local linked
24
+ worktrees: Authority timeline contract v9 and three secret-presence-grid
25
+ reconciled/release lines. The high-level path for that work is in the pending
26
+ summary; the implementation was not merged or modified here.
@@ -1,102 +1,102 @@
1
- # Janitor Cleanup Audit: dominus-sdk-nodejs
2
-
3
- Generated: 2026-06-27 08:49 local
4
- Target repo: C:\developer\codingroot\repos\dominus_active\dominus-sdk-nodejs
5
- Git root: C:\developer\codingroot\repos\dominus_active\dominus-sdk-nodejs
6
- Branch/status: `production` — clean before this pass (no tracked or untracked changes).
7
-
8
- ## Summary
9
-
10
- Wrote a source-backed agent-guide pack and wired it into `README.md` and
11
- `CLAUDE.md`. Corrected one proven-stale fact ("no committed automated tests")
12
- in three places. Auto-cleaned generated `dist/` (gitignored, reproducible).
13
- Everything left uncommitted per instructions. No tracked source, branches,
14
- worktrees, plans, or release artifacts deleted.
15
-
16
- ## Executive Actions Applied
17
-
18
- | Action | Path | Why safe | Verification |
19
- |---|---|---|---|
20
- | Wrote agent-guide pack | `docs/agent-guide/**` | New docs only; no source touched. | Files present; INDEX/current point at snapshot. |
21
- | Wrote cleanup audit | `docs/janitor/2026-06-27-0849-sdk-orient-cleanup-audit.md` | New doc only. | This file. |
22
- | Wired guide into README | `README.md` | Added small "Agent Guide" section near top; no other content changed. | `git diff README.md` is the one added block. |
23
- | Wired guide into CLAUDE | `CLAUDE.md` | Added "Agent Guide Pack" pointer near top. | `git diff CLAUDE.md`. |
24
- | Fixed stale tests fact | `CLAUDE.md`, `docs/architecture.md` | `tests/` has 24 committed files run by `npm test`; old "no committed tests" claim was provably false. | `ls tests` (24 files); `package.json scripts.test` lists them. |
25
- | Auto-clean generated build | `dist/` | Gitignored, untracked, reproducible via `npm run build`; `prepublishOnly` rebuilds it. | `git check-ignore dist` = ignored; `git ls-files dist` empty; post-delete `git status` shows no tracked change. |
26
-
27
- ## Docs Written
28
-
29
- | File | Purpose | Source-backed by |
30
- |---|---|---|
31
- | `docs/agent-guide/INDEX.md` | Stable entrypoint + snapshot history. | repo layout. |
32
- | `docs/agent-guide/current.md` | Latest snapshot pointer + top-5 refresh facts. | `package.json`, `src/index.ts`, `tests/`. |
33
- | `.../00-reading-order.md` | Read order + per-task source map + stale flags. | existing docs, `src/`. |
34
- | `.../01-purpose-and-boundaries.md` | Purpose, ownership, runtime class, boundary. | `package.json`, `CLAUDE.md`, workflows. |
35
- | `.../02-repo-map-and-entrypoints.md` | Directory map + entrypoints. | `find src`, `package.json`, `.github/workflows`. |
36
- | `.../03-api-surface.md` | 27 namespaces + auth/scope map. | `src/index.ts` wiring, `routes-services.md`. |
37
- | `.../04-data-state-and-storage.md` | Storage surfaces + in-process caches. | `docs/architecture.md` §2a, `src/lib/*`. |
38
- | `.../05-integrations-and-runtime.md` | Deps, gateway routing, env categories. | `package.json`, `CLAUDE.md`, `src/lib/config.ts`. |
39
- | `.../06-workflows-commands-and-ci.md` | Commands + CI lanes. | `package.json scripts`, `.github/workflows`. |
40
- | `.../07-operations-release-and-live-proof.md` | npm release lane + proof. | `publish-production.yml`, `package.json`, `workflow-hard-cut-release.md`. |
41
- | `.../08-security-privacy-and-secrets.md` | Auth boundaries, secret resolution. | `CLAUDE.md`, `src/lib/config.ts`, `.gitignore`. |
42
- | `.../09-known-risks-and-debt.md` | Stale docs, doc-drift, generated residue. | this audit, `docs/*`. |
43
- | `.../10-agent-playbook.md` | If-changing-X-read-Y + Kyle routing. | `CLAUDE.md`, `src/`. |
44
-
45
- ## Drift Findings
46
-
47
- | Finding | Evidence | Risk | Recommendation | Approval needed |
48
- |---|---|---|---|---|
49
- | "No committed automated tests" claim stale | `tests/` has 24 files; `package.json scripts.test` runs them | Low (misleads agents) | Fixed in CLAUDE.md + architecture.md §10 | Done |
50
- | Hand-maintained counts may drift | `routes-services.md` says "450 commands / 29 surfaces"; actual `src/namespaces/` = 27 files | Low | Noted in 09 + architecture §10; re-derive from source before quoting | No |
51
-
52
- ## Stale Or Conflicting Docs
53
-
54
- | Doc | Problem | Stronger source | Proposed action |
55
- |---|---|---|---|
56
- | `docs/architecture.md` §10 | claimed no committed tests | `tests/` + `package.json` | Fixed (replaced with count-drift note). |
57
- | `CLAUDE.md` Validation | "If tests are absent" framing | `tests/` (24 files) | Fixed to state tests are committed. |
58
- | `routes-services.md` counts | "29 namespace surfaces" vs 27 top-level files | `src/namespaces/` | Left as-is (counts include `ai.*` sub-namespaces + `auth` local helpers; not provably wrong). Flagged for re-derivation. |
59
-
60
- ## Orphan / Generated / Scratch Candidates
61
-
62
- | Path | Evidence | Proposed action | Safe now? |
63
- |---|---|---|---|
64
- | `dist/` | gitignored build output (~1.6 MB) | Deleted | Yes (done) |
65
- | `node_modules/` | gitignored installed deps | Leave; not in the auto-apply allowlist; reproducible via `npm ci` but may be in use by a dev session | Not auto-deleted |
66
-
67
- ## Auto-Cleanup Performed
68
-
69
- | Path | Evidence | Action | Verification |
70
- |---|---|---|---|
71
- | `dist/` | `git check-ignore dist` = ignored; `git ls-files dist` empty; reproducible via `npm run build` | `rm -rf dist` | Post-delete `git status` shows no tracked change; rebuild with `npm run build`. |
72
-
73
- ## Expert Review Queue
74
-
75
- | Candidate | Why expert should view it first | Suggested expert | First review question |
76
- |---|---|---|---|
77
- | `routes-services.md` "450 commands / 29 surfaces" reconciliation | Authoritative re-count of public commands vs. the maintained matrix touches the platform client contract surface | dominus-expert | Are the documented counts accurate against current `src/namespaces/*.ts`, and should they be regenerated by a script instead of hand-maintained? |
78
-
79
- ## Worktree / Branch / Plan Residue
80
-
81
- | Item | Evidence | Proposed action | Owner |
82
- |---|---|---|---|
83
- | None | Single repo dir; no `.git/worktrees` scratch, no stray plans found | None | — |
84
-
85
- ## Approval Queue
86
-
87
- - [ ] Delete `node_modules/` (reproducible via `npm ci`) — only if no dev session is using it — validate with `npm ci && npm test`.
88
-
89
- ## Not Touching
90
-
91
- - `dist/` rebuild — left for the developer to regenerate via `npm run build`.
92
- - `node_modules/` — installed deps; outside the granted auto-clean allowlist.
93
- - `docs/usage-reference.md` (~98 KB) — large reference, not rewritten; only flagged for count drift.
94
- - All tracked source, `CHANGELOG.md` history, CI workflows, branches.
95
-
96
- ## Follow-Up Skills
97
-
98
- | Need | Skill | First action |
99
- |---|---|---|
100
- | Reconcile documented command counts | dominus-expert | Re-count public commands against `src/namespaces/`. |
101
- | If truth scatters across code/docs/CI | kyle-atlas | Build `docs/atlas/INDEX.md`. |
102
- | Durable cross-repo facts | kyle-learn | Promote to `.claude/knowledge` if reused. |
1
+ # Janitor Cleanup Audit: dominus-sdk-nodejs
2
+
3
+ Generated: 2026-06-27 08:49 local
4
+ Target repo: C:\developer\codingroot\repos\dominus_active\dominus-sdk-nodejs
5
+ Git root: C:\developer\codingroot\repos\dominus_active\dominus-sdk-nodejs
6
+ Branch/status: `production` — clean before this pass (no tracked or untracked changes).
7
+
8
+ ## Summary
9
+
10
+ Wrote a source-backed agent-guide pack and wired it into `README.md` and
11
+ `CLAUDE.md`. Corrected one proven-stale fact ("no committed automated tests")
12
+ in three places. Auto-cleaned generated `dist/` (gitignored, reproducible).
13
+ Everything left uncommitted per instructions. No tracked source, branches,
14
+ worktrees, plans, or release artifacts deleted.
15
+
16
+ ## Executive Actions Applied
17
+
18
+ | Action | Path | Why safe | Verification |
19
+ |---|---|---|---|
20
+ | Wrote agent-guide pack | `docs/agent-guide/**` | New docs only; no source touched. | Files present; INDEX/current point at snapshot. |
21
+ | Wrote cleanup audit | `docs/janitor/2026-06-27-0849-sdk-orient-cleanup-audit.md` | New doc only. | This file. |
22
+ | Wired guide into README | `README.md` | Added small "Agent Guide" section near top; no other content changed. | `git diff README.md` is the one added block. |
23
+ | Wired guide into CLAUDE | `CLAUDE.md` | Added "Agent Guide Pack" pointer near top. | `git diff CLAUDE.md`. |
24
+ | Fixed stale tests fact | `CLAUDE.md`, `docs/architecture.md` | `tests/` has 24 committed files run by `npm test`; old "no committed tests" claim was provably false. | `ls tests` (24 files); `package.json scripts.test` lists them. |
25
+ | Auto-clean generated build | `dist/` | Gitignored, untracked, reproducible via `npm run build`; `prepublishOnly` rebuilds it. | `git check-ignore dist` = ignored; `git ls-files dist` empty; post-delete `git status` shows no tracked change. |
26
+
27
+ ## Docs Written
28
+
29
+ | File | Purpose | Source-backed by |
30
+ |---|---|---|
31
+ | `docs/agent-guide/INDEX.md` | Stable entrypoint + snapshot history. | repo layout. |
32
+ | `docs/agent-guide/current.md` | Latest snapshot pointer + top-5 refresh facts. | `package.json`, `src/index.ts`, `tests/`. |
33
+ | `.../00-reading-order.md` | Read order + per-task source map + stale flags. | existing docs, `src/`. |
34
+ | `.../01-purpose-and-boundaries.md` | Purpose, ownership, runtime class, boundary. | `package.json`, `CLAUDE.md`, workflows. |
35
+ | `.../02-repo-map-and-entrypoints.md` | Directory map + entrypoints. | `find src`, `package.json`, `.github/workflows`. |
36
+ | `.../03-api-surface.md` | 27 namespaces + auth/scope map. | `src/index.ts` wiring, `routes-services.md`. |
37
+ | `.../04-data-state-and-storage.md` | Storage surfaces + in-process caches. | `docs/architecture.md` §2a, `src/lib/*`. |
38
+ | `.../05-integrations-and-runtime.md` | Deps, gateway routing, env categories. | `package.json`, `CLAUDE.md`, `src/lib/config.ts`. |
39
+ | `.../06-workflows-commands-and-ci.md` | Commands + CI lanes. | `package.json scripts`, `.github/workflows`. |
40
+ | `.../07-operations-release-and-live-proof.md` | npm release lane + proof. | `publish-production.yml`, `package.json`, `workflow-hard-cut-release.md`. |
41
+ | `.../08-security-privacy-and-secrets.md` | Auth boundaries, secret resolution. | `CLAUDE.md`, `src/lib/config.ts`, `.gitignore`. |
42
+ | `.../09-known-risks-and-debt.md` | Stale docs, doc-drift, generated residue. | this audit, `docs/*`. |
43
+ | `.../10-agent-playbook.md` | If-changing-X-read-Y + Kyle routing. | `CLAUDE.md`, `src/`. |
44
+
45
+ ## Drift Findings
46
+
47
+ | Finding | Evidence | Risk | Recommendation | Approval needed |
48
+ |---|---|---|---|---|
49
+ | "No committed automated tests" claim stale | `tests/` has 24 files; `package.json scripts.test` runs them | Low (misleads agents) | Fixed in CLAUDE.md + architecture.md §10 | Done |
50
+ | Hand-maintained counts may drift | `routes-services.md` says "450 commands / 29 surfaces"; actual `src/namespaces/` = 27 files | Low | Noted in 09 + architecture §10; re-derive from source before quoting | No |
51
+
52
+ ## Stale Or Conflicting Docs
53
+
54
+ | Doc | Problem | Stronger source | Proposed action |
55
+ |---|---|---|---|
56
+ | `docs/architecture.md` §10 | claimed no committed tests | `tests/` + `package.json` | Fixed (replaced with count-drift note). |
57
+ | `CLAUDE.md` Validation | "If tests are absent" framing | `tests/` (24 files) | Fixed to state tests are committed. |
58
+ | `routes-services.md` counts | "29 namespace surfaces" vs 27 top-level files | `src/namespaces/` | Left as-is (counts include `ai.*` sub-namespaces + `auth` local helpers; not provably wrong). Flagged for re-derivation. |
59
+
60
+ ## Orphan / Generated / Scratch Candidates
61
+
62
+ | Path | Evidence | Proposed action | Safe now? |
63
+ |---|---|---|---|
64
+ | `dist/` | gitignored build output (~1.6 MB) | Deleted | Yes (done) |
65
+ | `node_modules/` | gitignored installed deps | Leave; not in the auto-apply allowlist; reproducible via `npm ci` but may be in use by a dev session | Not auto-deleted |
66
+
67
+ ## Auto-Cleanup Performed
68
+
69
+ | Path | Evidence | Action | Verification |
70
+ |---|---|---|---|
71
+ | `dist/` | `git check-ignore dist` = ignored; `git ls-files dist` empty; reproducible via `npm run build` | `rm -rf dist` | Post-delete `git status` shows no tracked change; rebuild with `npm run build`. |
72
+
73
+ ## Expert Review Queue
74
+
75
+ | Candidate | Why expert should view it first | Suggested expert | First review question |
76
+ |---|---|---|---|
77
+ | `routes-services.md` "450 commands / 29 surfaces" reconciliation | Authoritative re-count of public commands vs. the maintained matrix touches the platform client contract surface | dominus-expert | Are the documented counts accurate against current `src/namespaces/*.ts`, and should they be regenerated by a script instead of hand-maintained? |
78
+
79
+ ## Worktree / Branch / Plan Residue
80
+
81
+ | Item | Evidence | Proposed action | Owner |
82
+ |---|---|---|---|
83
+ | None | Single repo dir; no `.git/worktrees` scratch, no stray plans found | None | — |
84
+
85
+ ## Approval Queue
86
+
87
+ - [ ] Delete `node_modules/` (reproducible via `npm ci`) — only if no dev session is using it — validate with `npm ci && npm test`.
88
+
89
+ ## Not Touching
90
+
91
+ - `dist/` rebuild — left for the developer to regenerate via `npm run build`.
92
+ - `node_modules/` — installed deps; outside the granted auto-clean allowlist.
93
+ - `docs/usage-reference.md` (~98 KB) — large reference, not rewritten; only flagged for count drift.
94
+ - All tracked source, `CHANGELOG.md` history, CI workflows, branches.
95
+
96
+ ## Follow-Up Skills
97
+
98
+ | Need | Skill | First action |
99
+ |---|---|---|
100
+ | Reconcile documented command counts | dominus-expert | Re-count public commands against `src/namespaces/`. |
101
+ | If truth scatters across code/docs/CI | kyle-atlas | Build `docs/atlas/INDEX.md`. |
102
+ | Durable cross-repo facts | kyle-learn | Promote to `.claude/knowledge` if reused. |
@@ -1,14 +1,14 @@
1
- # Janitor cleanup audit: dominus-sdk-nodejs
2
-
3
- Generated: 2026-08-04 local.
4
-
5
- Refreshed the README and guide/atlas indexes, added a current reading-order
6
- pack, and mapped the root package surface, namespace ownership, lifecycle
7
- truth, secret/admin surfaces, and registry release path. Added a neutral
8
- pending-work summary for the preserved linked worktrees.
9
-
10
- No implementation branch or linked worktree was merged, rebased, deleted, or
11
- modified. Historical docs remain available. The Class D release metadata was
12
- bumped from 10.0.0 to 10.0.1 after verifying 10.0.1 was absent from the npm
13
- registry. After `npm ci` in the isolated snapshot, build, type tests, and the
14
- full 106-test runtime suite passed. `git diff --check` was run before commit.
1
+ # Janitor cleanup audit: dominus-sdk-nodejs
2
+
3
+ Generated: 2026-08-04 local.
4
+
5
+ Refreshed the README and guide/atlas indexes, added a current reading-order
6
+ pack, and mapped the root package surface, namespace ownership, lifecycle
7
+ truth, secret/admin surfaces, and registry release path. Added a neutral
8
+ pending-work summary for the preserved linked worktrees.
9
+
10
+ No implementation branch or linked worktree was merged, rebased, deleted, or
11
+ modified. Historical docs remain available. The Class D release metadata was
12
+ bumped from 10.0.0 to 10.0.1 after verifying 10.0.1 was absent from the npm
13
+ registry. After `npm ci` in the isolated snapshot, build, type tests, and the
14
+ full 106-test runtime suite passed. `git diff --check` was run before commit.
@@ -1,46 +1,46 @@
1
- # Pending work fruition summary: dominus-sdk-nodejs
2
-
3
- Generated: 2026-08-04 local. This note analyzes existing linked work without
4
- changing it.
5
-
6
- ## What is present
7
-
8
- The repository has four local linked worktrees around two related themes. The
9
- timeline contract v9 line adds a target query filter and retires the older
10
- company query option. The secret-presence-grid v10 lines add safe presence
11
- data, persisted root-role exposure, and preview code-point counting; reconciled
12
- and release branches carry the latest versions of that work. The main checkout
13
- was not modified and the current production snapshot is separate from those
14
- feature branches.
15
-
16
- ## Likely path to completion
17
-
18
- 1. Compare the timeline and secret-presence branches with current `production`
19
- and choose one coherent SDK contract candidate. Preserve backward
20
- compatibility only where the server contract still requires it.
21
- 2. Trace the timeline query change through Authority methods, generated/public
22
- types, tests, and README examples; confirm the retired company option is
23
- absent where intended and target filtering is consistently shaped.
24
- 3. Trace the secret-presence change through admin/secrets namespaces, preview
25
- counting, root-role projections, public types, and server endpoints. Keep
26
- all responses value-safe and avoid implying secret availability from
27
- indeterminate provider state.
28
- 4. Run build, type tests, the full Node test suite, and focused contract tests
29
- on the reconciled candidate. Then bump the package version once for the
30
- actual release candidate and verify the new version is absent from the
31
- registry.
32
- 5. Push the exact `production` candidate and use the publish workflow plus
33
- registry/version verification to establish package completion. Pair that
34
- with downstream Gateway/worker contract proof where the SDK behavior is
35
- load-bearing.
36
-
37
- ## Open questions
38
-
39
- - Whether timeline v9 and secret-presence v10 should ship together or as two
40
- independently versioned SDK releases.
41
- - Whether persisted root-role data is already available in every targeted
42
- server environment or needs a typed unavailable state in the SDK.
43
- - Which release branch is canonical among the reconciled and release worktrees.
44
-
45
- These questions are intentionally left for contract/release review; the
46
- existing implementation remains untouched.
1
+ # Pending work fruition summary: dominus-sdk-nodejs
2
+
3
+ Generated: 2026-08-04 local. This note analyzes existing linked work without
4
+ changing it.
5
+
6
+ ## What is present
7
+
8
+ The repository has four local linked worktrees around two related themes. The
9
+ timeline contract v9 line adds a target query filter and retires the older
10
+ company query option. The secret-presence-grid v10 lines add safe presence
11
+ data, persisted root-role exposure, and preview code-point counting; reconciled
12
+ and release branches carry the latest versions of that work. The main checkout
13
+ was not modified and the current production snapshot is separate from those
14
+ feature branches.
15
+
16
+ ## Likely path to completion
17
+
18
+ 1. Compare the timeline and secret-presence branches with current `production`
19
+ and choose one coherent SDK contract candidate. Preserve backward
20
+ compatibility only where the server contract still requires it.
21
+ 2. Trace the timeline query change through Authority methods, generated/public
22
+ types, tests, and README examples; confirm the retired company option is
23
+ absent where intended and target filtering is consistently shaped.
24
+ 3. Trace the secret-presence change through admin/secrets namespaces, preview
25
+ counting, root-role projections, public types, and server endpoints. Keep
26
+ all responses value-safe and avoid implying secret availability from
27
+ indeterminate provider state.
28
+ 4. Run build, type tests, the full Node test suite, and focused contract tests
29
+ on the reconciled candidate. Then bump the package version once for the
30
+ actual release candidate and verify the new version is absent from the
31
+ registry.
32
+ 5. Push the exact `production` candidate and use the publish workflow plus
33
+ registry/version verification to establish package completion. Pair that
34
+ with downstream Gateway/worker contract proof where the SDK behavior is
35
+ load-bearing.
36
+
37
+ ## Open questions
38
+
39
+ - Whether timeline v9 and secret-presence v10 should ship together or as two
40
+ independently versioned SDK releases.
41
+ - Whether persisted root-role data is already available in every targeted
42
+ server environment or needs a typed unavailable state in the SDK.
43
+ - Which release branch is canonical among the reconciled and release worktrees.
44
+
45
+ These questions are intentionally left for contract/release review; the
46
+ existing implementation remains untouched.