Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion deploy/system-wrangler.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@

// Hyperdrive binding for fractal scope projection into ChittyOS-Core
"hyperdrive": [
{ "binding": "CHITTYOS_CORE_DB", "id": "1d126444cff1416cb415447e6cc6d15a" }
{ "binding": "CHITTYOS_CORE_DB", "id": "1d126444cff1416cb415447e6cc6d15a" },
{ "binding": "SERVICE_SCOPE_DB", "id": "89158b50e55a4d5d9279b5d5c890ea7b" }
],
Comment on lines 29 to 33
Copy link

Copilot AI Apr 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment above the hyperdrive block still says “binding” and mentions only projection into ChittyOS-Core, but the config now declares two bindings (Core + SERVICE_SCOPE_DB). Update the comment to reflect both bindings (and optionally the validate-fractal-scopes requirement) so future edits don’t miss one of them.

Copilot uses AI. Check for mistakes.

// Cloudflare Email Service binding (beta, Workers Paid plan)
Expand Down Expand Up @@ -169,6 +170,10 @@
"r2_buckets": [
{ "binding": "FINANCE_R2", "bucket_name": "chittyfinance-storage" }
],
"hyperdrive": [
{ "binding": "CHITTYOS_CORE_DB", "id": "1d126444cff1416cb415447e6cc6d15a" },
{ "binding": "SERVICE_SCOPE_DB", "id": "89158b50e55a4d5d9279b5d5c890ea7b" }
],
"durable_objects": {
"bindings": [
{ "name": "CF_AGENT", "class_name": "ChittyAgent" }
Expand Down
7 changes: 5 additions & 2 deletions wrangler.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,12 @@
{ "pattern": "finance.chitty.cc/*", "zone_name": "chitty.cc" }
],

// Hyperdrive binding for fractal scope projection into ChittyOS-Core
// Hyperdrive bindings for fractal scope projection.
// CHITTYOS_CORE_DB → ChittyOS-Core aggregation. SERVICE_SCOPE_DB → service's own authoritative scopes.
// Required by chittyschema/identity/scripts/validate-fractal-scopes.ts
"hyperdrive": [
{ "binding": "CHITTYOS_CORE_DB", "id": "1d126444cff1416cb415447e6cc6d15a" }
{ "binding": "CHITTYOS_CORE_DB", "id": "1d126444cff1416cb415447e6cc6d15a" },
{ "binding": "SERVICE_SCOPE_DB", "id": "89158b50e55a4d5d9279b5d5c890ea7b" }
],
Comment on lines +30 to 36
Copy link

Copilot AI Apr 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrangler.jsonc has explicit env blocks, and the header comment notes certain bindings do not inherit into env blocks. Right now the new Hyperdrive bindings are only declared at the top level, so wrangler deploy --env production (and any other env deploys) may run without SERVICE_SCOPE_DB/CHITTYOS_CORE_DB bound. To avoid missing bindings at runtime, duplicate this hyperdrive array into the relevant env.* blocks (at minimum env.production, and any envs where scope projection should work).

Copilot uses AI. Check for mistakes.

// Cloudflare Email Service binding
Expand Down
Loading