Commit graph

1705 commits

Author SHA1 Message Date
Claude
627496b6f2 fix: bug: architect-run.sh existing-PR check builds malformed URL — ${FORGE_API}/repos/… duplicates the repos segment (#717)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
ci/woodpecker/pr/smoke-init Pipeline was successful
Introduce FORGE_API_BASE (bare API root without repo path) in lib/env.sh
and lib/load-project.sh. Replace all cross-repo curl calls in
architect-run.sh that incorrectly used ${FORGE_API}/repos/${FORGE_OPS_REPO}
(which expanded to .../repos/owner/repo/repos/owner/ops-repo) with
${FORGE_API_BASE}/repos/${FORGE_OPS_REPO}.

Also fix a same-repo label URL that duplicated the repos segment.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-12 00:21:55 +00:00
2f75478aab Merge pull request 'fix: bug: architect-run.sh empty pitch — pitch_output=$(agent_run …) captures stdout but new agent_run writes to side-channels (#716)' (#720) from fix/issue-716 into main
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
2026-04-12 00:16:05 +00:00
545ccf9199 Merge pull request 'chore: gardener housekeeping' (#715) from chore/gardener-20260411-2343 into main
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
2026-04-12 00:13:13 +00:00
13fe475cf8 Merge pull request 'fix: vision(#623): Caddy subpath routing skeleton + Forgejo/Woodpecker host reconfig (#704)' (#719) from fix/issue-704 into main
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
2026-04-12 00:08:08 +00:00
Claude
cb9381f1e4 fix: bug: architect-run.sh empty pitch — pitch_output=$(agent_run …) captures stdout but new agent_run writes to side-channels (#716)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
Three fixes:

1. architect-run.sh:722 — extract `.result` not `.content` from claude JSON
   output. All other callers (dev-agent, formula-session) use `.result`;
   this was the direct cause of every pitch being empty.

2. lib/agent-sdk.sh — reset `_AGENT_LAST_OUTPUT=""` at the top of each
   `agent_run` call so stale data from a prior invocation can't bleed
   into the next caller when claude crashes or returns empty.

3. lib/agent-sdk.sh — scope the diagnostics file by `$LOG_AGENT` instead
   of hardcoding `dev/`. Concurrent agents (architect, gardener, planner,
   predictor) no longer clobber each other's diag output.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-12 00:04:42 +00:00
Claude
bfdf252239 fix: vision(#623): Caddy subpath routing skeleton + Forgejo/Woodpecker host reconfig (#704)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
ci/woodpecker/pr/smoke-init Pipeline was successful
2026-04-11 23:48:54 +00:00
Claude
0cd20e8eea chore: gardener housekeeping 2026-04-11
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
2026-04-11 23:43:09 +00:00
a1da3d5c52 Merge pull request 'fix: bug: disinto-edge crashes on cold disinto up — clones from forgejo before forgejo HTTP is ready (#665)' (#714) from fix/issue-665 into main
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
2026-04-11 23:39:22 +00:00
Claude
7dc03523d6 fix: bug: disinto-edge crashes on cold disinto up — clones from forgejo before forgejo HTTP is ready (#665)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
ci/woodpecker/pr/smoke-init Pipeline was successful
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 23:28:01 +00:00
c51cc9dba6 Merge pull request 'fix: bug: profile journal digestion can hang for hours on local Qwen with many journals — blocks dev-agent (#702)' (#703) from fix/issue-702 into main
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
2026-04-11 23:24:25 +00:00
Claude
9aeef51d9d fix: rename digested_files to batchfiles to pass agent-smoke function resolution
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
The CI smoke test's get_candidates awk pattern falsely matches
underscore-containing variable names (like digested_files+=) as
unresolved function calls. Rename to batchfiles to avoid the match.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 23:17:47 +00:00
Claude
e1cdc78da0 fix: bug: profile journal digestion can hang for hours on local Qwen with many journals — blocks dev-agent (#702)
- Add digest-specific timeout (PROFILE_DIGEST_TIMEOUT, default 300s) instead
  of relying on the global 2h CLAUDE_TIMEOUT
- Cap journals per digest run (PROFILE_DIGEST_MAX_BATCH, default 5) to bound
  prompt size and let remaining journals drain over subsequent runs
- Only archive the journals that were actually included in the batch, not all
- On timeout/failure, preserve previous lessons-learned.md instead of leaving
  a near-empty file — journals stay unarchived for retry on next run
- Detect suspiciously small output (<=16 bytes) as failed digestion
- Add PROFILE_DIGEST_THRESHOLD env var (default 10) for digest trigger

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 23:17:47 +00:00
fb7f7aa7db Merge pull request 'fix: edge-control register.sh: pubkey comment field corrupts key in authorized_keys (#649)' (#701) from fix/issue-649 into main
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
2026-04-11 23:17:36 +00:00
Claude
20d8877546 fix: edge-control register.sh: pubkey comment field corrupts key in authorized_keys (#649)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
2026-04-11 23:11:55 +00:00
4aac315119 Merge pull request 'fix: docs/CLAUDE-AUTH-CONCURRENCY.md and smoke-init.sh reference credentials.json without leading dot (#680)' (#700) from fix/issue-680 into main
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
2026-04-11 22:52:54 +00:00
Claude
de4a37b1fa fix: docs/CLAUDE-AUTH-CONCURRENCY.md and smoke-init.sh reference credentials.json without leading dot (#680)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
ci/woodpecker/pr/smoke-init Pipeline was successful
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 22:41:34 +00:00
c8113633af Merge pull request 'chore: gardener housekeeping' (#699) from chore/gardener-20260411-2228 into main
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
2026-04-11 22:32:10 +00:00
Claude
9acd0a2bc4 chore: gardener housekeeping 2026-04-11
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
2026-04-11 22:28:49 +00:00
31f2cb7bfa Merge pull request 'fix: bug: dev-poll runs dev-agent synchronously, deadlocks polling loop and review-poll in same-container case (#693)' (#698) from fix/issue-693 into main
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
2026-04-11 22:21:55 +00:00
Claude
0ae0e48817 fix: bug: dev-poll runs dev-agent synchronously, deadlocks polling loop and review-poll in same-container case (#693)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
2026-04-11 22:15:25 +00:00
31399e193f Merge pull request 'fix: bug: architect-run.sh uses old agent_run() signature, all pitches fail with "Input must be provided" (#690)' (#696) from fix/issue-690 into main
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
2026-04-11 22:10:44 +00:00
df08b654b5 Merge pull request 'fix: fix: architect should close parent vision issue when all sprint sub-issues complete (#689)' (#694) from fix/issue-689 into main
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
2026-04-11 22:10:17 +00:00
Claude
474b6a71d0 fix: remove state filter from Method 1 sub-issue discovery
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
- Removed state=closed filter so all issues with "Decomposed from #N" are found
- Per-issue state check in all_subissues_closed() correctly handles open/closed
2026-04-11 22:04:09 +00:00
Claude
e4dbe68317 fix: read pitch output from $_AGENT_LAST_OUTPUT, not stdout (#690)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
agent_run() stores its output in $_AGENT_LAST_OUTPUT but never emits
it to stdout. The old subshell capture always yielded an empty string,
so pitches silently failed even after the signature fix.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 21:59:36 +00:00
Claude
ef89b64f5f fix: bug: architect-run.sh uses old agent_run() signature, all pitches fail with "Input must be provided" (#690)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
agent_run() now adds -p, --output-format, --max-turns, --dangerously-skip-permissions,
and --model internally. The old call site passed these flags explicitly, causing the
prompt to be parsed as "-p" and claude to error with "Input must be provided".

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 21:52:38 +00:00
Claude
1c3e3cd660 fix: correct newline formatting and sub-issue discovery in architect
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
- Use $'\n' instead of literal \n in summary comment builder
- Query closed issues in Method 1 to find sub-issues regardless of state
- Document automated vision issue closure lifecycle in AGENTS.md
2026-04-11 21:52:06 +00:00
ad066326b9 Merge pull request 'fix: vision: remove external flock from lib/agent-sdk.sh once CLAUDE_CONFIG_DIR rollout is verified (#647)' (#695) from fix/issue-647 into main
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
2026-04-11 21:45:00 +00:00
Claude
f037ae1892 fix: architect closes parent vision issue when all sprint sub-issues complete (#689)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
2026-04-11 21:38:53 +00:00
Claude
16477e69b0 fix: update AD-002 docs and stale comments to reflect CLAUDE_CONFIG_DIR isolation (#647)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
- AGENTS.md AD-002: document per-session CLAUDE_CONFIG_DIR as primary
  OAuth concurrency guard, CLAUDE_EXTERNAL_LOCK as rollback flag
- docker/agents/entrypoint.sh: update stale flock comment
- lib/agent-sdk.sh: move mkdir inside CLAUDE_EXTERNAL_LOCK branch

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 21:38:52 +00:00
Claude
810b083d53 fix: vision: remove external flock from lib/agent-sdk.sh once CLAUDE_CONFIG_DIR rollout is verified (#647)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
Gate both flock call sites (agent_run main invocation and nudge) behind
CLAUDE_EXTERNAL_LOCK env var. Default off — the native Claude Code
proper-lockfile-based OAuth refresh lock handles concurrency. Set
CLAUDE_EXTERNAL_LOCK=1 to re-enable the external flock for rollback.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 21:31:40 +00:00
Claude
f9461ceea8 fix: fix: architect should close parent vision issue when all sprint sub-issues complete (#689)
Some checks failed
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline failed
2026-04-11 21:30:18 +00:00
0add73f409 Merge pull request 'fix: fix: ensure_ops_repo() should call migrate_ops_repo() to seed missing dirs (#688)' (#691) from fix/issue-688 into main
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
2026-04-11 21:25:55 +00:00
610214d086 Merge pull request 'chore: gardener housekeeping' (#692) from chore/gardener-20260411-2045 into main
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
2026-04-11 21:21:30 +00:00
Claude
2b89742895 fix: add ops-setup.sh to smoke test function resolution for formula-session.sh (#688)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 20:46:13 +00:00
Claude
eb3327d2c9 chore: gardener housekeeping 2026-04-11
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
2026-04-11 20:45:04 +00:00
Claude
3b1ca4a73a fix: ensure_ops_repo() should call migrate_ops_repo() to seed missing dirs (#688)
Some checks failed
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline failed
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 20:40:36 +00:00
8137410e7e Merge pull request 'fix: fix: revert destructive docker-compose.yml rewrite from PR #683 (keep only the three INTERVAL env vars) (#684)' (#687) from fix/issue-684 into main
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
2026-04-11 20:05:43 +00:00
3e0cb72073 Merge pull request 'fix: investigation: reviewer agent approved destructive compose rewrite in PR #683 — why? (#685)' (#686) from fix/issue-685 into main
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
2026-04-11 20:01:09 +00:00
Claude
e0c2afa4dc fix: fix: revert destructive docker-compose.yml rewrite from PR #683 (keep only the three INTERVAL env vars) (#684)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
2026-04-11 19:59:03 +00:00
Claude
810d92676c fix: extend step 8 approval-bias carve-out to include infra files (step 3c), fix count
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
- Step 8 now explicitly exempts infrastructure file findings (step 3c) from
  the "bias toward APPROVE" guidance, preventing the original failure mode
- Fix investigation summary: "Five" → "Six" structural gaps

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 19:50:59 +00:00
Claude
527731da53 fix: investigation: reviewer agent approved destructive compose rewrite in PR #683 — why? (#685)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
Root cause: review formula had no infrastructure-file-specific checklist and
no scope discipline check. The reviewer treated a docker-compose.yml rewrite
the same as any code change, and lessons-learned biased toward approval.

Changes:
- Add step 3c (infrastructure file review) to formulas/review-pr.toml:
  compose-specific checklist for volumes, bind mounts, env vars, restart
  policy, security options
- Add step 3d (scope discipline) to formulas/review-pr.toml: compare
  actual diff size against issue scope, block on infra-file scope violations
- Add investigation writeup in docs/

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 19:44:30 +00:00
526928dca8 Merge pull request 'fix: config: gardener=1h, architect=9m, planner=11m for disinto factory (+ add PLANNER_INTERVAL env var) (#682)' (#683) from fix/issue-682 into main
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
2026-04-11 18:03:04 +00:00
Claude
6d2e2e43f8 fix: config: gardener=1h, architect=9m, planner=11m for disinto factory (+ add PLANNER_INTERVAL env var) (#682)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
ci/woodpecker/pr/smoke-init Pipeline was successful
2026-04-11 17:47:07 +00:00
28f54e259b Merge pull request 'fix: bug: docker/agents/entrypoint.sh polling-loop log redirects use ${DISINTO_DIR}/../data/logs — broken after #605 moved DISINTO_DIR to /home/agent/repos/_factory (#675)' (#681) from fix/issue-675 into main
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
2026-04-11 17:22:56 +00:00
Claude
5fcf3a6304 fix: bug: docker/agents/entrypoint.sh polling-loop log redirects use ${DISINTO_DIR}/../data/logs — broken after #605 moved DISINTO_DIR to /home/agent/repos/_factory (#675)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
2026-04-11 17:16:29 +00:00
13090d5bf8 Merge pull request 'fix: bug: docker/agents/entrypoint.sh credential check looks for credentials.json but Claude writes .credentials.json — every boot logs a misleading WARNING (#673)' (#679) from fix/issue-673 into main
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
2026-04-11 17:09:05 +00:00
Claude
8fe985ea51 fix: bug: docker/agents/entrypoint.sh credential check looks for credentials.json but Claude writes .credentials.json — every boot logs a misleading WARNING (#673)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
2026-04-11 16:59:42 +00:00
3f524ae06f Merge pull request 'fix: infra: mount projects/ into agents containers so disinto.toml survives restart (#667)' (#678) from fix/issue-667 into main
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
2026-04-11 16:56:17 +00:00
Claude
edd2890b58 fix: infra: mount projects/ into agents containers so disinto.toml survives restart (#667)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
2026-04-11 16:50:04 +00:00
1354bc9f90 Merge pull request 'fix: feat: make gardener and architect schedules configurable via env vars (#558)' (#677) from fix/issue-558-1 into main
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
2026-04-11 16:33:35 +00:00