Commit Graph

29 Commits

Author SHA1 Message Date
Backtalk6858 c0293fa96f docs(agent-sudo): lock D-CB5-D-CB9, add the P3-WIRING agent prompt, record P3 state
- agent_sudo_design_decisions.md: D-CB5 (3 tier-3 fails / 15min sliding / per-host),
  D-CB6 (append-only breaker log, state always replayed — tamper-EVIDENT beats
  tamper-PROOF when the daemon is root), D-CB7 (Set B host_override in code),
  D-CB8 (which tier-4 sources latch), D-CB9 (trip escalation). Each with rationale,
  rejected alternatives, and accepted costs.
- agent_prompts.md: add the P3-WIRING prompt. Flags a real NAME COLLISION — the
  existing "P3" section is the OLD P3 (Vault AppRole + Timeshift + evaluator, done
  as #142); P3 was redefined after D-CB1-D-CB9 were locked. Running the old one
  would redo finished work. Today's inline agent prompts were never persisted, which
  is why this one is.
- context.md: P3 code complete but UNDEPLOYED — the server-01 tier-0 breaker.log hole
  is open in production until DEPLOY_RUNBOOK.md runs. Two verified deploy blockers
  (Dockerfile never COPYs circuit_breaker.py/security/; compose has no
  /var/lib/agent-sudo mount => breaker resettable by docker restart, the exact D-CB6
  bypass). Both were invisible to an 85/85-green suite.
- context.md: MEMORY_DIR answered — do NOT repoint embed_memory_dir.py; its
  claude_memories table has no reader. Recall corpus now includes design docs;
  context.md stays excluded until #192 prunes it.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-15 19:04:38 -05:00
Backtalk6858 dcc4cc4ef2 docs(context): model policy settled (Opus 4.8/medium) + task-descriptions-decay warning
Bake-off is closed — Opus 4.8/medium is the standing default, Sonnet arms
cancelled, per-task logging retired. Cost is no longer a model-selection
input: billing is hard-capped, so Opus's real cost is Pro daily-limit hits,
an accepted trade. Max is the fix, not a downgrade.

Also adds the warning that bit twice in one session: task descriptions and
handoffs decay. #149's "delete the stale playbook" hazard was already done
the night before, and session_handoff.md had been asserting a FALSE
passwordless-sudo alarm plus a DEAD root token as live into every session
for 3 days. Check the artifact before doing the work.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-15 13:24:12 -05:00
Backtalk6858 c3b4295e63 docs(context): add a CURRENT STATE block — the file had been stale since 2026-06-16
context.md is injected into every session by the session-start hook, so a
stale one silently misinforms every future conversation. This one still
described the project as N8N Agent Builder work while the actual project has
been Agent-Sudo/CA for weeks, and it survived three end-of-session checklist
runs untouched — the checklist referenced context.md in its git step but
never had a step telling anyone to update it. That gap is now closed.

Adds what the project actually is now, what is live (Agent-Sudo enforcing on
both hosts, CA hook v2.1), the production-vs-sandbox Vault tell that already
caused one near-miss, and the next-session order. Marks the June scheduled
work superseded and fences off the 568 lines of append-only history below it.

The pointer stops the file misinforming; it does not stop it costing 49KB
per session. Pruning tracked as a follow-up.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-14 23:24:21 -05:00
Backtalk6858 c50e72e17b docs: agent-sudo grill-me complete — D1-D10, P0-P5 build prompts, comparison
- Close Agent-Sudo (infra id=176) design grill-me; gap #5 cross-cutting locked
- Add P0-P5 phased background-agent build prompts (Opus 4.8 upgrades applied)
- Add agent_sudo_vs_sudo_bridge.md comparison doc
- Update context.md: sprint day 11 session 4, Coolify/N8N/port-8084 corrections

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-09 14:28:39 -05:00
Backtalk6858 9260cc039f docs: session 2 facts — Phase 2+3 complete, NTFY urgent fix, sudo-bridge-server01 Jenkins job
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-27 02:42:53 -05:00
Backtalk6858 0860263935 fix: correct PROXY_CALLERS raw key format + session 6 facts
- agent_prompts.md: store raw keys in PROXY_CALLERS (app.py hashes internally);
  pre-hashing caused double-hash → all jenkins auth failed
- context.md: session 6 facts — Phase 1 complete, PROXY_CALLERS bug fixed,
  behavior_changes table created, Jenkinsfile shell operator bug logged (id=1),
  next session: fix Jenkinsfile then launch Phase 2

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-27 00:54:21 -05:00
Backtalk6858 cb7a9def3d feat: write all 11 background agent prompts + update context
- agent_prompts.md: all 11 prompts across 3 phases ready to launch
- context.md: session 5 facts — prompts ready, key server-01 finding

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-26 20:13:40 -05:00
Backtalk6858 436c04edf0 docs: update context.md — sprint day 10 session 4, id=161 design locked, phase plan finalized
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-26 19:40:40 -05:00
Backtalk6858 82a4892e0d docs: update context.md — sprint day 10 session 3, ids 157-160 complete, blockers logged
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-26 16:08:21 -05:00
Backtalk6858 7d8c5b76af docs: update context.md — sprint day 10 session 2, id=156 complete, Jenkins expansion logged
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-26 15:13:12 -05:00
Backtalk6858 0ebf56c310 docs: update context.md — sprint day 9+10, auth map built, next session tasks
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-26 13:33:00 -05:00
Backtalk6858 20f6e368b8 docs: Sprint Day 8 facts — Phase 2+3 complete, Coolify retired 2026-06-24 21:54:05 -05:00
Backtalk6858 4b99e9f884 docs: update context.md — sprint day 7, id=147 phase 2 in progress
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-24 19:37:13 -05:00
Backtalk6858 3c93a15c01 docs: update context.md — sprint day 6, id=147 phase 1 complete, standalone Traefik live
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-24 18:56:05 -05:00
Backtalk6858 8bbb547041 docs: update context.md — sprint day 5, id=141 Jenkins E2E complete, next=Traefik retirement 2026-06-24 16:37:33 -05:00
Backtalk6858 1edbdc5358 docs: update context.md — sprint day 4, Jenkins E2E blocked on docker binary 2026-06-24 14:25:24 -05:00
Backtalk6858 97a06261b6 note: next session — fix allowlist.json ownership + no-sync policy
allowlist.json must be root-owned so POST /allowlist is the only write
path; direct file edit bypasses audit log and danger veto. No cross-
bridge sync — allowlists grow organically per server.
2026-06-22 20:58:03 -05:00
Backtalk6858 be89611060 note: next session — sync POST /allowlist to sudo-bridge-server01
Bridge was added to primary only; server-01 needs redeploy of latest
image + allowlist.json sync before it can autonomously add entries.
2026-06-22 20:52:59 -05:00
Backtalk6858 23bbcb4a6d note: next session — secrets proxy sandbox precondition scaffolding
Before the shell sandbox dry-run, proxy needs to detect missing state
(files, services, iptables rules) and create it so the test is faithful.
2026-06-22 20:50:20 -05:00
Backtalk6858 5b1eec124e update: context.md — id=51 fully E2E verified, session 4 cont facts
Shell E2E complete. NTFY topic bug, docker-cli fix, DB permissions,
524 Cloudflare limitation documented.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-22 20:43:11 -05:00
Backtalk6858 3bc28c4905 update: context.md — id=51 fully complete, session 4 facts
E2E tests passed, iptables persisted, POST/GET /allowlist on sudo-bridge.
Key facts: proxy path format, sudo-bridge port, Coolify API internal IP.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-22 20:07:21 -05:00
Backtalk6858 9ca9f2632a update: context.md — id=51 deployed healthy on primary, session 3 facts + next session order
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-22 19:38:48 -05:00
Backtalk6858 e7c6db19d7 update: context.md + session summary — proxy migration to primary, iptables LAN fix
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-22 16:09:56 -05:00
Backtalk6858 8d23962c13 update: context.md — id=51 deployed (partial), pending Cloudflare route + E2E tests
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-22 14:51:39 -05:00
Backtalk6858 46ff6b247d update: context.md + playbook — id=51 grill-me complete, session 3/4/5 facts backfilled, N8N API sshTunnel gotcha
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-21 21:05:37 -05:00
Backtalk6858 6a90c3bae5 session: June 20 session 2 — sandbox Vault mirror + auto-unseal deployed
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-20 15:16:06 -05:00
Backtalk6858 4c47123270 update: context.md — June 20 session progress (id=57 partial, N8N migrated)
Production N8N on server-01, Vault-backed secrets, rollback tested, root token fixed.
id=57 remaining: sandbox Vault mirroring + Bitwarden audit + sandbox credentials.
id=51 not started — next session.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-20 14:06:31 -05:00
Backtalk6858 e0ed41ffeb update: context.md — backfill complete, readiness verified, priority reorder, June 19/22 schedule
All prereqs confirmed live on server-01. Full automation_ideas priority reorder (p1–p17 non-blocked,
p20–p29 blocked). Added id=67 N8N Builder Agent. id=57 expanded to full production mirror scope.
June 19: manual infrastructure day (id=51 + id=57). June 22: builder agents extended session.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-20 13:09:14 -05:00
Backtalk6858 db6cbbdec1 init: add claude-config and agent-builder context files
Initial commit tracking session context, playbooks, and automation specs
for claude-config and agent-builder Claude Code conversations.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-17 23:08:23 -05:00