Commit graph

1038 commits

Author SHA1 Message Date
johba
bb85d3848b Merge pull request 'fix: bug: supervisor never delivers disk alerts — crashes during PR scan (#252)' (#254) from fix/issue-252 into main 2026-03-19 10:27:35 +01:00
openhands
1c93267193 fix: clear P0/P1 alerts after early send to prevent duplicate Matrix messages
After sending P0/P1 alerts immediately, reset the variables so they are
excluded from the final consolidated ALL_ALERTS send at the end of the
script.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-19 09:23:47 +00:00
openhands
5632138cc3 fix: bug: supervisor never delivers disk alerts — crashes during PR scan (#252)
Send P0 and P1 alerts to Matrix immediately after detection, before
per-project checks run. Also guard check_project calls with || flog so
any API timeout or jq parse failure inside the per-project scan cannot
kill the script before alert delivery.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-19 09:16:56 +00:00
johba
e12bbbc0f2 Merge pull request 'fix: feat: supervisor auto-retriggers CI after infra-only exhaustion (#185)' (#248) from fix/issue-185 into main 2026-03-19 10:09:13 +01:00
openhands
97ffdca95c fix: address review feedback on escalation triage (#185)
- supervisor-poll.sh: check PR state before retrigger; discard stale escalations
  for closed/merged PRs instead of pushing to their branches
- supervisor-poll.sh: bump escalation ts to now on failed retrigger push, so
  the 30-min cooldown resets and alert flooding is avoided on persistent failures
- ci-helpers.sh: require at least one confirmed infra step before returning
  "infra"; prevents false-positive when all step names are empty strings
- ci-helpers.sh: clarify header comment to distinguish per-function requirements
- AGENTS.md: document classify_pipeline_failure() in ci-helpers.sh table row

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-19 09:03:03 +00:00
johba
b9ba5c9250 docs: agent design principles — determinism/judgment split (#240)
Design principle for all disinto agents.

## Core idea
Split every agent into two layers:
- **Bash orchestrator (thin, deterministic):** session lifecycle, worktrees, locks, phase monitoring
- **Claude via formula (fat, judgment):** understand task, implement, handle reviews/CI/merge, adapt to novel situations

## Why
Agent scripts grow by accretion — every lesson becomes another if/else in bash. Formulas are refineable, learnable, and generalizable. Bash state machines are not.

## Includes
- Design principle with clear split criteria
- "When reviewing, ask these questions" checklist
- Current state assessment for all 5 agent types
- Risk mitigations (phase protocol as safety net)

Reviewers and planner should be aware of this principle when assessing PRs and planning work.

Co-authored-by: openhands <openhands@all-hands.dev>
Reviewed-on: https://codeberg.org/johba/disinto/pulls/240
Reviewed-by: Disinto_bot <disinto_bot@noreply.codeberg.org>
2026-03-19 09:56:37 +01:00
openhands
47eccdb8ae fix: split case pattern so smoke test recognises ci_exhausted labels (#185)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-19 08:53:32 +00:00
openhands
051ff39144 fix: feat: supervisor auto-retriggers CI after infra-only exhaustion (#185)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-19 08:51:30 +00:00
johba
a4877b58db Merge pull request 'fix: Review verdict case mismatch: lowercase verdict submits COMMENT instead of REQUEST_CHANGES (#189)' (#247) from fix/issue-189 into main 2026-03-19 09:38:05 +01:00
openhands
c7a7d98e09 fix: Review verdict case mismatch: lowercase verdict submits COMMENT instead of REQUEST_CHANGES (#189) 2026-03-19 08:34:45 +00:00
johba
4a782528eb Merge pull request 'fix: dev-agent reads issue comments alongside body (#237)' (#241) from fix/issue-237 into main 2026-03-19 09:28:08 +01:00
openhands
7cf1d035e0 fix: use original issue body for dep parsing and PR recovery detection
Prevent human comments appended to ISSUE_BODY from causing false
positive dependency blocks or spurious 'Existing PR:' recovery matches
in parse-deps.sh and the PR recovery guard.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-19 08:25:02 +00:00
johba
e50d467172 Merge pull request 'fix: feat: supervisor cleans up orphaned tmux sessions + worktrees (#235)' (#239) from fix/issue-235 into main 2026-03-19 09:18:45 +01:00
openhands
1557c17e2f fix: address review: phase guard, tmux failure safety, paginated PR lookup (#235)
- Skip cleanup for sessions in needs_human/awaiting_ci/awaiting_review phases
- On tmux display-message failure skip session instead of defaulting to epoch 0
- Use paginated PR lookups (page loop checking page size, not match count)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-19 08:11:51 +00:00
openhands
d40a9c36c5 fix: dev-agent reads issue comments alongside body (#237)
Fetches issue comments via Codeberg API and appends human comments
to the issue body in the Claude prompt. Bot comments (Disinto_bot,
disinto-factory) are filtered out.

One API call, zero new dependencies.
2026-03-19 07:56:11 +00:00
openhands
d982b4592f fix: feat: supervisor cleans up orphaned tmux sessions + worktrees (#235)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-19 07:51:30 +00:00
johba
73e49d54ee Merge pull request 'fix: feat: action-agent — tmux + Claude + formula for operational tasks (#139)' (#236) from fix/issue-139 into main 2026-03-19 08:40:49 +01:00
openhands
4e56d14e6a fix: feat: action-agent — tmux + Claude + formula for operational tasks (#139)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-19 07:25:25 +00:00
johba
3fdd45f617 Merge pull request 'chore: planner update AGENTS.md tree' (#234) from chore/planner-agents-20260319 into main
Reviewed-on: https://codeberg.org/johba/disinto/pulls/234
2026-03-19 08:12:40 +01:00
openhands
6c458b43fb chore: planner update AGENTS.md tree 2026-03-19 07:05:40 +00:00
johba
e782119a15 docs: evidence architecture — sensing, integration, deployment gates (#207)
Captures design decisions from 2026-03-18 session with Johann.

## Key decisions
- **Evidence as integration layer**: formulas adapt external platforms (Analytics, Ponder, DigitalOcean) into structured JSON in `evidence/`; planner reads evidence, not platforms
- **Process types**: sense (holdout, user-test, measure-*) vs mutation (evolution, red-team)
- **Evidence-gated deployment**: no human "ship it" — all dimensions green = deploy
- **Resource allocation**: planner reads evidence staleness + current box load, decides what to run
- **Scope**: disinto is not a general company OS — it is finetuned for money → software → customer → knowledge → market fit

## New file
- `docs/EVIDENCE-ARCHITECTURE.md`

Co-authored-by: openhands <openhands@all-hands.dev>
Reviewed-on: https://codeberg.org/johba/disinto/pulls/207
Reviewed-by: Disinto_bot <disinto_bot@noreply.codeberg.org>
2026-03-19 07:55:21 +01:00
johba
e6eb9e76e0 Merge pull request 'fix: codeberg_api_all does not accept a custom token parameter (#198)' (#226) from fix/issue-198 into main 2026-03-19 02:29:14 +01:00
openhands
17907063f6 fix: codeberg_api_all does not accept a custom token parameter (#198)
Add optional second TOKEN parameter to codeberg_api_all in lib/env.sh,
defaulting to $CODEBERG_TOKEN. Pass $REVIEW_BOT_TOKEN at the dismiss
block in review-pr.sh so reviews are fetched as the review bot account.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-19 01:25:44 +00:00
johba
dfd4e00d34 Merge pull request 'fix: Callbacks can't see the resolved _session from monitor_phase_loop (#200)' (#225) from fix/issue-200 into main 2026-03-19 02:18:15 +01:00
openhands
e853949b47 fix: Callbacks can't see the resolved _session from monitor_phase_loop (#200)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-19 01:05:21 +00:00
johba
ba8bb5637e Merge pull request 'fix: dev/dev-agent.sh still passes string label name to /labels replace endpoint (#202)' (#221) from fix/issue-202 into main 2026-03-19 01:59:22 +01:00
openhands
54fa568935 fix: dev/dev-agent.sh still passes string label name to /labels replace endpoint (#202)
Look up the backlog label ID via the Gitea labels API (with fallback to
1300815) and replace '{"labels":["backlog"]}' with the integer ID form
at both call sites (cleanup() line 135 and idle_timeout handler line 713).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-19 00:45:57 +00:00
johba
bb6a026706 Merge pull request 'fix: fix: bundled dust cleanup — README.md (#208)' (#219) from fix/issue-208 into main 2026-03-19 01:38:51 +01:00
openhands
d24600a553 fix: fix: bundled dust cleanup — README.md (#208)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-19 00:35:45 +00:00
johba
eba88558f1 Merge pull request 'fix: fix: bundled dust cleanup — site (#209)' (#218) from fix/issue-209 into main 2026-03-19 01:28:11 +01:00
openhands
26ebe10ca5 fix: fix: bundled dust cleanup — site (#209)
- Add grid-template-columns: 1fr to .values grid (issue #168)
- Add site/README.md documenting og-image.jpg regeneration and
  branding update process (issues #162, #169)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-19 00:10:39 +00:00
johba
b18d3928f0 Merge pull request 'fix: fix: bundled dust cleanup — push3-evolution/evolve.sh (#210)' (#217) from fix/issue-210 into main 2026-03-19 01:03:53 +01:00
openhands
a0df400219 fix: fix: bundled dust cleanup — push3-evolution/evolve.sh (#210)
Implementation in johba/harb#987 (branch fix/push3-dust-cleanup):
- #716: null-fitness crash fix in generation JSONL parsing
- #944: processExecIf_fix added to ZERO_RATED_FLAGS
- #945: fitness_flags is comma-separated — update schema + effective_fitness

Note push3-evolution subsystem fitness_flags format in harb.toml.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-18 23:50:53 +00:00
johba
9afcd15373 Merge pull request 'fix: fix: bundled dust cleanup — AGENTS.md (#211)' (#215) from fix/issue-211 into main 2026-03-18 23:37:59 +01:00
openhands
cac012219a fix: remove phase-handler.sh from agent-session.sh Sourced-by column
phase-handler.sh does not source agent-session.sh directly — dev-agent.sh
sources agent-session.sh first, then sources phase-handler.sh. Correct
the Sourced-by entry to: dev-agent.sh, gardener-agent.sh.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-18 22:28:57 +00:00
openhands
62acdab6ea fix: fix: bundled dust cleanup — AGENTS.md (#211)
- #167: replace manually-maintained shellcheck file list with glob (git ls-files '*.sh' | xargs shellcheck)
- #188: add missing functions to lib/agent-session.sh table entry (monitor_phase_loop, create_agent_session, read_phase, inject_formula) and update Sourced-by column
- #166: agent-session.sh entry already present; Sourced-by updated to include dev-agent.sh and phase-handler.sh

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-18 22:15:43 +00:00
johba
643ca7856f Merge pull request 'fix: dev/phase-handler.sh still passes string label name to /labels replace endpoint (#203)' (#212) from fix/issue-203 into main 2026-03-18 23:09:06 +01:00
openhands
08b65ddc43 fix: dev/phase-handler.sh still passes string label name to /labels replace endpoint (#203)
Look up backlog label ID via Codeberg API at the start of the PHASE:failed
branch and replace '{"labels":["backlog"]}' at lines 547 and 628 with
the numeric ID, matching the pattern already used in gardener.
2026-03-18 22:06:05 +00:00
johba
f5786de122 Merge pull request 'fix: docs: document opinionated design constraints (#30)' (#205) from fix/issue-30 into main 2026-03-18 22:37:48 +01:00
openhands
d38a797aa9 fix: correct runtime constraints — python3 is a core dependency
python3 is used directly by dev/dev-poll.sh (JSON CI-fix tracker),
lib/load-project.sh (TOML parsing via tomllib), and gardener/gardener-poll.sh
(recipe-matching engine). Add it to the dependency list and rephrase the
runtime constraint to reflect what is actually true.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-18 21:29:21 +00:00
openhands
7e008991a7 fix: agent-smoke.sh: use [(][)] instead of \(\) for BusyBox grep ERE compat
BusyBox grep (Alpine CI) does not treat \( as a literal paren in -E mode,
causing inject_formula to appear undefined even though it is defined in
lib/agent-session.sh. Using [(][)] is unambiguous in both GNU grep and
BusyBox grep.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-18 21:24:27 +00:00
openhands
a3abf9f37a fix: docs: document opinionated design constraints (#30)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-18 21:20:09 +00:00
johba
2d5fe2ceac Merge pull request 'fix: PRIORITY 1.5 misses REQUEST_CHANGES when CI is not yet settled (#41)' (#204) from fix/issue-41 into main 2026-03-18 22:13:01 +01:00
openhands
d1cea6c0bb fix: apply same REQUEST_CHANGES/CI-pending fix to PRIORITY 1 block 2026-03-18 21:03:53 +00:00
openhands
34ddbef3fd fix: PRIORITY 1.5 misses REQUEST_CHANGES when CI is not yet settled (#41) 2026-03-18 20:50:56 +00:00
johba
2544fc49fb Merge pull request 'fix: labels:["backlog"] passes string name to Codeberg API that expects integer IDs (#164)' (#201) from fix/issue-164 into main 2026-03-18 21:44:08 +01:00
openhands
833b07ed6e fix: labels:["backlog"] passes string name to Codeberg API that expects integer IDs (#164)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-18 20:36:39 +00:00
johba
cf6ecd4b3d Merge pull request 'fix: agent-session.sh: monitor_phase_loop should accept SESSION_NAME as a parameter (#187)' (#199) from fix/issue-187 into main 2026-03-18 21:29:03 +01:00
openhands
e0f37ede12 fix: agent-session.sh: monitor_phase_loop should accept SESSION_NAME as a parameter (#187)
Add optional 4th parameter to monitor_phase_loop for SESSION_NAME,
falling back to the $SESSION_NAME global for backwards-compatibility.
Document the full function signature in both the file header and inline comment.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-18 20:15:14 +00:00
johba
76734a2f6e Merge pull request 'fix: Gitea reviews API is fetched without pagination in multiple places (#191)' (#197) from fix/issue-191 into main 2026-03-18 21:09:34 +01:00