Devsy
Troubleshooting

Pool records

The pool store refuses unexpected entries with a message such as sessions: unexpected entry in the record directory: "notes.txt". The message names sessions or keys and quotes the entry's name relative to that directory.

Inspect the named entry in the corresponding directory under the pool directory. The store never deletes an unexpected entry. Remove it by hand only after confirming it is not a pool record, then restart the pool.

Idempotency key secret

Idempotency key records live in keys/ under HMAC names. The secret is key-secret in the pool directory, with mode 0600. The store creates it when the pool directory is first opened with no key records. Keep it for the life of the pool. The store never rotates it automatically. Keep it private and out of shared backups.

Old key layout or missing secret

Deleting key-secret while key records exist makes the store refuse to open. It also refuses old key records. Only regular .tmp-<digits> files are ignored when checking whether keys/ is empty. The error starts with keys: "<entry>": and ends with:

pool store uses the old key layout or is missing key-secret; remove the keys/ directory after confirming no session still needs its idempotency key, then restart the pool

Stop the pool and confirm no session still needs its idempotency key. Remove keys/ to reset the key records, then restart the pool. The store recreates keys/ and creates a new secret only if key-secret is missing.

The store detects session files that were added, removed or replaced outside the pool and rebuilds its capacity count from disk. This is best-effort defence in depth. It is not a boundary against another process of the same user that ignores the pool lock, because that process can edit the pool directory directly.

Pruning removes a deleted session as soon as no key record references it, regardless of the session's age.

Workspace resource limits

Docker workspaces currently use the defaults below. The pool reads spec.workspace.limits from pool.yaml, but applies custom values to runs only once the spawn-spec builder is wired in.

spec:
  workspace:
    limits:
      memory: 4g
      pids: 1024
      cpus: 2

Omitted fields use their defaults. Memory accepts Docker's binary size units (4g is 4 GiB), from 6 MiB to 16 GiB. The PID limit counts processes and threads, from 1 to 4096. CPU count ranges from 0.01 to 16, in whole billionths of a CPU. Docker also rejects counts above the CPUs visible to the daemon, so the default of 2 fails on a 1-CPU daemon.

The workspace flags take precedence over devcontainer resource flags and disable swap. They do not change the sidecar or probe.

Enforced startup requires Docker to retain the swap limit. A daemon without swap-limit support can discard it, and the inspection after container creation then refuses startup.

On this page