Skip to content

Merge upstream/main into the fork, preserving the no-go guard and SDev backend - #4

Merged
santhosh2011 merged 26 commits into
mainfrom
fm/fm-upstream-sync-s2
Sep 16, 2026
Merged

santhosh2011 merged 26 commits into
mainfrom
fm/fm-upstream-sync-s2

Conversation

@santhosh2011

Copy link
Copy Markdown
Owner

Merge upstream/main into the fork, preserving the no-go guard and the SDev backend

Merges upstream/main (10b93b2) into this fork's main (944e8a1).
Merge base 8c21b101: 24 local commits, 163 upstream commits, 366 files, +96,783/-5,986.
This is a merge commit on a branch. Nothing was forced, rebased, or discarded.

What to actually review

The merge itself is mechanical and 366 files is not reviewable hunk by hunk.
The reviewable surface is small and listed here:

  1. Twelve conflict resolutions (below).
  2. Three defects in files that auto-merged cleanly and were wrong afterwards (M1-M3 below). One of them broke every SDev spawn.
  3. One deliberate reversal of a local change (the CI serial timeout).
  4. Test-fixture updates forced by upstream's new required per-task delivery contract.

Premise corrections found while planning

Twelve conflicts, not eleven. git merge-tree --name-only omitted tests/fm-secondmate-harness.test.sh (5 hunks), the colocated test for the inheritance library.

Upstream implements neither fork feature. git grep -lniE 'no-go|no_go' upstream/main and the same for sdev both return nothing.
There was therefore no "upstream already did this, delete the local duplicate" case anywhere in this merge, and no local behaviour was dropped in favour of an upstream equivalent.
The one place a local change was deliberately dropped is the CI timing, below.

The twelve conflict resolutions

