[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CW44CRJ37836VCX5WR9JB0":3,"skill-same:01M6CW44CRJ37836VCX5WR9JB0":53},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":27,"linkOnly":28,"markdownContent":29,"markdownBody":30,"frontMatter":31,"refName":32,"commitSha":33,"skillDirectory":34,"forksCount":35,"repositoryHtmlUrl":36,"repositoryHomepageUrl":6,"ownerHtmlUrl":37,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":38,"install":39,"resources":52},"01M6CW44CRJ37836VCX5WR9JB0","debug",null,"Debug FrontierBoard issues — auth problems, agent errors, review failures. Use when things aren't working, agents fail to produce reports, authentication breaks, or to validate the full setup end-to-end.","stefans71\u002FFrontierBoard","stefans71","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F66725311?v=4","01M6CW3VPYK13M9K13NZZBXZ36","01M6CW3VTXG8DT51A3FN2SQM1V",6,"MIT","https:\u002F\u002Fgithub.com\u002Fstefans71\u002FFrontierBoard\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdebug\u002FSKILL.md",[],[5,18,19,20,21,22,23,24,25,26],"review","auth","validate","setup","authentication","issues","produce","use","reports","2026-11-10 10:12:30",false,"---\nname: debug\ndescription: Debug FrontierBoard issues — auth problems, agent errors, review failures. Use when things aren't working, agents fail to produce reports, authentication breaks, or to validate the full setup end-to-end.\n---\n\n# FrontierBoard Debugging\n\nSystematic diagnosis of board issues. Don't guess — run the checks, read the output, fix what's broken.\n\n**Strategy:** Start with the quick diagnostic script (Section 8). If that passes, move to the specific section matching the symptom. If you don't know what's wrong, run a single-agent smoke test (Section 7) to isolate the failure.\n\n---\n\n## 1. Architecture Overview\n\n```\nOrchestrator (Claude Code session)\n    │\n    ├── Reads BOARD.md for agent list, invocation commands\n    ├── Reads\u002Fwrites agent inboxes (brief.md, context.md, round2-brief.md, etc.)\n    ├── Launches agents in parallel (per BOARD.md parallelism pattern)\n    ├── Collects reports from outboxes\n    └── Synthesises findings → REVIEW-LOG.md\n\nOrchestrator (host)\n    │\n    ├── sudo -u $BOARD_USER\n    │   (agents run as board user)\n    │\n    ├── unset CLAUDECODE\n    │   (prevents nested session error)\n    │\n    └── claude\u002Fcodex exec from agent dir\n        (reads CLAUDE.md, inbox, writes outbox)\n```\n\n### Key Paths\n\n| Path | Purpose |\n|------|---------|\n| `$BOARD` | FrontierBoard clone directory |\n| `$BOARD\u002F.board\u002F` | Board runtime state |\n| `$BOARD\u002F.board\u002Fboard\u002FBOARD.md` | Operational source of truth (invocation commands) |\n| `$BOARD\u002F.board\u002Fboard\u002F{agent}\u002F` | Agent directory (inbox, outbox, contexts, settings) |\n| `$BOARD\u002F.board\u002Fboard\u002FDEFERRED_WORK.md` | Active deferred items (included in every brief) |\n| `$BOARD\u002F.board\u002Fboard\u002FREVIEW-LOG.md` | Review history |\n| `$BOARD\u002F.board\u002F.review-lock` | Prevents concurrent reviews |\n\n---\n\n## 2. Common Symptoms → Section Map\n\n| Symptom | Go to |\n|---------|-------|\n| `401 authentication_error` | Section 3 (Auth) |\n| `Please run \u002Flogin` | Section 3.1 |\n| Agent produces no report | Section 4 |\n| Report is stale (from previous round) | Section 4.3 |\n| `Cannot be launched inside another Claude Code session` | Section 3.3 |\n| `Permission denied` writing to outbox | Section 5 |\n| Review hangs \u002F lockfile stuck | Section 6 |\n| Codex agent fails silently | Section 3.5 |\n| Wrong board used (global vs local) | Section 3.7 |\n\n---\n\n## 3. Agent Issues\n\n### 3.1 Claude Code: \"Please run \u002Flogin\" or 401\n\nThe board user doesn't have credentials.\n```bash\n# Check if board user has credentials\nsudo -u llmuser cat ~\u002F.claude\u002F.credentials.json 2>&1 | head -3\n# If missing, copy from current user:\nsudo cp ~\u002F.claude\u002F.credentials.json ~llmuser\u002F.claude\u002F.credentials.json\nsudo chown llmuser:llmuser ~llmuser\u002F.claude\u002F.credentials.json\n```\n\n### 3.2 Token Refresh Race Condition\n\nMultiple parallel `claude` processes sharing `~\u002F.claude\u002F.credentials.json` race to refresh the OAuth token. The loser gets 401.\n\n**Fix:** Use an API key instead of OAuth when running multiple agents in parallel, or stagger agent launches.\n\n### 3.3 \"Cannot be launched inside another Claude Code session\"\n\nThe `CLAUDECODE` env var is set, preventing nested sessions.\n\n**Fix:** All invocations must include `unset CLAUDECODE`:\n```bash\nsudo -u llmuser bash -c 'unset CLAUDECODE && cd $AGENT_DIR && claude ...'\n```\n\n### 3.4 \"--dangerously-skip-permissions cannot be used with root\"\n\nClaude Code blocks YOLO mode for root users.\n\n**Fix:** Must use a board user.\n\n### 3.5 Codex Agent Fails Silently\n\nThe bare `codex` command opens a TUI and hangs. Must use `codex exec`:\n```bash\n# WRONG:\ncodex --dangerously-bypass-approvals-and-sandbox \"prompt\"\n\n# RIGHT:\ncodex exec --dangerously-bypass-approvals-and-sandbox \"prompt\"\n```\n\nAlso check `.codex\u002Fconfig.toml` has `approval_policy = \"never\"` (not \"full-auto\").\n\nTo capture Codex output when the report is missing:\n```bash\ncodex exec ... > \u002Ftmp\u002Fcodex-output.out 2>&1\nif [ ! -s outbox\u002Freport.md ]; then cp \u002Ftmp\u002Fcodex-output.out outbox\u002Freport.md; fi\n```\n\n### 3.6 Agent Doesn't Read CLAUDE.md\n\nAll invocation prompts must start with `read CLAUDE.md then ...`. Without this, agents lose their identity and produce generic output.\n\nCheck BOARD.md invocation commands contain:\n```\n\"read CLAUDE.md then read inbox\u002Fcontext.md and inbox\u002Fbrief.md and write your report to outbox\u002Freport.md\"\n```\n\n### 3.7 Wrong Board Used (Global vs Local)\n\nIf Claude picks up the global install (`~\u002F.frontierboard\u002F`) instead of the local one, check:\n- Which CLAUDE.md is being read (look at paths in the session)\n- Whether `~\u002F.claude\u002Fskills\u002Ffrontierboard\u002FSKILL.md` exists and is routing to global\n- The orchestrator's working directory — it should be `$BOARD\u002F.board\u002F`, not `~\u002F.frontierboard\u002F`\n\n**Fix:** Run from the local board directory explicitly:\n```bash\ncd \u002Fpath\u002Fto\u002FFrontierBoard\u002F.board && claude --dangerously-skip-permissions -p \"read CLAUDE.md then \u002Frun\"\n```\n\n---\n\n## 4. Report Issues\n\n### 4.1 Agent Produces No Report\n\nCheck in order:\n1. **Is the outbox writable?** See Section 5\n2. **Is the inbox populated?** Check `inbox\u002Fbrief.md` and `inbox\u002Fcontext.md` exist and are non-empty\n3. **Did the agent read the prompt?** Check the invocation command in BOARD.md\n\n### 4.2 Report is Empty or Generic\n\n- Agent didn't get its CLAUDE.md (identity lost) — check agent directory\n- Brief was empty or too vague — check `inbox\u002Fbrief.md`\n- Context file missing — check `inbox\u002Fcontext.md` and `contexts\u002F{domain}.md`\n- Model too weak — must be `claude-opus-4-6` (Claude) or `gpt-5.4` \u002F `gpt-5.3-codex` (Codex), never Sonnet\n\n### 4.3 Report is Stale (From Previous Round)\n\nThe `\u002Frun` skill writes a `.run-id` sentinel to each outbox before launching agents. After agents finish, it checks that `report.md` was modified after the sentinel.\n\nTo check manually:\n```bash\nBOARD=\u002Fpath\u002Fto\u002F.board\nfor agent in pragmatist systems-thinker skeptic; do\n  echo \"=== $agent ===\"\n  stat -c '%Y %n' \"$BOARD\u002Fboard\u002F$agent\u002Foutbox\u002F.run-id\" \"$BOARD\u002Fboard\u002F$agent\u002Foutbox\u002Freport.md\" 2>\u002Fdev\u002Fnull\ndone\n# report.md timestamp should be AFTER .run-id timestamp\n```\n\n**Fix:** Clear stale reports before each round: `rm -f $BOARD\u002Fboard\u002F*\u002Foutbox\u002Freport.md`\n\n---\n\n## 5. Permission Issues\n\n### 5.1 Board User Can't Access Agent Dirs\n\n```bash\n# Check ownership\nls -la $BOARD\u002F.board\u002Fboard\u002F\n\n# Fix: chown entire .board to board user\nchown -R llmuser:llmuser $BOARD\u002F.board\u002F\n\n# Also ensure parent directory is traversable\nchmod o+x $BOARD $BOARD\u002F.board $BOARD\u002F.board\u002Fboard\n```\n\n---\n\n## 6. Review Lockfile Issues\n\nThe lockfile at `$BOARD\u002F.board\u002F.review-lock` prevents concurrent reviews.\n\n```bash\n# Check if locked\ncat $BOARD\u002F.board\u002F.review-lock 2>\u002Fdev\u002Fnull\n# Format: project|PID|timestamp\n\n# If stuck (review crashed without cleanup):\nrm $BOARD\u002F.board\u002F.review-lock\n```\n\n**Warning:** Only remove if you're sure no review is running. Check the PID:\n```bash\nLOCK_PID=$(cat $BOARD\u002F.board\u002F.review-lock 2>\u002Fdev\u002Fnull | cut -d'|' -f2)\nps -p $LOCK_PID &>\u002Fdev\u002Fnull && echo \"Review still running (PID $LOCK_PID)\" || echo \"Stale lock — safe to remove\"\n```\n\n---\n\n## 7. Smoke Tests\n\n### 7.1 All Agents in Parallel\n\nTests: full parallelism pattern, all CLIs.\n\nRun the parallelism pattern from BOARD.md with a simple \"confirm identity\" brief. All reports should appear within ~2 minutes.\n\n### 7.2 Single Agent (Bare Mode)\n\n```bash\nAGENT_DIR=$BOARD\u002Fboard\u002Fpragmatist\necho \"Smoke test: confirm identity.\" > $AGENT_DIR\u002Finbox\u002Fbrief.md\necho \"Context.\" > $AGENT_DIR\u002Finbox\u002Fcontext.md\nrm -f $AGENT_DIR\u002Foutbox\u002Freport.md\n\nsudo -u llmuser bash -c \"unset CLAUDECODE && cd $AGENT_DIR && claude --dangerously-skip-permissions -p 'read CLAUDE.md then read inbox\u002Fcontext.md and inbox\u002Fbrief.md and write your report to outbox\u002Freport.md'\"\n\n[ -s \"$AGENT_DIR\u002Foutbox\u002Freport.md\" ] && echo \"PASS\" || echo \"FAIL\"\n```\n\n---\n\n## 8. Quick Diagnostic Script\n\nRun this to check all common setup issues at once:\n\n```bash\necho \"=== FrontierBoard Diagnostic ===\"\nBOARD=\"${BOARD:-$(pwd)}\"\n# Auto-detect: are we in .board\u002F or the clone root?\n[ -f \"$BOARD\u002F.board\u002Fboard\u002FBOARD.md\" ] && BOARD_STATE=\"$BOARD\u002F.board\" || BOARD_STATE=\"$BOARD\"\n[ -f \"$BOARD_STATE\u002Fboard\u002FBOARD.md\" ] || { echo \"ERROR: Can't find BOARD.md. Set BOARD= to FrontierBoard clone dir.\"; exit 1; }\n\necho -e \"\\n1. Board file exists?\"\n[ -f \"$BOARD_STATE\u002Fboard\u002FBOARD.md\" ] && echo \"  OK: $(head -1 $BOARD_STATE\u002Fboard\u002FBOARD.md)\" || echo \"  FAIL: No BOARD.md\"\n\necho -e \"\\n2. Isolation mode?\"\ngrep -m1 'Isolation\\|isolation' \"$BOARD_STATE\u002Fboard\u002FBOARD.md\" 2>\u002Fdev\u002Fnull || echo \"  UNKNOWN\"\n\necho -e \"\\n3. Claude Code authenticated?\"\n[ -f \"$HOME\u002F.claude\u002F.credentials.json\" ] && {\n  python3 -c \"\nimport json, time\nd = json.load(open('$HOME\u002F.claude\u002F.credentials.json'))\no = d.get('claudeAiOauth', {})\nif o.get('accessToken'):\n    remaining = (o['expiresAt'] - time.time()*1000) \u002F 60000\n    print(f'  OK: OAuth token valid ({remaining:.0f} min remaining, {o.get(\\\"subscriptionType\\\",\\\"?\\\")} plan)')\nelse:\n    print('  FAIL: No access token in credentials file')\n\" 2>\u002Fdev\u002Fnull\n} || echo \"  FAIL: No credentials file. Run: claude \u002Flogin\"\n\necho -e \"\\n4. Codex authenticated?\"\n[ -f \"$HOME\u002F.codex\u002Fauth.json\" ] && {\n  python3 -c \"\nimport json\nd = json.load(open('$HOME\u002F.codex\u002Fauth.json'))\nt = d.get('tokens', {})\nif t.get('access_token'):\n    print(f'  OK: Codex auth ({d.get(\\\"auth_mode\\\",\\\"?\\\")} mode, token length {len(t[\\\"access_token\\\"])})')\nelse:\n    print('  FAIL: No access token. Run codex interactively to authenticate.')\n\" 2>\u002Fdev\u002Fnull\n} || echo \"  WARN: No Codex auth file (only needed if you have a Codex agent)\"\n\necho -e \"\\n5. Agent directories?\"\nfor agent in $BOARD_STATE\u002Fboard\u002F*\u002F; do\n  name=$(basename \"$agent\")\n  [ \"$name\" = \"*\" ] && continue\n  [ -f \"$agent\u002FCLAUDE.md\" ] || { echo \"  FAIL: $name missing CLAUDE.md\"; continue; }\n  [ -d \"$agent\u002Finbox\" ] || { echo \"  FAIL: $name missing inbox\u002F\"; continue; }\n  [ -d \"$agent\u002Foutbox\" ] || { echo \"  FAIL: $name missing outbox\u002F\"; continue; }\n  echo \"  OK: $name (inbox, outbox, CLAUDE.md)\"\ndone\n\necho -e \"\\n6. Review lockfile?\"\nif [ -f \"$BOARD_STATE\u002F.review-lock\" ]; then\n  LOCK=$(cat \"$BOARD_STATE\u002F.review-lock\")\n  LOCK_PID=$(echo \"$LOCK\" | cut -d'|' -f2)\n  ps -p \"$LOCK_PID\" &>\u002Fdev\u002Fnull && echo \"  ACTIVE: Review in progress ($LOCK)\" || echo \"  STALE: Lock exists but PID $LOCK_PID is dead. Safe to remove: rm $BOARD_STATE\u002F.review-lock\"\nelse\n  echo \"  OK: No lock\"\nfi\n\necho -e \"\\n7. Deferred items?\"\n[ -f \"$BOARD_STATE\u002Fboard\u002FDEFERRED_WORK.md\" ] && {\n  count=$(grep -c '^\\*\\*\\|^### \\|^- \\*\\*' \"$BOARD_STATE\u002Fboard\u002FDEFERRED_WORK.md\" 2>\u002Fdev\u002Fnull)\n  echo \"  Found: ~$count items in DEFERRED_WORK.md\"\n} || echo \"  INFO: No deferred items file (normal for first review)\"\n\necho -e \"\\n=== Done ===\"\n```\n\n---\n\n## 9. SOP Compliance Checks\n\nThe 4-round SOP (docs\u002FREVIEW-SOP.md) has specific requirements. If reviews produce poor results:\n\n### Round 1 (Blind Review)\n- Each agent must work independently — no agent sees another's report\n- Agents must have: `CLAUDE.md` (identity), `inbox\u002Fcontext.md` (domain), `inbox\u002Fbrief.md` (what to review)\n- Deferred items from `DEFERRED_WORK.md` must be included in the brief\n\n### Round 2 (Consolidation)\n- Orchestrator (not agents) reads all reports, groups findings, assigns IDs (C1, C2, ...)\n- Fresh inboxes: `context.md`, `brief.md` (original), `consolidation.md`, `round2-brief.md`\n- Agents review the consolidated findings, not each other's raw reports\n\n### Round 3 (Deliberation) — only if disputes exist\n- Agent names become visible (Round 1-2 are anonymous)\n- Each agent's position on disputed items is shared\n\n### Round 4 (Confirmation)\n- Final brief with all classifications (FIX NOW \u002F DEFER \u002F INFO \u002F REJECT)\n- Agents state SIGN OFF or BLOCK\n- Blocks escalate to the user\n\n### Severity Levels\n- **FIX NOW** — must address before shipping\n- **DEFER** — real issue + trigger condition for promotion\n- **INFO** — observation, no action required\n- **REJECT** — should not be made\n\n---\n\n## 10. Hard-Won Knowledge Reference\n\nThese are operational facts that have caused real failures. Memorize them.\n\n| # | Rule | Why |\n|---|------|-----|\n| 1 | `unset CLAUDECODE` in all bare-mode invocations | Nested Claude sessions fail without it |\n| 2 | `codex exec` not `codex` | Bare `codex` opens TUI, hangs as subprocess |\n| 3 | Root always needs a board user | YOLO mode blocked for root |\n| 4 | Validate sudoers with `visudo -c` | Bad sudoers file bricks sudo |\n| 5 | Board user must own `.board\u002F` | Permission denied on agent dirs |\n| 6 | Billing warnings before API keys | Pay-per-use costs surprise users |\n| 7 | Agent model: Opus+ or gpt-5.4\u002Fgpt-5.3-codex | Sonnet lacks reasoning depth |\n| 8 | Codex: `approval_policy = \"never\"` | \"full-auto\" doesn't work as subprocess |\n| 9 | Invocation must read CLAUDE.md first | Agents lose identity without it |\n","# FrontierBoard Debugging\n\nSystematic diagnosis of board issues. Don't guess — run the checks, read the output, fix what's broken.\n\n**Strategy:** Start with the quick diagnostic script (Section 8). If that passes, move to the specific section matching the symptom. If you don't know what's wrong, run a single-agent smoke test (Section 7) to isolate the failure.\n\n---\n\n## 1. Architecture Overview\n\n```\nOrchestrator (Claude Code session)\n    │\n    ├── Reads BOARD.md for agent list, invocation commands\n    ├── Reads\u002Fwrites agent inboxes (brief.md, context.md, round2-brief.md, etc.)\n    ├── Launches agents in parallel (per BOARD.md parallelism pattern)\n    ├── Collects reports from outboxes\n    └── Synthesises findings → REVIEW-LOG.md\n\nOrchestrator (host)\n    │\n    ├── sudo -u $BOARD_USER\n    │   (agents run as board user)\n    │\n    ├── unset CLAUDECODE\n    │   (prevents nested session error)\n    │\n    └── claude\u002Fcodex exec from agent dir\n        (reads CLAUDE.md, inbox, writes outbox)\n```\n\n### Key Paths\n\n| Path | Purpose |\n|------|---------|\n| `$BOARD` | FrontierBoard clone directory |\n| `$BOARD\u002F.board\u002F` | Board runtime state |\n| `$BOARD\u002F.board\u002Fboard\u002FBOARD.md` | Operational source of truth (invocation commands) |\n| `$BOARD\u002F.board\u002Fboard\u002F{agent}\u002F` | Agent directory (inbox, outbox, contexts, settings) |\n| `$BOARD\u002F.board\u002Fboard\u002FDEFERRED_WORK.md` | Active deferred items (included in every brief) |\n| `$BOARD\u002F.board\u002Fboard\u002FREVIEW-LOG.md` | Review history |\n| `$BOARD\u002F.board\u002F.review-lock` | Prevents concurrent reviews |\n\n---\n\n## 2. Common Symptoms → Section Map\n\n| Symptom | Go to |\n|---------|-------|\n| `401 authentication_error` | Section 3 (Auth) |\n| `Please run \u002Flogin` | Section 3.1 |\n| Agent produces no report | Section 4 |\n| Report is stale (from previous round) | Section 4.3 |\n| `Cannot be launched inside another Claude Code session` | Section 3.3 |\n| `Permission denied` writing to outbox | Section 5 |\n| Review hangs \u002F lockfile stuck | Section 6 |\n| Codex agent fails silently | Section 3.5 |\n| Wrong board used (global vs local) | Section 3.7 |\n\n---\n\n## 3. Agent Issues\n\n### 3.1 Claude Code: \"Please run \u002Flogin\" or 401\n\nThe board user doesn't have credentials.\n```bash\n# Check if board user has credentials\nsudo -u llmuser cat ~\u002F.claude\u002F.credentials.json 2>&1 | head -3\n# If missing, copy from current user:\nsudo cp ~\u002F.claude\u002F.credentials.json ~llmuser\u002F.claude\u002F.credentials.json\nsudo chown llmuser:llmuser ~llmuser\u002F.claude\u002F.credentials.json\n```\n\n### 3.2 Token Refresh Race Condition\n\nMultiple parallel `claude` processes sharing `~\u002F.claude\u002F.credentials.json` race to refresh the OAuth token. The loser gets 401.\n\n**Fix:** Use an API key instead of OAuth when running multiple agents in parallel, or stagger agent launches.\n\n### 3.3 \"Cannot be launched inside another Claude Code session\"\n\nThe `CLAUDECODE` env var is set, preventing nested sessions.\n\n**Fix:** All invocations must include `unset CLAUDECODE`:\n```bash\nsudo -u llmuser bash -c 'unset CLAUDECODE && cd $AGENT_DIR && claude ...'\n```\n\n### 3.4 \"--dangerously-skip-permissions cannot be used with root\"\n\nClaude Code blocks YOLO mode for root users.\n\n**Fix:** Must use a board user.\n\n### 3.5 Codex Agent Fails Silently\n\nThe bare `codex` command opens a TUI and hangs. Must use `codex exec`:\n```bash\n# WRONG:\ncodex --dangerously-bypass-approvals-and-sandbox \"prompt\"\n\n# RIGHT:\ncodex exec --dangerously-bypass-approvals-and-sandbox \"prompt\"\n```\n\nAlso check `.codex\u002Fconfig.toml` has `approval_policy = \"never\"` (not \"full-auto\").\n\nTo capture Codex output when the report is missing:\n```bash\ncodex exec ... > \u002Ftmp\u002Fcodex-output.out 2>&1\nif [ ! -s outbox\u002Freport.md ]; then cp \u002Ftmp\u002Fcodex-output.out outbox\u002Freport.md; fi\n```\n\n### 3.6 Agent Doesn't Read CLAUDE.md\n\nAll invocation prompts must start with `read CLAUDE.md then ...`. Without this, agents lose their identity and produce generic output.\n\nCheck BOARD.md invocation commands contain:\n```\n\"read CLAUDE.md then read inbox\u002Fcontext.md and inbox\u002Fbrief.md and write your report to outbox\u002Freport.md\"\n```\n\n### 3.7 Wrong Board Used (Global vs Local)\n\nIf Claude picks up the global install (`~\u002F.frontierboard\u002F`) instead of the local one, check:\n- Which CLAUDE.md is being read (look at paths in the session)\n- Whether `~\u002F.claude\u002Fskills\u002Ffrontierboard\u002FSKILL.md` exists and is routing to global\n- The orchestrator's working directory — it should be `$BOARD\u002F.board\u002F`, not `~\u002F.frontierboard\u002F`\n\n**Fix:** Run from the local board directory explicitly:\n```bash\ncd \u002Fpath\u002Fto\u002FFrontierBoard\u002F.board && claude --dangerously-skip-permissions -p \"read CLAUDE.md then \u002Frun\"\n```\n\n---\n\n## 4. Report Issues\n\n### 4.1 Agent Produces No Report\n\nCheck in order:\n1. **Is the outbox writable?** See Section 5\n2. **Is the inbox populated?** Check `inbox\u002Fbrief.md` and `inbox\u002Fcontext.md` exist and are non-empty\n3. **Did the agent read the prompt?** Check the invocation command in BOARD.md\n\n### 4.2 Report is Empty or Generic\n\n- Agent didn't get its CLAUDE.md (identity lost) — check agent directory\n- Brief was empty or too vague — check `inbox\u002Fbrief.md`\n- Context file missing — check `inbox\u002Fcontext.md` and `contexts\u002F{domain}.md`\n- Model too weak — must be `claude-opus-4-6` (Claude) or `gpt-5.4` \u002F `gpt-5.3-codex` (Codex), never Sonnet\n\n### 4.3 Report is Stale (From Previous Round)\n\nThe `\u002Frun` skill writes a `.run-id` sentinel to each outbox before launching agents. After agents finish, it checks that `report.md` was modified after the sentinel.\n\nTo check manually:\n```bash\nBOARD=\u002Fpath\u002Fto\u002F.board\nfor agent in pragmatist systems-thinker skeptic; do\n  echo \"=== $agent ===\"\n  stat -c '%Y %n' \"$BOARD\u002Fboard\u002F$agent\u002Foutbox\u002F.run-id\" \"$BOARD\u002Fboard\u002F$agent\u002Foutbox\u002Freport.md\" 2>\u002Fdev\u002Fnull\ndone\n# report.md timestamp should be AFTER .run-id timestamp\n```\n\n**Fix:** Clear stale reports before each round: `rm -f $BOARD\u002Fboard\u002F*\u002Foutbox\u002Freport.md`\n\n---\n\n## 5. Permission Issues\n\n### 5.1 Board User Can't Access Agent Dirs\n\n```bash\n# Check ownership\nls -la $BOARD\u002F.board\u002Fboard\u002F\n\n# Fix: chown entire .board to board user\nchown -R llmuser:llmuser $BOARD\u002F.board\u002F\n\n# Also ensure parent directory is traversable\nchmod o+x $BOARD $BOARD\u002F.board $BOARD\u002F.board\u002Fboard\n```\n\n---\n\n## 6. Review Lockfile Issues\n\nThe lockfile at `$BOARD\u002F.board\u002F.review-lock` prevents concurrent reviews.\n\n```bash\n# Check if locked\ncat $BOARD\u002F.board\u002F.review-lock 2>\u002Fdev\u002Fnull\n# Format: project|PID|timestamp\n\n# If stuck (review crashed without cleanup):\nrm $BOARD\u002F.board\u002F.review-lock\n```\n\n**Warning:** Only remove if you're sure no review is running. Check the PID:\n```bash\nLOCK_PID=$(cat $BOARD\u002F.board\u002F.review-lock 2>\u002Fdev\u002Fnull | cut -d'|' -f2)\nps -p $LOCK_PID &>\u002Fdev\u002Fnull && echo \"Review still running (PID $LOCK_PID)\" || echo \"Stale lock — safe to remove\"\n```\n\n---\n\n## 7. Smoke Tests\n\n### 7.1 All Agents in Parallel\n\nTests: full parallelism pattern, all CLIs.\n\nRun the parallelism pattern from BOARD.md with a simple \"confirm identity\" brief. All reports should appear within ~2 minutes.\n\n### 7.2 Single Agent (Bare Mode)\n\n```bash\nAGENT_DIR=$BOARD\u002Fboard\u002Fpragmatist\necho \"Smoke test: confirm identity.\" > $AGENT_DIR\u002Finbox\u002Fbrief.md\necho \"Context.\" > $AGENT_DIR\u002Finbox\u002Fcontext.md\nrm -f $AGENT_DIR\u002Foutbox\u002Freport.md\n\nsudo -u llmuser bash -c \"unset CLAUDECODE && cd $AGENT_DIR && claude --dangerously-skip-permissions -p 'read CLAUDE.md then read inbox\u002Fcontext.md and inbox\u002Fbrief.md and write your report to outbox\u002Freport.md'\"\n\n[ -s \"$AGENT_DIR\u002Foutbox\u002Freport.md\" ] && echo \"PASS\" || echo \"FAIL\"\n```\n\n---\n\n## 8. Quick Diagnostic Script\n\nRun this to check all common setup issues at once:\n\n```bash\necho \"=== FrontierBoard Diagnostic ===\"\nBOARD=\"${BOARD:-$(pwd)}\"\n# Auto-detect: are we in .board\u002F or the clone root?\n[ -f \"$BOARD\u002F.board\u002Fboard\u002FBOARD.md\" ] && BOARD_STATE=\"$BOARD\u002F.board\" || BOARD_STATE=\"$BOARD\"\n[ -f \"$BOARD_STATE\u002Fboard\u002FBOARD.md\" ] || { echo \"ERROR: Can't find BOARD.md. Set BOARD= to FrontierBoard clone dir.\"; exit 1; }\n\necho -e \"\\n1. Board file exists?\"\n[ -f \"$BOARD_STATE\u002Fboard\u002FBOARD.md\" ] && echo \"  OK: $(head -1 $BOARD_STATE\u002Fboard\u002FBOARD.md)\" || echo \"  FAIL: No BOARD.md\"\n\necho -e \"\\n2. Isolation mode?\"\ngrep -m1 'Isolation\\|isolation' \"$BOARD_STATE\u002Fboard\u002FBOARD.md\" 2>\u002Fdev\u002Fnull || echo \"  UNKNOWN\"\n\necho -e \"\\n3. Claude Code authenticated?\"\n[ -f \"$HOME\u002F.claude\u002F.credentials.json\" ] && {\n  python3 -c \"\nimport json, time\nd = json.load(open('$HOME\u002F.claude\u002F.credentials.json'))\no = d.get('claudeAiOauth', {})\nif o.get('accessToken'):\n    remaining = (o['expiresAt'] - time.time()*1000) \u002F 60000\n    print(f'  OK: OAuth token valid ({remaining:.0f} min remaining, {o.get(\\\"subscriptionType\\\",\\\"?\\\")} plan)')\nelse:\n    print('  FAIL: No access token in credentials file')\n\" 2>\u002Fdev\u002Fnull\n} || echo \"  FAIL: No credentials file. Run: claude \u002Flogin\"\n\necho -e \"\\n4. Codex authenticated?\"\n[ -f \"$HOME\u002F.codex\u002Fauth.json\" ] && {\n  python3 -c \"\nimport json\nd = json.load(open('$HOME\u002F.codex\u002Fauth.json'))\nt = d.get('tokens', {})\nif t.get('access_token'):\n    print(f'  OK: Codex auth ({d.get(\\\"auth_mode\\\",\\\"?\\\")} mode, token length {len(t[\\\"access_token\\\"])})')\nelse:\n    print('  FAIL: No access token. Run codex interactively to authenticate.')\n\" 2>\u002Fdev\u002Fnull\n} || echo \"  WARN: No Codex auth file (only needed if you have a Codex agent)\"\n\necho -e \"\\n5. Agent directories?\"\nfor agent in $BOARD_STATE\u002Fboard\u002F*\u002F; do\n  name=$(basename \"$agent\")\n  [ \"$name\" = \"*\" ] && continue\n  [ -f \"$agent\u002FCLAUDE.md\" ] || { echo \"  FAIL: $name missing CLAUDE.md\"; continue; }\n  [ -d \"$agent\u002Finbox\" ] || { echo \"  FAIL: $name missing inbox\u002F\"; continue; }\n  [ -d \"$agent\u002Foutbox\" ] || { echo \"  FAIL: $name missing outbox\u002F\"; continue; }\n  echo \"  OK: $name (inbox, outbox, CLAUDE.md)\"\ndone\n\necho -e \"\\n6. Review lockfile?\"\nif [ -f \"$BOARD_STATE\u002F.review-lock\" ]; then\n  LOCK=$(cat \"$BOARD_STATE\u002F.review-lock\")\n  LOCK_PID=$(echo \"$LOCK\" | cut -d'|' -f2)\n  ps -p \"$LOCK_PID\" &>\u002Fdev\u002Fnull && echo \"  ACTIVE: Review in progress ($LOCK)\" || echo \"  STALE: Lock exists but PID $LOCK_PID is dead. Safe to remove: rm $BOARD_STATE\u002F.review-lock\"\nelse\n  echo \"  OK: No lock\"\nfi\n\necho -e \"\\n7. Deferred items?\"\n[ -f \"$BOARD_STATE\u002Fboard\u002FDEFERRED_WORK.md\" ] && {\n  count=$(grep -c '^\\*\\*\\|^### \\|^- \\*\\*' \"$BOARD_STATE\u002Fboard\u002FDEFERRED_WORK.md\" 2>\u002Fdev\u002Fnull)\n  echo \"  Found: ~$count items in DEFERRED_WORK.md\"\n} || echo \"  INFO: No deferred items file (normal for first review)\"\n\necho -e \"\\n=== Done ===\"\n```\n\n---\n\n## 9. SOP Compliance Checks\n\nThe 4-round SOP (docs\u002FREVIEW-SOP.md) has specific requirements. If reviews produce poor results:\n\n### Round 1 (Blind Review)\n- Each agent must work independently — no agent sees another's report\n- Agents must have: `CLAUDE.md` (identity), `inbox\u002Fcontext.md` (domain), `inbox\u002Fbrief.md` (what to review)\n- Deferred items from `DEFERRED_WORK.md` must be included in the brief\n\n### Round 2 (Consolidation)\n- Orchestrator (not agents) reads all reports, groups findings, assigns IDs (C1, C2, ...)\n- Fresh inboxes: `context.md`, `brief.md` (original), `consolidation.md`, `round2-brief.md`\n- Agents review the consolidated findings, not each other's raw reports\n\n### Round 3 (Deliberation) — only if disputes exist\n- Agent names become visible (Round 1-2 are anonymous)\n- Each agent's position on disputed items is shared\n\n### Round 4 (Confirmation)\n- Final brief with all classifications (FIX NOW \u002F DEFER \u002F INFO \u002F REJECT)\n- Agents state SIGN OFF or BLOCK\n- Blocks escalate to the user\n\n### Severity Levels\n- **FIX NOW** — must address before shipping\n- **DEFER** — real issue + trigger condition for promotion\n- **INFO** — observation, no action required\n- **REJECT** — should not be made\n\n---\n\n## 10. Hard-Won Knowledge Reference\n\nThese are operational facts that have caused real failures. Memorize them.\n\n| # | Rule | Why |\n|---|------|-----|\n| 1 | `unset CLAUDECODE` in all bare-mode invocations | Nested Claude sessions fail without it |\n| 2 | `codex exec` not `codex` | Bare `codex` opens TUI, hangs as subprocess |\n| 3 | Root always needs a board user | YOLO mode blocked for root |\n| 4 | Validate sudoers with `visudo -c` | Bad sudoers file bricks sudo |\n| 5 | Board user must own `.board\u002F` | Permission denied on agent dirs |\n| 6 | Billing warnings before API keys | Pay-per-use costs surprise users |\n| 7 | Agent model: Opus+ or gpt-5.4\u002Fgpt-5.3-codex | Sonnet lacks reasoning depth |\n| 8 | Codex: `approval_policy = \"never\"` | \"full-auto\" doesn't work as subprocess |\n| 9 | Invocation must read CLAUDE.md first | Agents lose identity without it |\n",{"name":5,"description":7},"main","e01303ad28862b5c26c950358250aeb4f74090e6",".claude\u002Fskills\u002Fdebug",1,"https:\u002F\u002Fgithub.com\u002Fstefans71\u002FFrontierBoard","https:\u002F\u002Fgithub.com\u002Fstefans71","2026-04-20 07:23:08",{"source":8,"skillName":5,"commands":40,"prompt":50,"zipAvailable":51},[41,44,47],{"tool":42,"command":43},"npx","npx skills add stefans71\u002FFrontierBoard --skill debug",{"tool":45,"command":46},"bunx","bunx skills add stefans71\u002FFrontierBoard --skill debug",{"tool":48,"command":49},"pnpm","pnpm dlx skills add stefans71\u002FFrontierBoard --skill debug","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fstefans71\u002FFrontierBoard\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdebug\u002FSKILL.md",true,[],[54,69,80,92,101,117],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":27},"01M6CW5BKYDY1PC8YPCHNZN1V5","teardown","Remove a FrontierBoard installation. Run when the user types \u002Fteardown or asks to uninstall, remove, or clean up the board.","https:\u002F\u002Fgithub.com\u002Fstefans71\u002FFrontierBoard\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fteardown\u002FSKILL.md",[],[56,61,62,63,64,65,66,67,68],"uninstall","run","board","user","remove","up","clean","installation",{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":27},"01M6CW599G8TXF87JTYRPHRKJ7","smoke-test","Validate a board installation works end-to-end. Run when the user types \u002Fsmoke-test or asks to test, validate, or verify the board setup.","https:\u002F\u002Fgithub.com\u002Fstefans71\u002FFrontierBoard\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fsmoke-test\u002FSKILL.md",[],[76,77,78,64,20,21,62,79,63,68],"smoke test","smoke","test","verify",{"skillNo":81,"name":21,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":27},"01M6CW56Q6B52QVY7YFDXJCDP2","Set up the Board of Governance. Run when the user types \u002Fsetup or asks to set up, install, or configure the board for the first time.","https:\u002F\u002Fgithub.com\u002Fstefans71\u002FFrontierBoard\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fsetup\u002FSKILL.md",[],[21,63,64,86,66,87,88,89,90,62,91],"install","time","first","configure","governance","SET",{"skillNo":93,"name":62,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":27},"01M6CW5435Q93Y2Q1427PSDWMA","Run the board agents and synthesise their reports. Run when the user types \u002Frun, asks to run the board, or after \u002Fbrief when the user confirms they're ready to go.","https:\u002F\u002Fgithub.com\u002Fstefans71\u002FFrontierBoard\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frun\u002FSKILL.md",[],[62,98,99,63,64,100,26],"go","brief","ready",{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":27},"01M6CW518M6QPGGW3DAT6JNEZQ","review-release","Review a GitHub repo or release using the board. Use when the user types \u002Freview-release, asks to \"review a release\", \"check if this is safe to install\", \"look at the latest version of [repo]\", wants to \"try installing it and see what breaks\", or any variant of reviewing an external GitHub project before contributing to it or installing it.","https:\u002F\u002Fgithub.com\u002Fstefans71\u002FFrontierBoard\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Freview-release\u002FSKILL.md",[],[108,109,18,110,111,112,113,114,115,63,64,86,25,116],"review release","release","look","safe","github","contributing","repo","check","version",{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":27},"01M6CW4YSSPY6FXCR6DMZWF9XX","project-tests","Generate test specs (Skeptic writes) and verify test code (Skeptic reviews). Two modes — \u002Fproject tests for specs, \u002Fproject tests --verify for code review.","https:\u002F\u002Fgithub.com\u002Fstefans71\u002FFrontierBoard\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fproject\u002Ftests\u002FSKILL.md",[],[124,125,126,78,18,127,128,79,129],"project tests","code","generate","verify test","skeptic","code review"]