dominus-sdk-nodejs 11.0.2 → 11.0.5
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/README.md +351 -371
- package/dist/contract/index.d.ts +3 -0
- package/dist/contract/index.d.ts.map +1 -0
- package/dist/contract/index.js +3 -0
- package/dist/contract/index.js.map +1 -0
- package/dist/contract/node-envelope.d.ts +12 -0
- package/dist/contract/node-envelope.d.ts.map +1 -0
- package/dist/contract/node-envelope.js +16 -0
- package/dist/contract/node-envelope.js.map +1 -0
- package/dist/contract/node-projections.d.ts +15 -0
- package/dist/contract/node-projections.d.ts.map +1 -0
- package/dist/contract/node-projections.js +4 -0
- package/dist/contract/node-projections.js.map +1 -0
- package/dist/lib/config.d.ts +3 -2
- package/dist/lib/config.d.ts.map +1 -1
- package/dist/lib/config.js +4 -3
- package/dist/lib/config.js.map +1 -1
- package/dist/lib/errors.d.ts +7 -0
- package/dist/lib/errors.d.ts.map +1 -1
- package/dist/lib/errors.js +53 -0
- package/dist/lib/errors.js.map +1 -1
- package/dist/lib/recovery-action.d.ts +4 -0
- package/dist/lib/recovery-action.d.ts.map +1 -0
- package/dist/lib/recovery-action.js +29 -0
- package/dist/lib/recovery-action.js.map +1 -0
- package/dist/namespaces/portal.d.ts +10 -0
- package/dist/namespaces/portal.d.ts.map +1 -1
- package/dist/namespaces/portal.js +11 -0
- package/dist/namespaces/portal.js.map +1 -1
- package/dist/namespaces/secrets.d.ts +5 -1
- package/dist/namespaces/secrets.d.ts.map +1 -1
- package/dist/namespaces/secrets.js +15 -1
- package/dist/namespaces/secrets.js.map +1 -1
- package/docs/agent-guide/2026-06-27-0849-sdk-orient/00-reading-order.md +35 -35
- package/docs/agent-guide/2026-06-27-0849-sdk-orient/01-purpose-and-boundaries.md +48 -48
- package/docs/agent-guide/2026-06-27-0849-sdk-orient/02-repo-map-and-entrypoints.md +46 -46
- package/docs/agent-guide/2026-06-27-0849-sdk-orient/03-api-surface.md +59 -59
- package/docs/agent-guide/2026-06-27-0849-sdk-orient/04-data-state-and-storage.md +36 -36
- package/docs/agent-guide/2026-06-27-0849-sdk-orient/05-integrations-and-runtime.md +40 -40
- package/docs/agent-guide/2026-06-27-0849-sdk-orient/06-workflows-commands-and-ci.md +58 -58
- package/docs/agent-guide/2026-06-27-0849-sdk-orient/07-operations-release-and-live-proof.md +40 -40
- package/docs/agent-guide/2026-06-27-0849-sdk-orient/08-security-privacy-and-secrets.md +38 -38
- package/docs/agent-guide/2026-06-27-0849-sdk-orient/09-known-risks-and-debt.md +34 -34
- package/docs/agent-guide/2026-06-27-0849-sdk-orient/10-agent-playbook.md +48 -48
- package/docs/agent-guide/2026-08-04-sdk-nodejs/00-reading-order.md +11 -11
- package/docs/agent-guide/2026-08-04-sdk-nodejs/01-purpose-and-boundaries.md +14 -14
- package/docs/agent-guide/2026-08-04-sdk-nodejs/03-api-surface.md +16 -16
- package/docs/agent-guide/2026-08-04-sdk-nodejs/10-agent-playbook.md +14 -14
- package/docs/agent-guide/INDEX.md +14 -14
- package/docs/agent-guide/current.md +22 -22
- package/docs/architecture.md +119 -119
- package/docs/atlas/2026-07-24-1231-sdk-nodejs-blockers.md +15 -15
- package/docs/atlas/2026-07-24-1231-sdk-nodejs-proof-ladder.md +25 -25
- package/docs/atlas/2026-07-24-1231-sdk-nodejs-truthmap.md +43 -43
- package/docs/atlas/2026-08-04-sdk-nodejs-blockers.md +12 -12
- package/docs/atlas/2026-08-04-sdk-nodejs-proof-ladder.md +9 -9
- package/docs/atlas/2026-08-04-sdk-nodejs-truthmap.md +21 -21
- package/docs/atlas/INDEX.md +26 -26
- package/docs/janitor/2026-06-27-0849-sdk-orient-cleanup-audit.md +102 -102
- package/docs/janitor/2026-08-04-sdk-nodejs-cleanup-audit.md +14 -14
- package/docs/migration-error-base.md +115 -0
- package/docs/plans/2026-08-04-pending-work-fruition-summary.md +46 -46
- package/docs/routes-services.md +80 -80
- package/docs/usage-reference.md +698 -698
- package/docs/workflow-hard-cut-release.md +24 -24
- package/package.json +55 -55
package/docs/architecture.md
CHANGED
|
@@ -1,119 +1,119 @@
|
|
|
1
|
-
# SDK Architecture
|
|
2
|
-
|
|
3
|
-
This document describes how `dominus-sdk-nodejs` is structured and how requests flow from namespace methods to backend services.
|
|
4
|
-
|
|
5
|
-
## 1. Public Surface
|
|
6
|
-
|
|
7
|
-
- Entry point: `src/index.ts`
|
|
8
|
-
- Singleton export: `dominus`
|
|
9
|
-
- Public API composition:
|
|
10
|
-
- Namespace properties (`dominus.auth`, `dominus.db`, `dominus.ai`, ...)
|
|
11
|
-
- Root shortcuts for common operations (`get`, `upsert`, `listTables`, `queryTable`, `addTable`, etc.)
|
|
12
|
-
- Utility exports (errors, crypto helpers, cache utilities, JWT helpers)
|
|
13
|
-
|
|
14
|
-
## 2. Layering
|
|
15
|
-
|
|
16
|
-
- Namespace layer (`src/namespaces/*`)
|
|
17
|
-
- Maps method calls to concrete API routes
|
|
18
|
-
- Translates ergonomic SDK params to backend payload shape
|
|
19
|
-
- Minimal orchestration and convenience wrappers
|
|
20
|
-
- Transport layer (`src/lib/client.ts`)
|
|
21
|
-
- Auth token selection (service JWT vs user JWT)
|
|
22
|
-
- Request encoding/decoding protocol
|
|
23
|
-
- Retries, timeout handling, circuit breaker checks
|
|
24
|
-
- SSE streaming and binary upload/download support
|
|
25
|
-
- Support libraries (`src/lib/*`)
|
|
26
|
-
- `cache.ts`: encrypted in-memory cache + circuit breaker primitives
|
|
27
|
-
- `errors.ts`: typed SDK errors
|
|
28
|
-
- `config.ts`: env/config resolution
|
|
29
|
-
- `console-capture.ts`: optional console forwarding to logs
|
|
30
|
-
- `page-rules.ts`, `user-session.ts`: local portal/session acceleration
|
|
31
|
-
|
|
32
|
-
## 2a. Storage layer positioning
|
|
33
|
-
|
|
34
|
-
`dominus.stash.*` is the **primary storage surface**. Applications store named-kind data through Stash and the kind registry routes each kind to the right backend; callers address data by what it *is* (`kind` + `scope` + `key`), not by which primitive holds it. The primitive namespaces (`redis`, `db`, `files`) and the addressed `artifacts` helpers remain as building blocks — they are not deprecated and are never removed — but they are rarely targeted directly for application data.
|
|
35
|
-
|
|
36
|
-
This is the **Two-Layer Storage Rule**: applications store named-kind data via Stash; primitives are used directly only for ephemera (locks, queues, cache) or when building a kernel backend.
|
|
37
|
-
|
|
38
|
-
| Your data | Use | Why |
|
|
39
|
-
|---|---|---|
|
|
40
|
-
| Named, durable data of a registered kind (artifacts, conversations, configs, recipes, secrets) | `dominus.stash.*` | Primary surface; the kind registry routes to the right backend and policy. |
|
|
41
|
-
| A direct `ar://`-addressed artifact workflow (you already hold a canonical ref) | `dominus.artifacts.*` | Escape hatch for explicit Artifact V2 addressing; prefer a Stash `artifact-v2`-backed kind for new code. |
|
|
42
|
-
| Locks, queues, rate counters, short-lived cache — ephemera | `dominus.redis.*` | Building block for ephemeral state; named data belongs in Stash. |
|
|
43
|
-
| Building a new kernel backend or a documented migration fallback | primitives (`redis`, `db`, `files`) | The lowest layer; not the place for ordinary application data. |
|
|
44
|
-
|
|
45
|
-
## 3. Request Lifecycle
|
|
46
|
-
|
|
47
|
-
1. Caller invokes namespace method.
|
|
48
|
-
2. Namespace builds request options (`endpoint`, `method`, `body`, `useGateway`, optional `userToken`).
|
|
49
|
-
3. `DominusClient` resolves auth context:
|
|
50
|
-
- if `userToken` provided: uses caller token
|
|
51
|
-
- otherwise: ensures service JWT exists (PSK -> `/jwt/mint`, cached)
|
|
52
|
-
4. Request payload is serialized to JSON, then base64-encoded for Dominus wire protocol.
|
|
53
|
-
5. HTTP request is sent.
|
|
54
|
-
6. Response body is decoded from base64 and parsed.
|
|
55
|
-
7. Errors are mapped to SDK error types.
|
|
56
|
-
|
|
57
|
-
## 4. Routing Model
|
|
58
|
-
|
|
59
|
-
- Namespace code generally targets `/api/*` endpoints.
|
|
60
|
-
- For methods with `useGateway: true`, client route transform maps `/api/*` to gateway `/svc/*` dispatch paths.
|
|
61
|
-
- Some methods intentionally use direct fetch paths (for example health checks/JWKS fetch).
|
|
62
|
-
|
|
63
|
-
See [routes-services.md](./routes-services.md) for full route/service assessment.
|
|
64
|
-
|
|
65
|
-
## 5. Auth and Token Handling
|
|
66
|
-
|
|
67
|
-
### Service token flow
|
|
68
|
-
|
|
69
|
-
- Input: `DOMINUS_TOKEN` (PSK)
|
|
70
|
-
- Client exchanges PSK for short-lived JWT via gateway auth route.
|
|
71
|
-
- JWT is cached with refresh buffer and refresh mutex to avoid thundering herd under concurrency.
|
|
72
|
-
|
|
73
|
-
### User token flow
|
|
74
|
-
|
|
75
|
-
- Methods that accept `userToken` pass caller JWT through unchanged.
|
|
76
|
-
- Backend performs authorization checks for the user context.
|
|
77
|
-
|
|
78
|
-
### Local JWT utilities
|
|
79
|
-
|
|
80
|
-
- `verifyJwtLocally`, `isJwtValid`, and `mintSelectedScopeJwt` are exported from `src/lib/client.ts`. Selected-scope targeting is now the only supported SDK helper vocabulary.
|
|
81
|
-
- `mintSelectedScopeJwt(targetOrgId, targetEnv)` is the canonical selected-scope mint helper; the live `/jwt/mint` contract keys selected scope off org plus environment, not a shared-routing flag.
|
|
82
|
-
- `auth.getJwks` fetches public keys and caches them.
|
|
83
|
-
- `auth.validateJwt` performs local payload checks/expiry validation.
|
|
84
|
-
|
|
85
|
-
## 6. Caching and Resilience
|
|
86
|
-
|
|
87
|
-
- Encrypted in-memory cache used for selected short-lived values (JWT, portal/session-related caches).
|
|
88
|
-
- Circuit breaker support exists in transport/cache layer.
|
|
89
|
-
- Retry with backoff is applied for transient request failures and mint flow.
|
|
90
|
-
|
|
91
|
-
## 7. Streaming and Binary Paths
|
|
92
|
-
|
|
93
|
-
- SSE: `streamRequest()` in client, used by AI streaming methods.
|
|
94
|
-
- Multipart binary upload: `binaryUpload()`.
|
|
95
|
-
- Binary download to `Buffer`: `binaryDownload()`.
|
|
96
|
-
|
|
97
|
-
## 8. Speech APIs
|
|
98
|
-
|
|
99
|
-
Speech routes are owned by agent-runtime through the `dominus.ai` namespace:
|
|
100
|
-
|
|
101
|
-
- `dominus.ai.stt(audio, options?)` -> `POST /api/agent/stt`
|
|
102
|
-
- `dominus.ai.tts(text, options?)` -> `POST /api/agent/tts`
|
|
103
|
-
|
|
104
|
-
The legacy streaming STT namespace (`dominus.stt`) is retired in hard cutover.
|
|
105
|
-
|
|
106
|
-
## 9. Documentation Topology
|
|
107
|
-
|
|
108
|
-
Canonical documentation set for this repository:
|
|
109
|
-
|
|
110
|
-
- [README.md](../README.md): overview and usage entry
|
|
111
|
-
- [CLAUDE.md](../CLAUDE.md): agent conventions for this repo
|
|
112
|
-
- [usage-reference.md](./usage-reference.md): exhaustive namespaced command reference
|
|
113
|
-
- [routes-services.md](./routes-services.md): service and endpoint assessment
|
|
114
|
-
|
|
115
|
-
## 10. Known Gaps
|
|
116
|
-
|
|
117
|
-
- The hand-maintained command/namespace counts in `routes-services.md` and
|
|
118
|
-
`usage-reference.md` can drift from source; re-derive from `src/namespaces/*.ts`
|
|
119
|
-
and `src/index.ts` before quoting them.
|
|
1
|
+
# SDK Architecture
|
|
2
|
+
|
|
3
|
+
This document describes how `dominus-sdk-nodejs` is structured and how requests flow from namespace methods to backend services.
|
|
4
|
+
|
|
5
|
+
## 1. Public Surface
|
|
6
|
+
|
|
7
|
+
- Entry point: `src/index.ts`
|
|
8
|
+
- Singleton export: `dominus`
|
|
9
|
+
- Public API composition:
|
|
10
|
+
- Namespace properties (`dominus.auth`, `dominus.db`, `dominus.ai`, ...)
|
|
11
|
+
- Root shortcuts for common operations (`get`, `upsert`, `listTables`, `queryTable`, `addTable`, etc.)
|
|
12
|
+
- Utility exports (errors, crypto helpers, cache utilities, JWT helpers)
|
|
13
|
+
|
|
14
|
+
## 2. Layering
|
|
15
|
+
|
|
16
|
+
- Namespace layer (`src/namespaces/*`)
|
|
17
|
+
- Maps method calls to concrete API routes
|
|
18
|
+
- Translates ergonomic SDK params to backend payload shape
|
|
19
|
+
- Minimal orchestration and convenience wrappers
|
|
20
|
+
- Transport layer (`src/lib/client.ts`)
|
|
21
|
+
- Auth token selection (service JWT vs user JWT)
|
|
22
|
+
- Request encoding/decoding protocol
|
|
23
|
+
- Retries, timeout handling, circuit breaker checks
|
|
24
|
+
- SSE streaming and binary upload/download support
|
|
25
|
+
- Support libraries (`src/lib/*`)
|
|
26
|
+
- `cache.ts`: encrypted in-memory cache + circuit breaker primitives
|
|
27
|
+
- `errors.ts`: typed SDK errors
|
|
28
|
+
- `config.ts`: env/config resolution
|
|
29
|
+
- `console-capture.ts`: optional console forwarding to logs
|
|
30
|
+
- `page-rules.ts`, `user-session.ts`: local portal/session acceleration
|
|
31
|
+
|
|
32
|
+
## 2a. Storage layer positioning
|
|
33
|
+
|
|
34
|
+
`dominus.stash.*` is the **primary storage surface**. Applications store named-kind data through Stash and the kind registry routes each kind to the right backend; callers address data by what it *is* (`kind` + `scope` + `key`), not by which primitive holds it. The primitive namespaces (`redis`, `db`, `files`) and the addressed `artifacts` helpers remain as building blocks — they are not deprecated and are never removed — but they are rarely targeted directly for application data.
|
|
35
|
+
|
|
36
|
+
This is the **Two-Layer Storage Rule**: applications store named-kind data via Stash; primitives are used directly only for ephemera (locks, queues, cache) or when building a kernel backend.
|
|
37
|
+
|
|
38
|
+
| Your data | Use | Why |
|
|
39
|
+
|---|---|---|
|
|
40
|
+
| Named, durable data of a registered kind (artifacts, conversations, configs, recipes, secrets) | `dominus.stash.*` | Primary surface; the kind registry routes to the right backend and policy. |
|
|
41
|
+
| A direct `ar://`-addressed artifact workflow (you already hold a canonical ref) | `dominus.artifacts.*` | Escape hatch for explicit Artifact V2 addressing; prefer a Stash `artifact-v2`-backed kind for new code. |
|
|
42
|
+
| Locks, queues, rate counters, short-lived cache — ephemera | `dominus.redis.*` | Building block for ephemeral state; named data belongs in Stash. |
|
|
43
|
+
| Building a new kernel backend or a documented migration fallback | primitives (`redis`, `db`, `files`) | The lowest layer; not the place for ordinary application data. |
|
|
44
|
+
|
|
45
|
+
## 3. Request Lifecycle
|
|
46
|
+
|
|
47
|
+
1. Caller invokes namespace method.
|
|
48
|
+
2. Namespace builds request options (`endpoint`, `method`, `body`, `useGateway`, optional `userToken`).
|
|
49
|
+
3. `DominusClient` resolves auth context:
|
|
50
|
+
- if `userToken` provided: uses caller token
|
|
51
|
+
- otherwise: ensures service JWT exists (PSK -> `/jwt/mint`, cached)
|
|
52
|
+
4. Request payload is serialized to JSON, then base64-encoded for Dominus wire protocol.
|
|
53
|
+
5. HTTP request is sent.
|
|
54
|
+
6. Response body is decoded from base64 and parsed.
|
|
55
|
+
7. Errors are mapped to SDK error types.
|
|
56
|
+
|
|
57
|
+
## 4. Routing Model
|
|
58
|
+
|
|
59
|
+
- Namespace code generally targets `/api/*` endpoints.
|
|
60
|
+
- For methods with `useGateway: true`, client route transform maps `/api/*` to gateway `/svc/*` dispatch paths.
|
|
61
|
+
- Some methods intentionally use direct fetch paths (for example health checks/JWKS fetch).
|
|
62
|
+
|
|
63
|
+
See [routes-services.md](./routes-services.md) for full route/service assessment.
|
|
64
|
+
|
|
65
|
+
## 5. Auth and Token Handling
|
|
66
|
+
|
|
67
|
+
### Service token flow
|
|
68
|
+
|
|
69
|
+
- Input: `DOMINUS_TOKEN` (PSK)
|
|
70
|
+
- Client exchanges PSK for short-lived JWT via gateway auth route.
|
|
71
|
+
- JWT is cached with refresh buffer and refresh mutex to avoid thundering herd under concurrency.
|
|
72
|
+
|
|
73
|
+
### User token flow
|
|
74
|
+
|
|
75
|
+
- Methods that accept `userToken` pass caller JWT through unchanged.
|
|
76
|
+
- Backend performs authorization checks for the user context.
|
|
77
|
+
|
|
78
|
+
### Local JWT utilities
|
|
79
|
+
|
|
80
|
+
- `verifyJwtLocally`, `isJwtValid`, and `mintSelectedScopeJwt` are exported from `src/lib/client.ts`. Selected-scope targeting is now the only supported SDK helper vocabulary.
|
|
81
|
+
- `mintSelectedScopeJwt(targetOrgId, targetEnv)` is the canonical selected-scope mint helper; the live `/jwt/mint` contract keys selected scope off org plus environment, not a shared-routing flag.
|
|
82
|
+
- `auth.getJwks` fetches public keys and caches them.
|
|
83
|
+
- `auth.validateJwt` performs local payload checks/expiry validation.
|
|
84
|
+
|
|
85
|
+
## 6. Caching and Resilience
|
|
86
|
+
|
|
87
|
+
- Encrypted in-memory cache used for selected short-lived values (JWT, portal/session-related caches).
|
|
88
|
+
- Circuit breaker support exists in transport/cache layer.
|
|
89
|
+
- Retry with backoff is applied for transient request failures and mint flow.
|
|
90
|
+
|
|
91
|
+
## 7. Streaming and Binary Paths
|
|
92
|
+
|
|
93
|
+
- SSE: `streamRequest()` in client, used by AI streaming methods.
|
|
94
|
+
- Multipart binary upload: `binaryUpload()`.
|
|
95
|
+
- Binary download to `Buffer`: `binaryDownload()`.
|
|
96
|
+
|
|
97
|
+
## 8. Speech APIs
|
|
98
|
+
|
|
99
|
+
Speech routes are owned by agent-runtime through the `dominus.ai` namespace:
|
|
100
|
+
|
|
101
|
+
- `dominus.ai.stt(audio, options?)` -> `POST /api/agent/stt`
|
|
102
|
+
- `dominus.ai.tts(text, options?)` -> `POST /api/agent/tts`
|
|
103
|
+
|
|
104
|
+
The legacy streaming STT namespace (`dominus.stt`) is retired in hard cutover.
|
|
105
|
+
|
|
106
|
+
## 9. Documentation Topology
|
|
107
|
+
|
|
108
|
+
Canonical documentation set for this repository:
|
|
109
|
+
|
|
110
|
+
- [README.md](../README.md): overview and usage entry
|
|
111
|
+
- [CLAUDE.md](../CLAUDE.md): agent conventions for this repo
|
|
112
|
+
- [usage-reference.md](./usage-reference.md): exhaustive namespaced command reference
|
|
113
|
+
- [routes-services.md](./routes-services.md): service and endpoint assessment
|
|
114
|
+
|
|
115
|
+
## 10. Known Gaps
|
|
116
|
+
|
|
117
|
+
- The hand-maintained command/namespace counts in `routes-services.md` and
|
|
118
|
+
`usage-reference.md` can drift from source; re-derive from `src/namespaces/*.ts`
|
|
119
|
+
and `src/index.ts` before quoting them.
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
# Atlas Blockers: dominus-sdk-nodejs
|
|
2
|
-
|
|
3
|
-
Generated: 2026-07-24 12:31 EDT
|
|
4
|
-
|
|
5
|
-
## Blockers
|
|
6
|
-
|
|
7
|
-
| ID | Blocker | Evidence | Likely owner | Workaround | Attack with |
|
|
8
|
-
|---|---|---|---|---|---|
|
|
9
|
-
| B1 | Docs/agent-guide may lag HEAD | Agent-guide snapshot(s) 2026-06-27-0849 — verify vs HEAD commits.; HEAD `8f41170` | `kyle-janitor` | Prefer code + CLAUDE | `kyle-janitor` |
|
|
10
|
-
| B2 | Local tests not executed this pass | Docs-only atlas | CI | Run before behavior changes | Local/CI |
|
|
11
|
-
|
|
12
|
-
## Recommended next skill
|
|
13
|
-
|
|
14
|
-
1. `kyle-janitor` — refresh agent-guide if stale vs HEAD.
|
|
15
|
-
2. Behavior defects → `kyle-diagnose` / owning expert skill.
|
|
1
|
+
# Atlas Blockers: dominus-sdk-nodejs
|
|
2
|
+
|
|
3
|
+
Generated: 2026-07-24 12:31 EDT
|
|
4
|
+
|
|
5
|
+
## Blockers
|
|
6
|
+
|
|
7
|
+
| ID | Blocker | Evidence | Likely owner | Workaround | Attack with |
|
|
8
|
+
|---|---|---|---|---|---|
|
|
9
|
+
| B1 | Docs/agent-guide may lag HEAD | Agent-guide snapshot(s) 2026-06-27-0849 — verify vs HEAD commits.; HEAD `8f41170` | `kyle-janitor` | Prefer code + CLAUDE | `kyle-janitor` |
|
|
10
|
+
| B2 | Local tests not executed this pass | Docs-only atlas | CI | Run before behavior changes | Local/CI |
|
|
11
|
+
|
|
12
|
+
## Recommended next skill
|
|
13
|
+
|
|
14
|
+
1. `kyle-janitor` — refresh agent-guide if stale vs HEAD.
|
|
15
|
+
2. Behavior defects → `kyle-diagnose` / owning expert skill.
|
|
@@ -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.
|
package/docs/atlas/INDEX.md
CHANGED
|
@@ -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.
|