File Resolution
AGENTS.md Union of the config/ inventory: kept sdev-home and landing-policy.json, took upstream's watched-tools.json and its Relay rename of x-mode.env.
docs/configuration.md Took upstream's fm-config-push.sh sentence whole, including its new local-route-vs-remote-route reread split and trace-context, and added no-go-paths to its item list. Kept the local reread-exclusion sentence.
bin/fm-test-run.sh Union of two family-classification lists. Verified mechanically: --check-coverage reports total=176 with every tests/*.test.sh classified exactly once.
bin/fm-spawn.sh Four hunks, see below.
docs/documentation-audiences.json Sorted union of three operator-example entries.
.agents/skills/secondmate-provisioning/SKILL.md Took upstream's remote-home paragraphs and item list, added config/no-go-paths to it, kept both local sentences on why the boundary is inherited and why it is excluded from reread inlining.
bin/fm-brief.sh Four hunks, see below.
.github/workflows/ci.yml Took upstream's sharded serial lane, dropped the local timeout bump.
bin/fm-config-inherit-lib.sh Added no-go-paths to FM_INHERITABLE_CONFIG alongside upstream's trace-context, kept upstream's new session-scoped machinery verbatim.
bin/fm-config-push.sh Took upstream's local-vs-remote reread sentence, appended the local reread-exclusion clause.
docs/fm-test-portable-shards.md Took upstream's rewritten timeout table.
tests/fm-secondmate-harness.test.sh Union: both fixture sources written, both new test functions called.

bin/fm-spawn.sh

  1. Header comment: kept both new paragraphs.
  2. spawn_abort_cleanup(): both sides inserted a block where base had none, both leaning on a shared trailing fi that was diff alignment, not code. Concatenated with correct brace accounting. The first attempt left an orphan fi; bash -n caught it, which is why it was checked rather than eyeballed.
  3. Secondmate inheritance: upstream moved the propagation call earlier, under a new inheritance lock with FM_CONFIG_INHERIT_LIVE=1, so its side of this hunk was empty. Deleted the local copy at the old site and ported the fatal no-go boundary check onto upstream's new call.
  4. Treehouse-get gate: upstream turned the flat if into if RELAUNCH ... elif ...; added the SDev exclusion to the elif.

bin/fm-brief.sh

Upstream made delivery mode an explicit required per-task input: --mode replaces reading the project default, --yolo is refused as a brief input, and the generated definition of done carries a fixed Delivery contract: mode=<mode> line that fm-spawn.sh reads back and refuses on mismatch.

The --sdev brief now requires --mode too and stamps that line, with one added sentence telling the worker that firstmate resolves each repo's own landing mode from the landing overlay at ship time.
A missing contract line is only a warning in fm-spawn.sh, so this was not a hard break - but exempting --sdev would have put a permanent hole in an invariant upstream had just established.

While resolving this, an accidental duplicate of the existing --sdev-is-ship-only guard was introduced and then removed; the original auto-merged and is the one in the tree.

Three defects in files that auto-merged cleanly

Git merged these without complaint. They were wrong because upstream added code paths the fork's features predate.

M3: upstream's pre-launch origin refresh broke every SDev spawn

Upstream kunchenguid#2116 added freshen_spawn_worktree_base "$WT", called for every non-secondmate, non-relaunch spawn.
It opens with git -C "$worktree" fetch --quiet origin and turns failure into exit 1.

For an SDev task, $WT is the multi-repo workspace directory, not a git repository. The fetch failed and every SDev spawn was refused.
This was invisible in the conflict list.

Gated with [ "$IS_SDEV" != 1 ]. This is redundancy, not merely inapplicability: sdev new already fetches origin/<base> per repo and starts task/<slug> from the freshest base, including when it re-brands a pooled worktree (sdev/bin/new-task). A comment at the gate says so and names that mechanism, so a future reader does not "fix" it back.

Proven: with the gate removed, test_sdev_backed_takes_sdev_path fails with
error: could not fetch origin for pooled worktree '.../projects/scdi/task-backed'; refusing to launch from a potentially stale base.

M1: --relaunch re-created an existing SDev workspace

Upstream kunchenguid#1568 added fm-spawn.sh --relaunch, which adopts a task's recorded worktree. The SDev workspace provider had no relaunch guard, so a relaunch ran sdev new <slug> against a live slug.
Upstream's relaunch branch also calls validate_spawn_worktree, which asserts a single git worktree root and refuses an SDev workspace.

Gated spawn_sdev_workspace on RELAUNCH -eq 0 (WT is already set from the recorded meta), left resolve_sdev_gate ungated so sdev_home=/slug=/repos= survive the relaunch, and routed the relaunch isolation check to validate_spawn_sdev_workspace when IS_SDEV=1.

New regression test test_sdev_relaunch_reuses_the_recorded_workspace in tests/fm-sdev-spawn.test.sh.
Proven: with the gate removed it fails with relaunch: `sdev new` ran a second time and rewrote the ledger entry.

M2: spawn_abort_cleanup brace accounting

Covered above. Caught by bash -n, not by inspection.

The one local change deliberately dropped

The fork raised the portable serial CI job from 20 to 30 minutes because the unsharded remainder measured 18-21 minutes.
Upstream instead split that lane into four balanced shards of about 10.6 minutes each and kept the 20-minute cap.

Upstream's fix removes the cause; the fork's raised the symptom's ceiling. Upstream's is taken, in both .github/workflows/ci.yml and docs/fm-test-portable-shards.md.

This fork adds about nine test scripts, several into serial families, so shard balance shifts. bin/fm-test-run.sh gives an unmeasured script a mean-sized balance hint, so this is bounded rather than unbounded. If a shard exceeds 20 minutes in CI the fix is shard-membership rebalancing in bin/fm-test-run.sh, not a wider timeout.

Test fixtures updated

Upstream's required per-task delivery contract broke three fork test files that predate it. Ship invocations now pass --mode no-mistakes --yolo off, matching upstream's own idiom in tests/fm-spawn-batch.test.sh:

  • tests/fm-sdev-spawn.test.sh - run_spawn adds the contract; a new run_spawn_raw omits it for --relaunch, which refuses a flag that would override the recorded mode.
  • tests/fm-spawn-no-go-paths.test.sh - nine ship call sites; the --secondmate cases are untouched because a secondmate spawn refuses --mode.
  • tests/fm-sdev-brief.test.sh - the two ship-brief cases.

The SDev fake tmux gained two probes (#{pane_current_command} and a window inventory) so a relaunch case can present a positively agent-free endpoint. Defaults are unchanged, so no existing case shifts.

What this fork gains from upstream

Grouped by theme, verified against the 163 commits rather than assumed.

Remote and cloud homes. A whole persistent firstmate home can now live on another SSH-reachable host, with the primary keeping routing and supervision (docs/remote-secondmates.md). Remote commands run through a job worker, with orphan reaping, bounded SSH dead-peer detection, tool-path preflight, and truthful delivery reporting. SSH exit 255 preserves the route and never triggers a local duplicate. About twenty new bin/fm-remote-*.sh scripts.

Durable steer inboxes replace pane typing. bin/fm-send.sh now writes a durable record into the task's steering inbox and rings a short constant doorbell line, instead of typing the whole message into the terminal. A lost steer is re-enqueued idempotently and the watcher re-rings. Works the same for local and remote tasks (bin/fm-task-inbox-lib.sh).

A persistent Pi supervision branch. Supervision runs as its own branch of attention with its own model and reasoning-effort pins, settable through /supervision-model (docs/pi-supervision-branch.md).

Captain-hold lifecycle. The separate "decision" concept collapsed into "a task held for the captain", with a deterministic mechanism, record-divergence surfacing, and the same bounded pause cadence as a declared wait. decision-hold-lifecycle is now a redirect stub to captain-hold-lifecycle.

An interactive Lavish bearings board. /bearings lavish builds and arms a fleet board with close controls, surviving inventory mismatches.

GitLab merge requests through the guarded merge path. bin/fm-pr-merge.sh handles GitLab alongside GitHub, refusing unless every pre-merge condition holds on one live read. This reaches SDev multi-repo ship for free, since bin/fm-ship-multi.sh already delegates remote landing to it.

Ask-user decisions decoupled from yolo. Finding authority is now the ask-user-authority skill's own criteria, not the project's yolo posture.

Beyond the above, also gained:

  • An explicit per-task delivery contract. Mode and yolo are per-task flags, cross-checked between the brief and the spawn record. This is the change the SDev brief had to be fitted to.
  • Deterministic agent lifecycle control. bin/fm-control.sh plus fm-spawn.sh --relaunch replace an agent transactionally, keeping every identity axis and the same worktree (docs/agent-control.md).
  • Two new harnesses. Cursor Agent CLI as both primary and crew harness, and Muse Code as a crew adapter.
  • Per-task W3C trace-context propagation. Default-off, task-scoped, and inherited into secondmate homes including remote ones (docs/trace-context.md).
  • CI lint and attestation gates. Workflows linted with pinned actionlint via the new bin/fm-lint-workflows.sh, pinned lint tools installed across platforms, a fast local changed-shard-only lint mode, and a required no-mistakes pipeline step attestation bound to the PR head.
  • A spoken interface that answers from firstmate's records and queues real work rather than pretending to do it (docs/voice-relay.md).
  • Relay. X mode is renamed Relay in user-facing docs and now covers X and Discord, consuming conversation chains.
  • Watched tool updates, distinguishing "a newer version exists" from "a newer copy is installed but PATH still resolves an older one".
  • Stow gains tiered decaying memory, an enforced startup-memory budget, a cascade to every registered secondmate, and an opt-in pass horizon.
  • A deterministic condition-to-action watcher (bin/fm-procevent-when.sh).
  • CLAUDE.md is now a real @AGENTS.md pointer file rather than a symlink.

Verification

bin/fm-lint.sh clean. bin/fm-lint-workflows.sh clean (actionlint 1.7.12 (pinned 1.7.12), 3 workflow files valid) - this is new from upstream.
bin/fm-test-run.sh --check-coverage reports total=176, every tests/*.test.sh classified exactly once.

Full suite: FM_TEST_SUMMARY total=176 failed=3 skipped_gate=35 duration_ms=4247784.

None of the three is merge-introduced. Each was baselined rather than assumed:

Test clean upstream/main (10b93b2), 3 runs merged tree, 3 runs verdict
fm-wake-queue.test.sh FAIL FAIL FAIL FAIL FAIL FAIL pre-existing, deterministic, fails on upstream itself
fm-bootstrap-network-parallel.test.sh FAIL PASS PASS PASS PASS PASS pre-existing load-flake; its assertion is that a clone refresh overlaps the secondmate sweeps, and on a fast machine the fetch finishes between two sweeps
fm-spawn-no-go-paths.test.sh n/a (fork-only file) 18/18 after fix my fixture gap while adapting to --mode, not a guard regression

The no-go failure is worth being explicit about, because it named a non-negotiable. The file has two spawn helpers; the first pass added --mode only to run_spawn call sites and missed run_worktree_spawn, which invokes $SPAWN directly. Those cases died at argument validation before the guard ran - the output was error: ship spawns require --mode, not a missing refusal. After the fix the whole file passes.

Non-negotiable 1: a spawn into a no-go path is refused, and fails closed

Direct exercise, not just the suite:

error: project directory '.../evidence/offlimits/proj' is inside the no-go path
'.../evidence/offlimits' declared in config/no-go-paths; refusing to dispatch there

The refusal names the offending path, the matched prefix, and the config file. Fail-closed cases, each exercised directly:

config is a directory        -> error: ... is a directory, so the declared no-go paths cannot be read; refusing to dispatch
config is a dangling symlink -> error: ... is a dangling symlink, so the declared no-go paths cannot be read; refusing to dispatch
malformed line               -> error: ... line 1 is not an absolute path prefix: relative/path
config absent                -> no refusal (absence is the only unrestricted state)

Suite coverage: 18/18 in tests/fm-spawn-no-go-paths.test.sh, including refusal before metadata is written, worktree and window unwind on refusal, leaving an unproven-clean worktree in place, and a refused batch pair not stopping its siblings.

Non-negotiable 2: the boundary is inherited so a secondmate cannot route around it

Direct exercise of the propagation helper:

present config      -> destination copy byte-exact: YES
primary absence     -> destination copy removed: YES
unusable primary    -> boundary-failed flag set: YES (launch will refuse)

Suite coverage in tests/fm-secondmate-harness.test.sh includes B2b spawn: a secondmate that cannot inherit config/no-go-paths is refused, not warned and B1c propagate_inheritable_config: the fatal boundary flag stays scoped to no-go-paths.

This now extends to upstream's new remote secondmate homes at no extra cost. Upstream added fm_config_inherit_items() as the single derivation that both the remote sender (bin/fm-remote-inherit-push.sh) and the remote receiver (bin/fm-remote-inherit.sh) consume. Adding no-go-paths to FM_INHERITABLE_CONFIG puts it in that derivation. Verified rather than assumed:

config/crew-dispatch.json
config/crew-harness
config/backlog-backend
config/backend
config/herdr-presentation-spaces
config/startup-memory-budget
config/trace-context
config/no-go-paths          <-- reaches remote homes on the same terms as local
data/captain-shared.md

Non-negotiable 3: SDev ship stays all-or-nothing; teardown safety and recovery work

ok - fm-ship-multi lands nothing when any changed repo is not ready
ok - fm-ship-multi lands every changed repo atomically in dependency order
ok - fm-ship-multi status reports a blocked batch without merging anything

ok - fm-teardown refuses an SDev task while any repo is unlanded
ok - fm-teardown refuses an SDev task with a dirty repo
ok - fm-teardown archives the SDev workspace once every repo has landed
ok - fm-teardown --force discards and archives an SDev task without the landed gate

The two heavy auto-merges specifically asked about

bin/fm-teardown.sh took 10 upstream commits around 95 lines of fork additions, and bin/fm-session-start.sh took a heavy digest restructure around the fork's sdev: line. Both auto-merged silently, so both were checked rather than trusted: tests/fm-sdev-teardown.test.sh and tests/fm-session-start.test.sh both exit=0.

Every fork feature test file passes: fm-secondmate-harness, fm-sdev-spawn, fm-sdev-teardown, fm-sdev-registry, fm-sdev-brief, fm-sdev-review-diff, fm-sdev-backend-smoke, fm-ship-multi, fm-landing-policy, fm-run, fm-install-pins, fm-shared-captain-inheritance.

santhosh thota and others added 25 commits July 12, 2026 10:51
…e 1 data layer)

fm-sdev-registry.sh reads an SDev project's repo composition from
$SDEV_HOME/core/projects.d/<name>.yml via mikefarah yq and answers whether a
project is SDev-backed; inert (silent, non-zero) when SDEV_HOME is unset or the
project has no entry. fm-landing-policy.sh is a new standalone resolver mapping
(project, repo) to <mode> <yolo> from config/landing-policy.json, per-repo
override merged over project default, falling back to no-mistakes off - the same
fail-safe fm-project-mode.sh uses. Additive only: no spawn/ship/teardown change,
fm-project-mode.sh untouched. TDD, colocated fixtures and tests, shellcheck-clean.
jq's // treated an explicit false as empty, so a per-repo yolo:false fell
through to a project-default yolo:true and silently resolved to on - failing
open on the approval-authority axis. Resolve each axis by has() (null-guarded
with type=="object") so an explicitly set false overrides instead of being
read as absent. Adds a regression test for the false-over-true override.
Additive multi-repo SDev path alongside the existing treehouse/orca/cmux paths;
non-SDev spawns are byte-identical and all existing tests stay green.

- fm-spawn.sh: SDev workspace provider gated on an SDev-backed project (phase 1's
  fm-sdev-registry) with SDEV_HOME set. Creates the workspace via 'sdev new
  <slug>', places the crewmate in it, asserts per-repo git-worktree isolation,
  and records sdev_home=/slug=/repos= in meta (project=/worktree= kept). Orca and
  secondmate excluded. exclude_path now writes only at a genuine worktree root so
  the multi-repo workspace never pollutes the SDEV_HOME repo's git metadata.
- fm-sdev-registry.sh: add 'home' subcommand (resolved SDEV_HOME), one owner of
  the resolution reused by spawn and run.
- fm-run.sh (new): run layer - 'up' boots the stack, 'url' surfaces the live URL
  from 'sdev ls --json', 'open' opens it; rejects non-SDev tasks.
- fm-brief.sh: --sdev multi-repo ship brief (one worktree per repo, branch
  task/<slug>, combined DoD); single-repo brief unchanged.
- Tests: faked-sdev spawn/run/brief suites, registry home tests, and an opt-in
  real-sdev smoke (FM_SDEV_SMOKE=1) verified against ~/code/shamrock.
- docs/sdev-backend.md: backend reference with dated empirical evidence.
fm-review-diff.sh: for an SDev task (slug= in meta) resolve the workspace's
per-repo worktrees from the registry and emit one combined diff, comparing each
repo's task/<slug> branch against that repo's OWN default_base (fetched from
origin when remote-backed, else local); bases may differ per repo. Each changed
repo is printed under a labeled header; untouched repos are excluded. Purely
additive: a treehouse task (project=, no slug=) takes the unchanged single-repo
path byte-for-byte, and tests/fm-review-diff.test.sh stays green.

Adds tests/fm-sdev-review-diff.test.sh (2-of-3 repos changed, per-repo bases,
--stat) and a combined-review section in docs/sdev-backend.md.
New bin/fm-ship-multi.sh: land a multi-repo SDev task as one atomic unit. It
takes the CHANGED repos, resolves each repo's landing mode from the overlay, and
requires EVERY changed repo to be a ready candidate before ANY lands - a remote
repo needs its recorded pr_<key>= PR OPEN+APPROVED+green, a local-only repo needs
its task/<slug> branch to fast-forward onto its base. Partial-failure policy:
never partial-merge; if any changed repo is not ready, nothing lands and the
blocker is named. Ready repos land in dependency order (overlay 'order' array,
else common-first); remote via gh-axi squash-merge, local-only via a source-side
fast-forward; each records landed_<key>= in meta for teardown.

bin/fm-landing-policy.sh gains an 'order <project>' subcommand (additive; resolve
path unchanged). Single-repo ship (fm-pr-check.sh / fm-pr-merge.sh) untouched and
their tests stay green. Adds tests/fm-ship-multi.test.sh (2 remote + 1 local-only:
nothing lands when one is not green; all land in order when ready) and doc/example
updates.
fm-teardown.sh: for an SDev task (slug= in meta) apply the landed-work gate PER
REPO - each changed repo's task/<slug> branch must be landed (phase-4
landed_<key>= marker, content-in-default for remote, or merged-into-local-base
for local-only) and clean, or teardown refuses and names the offenders; a dirty
repo refuses. On success it archives the workspace with 'sdev end <slug>' instead
of a treehouse return. --force stays the explicit discard path. Purely additive:
the single-repo gate is gated off for SDev by two guard lines only, so a treehouse
task is byte-identical and tests/fm-teardown.test.sh (30 cases) stays green.

fm-session-start.sh: the fleet digest surfaces an SDev task's slug/repos/workspace/
sdev_home so a restart reconstructs the multi-repo shape rather than assuming a
single project=/worktree= (additive; fires only for slug= meta).

Adds tests/fm-sdev-teardown.test.sh (refuse-unlanded, refuse-dirty, archive-on-
landed, --force-discard) and an SDev recovery-digest case; doc updated.
docs/sdev-backend.md is now the complete standalone backend reference, mirroring
the other backend guides: intro, the core/-vs-projects/ source-and-workspace
model, the multi-repo task lifecycle (start -> run -> combined review ->
all-or-nothing ship -> teardown), configuration, every component (registry,
workspace provider, run layer, review, ship, teardown/recovery, brief), and the
dated empirical verification.

AGENTS.md gains a terse SDev entry per the knowledge-placement decision tree: the
never-write rule extends to $SDEV_HOME/core/ (section 1), the two SDev config
files are listed (section 2), and section 6 states a project may be SDev-backed
with multi-repo tasks - each with a one-line pointer to docs/sdev-backend.md and
no restated mechanics (6 added lines total). No behavior change, no new scripts.
feat: SDev multi-repo workspace backend
# Conflicts:
#	.gitignore
#	AGENTS.md
#	bin/fm-spawn.sh
#	bin/fm-teardown.sh
Sync fork to upstream kunchenguid/firstmate (preserve SDev backend)
Add config/no-go-paths, a local and gitignored list of absolute directory
prefixes that agent work must never be dispatched into. An absent file means
no restriction, so behavior is unchanged for every home that does not opt in,
and no tracked material ever names an operator's private paths.

bin/fm-no-go-lib.sh owns the matching so other scripts can adopt it later:
comments, blanks, trailing slashes, and a leading ~ are handled, and matching
is on a path-component boundary over both the literal and physically resolved
forms, so /a/b blocks /a/b and /a/b/c but never /a/bc and a symlinked alias
cannot route around a prefix. A malformed line refuses rather than being
silently skipped.

fm-spawn.sh refuses at two points. The project directory (or a secondmate's
resolved firstmate home) is checked before any window, worktree, temp root,
hook, state, or metadata exists, so a refused dispatch leaves nothing behind.
The final worktree is checked once its provider reveals it, which cannot be
before the backend window exists; that limitation is documented rather than
engineered around, and declaring the pool root closes it.

config/no-go-paths is inherited by secondmate homes, so a secondmate's own
crewmates are held to the same boundary.

Also classify docs/sdev-backend.md and docs/examples/landing-policy.json,
which were already unclassified on main and failed the documentation audience
check independently of this change.
The required Herdr lane failed at its first step with
`curl: (56) Connection died, tried 5 times before giving up` after 166 ms.
Those five tries are curl's own same-connection retries, all fired inside the
same instant, so one reset from the release CDN decided the lane's result
before any test ran.

Both pin installers now use the bounded, backed-off retry that
bin/fm-install-shellcheck.sh already owned, and tests/fm-install-pins.test.sh
drives the real installers with a scripted curl to prove recovery after a
transient failure, the bounded give-up, the growing pause, and that nothing is
installed when every attempt fails.
feat(bin): refuse dispatch into operator-declared no-go paths
…v backend

Merges upstream/main (10b93b2) into main (944e8a1). Merge base 8c21b10:
24 local commits, 163 upstream commits, 366 files.

Resolution rule: take upstream's structure, re-apply the local features onto it.
Upstream implements neither fork feature (git grep for 'no-go' and 'sdev' over
upstream/main returns nothing), so no local behaviour was superseded except the
CI serial-lane timeout.

Twelve conflicts resolved, not the eleven that merge-tree --name-only reported;
it omitted tests/fm-secondmate-harness.test.sh.

Three defects in files that auto-merged cleanly, each fixed here:

- freshen_spawn_worktree_base (upstream kunchenguid#2116) ran git fetch against an SDev
  task's WT, which is the multi-repo workspace directory rather than a git
  repository, refusing every SDev spawn. Gated on IS_SDEV, with a comment
  naming sdev/bin/new-task as the mechanism that already fetches each repo's
  base, so the exclusion is redundancy rather than a coverage gap.
- --relaunch (upstream kunchenguid#1568) re-ran `sdev new` against a live slug and applied
  the single-worktree isolation check to an SDev workspace. Gated on RELAUNCH,
  with relaunch isolation routed to validate_spawn_sdev_workspace. New
  regression test in tests/fm-sdev-spawn.test.sh.
- spawn_abort_cleanup: both sides inserted a block where base had none, both
  leaning on a shared trailing fi that was diff alignment rather than code.

Upstream now requires an explicit per-task delivery contract (kunchenguid#1563). The
--sdev brief takes --mode and stamps the Delivery contract line, with the
per-repo landing overlay still refining each repo at ship time. Three fork test
files were updated for the same requirement.

The local CI serial timeout bump (20 to 30 minutes) is dropped in favour of
upstream's four-shard lane, which removes the cause rather than raising the
ceiling.

Verification: full suite 176 scripts. Three failures, none merge-introduced.
tests/fm-wake-queue.test.sh fails 3/3 on a clean upstream/main checkout;
tests/fm-bootstrap-network-parallel.test.sh is load-flaky on upstream
(FAIL PASS PASS) and passes 3/3 here. The third was a fork test-fixture gap
introduced while adapting to --mode, fixed, now 18/18.

bin/fm-lint.sh and bin/fm-lint-workflows.sh both clean.
This branch merged upstream into the fork at 10b93b2 (26 Aug). Since then main
was rebased onto upstream 1bdfd8c - 177 commits newer - with the same four
features replayed as squashed commits adapted to the current upstream shape.

Every conflict here is the same conflict: this branch's pre-rebase version of a
feature against main's rebased version of it. Main's side wins throughout,
because that is the version written against current upstream and covered by the
suites that pass on it (SDev spawn 7/7, brief 4/4, teardown 4/4, no-go 17/17).

bin/fm-path-state-lib.sh is dropped rather than re-added: the rebase folded its
presence probe into bin/fm-no-go-lib.sh, and nothing on main references it, so
restoring it would add dead code.

The result is therefore content-identical to main. This merge exists to make the
branch mergeable and to record why it contributes nothing, not to move code.
@santhosh2011
santhosh2011 merged commit dbc00b3 into main Sep 16, 2026
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant