You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: sync from source repos — charter, edgestack, ecosystem
Synced 3 pages via docs-sync pipeline:
- getting-started.md: streamlined from charter repo
- compass-governance-api.md: expanded route taxonomy from edgestack_v2
- ecosystem.md: updated to 3-piece architecture (engine merged into Stackbilder)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Compass is an internal governance service accessed via Cloudflare Service Binding from the Stackbilder flow pipeline. It is **not a public API** — there are no HTTP endpoints, no MCP server, and no admin surface.
12
+
Compass is the governance system behind StackBilt. This page documents the current Compass API surface and route taxonomy implemented in the `DigitalCSA` worker.
13
13
14
-
## Architecture
14
+
Base URL (production): accessed via Stackbilder service binding (not a public subdomain)
15
15
16
-
Compass is a lightweight RPC service (`compass` worker) bound to EdgeStack via `CSA_SERVICE` service binding. It provides governance guidance, quality assessment, and decision persistence for the 6-mode flow pipeline.
| Pro |`ADVISORY`| Warn on issues, flow continues |
88
-
| Enterprise |`ENFORCED`| Block on FAIL, require remediation |
62
+
## Canonical Route Taxonomy
89
63
90
-
## Integration
64
+
Compass uses a canonical route structure for admin, domain registry, and domain-scoped governance operations.
91
65
92
-
EdgeStack creates a `CompassExchangeClient` per flow (cached, 5-min TTL). The client calls Compass via service binding with a 10-second timeout.
66
+
### Admin Routes (`/api/admin/*`)
93
67
94
-
```toml
95
-
# edgestack-v2/wrangler.toml
96
-
[[services]]
97
-
binding = "CSA_SERVICE"
98
-
service = "compass"
99
-
```
68
+
Primary admin surfaces include:
100
69
101
-
## Future Direction
70
+
-`/api/admin/keys`
71
+
-`/api/admin/domains`
72
+
-`/api/admin/repo-keys`
73
+
-`/api/admin/repo-keys/:keyId/rotate`
74
+
-`/api/admin/repo-keys/:keyId/revoke`
75
+
-`/api/admin/repo-keys/:keyId/events`
76
+
-`/api/admin/repos/:repoId/revoke-all-keys`
102
77
103
-
Compass governance logic is being consolidated into the Stackbilder Engine (`stackbilt-engine`), which already handles blessed pattern enforcement, compatibility scoring, and tier gating deterministically. See [edgestack#32](https://github.com/Stackbilt-dev/edgestack_v2/issues/32) for the migration plan.
78
+
These routes require admin auth and apply scope checks before writes.
Compass also exposes top-level scoped APIs (with `ecosystem_id` / `project_id` query support in many cases) for compatibility and operational workflows.
106
+
107
+
### Ledger, Patterns, Requests
108
+
109
+
-`/api/ledger`
110
+
-`/api/ledger/:id`
111
+
-`/api/ledger/temporal/valid-at`
112
+
-`/api/ledger/temporal/approaching-review`
113
+
-`/api/ledger/:id/temporal`
114
+
-`/api/patterns`
115
+
-`/api/patterns/:id`
116
+
-`/api/requests`
117
+
-`/api/requests/:id`
118
+
-`/api/requests/:id/resolve`
119
+
-`/api/requests/:id/notes`
120
+
121
+
### Triage, Audit, Validation
122
+
123
+
-`/api/triage/run`
124
+
-`/api/triage/commit` (admin)
125
+
-`/api/triage/history`
126
+
-`/api/triage/entropy`
127
+
-`/api/triage/detect`
128
+
-`/api/triage/scope`
129
+
-`/api/audit/report`
130
+
-`/api/validate`
131
+
-`/api/validate/history` (admin)
132
+
-`/api/git/validate`
133
+
-`/api/git/validations` (admin)
134
+
135
+
### Submission + Chat
136
+
137
+
-`/api/submit`
138
+
-`/api/submit/my`
139
+
-`/api/submit/status/:id`
140
+
-`/api/chat/threads`
141
+
-`/api/chat/threads/:id`
142
+
-`/api/chat/threads/:id/messages`
143
+
144
+
### Exhibits (Constitution / Policy Content)
145
+
146
+
-`/api/exhibits`
147
+
-`/api/exhibits/active/:projectId`
148
+
-`/api/exhibits/:id`
149
+
-`/api/exhibits/:id/sections`
150
+
-`/api/exhibits/:exhibitId/sections/:sectionId`
151
+
152
+
### Agent Operations (Admin)
153
+
154
+
-`/api/agent/request-action`
155
+
-`/api/agent/status/:actionId`
156
+
-`/api/agent/approve/:actionId`
157
+
-`/api/agent/audit/:actionId`
158
+
-`/api/agent/kill-switch`
159
+
-`/api/agent/actions`
160
+
-`/api/agent/operations`
161
+
-`/api/agent/cancel/:actionId`
162
+
-`/api/agent/execute/:actionId`
163
+
164
+
### Miscellaneous Operational Endpoints
165
+
166
+
-`/api/heartbeat` (proactive governance health checks)
167
+
-`/api/llm` (primary LLM route)
168
+
-`/api/gemini` (deprecated compatibility route)
169
+
170
+
## Integration Notes
171
+
172
+
- Prefer the canonical domain-scoped routes (`/api/domains/:domainId/*`) for new integrations.
173
+
- Use JWT auth for MCP clients and reuse the session header for follow-up requests.
174
+
- Treat query-token MCP auth as deprecated and migrate to header-based auth.
175
+
- For public key verification across services, use Compass JWKS (`/api/.well-known/jwks.json`).
Copy file name to clipboardExpand all lines: src/content/docs/ecosystem.md
+13-21Lines changed: 13 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,53 +9,46 @@ tag: "01"
9
9
10
10
# Ecosystem
11
11
12
-
Stackbilt is a unified developer platform with four complementary systems spanning the full development lifecycle — from stack selection to governed deployment.
12
+
StackBilt is three complementary tools that enforce governance across the full development lifecycle.
13
13
14
-
## The Four Pieces
14
+
## The Three Pieces
15
15
16
16
| Tool | License | Role |
17
17
|------|---------|------|
18
-
|**Charter** (`@stackbilt/cli`) | Apache-2.0 (open source) | Local + CI governance runtime, ADF context compiler, CLI gateway to the engine |
**Engine commands:**`login`, `architect`, `scaffold` — generate and write tech stacks via the Stackbilder Engine.
83
75
84
76
For quantitative analysis of ADF's impact on autonomous system architecture, see the [Context-as-Code white paper](https://github.com/stackbilt-dev/charter-kit/blob/main/papers/context-as-code-v1.1.md).
85
77
<!-- DOCSYNC:END:charter-oss-ecosystem -->
@@ -171,7 +163,7 @@ For automated pipelines, each service has its own token:
0 commit comments