14 Commits

Author SHA1 Message Date
Boden Fuller d03ff5620b chore(bd): default BEADS_DOLT_SERVER_PORT=3307 in hook helpers + bd scripts
lib/hook-helpers.sh exports BEADS_DOLT_SERVER_PORT with override via
${BEADS_DOLT_SERVER_PORT:-3307} so users can still override per shell.
All hooks that source hook-helpers.sh automatically inherit the port.

scripts/bd-audit.sh and scripts/bd-cluster.sh are standalone bd callers
that do not source hook-helpers.sh, so they get the same export inline.

cli/embedded/lib/hook-helpers.sh synced via make sync-hooks.

Consumes ag-co7 'Export BEADS_DOLT_SERVER_PORT=3307 in shell env'.
2026-04-15 15:53:15 -04:00
Boden Fuller 2484d5f67b fix(team-runner): surface claude process failures 2026-04-12 11:56:23 -04:00
Boden Fuller 1a51354917 docs(team-runner): clarify claude sandbox semantics 2026-04-12 11:51:20 -04:00
Boden Fuller c3fd166f7e refactor(rpi): wave 2 — hook polish, test infra cleanup, skill normalization
Hook polish: add missing kill switch to go-test-precommit.sh, fix shebang
and bracket style in hook-helpers.sh, shellcheck annotations for
finding-compiler.sh and session-start.sh.

Test infra: refactor defrag.go writeDefragReport to accept io.Writer,
consolidate chdirTempWorkspace into chdirTo delegation, add godoc to
testutil_test.go helpers.

Skills: normalize output_contract quoting in brainstorm, design,
red-team, review SKILL.md frontmatter.
2026-04-04 23:25:12 -04:00
Boden Fuller 45db7ab97b feat(skills): apply Claude Code architecture lessons — retry budgets, stability flags, quality signals, orchestration pattern
Inspired by patterns discovered in Claude Code's npm source map leak:

- Add hook failure budget to lib/hook-helpers.sh (MAX_CONSECUTIVE_HOOK_FAILURES=3,
  configurable via AGENTOPS_HOOK_FAILURE_CAP) — prevents runaway hook loops
- Add metadata.stability field (experimental|stable) to skill frontmatter schema
  with heal.sh validation (H010) and skill-conventions documentation
- Add quality-signals.sh hook detecting repeated prompts and correction patterns,
  logging to .agents/signals/session-quality.jsonl with defined schema
- Document orchestration-as-prompt as a first-class pattern in shared references,
  linked from crank, swarm, evolve, rpi skills with codex parity
2026-04-01 08:07:39 -04:00
Boden Fuller 7ac8a29b56 feat(ci): shift 9 CI-only checks to pre-push gate
Add doc-release, contract-compatibility, hook-preflight, hooks-doc-parity,
ci-policy-parity, shellcheck, symlink-rejection, learning-coherence, and
orphan-hooks checks to pre-push-gate.sh (checks 25-33). Add fast-mode
detection for docs/shell/learning file categories so new checks only run
when relevant files change.

Also fix shellcheck warnings in task-validation-gate.sh (SC2053 glob
directives) and remove unused error_msg in watch-codex-stream.sh.
2026-03-31 15:19:50 -04:00
Test e0d4a8a55d feat: add headless Claude team backend 2026-03-09 13:34:36 -04:00
Test b3b49d443e fix(post-mortem): preserve durable pre-commit closure proof 2026-03-09 12:07:32 -04:00
Test 40237c2b72 fix(post-mortem): harden closure audit follow-ups 2026-03-09 11:00:51 -04:00
Test d93d34a9c6 feat(post-mortem): add staged and worktree closure evidence 2026-03-09 10:00:16 -04:00
Test ec3a87df01 Complete ae591e7c follow-up batch 2026-03-08 21:40:47 -04:00
Boden Fuller 744bcabeb9 chore(cli,ci,docs): tech debt swarm — 10 fixes across scripts, hooks, CI, docs
- Fix hardcoded /tmp path in test-json-flag-consistency.sh (use mktemp)
- Add graceful skip for missing jq/python3 in check-contract-compatibility.sh
- Fix import grouping in maturity_test.go
- Update .agents/retros/ → .agents/learnings/ in ratchet gate.go
- Extract _validate_restricted_cmd to lib/hook-helpers.sh (shared lib)
- Wire test-json-flag-consistency.sh into CI (new validate.yml job)
- Add post-merge naming cleanup step to swarm local-mode.md
- Document operationalization heuristics in plan SKILL.md
- Create check-file-manifest-overlap.sh for pre-spawn conflict detection
- Wire file manifest overlap check into CI with self-tests
- Pre-mortem fixes: bash 4+ guard, mktemp in CI self-tests
2026-03-05 13:12:54 -05:00
Boden Fuller 1234ff75a3 fix(hooks+cli): harvest remediation — 10 fixes across hooks, CLI, scripts (na-oh2)
Wave 1 — Hook hardening:
- research-loop-detector: early exit for neutral tools before git rev-parse
- commit-review-gate: capture git diff once (4→2 calls, TOCTOU fix)
- task-validation-gate: extract validate_restricted_cmd to hook-helpers.sh,
  pre-validate assertion regex, fix || && precedence bug
- session-start: clear .intent-echo-fired on new session
- go-vet-post-edit: assertion density → additionalContext JSON

Wave 2 — Go + scripts:
- inject_learnings: single-read + parseFrontmatterFromContent + atomicWriteFile
  (eliminates double-read race in applyConfidenceDecayMarkdown)
- rpi_phased: pass actual phaseStart time to handleBudgetTimeout
  (fixes time_boxed StartedAt/DurationSeconds inaccuracy)
- bootstrap-maturity.sh: add .jsonl support with jq maturity injection
- inject.go: add non-verbose quality gate summary to stderr
2026-03-03 18:07:04 -05:00
Boden Fuller 37d4b5b2ae Merge branch 'codex/rpi-supervisor-cli' into main 2026-02-21 19:41:50 -05:00