Commit graph

955 commits

Author SHA1 Message Date
johba
0631b71aa5 Merge pull request 'fix: inject skipDangerousModePermissionPrompt into worktree settings (#514)' (#522) from fix/agent-session-skip-permissions into main 2026-03-21 20:54:02 +01:00
johba
93d8249d3a Merge pull request 'fix: feat: unified escalation — single PHASE:escalate path for all agents (#510)' (#521) from fix/issue-510 into main 2026-03-21 20:51:26 +01:00
openhands
bc6fe1beee fix: inject skipDangerousModePermissionPrompt into worktree settings
Project-level .claude/settings.json overrides global ~/.claude/settings.json.
When agent-session.sh creates settings with hooks but without the skip flag,
Claude shows an interactive bypass-permissions confirmation dialog that blocks
all non-interactive tmux agent sessions.

Fixes #514.
2026-03-21 19:50:49 +00:00
openhands
5822dc89d9 fix: feat: unified escalation — single PHASE:escalate path for all agents (#510)
Replace PHASE:needs_human with PHASE:escalate across all agent types.
Consolidates 6 overlapping escalation mechanisms into one unified path:
detect → notify via Matrix → session stays alive → human reply injected → resume.

Key changes:
- PHASE:escalate replaces PHASE:needs_human everywhere (16 files)
- CI exhausted now escalates instead of immediately marking blocked
- Matrix listener routes free-text replies to vault tmux sessions
- Vault agent writes PHASE:escalate files for procurement requests
- Supervisor monitors PHASE:escalate sessions in health checks
- 24h timeout on escalation → blocked label + session killed
- All 38 phase protocol tests updated and passing

Supersedes #462, #458, #465.
2026-03-21 19:39:04 +00:00
johba
725c4d7334 Merge pull request 'fix: feat: vault as procurement gate + RESOURCES.md capability inventory (#504)' (#520) from fix/issue-504 into main 2026-03-21 20:28:24 +01:00
openhands
ae3a8e1803 fix: use awk instead of sed for RESOURCES.md entry extraction
The sed range pattern terminated on ## <resource-id> which is the first
line of the entry content, yielding an empty result for all valid
procurement files. awk reads from the header to EOF without ambiguity.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 19:22:02 +00:00
openhands
05f787eb03 fix: feat: vault as procurement gate + RESOURCES.md capability inventory (#504)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 18:49:31 +00:00
johba
2674eebbd6 Merge pull request 'fix: feat: planner v2 — prerequisite tree + resource-aware executive (#502)' (#519) from fix/issue-502 into main 2026-03-21 19:39:02 +01:00
openhands
07551fab48 fix: feat: planner v2 — prerequisite tree + resource-aware executive (#502)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 18:28:38 +00:00
johba
5d2c5abb0b Merge pull request 'chore: gardener housekeeping' (#517) from chore/gardener-20260321-1807 into main 2026-03-21 19:22:26 +01:00
johba
411817139a Merge pull request 'fix: fix: PreToolUse guard — allow formula agents to access FACTORY_ROOT from worktrees (#487)' (#518) from fix/issue-487 into main 2026-03-21 19:16:54 +01:00
openhands
f6dd91389f fix: PreToolUse guard — allow formula agents to access FACTORY_ROOT from worktrees (#487)
- Add session name as third arg to guard hook (passed from agent-session.sh)
- Detect formula sessions (supervisor-*, gardener-*, planner-*, predictor-*)
- Guard 6: block filesystem access to factory root from worktrees, exempt formulas
- Guard 7: restrict system commands (kill, docker, tmux) to supervisor only
- Guard 2: allow formula agents rm -rf within factory root

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 18:09:28 +00:00
openhands
b4f1666a80 chore: gardener housekeeping 2026-03-21 2026-03-21 18:07:37 +00:00
johba
e050f79153 Merge pull request 'fix: fix: supervisor formula — narrow PR stale check to >20min inactive only (#486)' (#515) from fix/issue-486 into main 2026-03-21 19:01:17 +01:00
openhands
ad2085a45f fix: supervisor formula — narrow PR stale check to >20min inactive only (#486)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 17:55:21 +00:00
johba
80a64cd3e4 Merge pull request 'fix: feat: gardener quality gate — strip backlog label from poorly structured issues (#483)' (#513) from fix/issue-483 into main 2026-03-21 18:48:39 +01:00
openhands
70bf18912a fix: feat: gardener quality gate — strip backlog label from poorly structured issues (#483)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 17:45:36 +00:00
johba
b05cb7824d Merge pull request 'fix: fix: WATCH flow comment step missing explicit curl command in run-planner.toml (#469)' (#512) from fix/issue-469 into main 2026-03-21 18:39:02 +01:00
openhands
761eed5d42 fix: WATCH flow comment step missing explicit curl command in run-planner.toml (#469)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 17:29:39 +00:00
johba
df627c1b88 Merge pull request 'fix: idle_pane_count not reset in phase-changed branch of monitor_phase_loop (#436)' (#511) from fix/issue-436 into main 2026-03-21 18:22:13 +01:00
openhands
1604d1e062 fix: idle_pane_count not reset in phase-changed branch of monitor_phase_loop (#436)
When a phase change is detected (mtime changes), idle_elapsed was reset
but idle_pane_count was not. This meant idle counts accumulated before a
phase write carried into subsequent polls, so N consecutive idle polls
could be reached with fewer than N actual consecutive idle polls.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 17:14:54 +00:00
johba
01a50aaa3d Merge pull request 'fix: Action session name missing PROJECT_NAME prefix (#432)' (#509) from fix/issue-432 into main 2026-03-21 18:09:16 +01:00
openhands
4a9f610c73 fix: Action session name missing PROJECT_NAME prefix (#432)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 17:05:09 +00:00
johba
89a9a822de Merge pull request 'fix: dev/phase-handler.sh still has divergent infra heuristics (#427)' (#508) from fix/issue-427 into main 2026-03-21 17:59:02 +01:00
openhands
694936e663 fix: dev/phase-handler.sh still has divergent infra heuristics (#427)
Replace inline case git*/128/137 heuristics in phase-handler.sh with a
call to the shared is_infra_step() helper from lib/ci-helpers.sh.
This eliminates the divergence between phase-handler.sh and
classify_pipeline_failure(), ensuring a single source of truth for
CI infra failure classification.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 16:50:15 +00:00
johba
3e952eae8b Merge pull request 'fix: dev-agent.sh uses hardcoded bot usernames instead of dynamic resolution (#425)' (#507) from fix/issue-425 into main 2026-03-21 17:44:02 +01:00
openhands
1cd1b09041 fix: dev-agent.sh uses hardcoded bot usernames instead of dynamic resolution (#425)
Replace hardcoded Disinto_bot/disinto-factory filter with dynamic /user
API resolution + CODEBERG_BOT_USERNAMES env var fallback, matching the
pattern established in action-agent.sh by PR #424.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 16:35:00 +00:00
johba
db8074b126 Merge pull request 'fix: Status file is not per-project in multi-project setups (#423)' (#506) from fix/issue-423 into main 2026-03-21 17:29:02 +01:00
johba
a549454821 Merge pull request 'chore: seed RESOURCES.md — factory capability inventory' (#505) from chore/seed-resources into main
Reviewed-on: https://codeberg.org/johba/disinto/pulls/505
2026-03-21 17:22:08 +01:00
openhands
9b765e2a56 chore: seed RESOURCES.md — factory capability inventory
Remove gitignore entry for RESOURCES.md. The file contains no secrets —
only capability descriptions for the planner to read.

Part of #504 (vault + RESOURCES.md).
2026-03-21 16:20:10 +00:00
openhands
ac13bf110c fix: Status file is not per-project in multi-project setups (#423)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 16:20:07 +00:00
johba
d760c951b5 Merge pull request 'fix: fix: bundled dust cleanup — AGENTS.md (#420)' (#503) from fix/issue-420 into main 2026-03-21 17:14:02 +01:00
openhands
a9b8144401 fix: bundled dust cleanup — AGENTS.md (#420)
- Add phase-handler.sh to dev Key files (#332)
- Document ci_required_for_pr() in ci-helpers.sh (#347)
- Update planner trigger: weekly → daily, note optional project arg (#416)
- Add dev-agent.sh, action-agent.sh to formula-session.sh sourced-by (#418)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 16:02:29 +00:00
johba
80b5d51dc0 Merge pull request 'fix: Remove legacy predictor (prediction-poll.sh + prediction-agent.sh + cron entry) (#419)' (#501) from fix/issue-419 into main 2026-03-21 16:54:01 +01:00
openhands
5d70badc48 ci: retrigger pipeline (transient busybox awk failure) 2026-03-21 15:44:59 +00:00
openhands
446e6ef0a8 fix: Remove legacy predictor (prediction-poll.sh + prediction-agent.sh + cron entry) (#419)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 15:40:07 +00:00
johba
4f5ad1cc2a Merge pull request 'fix: phase-handler.sh FAILURE_REASON fallback does not handle missing phase file (#410)' (#500) from fix/issue-410 into main 2026-03-21 16:34:02 +01:00
openhands
8b293331b6 fix: phase-handler.sh FAILURE_REASON fallback does not handle missing phase file (#410)
The sed pipeline `sed -n 2p "$PHASE_FILE" 2>/dev/null | sed "s/^Reason: //"` exits 0
even when $PHASE_FILE does not exist because the second sed reads empty stdin and
succeeds, leaving FAILURE_REASON as "" instead of "unspecified".

Replace with an explicit file-existence check and use ${FAILURE_REASON:-unspecified}
as the default assignment.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 15:00:01 +00:00
johba
ea794fc7c3 Merge pull request 'fix: feat: quickstart guide and architecture docs on disinto.ai (#394)' (#499) from fix/issue-394 into main 2026-03-21 15:54:02 +01:00
openhands
234785144d fix: feat: quickstart guide and architecture docs on disinto.ai (#394)
Add two documentation pages to the site:
- site/docs/quickstart.html — prerequisites, disinto init walkthrough,
  first issue lifecycle demo
- site/docs/architecture.html — agent loop diagram, phase protocol,
  vault/quality gate, planner+predictor feedback cycle

Both pages are linked from the landing page navigation and footer.
Sitemap updated with new URLs.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 14:43:19 +00:00
johba
631563e58a Merge pull request 'chore: gardener housekeeping 2026-03-21' (#498) from chore/gardener-20260321-1433 into main 2026-03-21 15:41:26 +01:00
johba
10de653659 Merge pull request 'fix: Stale ${PROJECT_NAME:-harb} fallbacks in agent scripts (#400)' (#497) from fix/issue-400 into main 2026-03-21 15:34:02 +01:00
openhands
24cf01028a chore: gardener housekeeping 2026-03-21
- Update AGENTS.md watermarks (all 10 files) to HEAD 038581e5
- Content already current from recent gardener migration and setup PRs

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-21 14:33:26 +00:00
openhands
962f26b24d fix: Stale ${PROJECT_NAME:-harb} fallbacks in agent scripts (#400)
Replace all harb-specific fallbacks with generic 'default' sentinel
in dev-agent.sh, dev-poll.sh, action-agent.sh, and action-poll.sh.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 14:25:13 +00:00
johba
038581e555 Merge pull request 'fix: feat: live factory metrics dashboard on disinto.ai (#395)' (#496) from fix/issue-395 into main 2026-03-21 15:23:51 +01:00
openhands
874095b689 fix: review feedback — drop inflated X-Total-Count for PRs, remove redundant curl, use textContent
- Remove X-Total-Count header override for prs_merged_total: header counts
  all closed PRs (including unmerged/rejected), inflating the dashboard metric.
  Keep the jq-filtered count from the 50-item page instead.
- Remove redundant first curl in backlog_count that discards its response.
- Use textContent/createElement instead of innerHTML for project names.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 14:15:00 +00:00
openhands
115063f4ce fix: feat: live factory metrics dashboard on disinto.ai (#395)
Add metrics collector (site/collect-metrics.sh) and dashboard page
(site/dashboard.html) showing PRs merged, issues closed, CI pass rate,
vault decisions, and agent activity across all managed projects.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 14:08:22 +00:00
johba
12f8623a04 Merge pull request 'fix: feat: disinto init — one-command project bootstrap (#393)' (#495) from fix/issue-393 into main 2026-03-21 14:59:02 +01:00
openhands
6dfd2946ef fix: feat: disinto init — one-command project bootstrap (#393)
Add bin/disinto CLI entry point with two subcommands:

- `disinto init <repo-url>`: bootstraps a new project by cloning the
  repo, generating a projects/*.toml config, creating Codeberg labels
  (backlog, in-progress, blocked, tech-debt, underspecified, vision,
  action), generating a VISION.md template, and installing cron jobs
  for dev-poll, review-poll, and gardener.

- `disinto status`: shows active sessions, backlog depth, and open PR
  count for all configured projects.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 13:49:04 +00:00
johba
9478859ad3 Merge pull request 'fix: VISION.md Foundation milestone should note multi-project is complete (Scale bump) (#391)' (#494) from fix/issue-391 into main 2026-03-21 14:39:03 +01:00