Skip to content

chore(memory): default Memory Spaces ON with a kill switch#597

Merged
philmerrell merged 1 commit into
developfrom
feature/memory-spaces-default-on
Jul 8, 2026
Merged

chore(memory): default Memory Spaces ON with a kill switch#597
philmerrell merged 1 commit into
developfrom
feature/memory-spaces-default-on

Conversation

@philmerrell

Copy link
Copy Markdown
Contributor

Default Memory Spaces ON for every deployer (opt-out, not opt-in)

Memory Spaces is a complete feature (CRUD + SPA panel + the agent binding that Phase 3 consumes), so a forker of this repo should get it working out of the box rather than having to discover a flag. This flips it to default ON with a kill switch, matching the kbSync / scheduledRuns convention.

Zero new infra footprint: the DynamoDB table + S3 bucket are already provisioned unconditionally in PlatformStack — the flag only toggles the runtime MEMORY_SPACES_ENABLED env var (route mounting). So this is a pure default flip.

Changes

  • config.tsmemorySpaces.enabled defaults true; empty/unset workflow var = on, only the literal "false" disables (the empty-string-safe ternary used by kbSync/scheduledRuns). Interface + block docs updated.
  • platform.yml — forward CDK_MEMORY_SPACES_ENABLED (the kill switch) and CDK_AGENTS_API_ENABLED (so an environment can enable the still-off /agents surface for dogfooding without a code change).
  • app-api-environment.ts — comment reflects default-on.
  • config.test.ts — 5 tests locking default-on / empty-var-safe / kill switch / context override.

Deliberately NOT flipped: Agent Designer

AGENTS_API_ENABLED stays default off until the Phase-4 Designer UI ships — a headless /agents API with no UI helps no forker. Dev-ai enables it per-environment via the newly-forwarded CDK_AGENTS_API_ENABLED variable.

Effect on dev-ai

On the next platform.yml deploy from develop, dev-ai gets MEMORY_SPACES_ENABLED=true automatically (plus the table/bucket, if not already created) — which is the infra prerequisite for the live Oliver dogfood.

Testing

tsc --noEmit clean; 437 infra tests pass (incl. the 5 new memory-spaces config tests).

🤖 Generated with Claude Code

Memory Spaces is a complete feature (CRUD + SPA panel + agent binding), so it
should ship enabled for every deployer/forker — opt-out, not opt-in — matching
the kbSync / scheduledRuns convention. The table + bucket are already
provisioned unconditionally in PlatformStack, so this only flips the runtime
MEMORY_SPACES_ENABLED env var; no new infra footprint.

- config.ts: memorySpaces.enabled default true (empty/unset workflow var = on,
  only literal "false" disables); interface + block docs updated
- platform.yml: forward CDK_MEMORY_SPACES_ENABLED (kill switch) and
  CDK_AGENTS_API_ENABLED (per-env enable for the still-default-off /agents
  surface, so dev can turn it on for dogfooding without a code change)
- app-api-environment.ts: comment reflects default-on
- config.test.ts: 5 tests locking default-on + kill-switch + context override

Agent Designer (AGENTS_API_ENABLED) stays default OFF until the Phase-4 Designer
UI ships — a headless /agents surface helps no forker.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@philmerrell philmerrell merged commit 780b736 into develop Jul 8, 2026
4 checks passed
@philmerrell philmerrell deleted the feature/memory-spaces-default-on branch July 8, 2026 03:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant