Omar Sobh and Claude Fable 5
67f918439c
P3 backend: files, skills, routines, claw chat with LIVE taint plumbing
...
- tc-files: BlobStore trait + LocalBlobStore (traversal-proof keys); wired
through Runtime (config storage.data_dir in deployments)
- File tools: files.write/files.list (workspace-internal) + files.delete
(gated FileDeletion — tested: file survives pending, gone after approve);
GET /api/openclaw/files + /api/shared-drive/files (drive/agent scoped)
- Skills: catalog/library + idempotent install with counter, uninstall;
GET /api/skills[?clawId=], POST install/uninstall
- tc-scheduler: croner cron math (clock-controlled tests), SKIP LOCKED
claim-and-advance firing REAL runs into dedicated '⏰ name' sessions
(reused, exactly-once), paused routines skipped; routines API + agent
tool routine.schedule; loop spawned in server
- Claw chat: 1:1 threads, chat.send enforcing the target's Other-Claws
policy, chat.inbox whose output carries inter_agent taint; the run loop
now ACCUMULATES taint from tool outputs into LoopState, classifies with
it, and stamps steps + approvals — a poisoned inbox followed by
email.send produces an approval whose taint_sources says inter_agent
- ScriptedProvider scenario selection now keys on the most recent marker
(session history kept earlier markers alive)
132 Rust tests green.
Co-Authored-By: Claude Fable 5 <[email protected] >
2026-06-10 05:28:50 -05:00
Omar Sobh and Claude Fable 5
ea5162ac65
P2 complete: Docker sandbox with kernel assertions + secret broker
...
tc-sandbox:
- SandboxSpec/SandboxDriver + DockerDriver (bollard): uid 10001, cap-drop
ALL, no-new-privileges, embedded seccomp deny profile (unshare/ptrace/
bpf/keyctl/mount/...), read-only rootfs with tmpfs /tmp + /home/agent,
network=none, mem/cpu/pids limits
- agent-base image: non-root, all setuid binaries stripped
- 6 kernel-level assertion tests probing from INSIDE real containers:
uid + CapEff==0, rootfs read-only, seccomp EPERM on unshare, zero
traffic-carrying interfaces + failed egress connect, no setuid +
NoNewPrivs=1, lifecycle
tc-secrets:
- ChaCha20-Poly1305 envelope encryption under a FileKey (generated 0600,
AEAD tamper detection tested); secrets table ciphertext-at-rest
- teamclaw-broker daemon: length-prefixed JSON over a unix socket; no
protocol operation ever returns plaintext; InvokeHttp independently
consumes the single-use execution grant against Postgres BEFORE touching
any credential, then performs the call itself with the secret injected
- Tests over the real socket + real Postgres + a real local HTTP receiver:
encrypted at rest, pending approval refused, approved call carries the
bearer token exactly once, grant replay refused, non-http URLs rejected
116 Rust + 61 frontend tests + 14 E2E journeys green.
Co-Authored-By: Claude Fable 5 <[email protected] >
2026-06-10 05:07:46 -05:00
Omar Sobh and Claude Fable 5
de38449b41
P2 BLOCKING exit green: approval interception chain end-to-end
...
- tc-tools: Effect declarations -> §15 GatedCategory mapping, deny-by-default
external reach, taint invariant property-tested (tainted external effects
are NEVER auto-allowed)
- tc-safety: pending approvals with exact payload+preview, CAS decide with
audit + single-use grant in one tx, checkpoint suspend/load, exclusive
resume claim, expiry sweep, decided-unresumed work queue (migration 0004
adds the outbox the gated email.send tool writes)
- tc-runtime: resumable LoopState checkpointed to agent_runs; gated tool ->
approval row -> approval_required/run_suspended events -> suspend; resume
consumes the grant BEFORE executing (spent grant = no execution), rejection
feeds a structured refusal in-band; durable resume sweeper; continuous
journal seq across suspension (tested). ContentPart::Text became a struct
variant — internally-tagged newtype primitives don't serialize
- tc-api: GET/decide approvals endpoints (409 double-decide, tenant
isolation), decision triggers in-process resume; full chain proven over
HTTP incl. gateway resumeFrom continuation
- frontend: approval_required/run_suspended events, suspended reply state,
inline ApprovalCard (§10: summary, category, exact payload preview,
approve/reject -> decide + stream re-attach), /approvals queue page, nav
- E2E (14 journeys, workers:1 to serialize the shared backend): gated email
blocks with disabled composer -> approve -> continuation + ✓ step + reload
replay; reject -> ✗ step, nothing executed; queue page decides pending
106 Rust + 61 frontend tests + 14 Playwright journeys green.
Co-Authored-By: Claude Fable 5 <[email protected] >
2026-06-10 04:58:47 -05:00
Omar Sobh and Claude Fable 5
9f9f507c15
P1 exit: chat UI, sessions column, agent create — 11 E2E journeys green
...
- Stream layer: incremental SSE parser tested against bytes captured from
the REAL gateway (chunking-independent, UTF-8-safe, heartbeat-tolerant);
Zod gateway event schemas; pure transcript reducer (optimistic send,
delta streaming, step traces, resume dedupe, error states)
- Same-origin /api proxy route: httpOnly cookie -> bearer, unbuffered SSE
passthrough; NuqsAdapter in root layout
- Chat workspace: route /claws/{id}/chat/{key} (RSC history + settings),
WelcomeState with suggested prompts, MessageList (right user bubbles,
left agent messages, blink caret), collapsible StepTrace, Composer
(Enter sends, Shift+Enter newline)
- SessionsColumn in 208px SlidePanel (?sessions=1): search, relative
times, active coral border, new session; /claws/{id} resumes latest or
opens fresh; minimal create-claw form; rail + button and roster links
- P1 exit E2E: scripted reply streams, tool step trace survives reload,
separate transcripts across sessions with column switching, create claw
and chat immediately
83 Rust + 56 frontend unit/component tests + 11 Playwright journeys.
Co-Authored-By: Claude Fable 5 <[email protected] >
2026-06-09 23:29:27 -05:00
Omar Sobh and Claude Fable 5
32008c9ef0
P1 backend: chat persistence, tc-llm providers, runtime loop, gateway SSE
...
- tc-db: sessions/messages/steps/runs/run_events repos (atomic seq assignment,
history with ordered step traces, journal replay-from-offset); migration 0003
- tc-llm: provider-neutral ChatRequest/LlmEvent; ScriptedProvider (scenario
TOML, word-level deltas, multi-turn tool legs — ships in production for
e2e/air-gap smoke), AnthropicProvider (Messages SSE), OpenAiCompatProvider
(vLLM/Ollama/llama.cpp); opt-in live tests via TC_LIVE_LLM=1
- tc-runtime: run loop with persist-before-emit event journal, real built-in
clock.now tool, step rows on the reply message, tool-error resilience,
broadcast channels for live attach
- tc-api: agent CRUD + settings/full (tenant-isolated, RBAC'd, audited),
sessions create/list/history?tools=true, POST /api/gateway SSE with
monotonic ids and exact resumeFrom journal replay (tested equal to live)
- teamclaw-server: config-driven provider factory
83 Rust tests green, all against real Postgres / real TCP.
Co-Authored-By: Claude Fable 5 <[email protected] >
2026-06-09 23:16:06 -05:00
Omar Sobh and Claude Fable 5
fc173f170d
P0 exit: e2e harness, Playwright shell journeys green, deploy skeleton
...
- teamclaw-server e2e mode (TEAMCLAW_MODE=e2e): idempotent deterministic
seed through the real registration paths
- Playwright suite (6 journeys) against the real backend + prod Next build:
login redirect, bad-password error, shell/roster/online-dot, team members,
seeded credits, sign-out revocation — P0 exit criterion met
- Dockerfiles: musl-static server -> distroless, Next standalone -> distroless
node (multi-arch via TARGETARCH)
- Air-gapped compose topology with edge/core/sandbox_net/secrets_net
segmentation (engine-validated in CI), config-file + env-overlay pattern
- CI: compose validation + e2e job with trace upload
Co-Authored-By: Claude Fable 5 <[email protected] >
2026-06-09 22:48:28 -05:00
Omar Sobh and Claude Fable 5
172a3c8fed
P0: Next.js shell — tokens, motion, SlidePanel, LeftRail, auth plumbing
...
- Tailwind v4 @theme block encoding all spec §2 tokens; full §3 keyframe
inventory with prefers-reduced-motion handling; Geist vendored (air-gap)
- SlidePanel width-animation primitive (component-tested: exit-transition
unmount, fixed-width inner content, a11y region semantics)
- session-key.ts mirroring the Rust codec + URL-param encoding; nuqs
panel-params with spec ?sessions=1 flag shape and routines->scheduled alias
- Zod-typed API client; httpOnly cookie session bridge (/auth/session);
login page; (workspace) layout with LeftRail roster/nav/user; Team and
Credits pages on real endpoints (+ GET /api/team/members in tc-api)
- Vitest + Testing Library harness (26 tests); ESLint max-lines 1250 +
no-warning-comments mirroring the CI gates
Co-Authored-By: Claude Fable 5 <[email protected] >
2026-06-09 22:43:50 -05:00
Omar Sobh and Claude Fable 5
c4349bf292
P0: tc-auth local sessions, tc-api P0 endpoints, teamclaw-server binary
...
- tc-auth: argon2id passwords, hashed opaque bearer tokens in auth_sessions
(migration 0002), anti-enumeration login errors, redacted token Debug
- tc-api: axum router with /healthz, /api/auth/login|logout, /api/user/me,
/api/team/{claws,credits,permissions}; Authed bearer extractor + RBAC
permission derivation; integration-tested over real TCP vs real Postgres
- teamclaw-server: config -> pool -> self-migrate -> serve
Co-Authored-By: Claude Fable 5 <[email protected] >
2026-06-09 22:30:33 -05:00
Omar Sobh and Claude Fable 5
0afb359183
P0: workspace scaffold, CI gates, tc-domain, tc-config, tc-db vs real Postgres
...
- Cargo workspace with 1250-line and no-placeholder CI gates wired first
- tc-domain: id newtypes, SessionKey codec (proptest round-trip), Role,
GatedCategory (spec §15), AccessPolicy, core entities
- tc-config: figment TOML+env config, DeployTarget/provider/auth selection
with semantic validation
- migrations/0001: full spec §14 schema incl. DB-enforced append-only audit_log
- tc-db: compile-time-checked sqlx repos (workspaces, users, agents+policies,
credits, audit) with committed .sqlx offline metadata
- tc-testkit: per-test real-Postgres databases (testcontainers or
TC_TEST_DATABASE_URL), embedded migrations
Co-Authored-By: Claude Fable 5 <[email protected] >
2026-06-09 22:25:47 -05:00