Skip to content

feat(cli-2): add dk namespace policy get/set + bump dakera-client 0.8→0.9#22

Merged
ferhimedamine merged 2 commits into
mainfrom
feat/cli-2-namespace-policy
Apr 1, 2026
Merged

feat(cli-2): add dk namespace policy get/set + bump dakera-client 0.8→0.9#22
ferhimedamine merged 2 commits into
mainfrom
feat/cli-2-namespace-policy

Conversation

@ferhimedamine
Copy link
Copy Markdown
Contributor

Summary

Closes CLI-2. Exposes the full memory lifecycle policy surface via the CLI — no more raw HTTP calls to configure COG-1 TTLs, COG-3 background consolidation, or SEC-5 per-namespace rate limiting.

New commands

dk namespace policy get <namespace>

Prints the current MemoryPolicy for a namespace (TTLs, decay curves, spaced repetition, consolidation settings, rate limits, consolidated_count) in table or JSON format.

dk namespace policy set <namespace> [flags]

Read-modify-write: fetches the current policy, applies only the supplied flags, clears the read-only consolidated_count, then PUTs the result. All fields from COG-1, COG-3, and SEC-5 are exposed as named flags. Run --help for the full list.

Example:

dk namespace policy set my-agent \
  --consolidation-enabled true \
  --consolidation-threshold 0.90 \
  --rate-limit-enabled true \
  --rate-limit-stores-per-minute 60

Other changes

  • Bumps dakera-client 0.8 → 0.9 to access get_memory_policy / set_memory_policy and the updated MemoryPolicy struct with SEC-5 rate-limiting fields.
  • Fixes ConsolidateRequest initializer in the memory consolidate command to include the new optional config field added in dakera-client 0.9 (CE-6).

Tests

  • cargo check + cargo test: 27/27 pass, 0 warnings.
  • CI will run full matrix (linux-x86, linux-arm, macOS).

🤖 Generated with Claude Code

Dakera Ops and others added 2 commits April 1, 2026 10:29
- Add 'Getting Started' section with dk init wizard
- Improve intro description: add context on what dk manages

Co-Authored-By: Paperclip <noreply@paperclip.ing>
…→0.9

Closes CLI-2. Exposes the full memory lifecycle policy surface via the CLI
so users don't need raw HTTP calls to configure COG-1 TTLs, COG-3
background consolidation, or SEC-5 per-namespace rate limiting.

Changes:
- New `dk namespace policy get <ns>` — prints current MemoryPolicy as
  table or JSON (TTLs, decay curves, spaced repetition, consolidation,
  rate limits, consolidated_count).
- New `dk namespace policy set <ns> [flags]` — read-modify-write: fetches
  current policy, applies only the supplied flags, clears read-only
  consolidated_count, then PUTs the result. All COG-1/COG-3/SEC-5 fields
  are exposed as named flags (see --help).
- Bumps dakera-client 0.8 → 0.9 to access get_memory_policy/set_memory_policy
  and the updated MemoryPolicy with SEC-5 rate-limiting fields.
- Fixes ConsolidateRequest initializer (memory consolidate cmd) to include
  new optional config field added in dakera-client 0.9 (CE-6 CE-6).

Co-Authored-By: Paperclip <noreply@paperclip.ing>
@ferhimedamine ferhimedamine added the auto-merge Auto-merge when CI passes label Apr 1, 2026
@ferhimedamine ferhimedamine merged commit 7360bd7 into main Apr 1, 2026
4 checks passed
@ferhimedamine ferhimedamine deleted the feat/cli-2-namespace-policy branch April 27, 2026 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge Auto-merge when CI passes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant