Skip to content
Merged
Show file tree
Hide file tree
Changes from 60 commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
48fa676
fix: hash_pane() md5 fallback chain for restricted PATH on macOS
trillium Jul 12, 2026
8b7b3cd
feat: herdr->firstmate spur bridge prototype
trillium Jul 15, 2026
a8b99f2
feat: fm-groom proactive ideas-store work generator
trillium Jul 15, 2026
1e917ec
feat(review-page): render review-store items to visitable Pulse pages
trillium Jul 15, 2026
8c8d912
test(review-page): hermetic behavior tests for fm-review-page
trillium Jul 15, 2026
527a5d3
fix(review-page): eliminate code-span placeholder leak in markdown re…
trillium Jul 15, 2026
61532ff
Add fm-idea-mine.ts: mine chat history for uncaptured ideas, re-evalu…
trillium Jul 15, 2026
a9616b5
fm-idea-mine: pass generous --timeout to default Inference.ts cmd for…
trillium Jul 15, 2026
92e52e6
Add hermetic tests for fm-idea-mine: generate/evaluate/file, dedup, d…
trillium Jul 15, 2026
bdee128
fm-review-decision.sh: route a captain's review decision to firstmate
trillium Jul 15, 2026
61b1ea2
fm-review-page: interactive decision panel + single top bar
trillium Jul 15, 2026
8fc743f
wip: local firstmate customizations snapshot before upstream merge
trillium Jul 20, 2026
ee07a2e
Add fm-isolated-launch.sh for HOME-isolated claude sessions
trillium Jul 27, 2026
3429e03
Document fm-isolated-launch.sh in README
trillium Jul 27, 2026
b0cdd76
fm-isolated-launch: mirror cwd outside $HOME tree, seed keychain cred…
trillium Jul 27, 2026
041bbb3
fm-isolated-launch: force bypass-permissions mode, matching crewmate …
trillium Jul 27, 2026
deb22ed
fm-isolated-launch: symlink real data/ for federated bd store access
trillium Jul 27, 2026
c905f60
feat(bin): beads dispatch lifecycle via spawn/brief hook extension po…
trillium Jul 28, 2026
90407ee
no-mistakes(review): Fix bead-close detection false positives, align …
trillium Jul 28, 2026
52e35e3
no-mistakes(document): Sync docs/AGENTS.md with beads dispatch hook f…
trillium Jul 28, 2026
1aecf54
Add per-account Claude Code launcher and fm-spawn --account flag
trillium Jul 28, 2026
768e473
feat(skills): add herdr-navigation internal skill; gitignore CHANGELO…
trillium Jul 28, 2026
7cbb3f6
fix(bin): allow session-local todo tools in the subagent guard (#1204)
danielkuykendall23-boop Jul 29, 2026
a117b41
fix(session-lock): resolve Claude bg-spare ancestry to the outermost …
trillium Jul 29, 2026
a323c2b
fix: conferma l'avvio del watcher su Windows/MSYS (#1212)
Unknownzed Jul 29, 2026
41ffd45
fix(spawn): forward CLAUDE_CONFIG_DIR to claude crewmates (#1195)
lucashalbert Jul 29, 2026
99533c5
fix: preserve dispatch identity across authentication checks (#1233)
kunchenguid Jul 29, 2026
6ec5e08
fix(bin): normalize relative durable paths (#1256)
sparkus Jul 29, 2026
c21bf54
refactor(skills): make Bearings chat-only by default (#1136)
deeto15 Jul 29, 2026
96e027e
Clarify follow-up routing during validation (#1277)
kunchenguid Jul 30, 2026
a24eac1
fix: honor concrete approval for project operations (#1272)
kunchenguid Jul 30, 2026
0bbb27b
fix(skills): route new project intake through secondmate scopes (#1275)
kunchenguid Jul 30, 2026
daf6dce
fix: scope validation corrections by accepted behavior (#1281)
kunchenguid Jul 30, 2026
a2d5f26
test: replace source assertions with behavioral coverage (#1282)
kunchenguid Jul 30, 2026
56a7ac6
fix(watch): escalate busy workers with no completed turn (#1286)
kunchenguid Jul 30, 2026
e595611
fix(gitignore): ignore config/ as a directory, not by exact filename …
karotkriss Jul 30, 2026
a53ffc1
fix(tests): replace source-content .gitignore assertion with behavior…
kunchenguid Jul 30, 2026
79e62b8
feat: bound and consolidate startup memory during stow (#1303)
kunchenguid Jul 30, 2026
f0d7cbe
fix(herdr): place workers in the launching workspace (#1328)
kunchenguid Jul 30, 2026
3a112a1
fix(calm): refine Calm working boat animation (#1339)
kunchenguid Jul 31, 2026
28b02d2
fix(dispatch): preflight candidate auth before quota escalation (#1349)
kunchenguid Jul 31, 2026
5fca47f
feat(x-mode): reconcile promised public replies deterministically (#1…
kunchenguid Jul 31, 2026
96542a4
feat(bin): replace busy heuristics with semantic lifecycle state (#1327)
kunchenguid Jul 31, 2026
621299a
fix: preserve Calm boat continuity across working periods (#1356)
kunchenguid Jul 31, 2026
f7d0d0a
fix: restore evidence-based dispatch eligibility (#1358)
kunchenguid Jul 31, 2026
3772964
docs: define captain instruction precedence (#1362)
kunchenguid Jul 31, 2026
3977ad1
Add documentation audience classification for no-mistakes-run-livenes…
trillium Jul 31, 2026
9fdef64
docs: define validation supersession sequence (#1407)
kunchenguid Jul 31, 2026
000c1db
fix: bind backend overrides to exact-task authority (#1413)
kunchenguid Jul 31, 2026
66b0f77
fix(herdr): prevent focus flashes during projected workspace cleanup …
kunchenguid Jul 31, 2026
a805766
fix: prioritize completion runway in quota-aware dispatch (#1431)
kunchenguid Jul 31, 2026
68641a3
fix(bin): preserve full task contract in no-mistakes intent (#1447)
kunchenguid Aug 1, 2026
4331549
docs: add dirty-worktree default pattern [quality:documented]
trillium Aug 1, 2026
d078775
Merge remote-tracking branch 'upstream/main' into merge/upstream-kunc…
trillium Aug 1, 2026
3121197
Merge origin/main: reconcile diverged main (Option A)
trillium Aug 2, 2026
18d6b43
no-mistakes(review): Fix fm-brief.sh --beads arg parsing and fm-spawn…
trillium Aug 2, 2026
f45def6
no-mistakes(document): Sync docs/scripts.md, README, AGENTS.md with n…
trillium Aug 2, 2026
4e054be
fix(tests): correct stat portability check in fm-beads-hooks.test.sh
trillium Aug 2, 2026
fd81b6b
no-mistakes(document): fix isolated-launch docs and dedupe scripts.md…
trillium Aug 2, 2026
5f73644
fix: address CodeRabbit review findings on merge-introduced code
trillium Aug 2, 2026
c2f8f16
fm-spawn-hooks/beads: validate id charset, quote task-show interpolation
trillium Aug 2, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .agents/skills/firstmate-coding-guidelines/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Every contract - a data format, a state machine, a decision procedure - is state
Every other mention of it is a one-line cross-reference, never a restatement.
A single deliberate one-line reinforcement at a genuine risk point is allowed, for example a "don't forget X" placed exactly where forgetting X is costly.
Restating the contract's substance a second time is not allowed: the two copies will drift the moment only one is edited.
When you touch a contract, grep the repo for its other mentions and update the cross-references, not duplicate the change into a second full copy.
When you touch a contract, patch, replace, or prune the owner's existing language rather than appending a new clause or paragraph wherever possible, then grep the repo for its other mentions and update the cross-references, not duplicate the change into a second full copy.

## Inline-stub pattern

Expand All @@ -61,7 +61,7 @@ Apply the decision tree above to every line you are about to add to `AGENTS.md`.
If an addition needs more than a few lines of conditional detail (detail that matters only in a specific situation) or reference detail (a wire format, an exact schema, historical rationale), you are almost certainly adding it to the wrong file.
`AGENTS.md`'s token cost is paid by every session of every fleet member, every time, whether or not that session ever hits the situation the new lines describe.
A skill's cost is paid only by the sessions that actually load it.
When in doubt, write the fact into the skill or doc first, and add only the one-line trigger to `AGENTS.md`.
When in doubt, write the fact into the skill or doc first by patching that owner's existing language, and add only the one-line trigger to `AGENTS.md`.

## Trigger hygiene

Expand Down
2 changes: 1 addition & 1 deletion .agents/skills/harness-adapters/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Use this reference before any harness-specific firstmate operation: spawn, recov

Crewmates default to the same harness firstmate is running on unless `config/crew-harness` records an adapter name.
Optional dispatch profiles in `config/crew-dispatch.json` can override that static default for one crewmate or scout dispatch by selecting concrete harness, model, and effort axes at intake.
When a matched rule or default is a profile array, load `quota-array-dispatch` for the pace-aware candidate choice after this skill establishes harness and model/provider facts.
When a matched rule or default is a profile array, load `quota-array-dispatch` for the completion-aware candidate choice after this skill establishes harness and model/provider facts.
The captain may override that file at session start or later; a per-task instruction such as "run this one on codex" overrides it for that dispatch only.
`default` means mirror firstmate's own harness.

Expand Down
91 changes: 91 additions & 0 deletions .agents/skills/herdr-navigation/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
---
name: herdr-navigation
description: Herdr workspace navigation for agents — how to find your own pane, open panes in a direction, and read or send to other panes.
user-invocable: false
metadata:
internal: true
---

# herdr-navigation

You are running inside a herdr pane. Your pane ID is in the environment as `$HERDR_PANE_ID`. This skill covers how to navigate, open new panes, and interact with neighboring panes.

## Your own position

```bash
# Who am I?
herdr pane current --current

# Get full layout context (your position in the workspace grid)
herdr pane layout --current
```

Your pane ID is also available as `$HERDR_PANE_ID` (injected by fm-spawn). Use either.

## Open a pane relative to yourself

```bash
# Split to the right (new pane appears to your right)
herdr pane split --current --direction right

# Split below (new pane appears below you)
herdr pane split --current --direction down

# Split with a specific command running in the new pane
herdr pane split --current --direction right --cwd "$PWD"

# Split and focus the new pane
herdr pane split --current --direction right --focus
```

## Find neighboring panes

```bash
# What's to my right?
herdr pane neighbor --direction right --current

# What's below me?
herdr pane neighbor --direction down --current

# What's to my left?
herdr pane neighbor --direction left --current
```

`neighbor` returns the neighbor's pane ID if one exists, or an error if the edge is empty.

## Read another pane's content

```bash
# Read the last 20 lines of a neighboring pane
NEIGHBOR=$(herdr pane neighbor --direction right --current --json | jq -r '.pane_id')
herdr pane read "$NEIGHBOR" --lines 20
```

## Send text or keys to another pane

```bash
# Send a command to run in a neighboring pane
herdr pane send-text "$NEIGHBOR" "echo hello"

# Send a key sequence
herdr pane send-keys "$NEIGHBOR" Enter
```

## List all panes in your workspace

```bash
herdr pane list --workspace "$HERDR_WORKSPACE_ID"
```

## Move yourself to a new tab

```bash
# Move this pane to a new tab (opens it as the only pane in a fresh tab)
herdr pane move "$HERDR_PANE_ID" --new-tab --label "my-work"
```

## Rules

- Always use `--current` (or `$HERDR_PANE_ID`) rather than hardcoding a pane ID — your ID is stable for your session but not across respawns.
- `herdr pane split` creates a NEW shell in the new pane; the new pane is empty until you send it commands or run it with `--cwd`.
- If `herdr` is not on PATH, check `~/.local/bin/herdr` or ask firstmate.
57 changes: 33 additions & 24 deletions .agents/skills/quota-array-dispatch/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: quota-array-dispatch
description: >-
Agent-only decision procedure for resolving a matched crew-dispatch profile
array from current quota-axi output, including quota-window pace signals.
array from current quota-axi output, including effective headroom and usable-runway evidence.
Load when a dispatch rule or default resolves to more than one profile candidate.
user-invocable: false
metadata:
Expand All @@ -11,7 +11,7 @@ metadata:

# quota-array-dispatch

This skill is the single owner of the pace-aware profile-array selection procedure.
This skill is the single owner of the completion-aware profile-array selection procedure.
`AGENTS.md` section 4 owns the always-loaded intake boundary, load trigger, malformed-config refusal, every-candidate accounting, and strongest-reasoning/tie safety rules.
`harness-adapters` owns harness verification, model/provider discovery, and effort fallback.
`quota-axi` remains data-only, reports whatever granularity the vendor supplies, and never recommends, selects, ranks, or infers a route.
Expand All @@ -21,18 +21,20 @@ Deterministic shell owns only schema, configuration, and version validation plus
## Collect facts

Run `quota-axi --json` once per intake and reuse that snapshot for every candidate.
Do not take a second snapshot to settle a candidate.
Do not take a second snapshot to settle a candidate, and read `quota-axi auth --json` when a candidate's credential surface is in question.
For each candidate, preserve explicit `harness`, `model`, and `provider`; `harness-adapters` owns identity, and model/provider never infer harness:

- task/profile fit and required reasoning class
- raw applicable headroom (`effectivePercentRemaining` or tightest applicable percentage)
- effective pace, signed reserve per window, and worst reserve (`worstReservePercentPoints` or minimum signed reserve)
- whether applicable windows/summary are ahead, or pace is `unknown`
- schema note when pace fields are absent
- applicable effective headroom (`effectivePercentRemaining`) from the established provider/model scope
- usable runway status, `usableRunwaySeconds`, `projectedExhaustedAt`, `limitingWindowId`, `projectionConfidence`, `projectionBasis`, and any `unmeasurableWindowIds`
- the task-completion horizon and the evidence and confidence used to estimate it
- effective pace, signed reserve per window, and worst reserve (`worstReservePercentPoints` or minimum signed reserve) for later diagnostic tie-breaking
- schema notes when runway or pace fields are absent

Stale raw windows are diagnostic, never headroom.
Stale raw windows are diagnostic, never headroom or fabricated runway.
Grok's `credits.remaining` is a prepaid balance unrelated to `percentRemaining`; never read it as exhaustion.
Read all windows named by `boundedBy`, `limitingWindowIds`, `aheadWindowIds`, `behindWindowIds`, `onPaceWindowIds`, and `unknownWindowIds`.
Read all windows named by `boundedBy`, `limitingWindowIds`, `aheadWindowIds`, `behindWindowIds`, `onPaceWindowIds`, `unknownWindowIds`, and `unmeasurableWindowIds`.
The compact default output intentionally omits numeric reserve, while `--json` and `--full` retain reserve diagnostics.

## Establish the provider relation before reading quota

Expand Down Expand Up @@ -80,25 +82,32 @@ Conservation pressure is present for effective pace status `ahead`, effective pa
## Selection order

Apply only among candidates satisfying required fit and strongest reasoning class.
Never use pace or raw headroom to silently replace that reasoning class.
Never use headroom, runway, pace, or reserve to silently replace that reasoning class.

1. Concrete contradictory evidence or malformed configuration: stop and report the tuple and that evidence.
Unmeasurable quota, a missing model-level window, and a credential surface quota-axi does not model are uncertainty, never this rule.
2. All-tight: keep strongest reasoning; dispatch inside it or report if blocked.
3. Comparable fit/reasoning: prefer no ahead pressure over pressure, even with higher raw headroom.
4. Among pressured candidates, prefer the least-negative worst applicable reserve.
5. Sustainable candidates: use known pace plus raw headroom.
Prefer known sustainable evidence over `unknown` when comparable.
An authenticated candidate whose headroom is unmeasurable stays eligible at lower preference; disclose that unmeasured headroom in the dispatch record.
Do not collapse those facts into an opaque composite score.
6. If unresolved pace changes the choice, report uncertainty.
7. Absent pace or older schema: do not crash, fabricate pace, or treat absence as healthy/`on_pace`.
Compare raw headroom only, state pace is unavailable, and keep safety rules.
8. Genuine ties: stop and report every tied candidate for captain choice.
Unmeasurable quota, a missing model-level window, an absent runway field, and a credential surface quota-axi does not model are uncertainty, never this rule.
2. Honor any explicit captain instruction that sets a floor for that candidate before the generic comparison.
Do not invent a generic percentage floor or treat a low percentage as an automatic failure.
3. Keep the strongest-reasoning class when every candidate is tight or completion evidence is poor.
Dispatch inside that class when a candidate can proceed, or report that its strongest-class choice cannot proceed rather than downgrading it to conserve quota.
4. Compare comparable-fit candidates on their applicable effective headroom and usable runway.
Eliminate a candidate only when another candidate Pareto-dominates it on both dimensions, with at least one dimension strictly better.
Establish dominance only from comparable known evidence, never by treating absent, `unknown`, or unmeasurable headroom or runway as zero or as a healthy value.
5. Prefer supported runway evidence that projects availability through the inspectable likely-completion horizon.
Known evidence that does not reach that horizon is inferior to known evidence that does, even when its signed reserve is less negative.
Preserve projection confidence and basis, the limiting window, and the horizon estimate in the rationale rather than hiding them in a score or model-specific heuristic.
6. Resolve remaining uncertainty explicitly.
An authenticated candidate with unknown or unmeasurable headroom or runway stays eligible and cannot be silently excluded or assumed sustainable.
Prefer known viable evidence when otherwise comparable, disclose any unmeasured headroom or runway in the dispatch record, and report uncertainty or ask the captain when it still prevents a justified choice.
7. Use pace and signed reserve only as later diagnostic tie-break evidence among candidates still unresolved after headroom, runway, likely-completion viability, and uncertainty.
Pace and reserve never rescue a clearly inferior completion prospect.
Do not collapse these facts into an opaque composite score.
8. Older schemas or absent runway/pace fields: do not crash, fabricate runway or pace, treat absence as healthy, or silently exclude a candidate.
State which evidence is unavailable, retain the candidate, and apply only the comparisons the snapshot supports.
9. Genuine ties: stop and report every tied candidate for captain choice.
Do not select by array order, harness name, or another arbitrary identity ordering.
Report duplicate concrete profiles as a configuration error.

Account for every candidate visibly before selecting or escalating, naming its catalog evidence, provider relation, applicable quota and authentication facts, remaining uncertainty, fit and reasoning class, and pace and headroom.
After selecting, check auth only through that tuple's surface; another harness CLI cannot block it.
Account for every candidate visibly before selecting or escalating, naming its catalog evidence, provider relation, applicable quota and authentication facts, remaining uncertainty, fit and reasoning class, effective headroom, usable runway, likely-completion reasoning, and later pace or reserve evidence when used.
A blocked credential report must name `harness`, `model`, authentication surface, and concrete failure evidence; never emit a bare `Grok unauthenticated` statement.
Never conclude with an unexplained "best quota" label.
9 changes: 9 additions & 0 deletions .claude/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@
"command": "\"$CLAUDE_PROJECT_DIR\"/bin/fm-sessionstart-nudge.sh"
}
]
},
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "bd prime --hook-json"
}
]
}
],
"PreToolUse": [
Expand Down
49 changes: 49 additions & 0 deletions .codex/hooks.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@
"timeout": 10
}
]
},
{
"matcher": "startup|resume|clear",
"hooks": [
{
"type": "command",
"command": "bash -lc 'command -v bd >/dev/null 2>&1 && exec bd codex-hook SessionStart || exit 0'",
"statusMessage": "Loading Beads context",
"timeout": 10
}
]
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
}
],
"PreToolUse": [
Expand All @@ -28,6 +39,44 @@
]
}
],
"PreCompact": [
{
"matcher": "manual|auto",
"hooks": [
{
"type": "command",
"command": "bash -lc 'command -v bd >/dev/null 2>&1 && exec bd codex-hook PreCompact || exit 0'",
"statusMessage": "Checking Beads context",
"timeout": 10
}
]
}
],
"PostCompact": [
{
"matcher": "manual|auto",
"hooks": [
{
"type": "command",
"command": "bash -lc 'command -v bd >/dev/null 2>&1 && exec bd codex-hook PostCompact || exit 0'",
"statusMessage": "Scheduling Beads context refresh",
"timeout": 10
}
]
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "bash -lc 'command -v bd >/dev/null 2>&1 && exec bd codex-hook UserPromptSubmit || exit 0'",
"statusMessage": "Refreshing Beads context",
"timeout": 10
}
]
}
],
"Stop": [
{
"hooks": [
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,8 @@ jobs:
bearings_output=$(/bin/bash tests/fm-bearings-snapshot.test.sh)
printf '%s\n' "$bearings_output"
bearings_count=$(printf '%s\n' "$bearings_output" | grep -c '^ok - ')
[ "$bearings_count" -eq 42 ] || {
echo "::error::expected 42 Bearings tests, got $bearings_count"
[ "$bearings_count" -eq 41 ] || {
echo "::error::expected 41 Bearings tests, got $bearings_count"
exit 1
}

Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ data/
.no-mistakes/
.lavish/
.fm-secondmate-home
.fm-isolated-home
.DS_Store
__pycache__/
*.pyc
.env
config/
CHANGELOG.md

# Per-task worktree-resident hook artifacts written by bin/fm-spawn.sh's
# busy-hook install (and scrubbed by bin/fm-teardown.sh on return to the
Expand Down
Loading
Loading