Repository navigation
v1.0.760
-
fix(gh-2337): the daily-publish cli leg's release draft create no longer
fails silently on an oversized notes body, and the mac size floors match
the v1.0.756 shape. The curated## Unreleasedbody (131k bytes)
exceeded GitHub's hard 125,000-character release-body cap —gh release createanswered HTTP 422 "body is too long", release_lazy_draft.sh's
|| trueswallowed it, printed "✅ lazy draft ready", and all three
attach legs (build-macos-cli arm64/x64 + build-extension) died on
"release not found" (run 44680647719). Fixes: the new
scripts/release_notes_cap.sh bounds the release BODY (never the
changelog — stamp_staged_release.sh stamps release_notes.sh output into
the pub.dev package uncapped) under 120,000 bytes at a line boundary
with an explicit CHANGELOG.md marker, wired into the two release-body
writers (release_lazy_draft.sh + release_attach_or_create.sh); a failed
create now re-views the release — a concurrent creator wins the race as
before, a still-missing release fails loud instead of lying green. Size
floor: fa-macos-arm64.tsv reseeded to the failing run's gate-printed
manifest (TOTAL 74,701,116 → 78,493,725, +5.08% — js_widget_runtime
0.4.208 three.js bundles +2.37MB, Fa 2 Outfit/DM Mono fonts, Dart AOT +
Flutter 3.50.0 engine growth; the gh-2088 reseed precedent), and the
never-armed fa-macos-x64.tsv committed from the same run's
size-baselines-macos artifact (TOTAL 81,153,036 — the x64 gate had been
self-seeding transiently every run since gh-2088).
Pinned bytest/release_notes_cap_test.dart,
test/release_lazy_draft_mint_test.dart(gh-2337 group),
test/release_attach_or_create_mint_test.dart(gh-2337 bounded-notes),
test/ci_2337_macos_size_floor_test.dart(supersedes the gh-2088 pin). -
fix(gh-2318): the daily draft sweeper now reclaims a fresh (<24h)
pipeline draft whose publish point is provably unreachable, instead of
letting it rot to the 24h sweep and re-file the recurring
[daily-publish] stale release drafts sweptissue. The v1.0.739 shape:
a daily-child staging leg minted the tag (release_tag_mint.sh) and
staged the draft, the freshly fired train failed upstream of
release-provenance, and the gh-2230 train-draft-guard either ran before
the draft existed (long attach legs create drafts after train end) or
kept it while its owner run was in-flight — after which nothing
re-examined it with train knowledge. The sweeper applies the train
guard's exact criterion (well-formedrelease-draft-ownermarker naming
a COMPLETED run + no queued/in-flight ci.yml push train on the tag + the
tag's newest concluded ci.yml push train failed with release-provenance
SKIPPED —rerun --failedcannot resurrect skipped jobs); fail-safe
keeps mirror the train guard (unmarked/human E1 drafts, in-flight owner,
ANY queued/in-flight tag train even alongside an older failed train,
rerunnable FAILED provenance = the gh-1899rerun --failedrecovery
vessel until stale, any lookup failure). The train diagnosis is a shared
train_diagnosis()helper and
the issue names reclaimed drafts + the failed train as before.
Pinned bytest/release_stale_draft_reclaim_test.dart(gh-2318group) -
fix(gh-2237): the auto-compact trigger gate and the structured engine now measure ONE basis, and a started compaction can never end in silence. The field loop (six
auto-compact startreceipts over 21 minutes with tokens growing, zero pass receipts): the gate armed on a usage-anchored over-trigger basis, then the engine's state refresh blanket-zeroed every assistant usage anchor (refreshAgentState), re-derived a collapsed chars/4 basis under the trigger, and exited with zero passes and zero receipts — the gate re-fired every turn. Anchors now travel with the data: the projection's boundary-keyed stale-anchor reset (_resetStaleUsageAnchors) is the single anchor authority, andrefreshAgentStatestops the blanket zeroing (gh-2097's re-anchor contract preserved — anchors behind a compaction boundary stay reset, fresh post-boundary usage survives). The engine's under-trigger exits (trigger gate, hide-pass gate, checkpoint gate) thread an exit reason (deciding gate + basis/trigger numbers) through the wrapper intoonDone, and the CLI renders the zero-pass terminal receipt on both surfaces — the diagnostic lane AND a dim user-facing row (boot-cap defer precedent):auto-compact done passes=0 (no-op: basis N below trigger M (trigger gate)). Thepasses > 0receipt suppression is gone; pass-carrying receipts stay byte-identical,/compactforced passes unchanged.
Pinned bytest/compaction/compaction_basis_anchor_test.dart(UT-1 anchor preservation / UT-2 boundary twin / UT-3 basis equality / AC6 no-new-under-compaction),test/agent/auto_compactor_zero_pass_receipt_test.dart(reason threading + zero observable provider calls),test/cli/agent_cli_zero_pass_receipt_test.dart(both receipt surfaces, legacy shape).
Review rework: the AC1 "one basis" counterexample on boundary-less windowed resumes is closed — a head-truncated boundary-less tail (themaxPages/token-budget-exhausted walk) cannot vouch its persisted anchors, so the projection curation resets them all (resetLoadedUsageAnchorsrationale at projection level); the engine refresh cannot re-arm the phantom pre-trim anchor (UT-5 + fully-paged twin). -
fix(gh-2103 fallout, unblocks #2217): the auto-compactor no longer
reads compactSession's empty-foldable-region refusal (gh-204,
CompactionErrorCode.invalidSession) as a summarizer outage. gh-2103's
longer summarization prompts pushed the re-fire pass's empty-region
prompt over the #729 payload budget, sogenerateSummaryfolded zero
chunks into a blank answer and the refusal fired; mapping it to a
failure routed the pass to the local-trim valve, which silently
dropped the unsuppressible newest tail and cost the host re-fire
ladder its exhaustion verdict (browser_ext host_compaction_test AC5,
red on main since gh-2103 — the path-filtered Browser extension
workflow had not run on the affected pushes). The refusal is now the
no-work terminal, identical to a null preparation: nothing foldable →
no pass failure, no trim, the newest messages survive. -
Interactive network enrollment and roster hygiene (#2212): the TUI now provides
/network login(OAuth loopback or masked JWT), hostname-defaulted/network enroll,/network rename,status, anddevicesthrough the existing command runner, while preserving bare/join DAP behavior and adding the explicit/network dapalias. First app enrollment asks for a friendly device name on desktop and mobile; same-account re-login preserves the stored device identity to prevent duplicates. Devices applies a documented 30-day offline-row display TTL, accepts address-only roster agents, and excludes active or orphaned sub-agent rows. CLI/app publishers explicitly retract legacy child rows so a device with active subagents exposes exactly one parent session; the fa_network server-side reaping contract is documented separately. -
Full per-device session catalog + wake-on-DM (#2213): CLI and app connectors now publish every exposed stored session with its persisted name (or first-prompt/cwd fallback), cwd and last activity, using a full connect snapshot and debounced incremental roster pages. Devices rows and CLI roster output use human labels, relative activity, project context and live/wake-on-DM/offline states instead of bare UUIDs. On desktop, a DM to a catalog sleeper launches the existing cwd-guarded headless wake with explicit session/inbox targeting, leaves the DM unacked for the woken mailbox, and preserves live-session steering; mobile/extension remain honestly queue-only.
-
CLI inbound network DM delivery (#2214): the app's fanet1 DM codec/reply routing now lives in the pure-Dart connector core, and the CLI writes current-session app DMs into its real mailbox for existing idle-wake/mid-run steering. Delivery preserves per-sender order, dedups redelivery with stable sortable mailbox ids plus inbox/read idempotency, acks only after the mailbox write, and distinguishes encrypted accepted vs. queued/not-listening receipts. Permanent malformed/wrong-key/tamper failures ack once with safe notices; transient failures stay unacked. Agents reply through the existing
agent_messagetool using a durable opaquenetwork-dm:v1:address. -
fix(gh-2230): a failed tag train no longer orphans its staged release
draft for 24h. The issue #282 draft lifecycle invariant was enforced
only per creating job, but since the gh-1801 rework the staged draft's
publish owner is the tag train (ci.ymlrelease-provenance, the sole
publish point): a train that died upstream of the publish point (core
tests → quality-gate red → binaries skipped → provenance skipped) left
the staged draft (e.g. v1.0.728) to rot until the daily sweeper deleted
it and filed the recurring[daily-publish] stale release drafts swept
issue. ci.yml now carries a train-leveltrain-draft-guardjob
(needs: release-provenance,always()on tag pushes / release
events) runningscripts/release_train_draft_guard.shwith the publish
point's settled result exported: it deletes drafts for the trained tag
ONLY when that result isskipped(rerun --failednever resurrects
skipped jobs, so nobody else would ever publish them) and the draft's
well-formed ownership marker names a COMPLETED run; the git tag is
untouched. A failed/cancelled provenance is rerunnable, so the staged
draft stays as thererun --failedrecovery vessel (gh-1899
convention). Drafts owned by in-flight runs, unmarked/human drafts
(E1), lookup failures, and an unexported result are kept fail-safe —
the 24h sweeper remains the backstop.
Pinned bytest/release_hygiene_test.dart(#2230) -
fix(gh-2194): the fa1.dev landing page no longer exposes two broken
Windows download links. The windows-release landing (#2158) deep-linked
releases/latest/download/fa-app-windows-x64.zip/.msix, but those
assets belong to the dailybuild-windowsleg — deliberately outside
scripts/release_required_assets.txt— and the leg has not attached
them yet, so every train-cutlatest404'd both links; the v1.0.729
release run's gh-1832 asset smoke caught it and red'd the tag. The
Windows button now follows the macOS button's pattern (release page,
which always lists the windows app zip/msix/cer once shipped plus the
guaranteedfa-windows-x64.zipCLI archive), the msix deep link is
gone, and a new offline guard
(test/site/landing_deep_links_test.dart) pins the contract: every
latest/downloaddeep link on the landing page must name a
required-set asset — PRs can no longer land links only the tag train
can falsify (#2194) -
feat(gh-2103): compaction digest provenance — summaries can no longer
launder tool-controlled text into trusted memory. The audit verdict: the
typed pipeline is sound (the judge sees typed ledger lines, the fold input
keeps[User]:/[Tool result]:labels, request candidates come only from
real non-synthetic user turns), but digest TEXT could copy tool-controlled
instructions into## Open User Requestsunmarked. Three layers: every
digest/checkpoint prompt now carries the origin-provenance duty (asks only
from real[User]:turns; instruction-shaped tool output, forged
[User]:labels and "USER INSTRUCTION" framing are never user intent;
verbatim tool quotes carry a[from toolResult]mark);sanitizeSummary
gains a provenance belt graded at persist sites against the fold's own
transcript (SummaryOriginEvidence) — machine-origin lines leave the
user-intent sections (loggedsanitizedEphemeral) and tool-verbatim asks
gain a[from toolResult]suffix (loggedmarkedToolOrigin), with real
asks byte-identical and pins exempt; and adversarial regression transcripts
(a tool result shaped like user turns) pin the typed pipeline, the belt on
all three persist paths (classic/structured/branch+handoff), and the
prompt duty (#2103) -
feat(gh-2102):
/handoff— start a fresh session from an editable digest
of the current one: the branch-digest machinery
(prepareBranchEntries+ the sharedSummarizeFnseam, handoff preamble
inlib/src/compaction/handoff_digest.dart) generates a structured
checkpoint of the whole current branch, the scratch file
(<cwd>/.fah/handoff-digest-<ts>.md) opens in the user's editor
(FA_EDITOR>VISUAL>EDITOR; non-interactive runs and missing
editors use the digest as generated — the LM call is never wasted), and
the fresh session is seeded with the edited digest + the relevant-file
list (ahandoff_digestcustom-message record whosedetailscarry
readFiles/modifiedFiles; the digest also rides the live context as
the opening user message, counted as persisted so the next run never
re-persists it). The old session is never written to — byte-identical,
reachable via the printedfa --sessionlink; an emptied digest is the
cancel gesture (no switch), a failed digest keeps the session with a
visible error (#2102) -
fix(#1947):
schedule_messagefrom the orchestrator no longer misroutes
into a finished subagent's mailbox. A background shell job started by a
CHILD registered its settle continuation inside the child's subagent
zone; when the job settled after the child's run ended, the CLI's
settle-wake (_onShellJobSettled→_startRun) started MAIN's reaction
run still carrying the finished child'sactiveSubagentId(), and every
identity consumer of that run misattributed it — the reported shape was
a self-reminder scheduled "in /" that auto-resumed the
completed child (duplicate-release risk). Three layers: the
ShellJobRegistrynow binds its settle continuation to the
construction-time (boot) zone (_bootZone.run), both hosts'
scheduleSenderMailboxwiring trusts the zone scope only while the
child is genuinely in flight on the session executor
(TaskExecutor.isInFlight), and the tool response names the RECIPIENT
the record carries — an explicitto:used to be shadowed in the reply
by the sender's mailbox, which read as "the override was ignored" even
when it was honored. E2E repro drives the real AgentCli
(test/cli/agent_cli_schedule_recipient_test.dart) plus a registry-level
zone pin (test/tools/shell_job_settle_zone_test.dart). -
fix(gh-1948):
task_observeworks on a RUNNING background subagent
instead of crashing with an uncaughtSessionExceptionon the
<parentSessionId>/<agentName>placeholder. Three legs: the executor
flushes each child's transcript incrementally at every turn boundary
(the JSONL exists and grows mid-run — also crash-resilience for
aborted children),task_observeresolves a placeholder handle's real
session file from the sessions tree (the sameagent: subagent/
parent:/id:header scan the boot adoption uses) and heals the
handle onto the found path, and every read failure degrades to a
structured "transcript unavailable" / "no transcript available yet"
message instead of an uncaught tool error. The child-transcript reader
rides the transient-ENOENT retry (issue #427) — it reads while the
executor appends. -
feat(gh-1825):
/network+ scoped DAP channel membership — join by
paste (invite url / url+keys / bare channel id / wholefa dap import
command) with session/project/global scopes, live join without
restart, per-scope leave + copy invite, and the composer-paste
shortcut into the same wizard. Session scope rides a
dap_channel_membershipcustom record (leave tombstones, branch
resume); project scope is.fah/dap.json(committable,dapkey1
PBKDF2+ChaCha20-Poly1305 encrypted keys); global keeps the legacy
~/.dapfiles. Headless CI:DAP_CHANNELS_JSON(+DAP_HUB_URL,
DAP_CLIENT_SECRET,DAP_KEY_PASSPHRASE) joins at boot with zero
prompts, plaintext or encrypted privs mixed. Passphrase chain:
env → per-channel macOS Keychain item → one prompt with save default. -
fix(#1947):
schedule_messagefrom the orchestrator no longer misroutes
into a finished subagent's mailbox. A background shell job started by a
CHILD registered its settle continuation inside the child's subagent
zone; when the job settled after the child's run ended, the CLI's
settle-wake (_onShellJobSettled→_startRun) started MAIN's reaction
run still carrying the finished child'sactiveSubagentId(), and every
identity consumer of that run misattributed it — the reported shape was
a self-reminder scheduled "in /" that auto-resumed the
completed child (duplicate-release risk). Three layers: the
ShellJobRegistrynow binds its settle continuation to the
construction-time (boot) zone (_bootZone.run), both hosts'
scheduleSenderMailboxwiring trusts the zone scope only while the
child is genuinely in flight on the session executor
(TaskExecutor.isInFlight), and the tool response names the RECIPIENT
the record carries — an explicitto:used to be shadowed in the reply
by the sender's mailbox, which read as "the override was ignored" even
when it was honored. E2E repro drives the real AgentCli
(test/cli/agent_cli_schedule_recipient_test.dart) plus a registry-level
zone pin (test/tools/shell_job_settle_zone_test.dart). -
fix(gh-1948):
task_observeworks on a RUNNING background subagent
instead of crashing with an uncaughtSessionExceptionon the
<parentSessionId>/<agentName>placeholder. Three legs: the executor
flushes each child's transcript incrementally at every turn boundary
(the JSONL exists and grows mid-run — also crash-resilience for
aborted children),task_observeresolves a placeholder handle's real
session file from the sessions tree (the sameagent: subagent/
parent:/id:header scan the boot adoption uses) and heals the
handle onto the found path, and every read failure degrades to a
structured "transcript unavailable" / "no transcript available yet"
message instead of an uncaught tool error. The child-transcript reader
rides the transient-ENOENT retry (issue #427) — it reads while the
executor appends. -
feat(gh-1825):
/network+ scoped DAP channel membership — join by
paste (invite url / url+keys / bare channel id / wholefa dap import
command) with session/project/global scopes, live join without
restart, per-scope leave + copy invite, and the composer-paste
shortcut into the same wizard. Session scope rides a
dap_channel_membershipcustom record (leave tombstones, branch
resume); project scope is.fah/dap.json(committable,dapkey1
PBKDF2+ChaCha20-Poly1305 encrypted keys); global keeps the legacy
~/.dapfiles. Headless CI:DAP_CHANNELS_JSON(+DAP_HUB_URL,
DAP_CLIENT_SECRET,DAP_KEY_PASSPHRASE) joins at boot with zero
prompts, plaintext or encrypted privs mixed. Passphrase chain:
env → per-channel macOS Keychain item → one prompt with save default. -
fix(#1947):
schedule_messagefrom the orchestrator no longer misroutes
into a finished subagent's mailbox. A background shell job started by a
CHILD registered its settle continuation inside the child's subagent
zone; when the job settled after the child's run ended, the CLI's
settle-wake (_onShellJobSettled→_startRun) started MAIN's reaction
run still carrying the finished child'sactiveSubagentId(), and every
identity consumer of that run misattributed it — the reported shape was
a self-reminder scheduled "in /" that auto-resumed the
completed child (duplicate-release risk). Three layers: the
ShellJobRegistrynow binds its settle continuation to the
construction-time (boot) zone (_bootZone.run), both hosts'
scheduleSenderMailboxwiring trusts the zone scope only while the
child is genuinely in flight on the session executor
(TaskExecutor.isInFlight), and the tool response names the RECIPIENT
the record carries — an explicitto:used to be shadowed in the reply
by the sender's mailbox, which read as "the override was ignored" even
when it was honored. E2E repro drives the real AgentCli
(test/cli/agent_cli_schedule_recipient_test.dart) plus a registry-level
zone pin (test/tools/shell_job_settle_zone_test.dart). -
fix(gh-1948):
task_observeworks on a RUNNING background subagent
instead of crashing with an uncaughtSessionExceptionon the
<parentSessionId>/<agentName>placeholder. Three legs: the executor
flushes each child's transcript incrementally at every turn boundary
(the JSONL exists and grows mid-run — also crash-resilience for
aborted children),task_observeresolves a placeholder handle's real
session file from the sessions tree (the sameagent: subagent/
parent:/id:header scan the boot adoption uses) and heals the
handle onto the found path, and every read failure degrades to a
structured "transcript unavailable" / "no transcript available yet"
message instead of an uncaught tool error. The child-transcript reader
rides the transient-ENOENT retry (issue #427) — it reads while the
executor appends. -
feat(gh-1825):
/network+ scoped DAP channel membership — join by
paste (invite url / url+keys / bare channel id / wholefa dap import
command) with session/project/global scopes, live join without
restart, per-scope leave + copy invite, and the composer-paste
shortcut into the same wizard. Session scope rides a
dap_channel_membershipcustom record (leave tombstones, branch
resume); project scope is.fah/dap.json(committable,dapkey1
PBKDF2+ChaCha20-Poly1305 encrypted keys); global keeps the legacy
~/.dapfiles. Headless CI:DAP_CHANNELS_JSON(+DAP_HUB_URL,
DAP_CLIENT_SECRET,DAP_KEY_PASSPHRASE) joins at boot with zero
prompts, plaintext or encrypted privs mixed. Passphrase chain:
env → per-channel macOS Keychain item → one prompt with save default. -
fix(#1947):
schedule_messagefrom the orchestrator no longer misroutes
into a finished subagent's mailbox. A background shell job started by a
CHILD registered its settle continuation inside the child's subagent
zone; when the job settled after the child's run ended, the CLI's
settle-wake (_onShellJobSettled→_startRun) started MAIN's reaction
run still carrying the finished child'sactiveSubagentId(), and every
identity consumer of that run misattributed it — the reported shape was
a self-reminder scheduled "in /" that auto-resumed the
completed child (duplicate-release risk). Three layers: the
ShellJobRegistrynow binds its settle continuation to the
construction-time (boot) zone (_bootZone.run), both hosts'
scheduleSenderMailboxwiring trusts the zone scope only while the
child is genuinely in flight on the session executor
(TaskExecutor.isInFlight), and the tool response names the RECIPIENT
the record carries — an explicitto:used to be shadowed in the reply
by the sender's mailbox, which read as "the override was ignored" even
when it was honored. E2E repro drives the real AgentCli
(test/cli/agent_cli_schedule_recipient_test.dart) plus a registry-level
zone pin (test/tools/shell_job_settle_zone_test.dart). -
fix(gh-1948):
task_observeworks on a RUNNING background subagent
instead of crashing with an uncaughtSessionExceptionon the
<parentSessionId>/<agentName>placeholder. Three legs: the executor
flushes each child's transcript incrementally at every turn boundary
(the JSONL exists and grows mid-run — also crash-resilience for
aborted children),task_observeresolves a placeholder handle's real
session file from the sessions tree (the sameagent: subagent/
parent:/id:header scan the boot adoption uses) and heals the
handle onto the found path, and every read failure degrades to a
structured "transcript unavailable" / "no transcript available yet"
message instead of an uncaught tool error. The child-transcript reader
rides the transient-ENOENT retry (issue #427) — it reads while the
executor appends. -
feat(gh-1825):
/network+ scoped DAP channel membership — join by
paste (invite url / url+keys / bare channel id / wholefa dap import
command) with session/project/global scopes, live join without
restart, per-scope leave + copy invite, and the composer-paste
shortcut into the same wizard. Session scope rides a
dap_channel_membershipcustom record (leave tombstones, branch
resume); project scope is.fah/dap.json(committable,dapkey1
PBKDF2+ChaCha20-Poly1305 encrypted keys); global keeps the legacy
~/.dapfiles. Headless CI:DAP_CHANNELS_JSON(+DAP_HUB_URL,
DAP_CLIENT_SECRET,DAP_KEY_PASSPHRASE) joins at boot with zero
prompts, plaintext or encrypted privs mixed. Passphrase chain:
env → per-channel macOS Keychain item → one prompt with save default. -
feat(gh-2102):
/handoff— start a fresh session from an editable digest
of the current one: the branch-digest machinery
(prepareBranchEntries+ the sharedSummarizeFnseam, handoff preamble
inlib/src/compaction/handoff_digest.dart) generates a structured
checkpoint of the whole current branch, the scratch file
(<cwd>/.fah/handoff-digest-<ts>.md) opens in the user's editor
(FA_EDITOR>VISUAL>EDITOR; non-interactive runs and missing
editors use the digest as generated — the LM call is never wasted), and
the fresh session is seeded with the edited digest + the relevant-file
list (ahandoff_digestcustom-message record whosedetailscarry
readFiles/modifiedFiles; the digest also rides the live context as
the opening user message, counted as persisted so the next run never
re-persists it). The old session is never written to — byte-identical,
reachable via the printedfa --sessionlink; an emptied digest is the
cancel gesture (no switch), a failed digest keeps the session with a
visible error (#2102) -
fix(#1947):
schedule_messagefrom the orchestrator no longer misroutes
into a finished subagent's mailbox. A background shell job started by a
CHILD registered its settle continuation inside the child's subagent
zone; when the job settled after the child's run ended, the CLI's
settle-wake (_onShellJobSettled→_startRun) started MAIN's reaction
run still carrying the finished child'sactiveSubagentId(), and every
identity consumer of that run misattributed it — the reported shape was
a self-reminder scheduled "in /" that auto-resumed the
completed child (duplicate-release risk). Three layers: the
ShellJobRegistrynow binds its settle continuation to the
construction-time (boot) zone (_bootZone.run), both hosts'
scheduleSenderMailboxwiring trusts the zone scope only while the
child is genuinely in flight on the session executor
(TaskExecutor.isInFlight), and the tool response names the RECIPIENT
the record carries — an explicitto:used to be shadowed in the reply
by the sender's mailbox, which read as "the override was ignored" even
when it was honored. E2E repro drives the real AgentCli
(test/cli/agent_cli_schedule_recipient_test.dart) plus a registry-level
zone pin (test/tools/shell_job_settle_zone_test.dart). -
fix(gh-1948):
task_observeworks on a RUNNING background subagent
instead of crashing with an uncaughtSessionExceptionon the
<parentSessionId>/<agentName>placeholder. Three legs: the executor
flushes each child's transcript incrementally at every turn boundary
(the JSONL exists and grows mid-run — also crash-resilience for
aborted children),task_observeresolves a placeholder handle's real
session file from the sessions tree (the sameagent: subagent/
parent:/id:header scan the boot adoption uses) and heals the
handle onto the found path, and every read failure degrades to a
structured "transcript unavailable" / "no transcript available yet"
message instead of an uncaught tool error. The child-transcript reader
rides the transient-ENOENT retry (issue #427) — it reads while the
executor appends. -
feat(gh-1825):
/network+ scoped DAP channel membership — join by
paste (invite url / url+keys / bare channel id / wholefa dap import
command) with session/project/global scopes, live join without
restart, per-scope leave + copy invite, and the composer-paste
shortcut into the same wizard. Session scope rides a
dap_channel_membershipcustom record (leave tombstones, branch
resume); project scope is.fah/dap.json(committable,dapkey1
PBKDF2+ChaCha20-Poly1305 encrypted keys); global keeps the legacy
~/.dapfiles. Headless CI:DAP_CHANNELS_JSON(+DAP_HUB_URL,
DAP_CLIENT_SECRET,DAP_KEY_PASSPHRASE) joins at boot with zero
prompts, plaintext or encrypted privs mixed. Passphrase chain:
env → per-channel macOS Keychain item → one prompt with save default. -
fix(#1947):
schedule_messagefrom the orchestrator no longer misroutes
into a finished subagent's mailbox. A background shell job started by a
CHILD registered its settle continuation inside the child's subagent
zone; when the job settled after the child's run ended, the CLI's
settle-wake (_onShellJobSettled→_startRun) started MAIN's reaction
run still carrying the finished child'sactiveSubagentId(), and every
identity consumer of that run misattributed it — the reported shape was
a self-reminder scheduled "in /" that auto-resumed the
completed child (duplicate-release risk). Three layers: the
ShellJobRegistrynow binds its settle continuation to the
construction-time (boot) zone (_bootZone.run), both hosts'
scheduleSenderMailboxwiring trusts the zone scope only while the
child is genuinely in flight on the session executor
(TaskExecutor.isInFlight), and the tool response names the RECIPIENT
the record carries — an explicitto:used to be shadowed in the reply
by the sender's mailbox, which read as "the override was ignored" even
when it was honored. E2E repro drives the real AgentCli
(test/cli/agent_cli_schedule_recipient_test.dart) plus a registry-level
zone pin (test/tools/shell_job_settle_zone_test.dart). -
fix(gh-1948):
task_observeworks on a RUNNING background subagent
instead of crashing with an uncaughtSessionExceptionon the
<parentSessionId>/<agentName>placeholder. Three legs: the executor
flushes each child's transcript incrementally at every turn boundary
(the JSONL exists and grows mid-run — also crash-resilience for
aborted children),task_observeresolves a placeholder handle's real
session file from the sessions tree (the sameagent: subagent/
parent:/id:header scan the boot adoption uses) and heals the
handle onto the found path, and every read failure degrades to a
structured "transcript unavailable" / "no transcript available yet"
message instead of an uncaught tool error. The child-transcript reader
rides the transient-ENOENT retry (issue #427) — it reads while the
executor appends. -
feat(gh-1825):
/network+ scoped DAP channel membership — join by
paste (invite url / url+keys / bare channel id / wholefa dap import
command) with session/project/global scopes, live join without
restart, per-scope leave + copy invite, and the composer-paste
shortcut into the same wizard. Session scope rides a
dap_channel_membershipcustom record (leave tombstones, branch
resume); project scope is.fah/dap.json(committable,dapkey1
PBKDF2+ChaCha20-Poly1305 encrypted keys); global keeps the legacy
~/.dapfiles. Headless CI:DAP_CHANNELS_JSON(+DAP_HUB_URL,
DAP_CLIENT_SECRET,DAP_KEY_PASSPHRASE) joins at boot with zero
prompts, plaintext or encrypted privs mixed. Passphrase chain:
env → per-channel macOS Keychain item → one prompt with save default. -
fix(#1947):
schedule_messagefrom the orchestrator no longer misroutes
into a finished subagent's mailbox. A background shell job started by a
CHILD registered its settle continuation inside the child's subagent
zone; when the job settled after the child's run ended, the CLI's
settle-wake (_onShellJobSettled→_startRun) started MAIN's reaction
run still carrying the finished child'sactiveSubagentId(), and every
identity consumer of that run misattributed it — the reported shape was
a self-reminder scheduled "in /" that auto-resumed the
completed child (duplicate-release risk). Three layers: the
ShellJobRegistrynow binds its settle continuation to the
construction-time (boot) zone (_bootZone.run), both hosts'
scheduleSenderMailboxwiring trusts the zone scope only while the
child is genuinely in flight on the session executor
(TaskExecutor.isInFlight), and the tool response names the RECIPIENT
the record carries — an explicitto:used to be shadowed in the reply
by the sender's mailbox, which read as "the override was ignored" even
when it was honored. E2E repro drives the real AgentCli
(test/cli/agent_cli_schedule_recipient_test.dart) plus a registry-level
zone pin (test/tools/shell_job_settle_zone_test.dart). -
fix(gh-1948):
task_observeworks on a RUNNING background subagent
instead of crashing with an uncaughtSessionExceptionon the
<parentSessionId>/<agentName>placeholder. Three legs: the executor
flushes each child's transcript incrementally at every turn boundary
(the JSONL exists and grows mid-run — also crash-resilience for
aborted children),task_observeresolves a placeholder handle's real
session file from the sessions tree (the sameagent: subagent/
parent:/id:header scan the boot adoption uses) and heals the
handle onto the found path, and every read failure degrades to a
structured "transcript unavailable" / "no transcript available yet"
message instead of an uncaught tool error. The child-transcript reader
rides the transient-ENOENT retry (issue #427) — it reads while the
executor appends. -
feat(gh-1825):
/network+ scoped DAP channel membership — join by
paste (invite url / url+keys / bare channel id / wholefa dap import
command) with session/project/global scopes, live join without
restart, per-scope leave + copy invite, and the composer-paste
shortcut into the same wizard. Session scope rides a
dap_channel_membershipcustom record (leave tombstones, branch
resume); project scope is.fah/dap.json(committable,dapkey1
PBKDF2+ChaCha20-Poly1305 encrypted keys); global keeps the legacy
~/.dapfiles. Headless CI:DAP_CHANNELS_JSON(+DAP_HUB_URL,
DAP_CLIENT_SECRET,DAP_KEY_PASSPHRASE) joins at boot with zero
prompts, plaintext or encrypted privs mixed. Passphrase chain:
env → per-channel macOS Keychain item → one prompt with save default. -
fix:
fileInfo().namereturns the bare entry name on Windows — the
abspath resolution previously glued the drive-letter absolute path onto
the returned name (C:\dirC:\dir\file.txt), breaking the file browser
listings and any consumer that joinsdir+nameback into a path. -
fix(flutter_app): the Windows desktop app can pick a project folder —
a file-selector-backedProjectFolderOps(the folder dialog through
file_selector_windows) for Windows/Linux instead of the macOS-only
method channel, the desktop env layers the project-mount wrapper on
every desktop platform (the mount previously existed on macOS only, so
a picked folder never reached the agent env), and the Windows runner
identity is real (window title "Fa",CompanyName"Fa" — the support
dir moves from%APPDATA%\com.example\...to%APPDATA%\Fa\...). -
fix(#1947):
schedule_messagefrom the orchestrator no longer misroutes
into a finished subagent's mailbox. A background shell job started by a
CHILD registered its settle continuation inside the child's subagent
zone; when the job settled after the child's run ended, the CLI's
settle-wake (_onShellJobSettled→_startRun) started MAIN's reaction
run still carrying the finished child'sactiveSubagentId(), and every
identity consumer of that run misattributed it — the reported shape was
a self-reminder scheduled "in /" that auto-resumed the
completed child (duplicate-release risk). Three layers: the
ShellJobRegistrynow binds its settle continuation to the
construction-time (boot) zone (_bootZone.run), both hosts'
scheduleSenderMailboxwiring trusts the zone scope only while the
child is genuinely in flight on the session executor
(TaskExecutor.isInFlight), and the tool response names the RECIPIENT
the record carries — an explicitto:used to be shadowed in the reply
by the sender's mailbox, which read as "the override was ignored" even
when it was honored. E2E repro drives the real AgentCli
(test/cli/agent_cli_schedule_recipient_test.dart) plus a registry-level
zone pin (test/tools/shell_job_settle_zone_test.dart). -
fix(gh-1948):
task_observeworks on a RUNNING background subagent
instead of crashing with an uncaughtSessionExceptionon the
<parentSessionId>/<agentName>placeholder. Three legs: the executor
flushes each child's transcript incrementally at every turn boundary
(the JSONL exists and grows mid-run — also crash-resilience for
aborted children),task_observeresolves a placeholder handle's real
session file from the sessions tree (the sameagent: subagent/
parent:/id:header scan the boot adoption uses) and heals the
handle onto the found path, and every read failure degrades to a
structured "transcript unavailable" / "no transcript available yet"
message instead of an uncaught tool error. The child-transcript reader
rides the transient-ENOENT retry (issue #427) — it reads while the
executor appends. -
feat(gh-1825):
/network+ scoped DAP channel membership — join by
paste (invite url / url+keys / bare channel id / wholefa dap import
command) with session/project/global scopes, live join without
restart, per-scope leave + copy invite, and the composer-paste
shortcut into the same wizard. Session scope rides a
dap_channel_membershipcustom record (leave tombstones, branch
resume); project scope is.fah/dap.json(committable,dapkey1
PBKDF2+ChaCha20-Poly1305 encrypted keys); global keeps the legacy
~/.dapfiles. Headless CI:DAP_CHANNELS_JSON(+DAP_HUB_URL,
DAP_CLIENT_SECRET,DAP_KEY_PASSPHRASE) joins at boot with zero
prompts, plaintext or encrypted privs mixed. Passphrase chain:
env → per-channel macOS Keychain item → one prompt with save default. -
feat(gh-2101): cache-aware compaction calls + pass metrics — one
compaction run is now ONE provider-cache family: the judge and digest
adapters share a run-scoped routing session id (prompt_cache_key/
x-session-id) with a deliberate per-call-classshortretention
(CompactionCachePolicy,lib/src/compaction/cache_policy.dart), so
each pass's request prefix is served from the cache the previous pass
wrote instead of the legacy blanketcacheRetention: 'none'+
fresh-per-call ids; the id is never the session's id (the session's
cache bucket stays untouched) and providers without cache knobs degrade
to uncached behavior. Hides stay batched per pass (onehidden_range
append per pass). Pass reports gain metrics: the one-liner carries the
pass duration (… tokens (N freed · P%) · 12.4s); the details view
renders the metered LLM line (llm: 2 calls · 18.2s · $0.0412 · cache 87% (45k/51.7k tok)) folded from the providers'Usage— absent
(never fake zero) when no usage is reported, with cache 0% kept visible
as the regression signal. Legacy runs render byte-identically
(#2101) -
fix(#1947):
schedule_messagefrom the orchestrator no longer misroutes
into a finished subagent's mailbox. A background shell job started by a
CHILD registered its settle continuation inside the child's subagent
zone; when the job settled after the child's run ended, the CLI's
settle-wake (_onShellJobSettled→_startRun) started MAIN's reaction
run still carrying the finished child'sactiveSubagentId(), and every
identity consumer of that run misattributed it — the reported shape was
a self-reminder scheduled "in /" that auto-resumed the
completed child (duplicate-release risk). Three layers: the
ShellJobRegistrynow binds its settle continuation to the
construction-time (boot) zone (_bootZone.run), both hosts'
scheduleSenderMailboxwiring trusts the zone scope only while the
child is genuinely in flight on the session executor
(TaskExecutor.isInFlight), and the tool response names the RECIPIENT
the record carries — an explicitto:used to be shadowed in the reply
by the sender's mailbox, which read as "the override was ignored" even
when it was honored. E2E repro drives the real AgentCli
(test/cli/agent_cli_schedule_recipient_test.dart) plus a registry-level
zone pin (test/tools/shell_job_settle_zone_test.dart). -
fix(gh-1948):
task_observeworks on a RUNNING background subagent
instead of crashing with an uncaughtSessionExceptionon the
<parentSessionId>/<agentName>placeholder. Three legs: the executor
flushes each child's transcript incrementally at every turn boundary
(the JSONL exists and grows mid-run — also crash-resilience for
aborted children),task_observeresolves a placeholder handle's real
session file from the sessions tree (the sameagent: subagent/
parent:/id:header scan the boot adoption uses) and heals the
handle onto the found path, and every read failure degrades to a
structured "transcript unavailable" / "no transcript available yet"
message instead of an uncaught tool error. The child-transcript reader
rides the transient-ENOENT retry (issue #427) — it reads while the
executor appends. -
feat(gh-1825):
/network+ scoped DAP channel membership — join by
paste (invite url / url+keys / bare channel id / wholefa dap import
command) with session/project/global scopes, live join without
restart, per-scope leave + copy invite, and the composer-paste
shortcut into the same wizard. Session scope rides a
dap_channel_membershipcustom record (leave tombstones, branch
resume); project scope is.fah/dap.json(committable,dapkey1
PBKDF2+ChaCha20-Poly1305 encrypted keys); global keeps the legacy
~/.dapfiles. Headless CI:DAP_CHANNELS_JSON(+DAP_HUB_URL,
DAP_CLIENT_SECRET,DAP_KEY_PASSPHRASE) joins at boot with zero
prompts, plaintext or encrypted privs mixed. Passphrase chain:
env → per-channel macOS Keychain item → one prompt with save default. -
fix(gh-2115): Russian (non-ASCII) typing works in the Windows line REPL.
A legacy RU-locale console delivers keystrokes in two broken shapes —
CP-6501 translation mojibake ('п' arrives as the UTF-8 of 'ï') and raw
OEM single bytes (0xEF), the latter killing the whole input line with a
FormatExceptionout of the strict UTF-8 decoder.ConsoleLineDecoder
(pure Dart,lib/src/cli/) repairs both via kernel32-built code-page
tables (GetACP + GetConsoleCP through MultiByteToWideChar, built once in
bin/fah_console_cp.dart); true UTF-8 passes through untouched and
non-Windows behavior is byte-identical. The vendored dart_tui parser
repairs its Latin-1 fallback path the same way (consoleTextRepair
hook, set byenableWindowsVtInput, cleared on restore — gh-1973
completion), pinned by the windows_terminal contract test. -
fix(#1947):
schedule_messagefrom the orchestrator no longer misroutes
into a finished subagent's mailbox. A background shell job started by a
CHILD registered its settle continuation inside the child's subagent
zone; when the job settled after the child's run ended, the CLI's
settle-wake (_onShellJobSettled→_startRun) started MAIN's reaction
run still carrying the finished child'sactiveSubagentId(), and every
identity consumer of that run misattributed it — the reported shape was
a self-reminder scheduled "in /" that auto-resumed the
completed child (duplicate-release risk). Three layers: the
ShellJobRegistrynow binds its settle continuation to the
construction-time (boot) zone (_bootZone.run), both hosts'
scheduleSenderMailboxwiring trusts the zone scope only while the
child is genuinely in flight on the session executor
(TaskExecutor.isInFlight), and the tool response names the RECIPIENT
the record carries — an explicitto:used to be shadowed in the reply
by the sender's mailbox, which read as "the override was ignored" even
when it was honored. E2E repro drives the real AgentCli
(test/cli/agent_cli_schedule_recipient_test.dart) plus a registry-level
zone pin (test/tools/shell_job_settle_zone_test.dart). -
fix(gh-1948):
task_observeworks on a RUNNING background subagent
instead of crashing with an uncaughtSessionExceptionon the
<parentSessionId>/<agentName>placeholder. Three legs: the executor
flushes each child's transcript incrementally at every turn boundary
(the JSONL exists and grows mid-run — also crash-resilience for
aborted children),task_observeresolves a placeholder handle's real
session file from the sessions tree (the sameagent: subagent/
parent:/id:header scan the boot adoption uses) and heals the
handle onto the found path, and every read failure degrades to a
structured "transcript unavailable" / "no transcript available yet"
message instead of an uncaught tool error. The child-transcript reader
rides the transient-ENOENT retry (issue #427) — it reads while the
executor appends. -
feat(gh-1825):
/network+ scoped DAP channel membership — join by
paste (invite url / url+keys / bare channel id / wholefa dap import
command) with session/project/global scopes, live join without
restart, per-scope leave + copy invite, and the composer-paste
shortcut into the same wizard. Session scope rides a
dap_channel_membershipcustom record (leave tombstones, branch
resume); project scope is.fah/dap.json(committable,dapkey1
PBKDF2+ChaCha20-Poly1305 encrypted keys); global keeps the legacy
~/.dapfiles. Headless CI:DAP_CHANNELS_JSON(+DAP_HUB_URL,
DAP_CLIENT_SECRET,DAP_KEY_PASSPHRASE) joins at boot with zero
prompts, plaintext or encrypted privs mixed. Passphrase chain:
env → per-channel macOS Keychain item → one prompt with save default. -
feat(gh-210): post-compaction continuity — a bounded working set
re-injects at the context tail after any compaction (structured hide,
checkpoint, or classic fold): the recited goal first, then recently
touched files as path references (content re-reads on demand). Budgets
are enforced with explicit markers (… and N more touched files,
[clipped at N chars]) — never silent cuts. The goal rides the new
recite_goaltool (latest-wins append-onlygoal_recitation
snapshots, write-side bounding) and the slot is protected from every
hide path by construction: the block is additive projection output,
never a session record, so judge / deterministic / LRU / agent hide /
checkpoint fold cannot see it. A fixture proves session survival: an
old (large) session loads unchanged and every new write is an
append-only tail extension — byte-identical prefix. Sessions without a
recitation or a compaction boundary project exactly as before
(#2100) -
fix(#1947):
schedule_messagefrom the orchestrator no longer misroutes
into a finished subagent's mailbox. A background shell job started by a
CHILD registered its settle continuation inside the child's subagent
zone; when the job settled after the child's run ended, the CLI's
settle-wake (_onShellJobSettled→_startRun) started MAIN's reaction
run still carrying the finished child'sactiveSubagentId(), and every
identity consumer of that run misattributed it — the reported shape was
a self-reminder scheduled "in /" that auto-resumed the
completed child (duplicate-release risk). Three layers: the
ShellJobRegistrynow binds its settle continuation to the
construction-time (boot) zone (_bootZone.run), both hosts'
scheduleSenderMailboxwiring trusts the zone scope only while the
child is genuinely in flight on the session executor
(TaskExecutor.isInFlight), and the tool response names the RECIPIENT
the record carries — an explicitto:used to be shadowed in the reply
by the sender's mailbox, which read as "the override was ignored" even
when it was honored. E2E repro drives the real AgentCli
(test/cli/agent_cli_schedule_recipient_test.dart) plus a registry-level
zone pin (test/tools/shell_job_settle_zone_test.dart). -
fix(gh-1948):
task_observeworks on a RUNNING background subagent
instead of crashing with an uncaughtSessionExceptionon the
<parentSessionId>/<agentName>placeholder. Three legs: the executor
flushes each child's transcript incrementally at every turn boundary
(the JSONL exists and grows mid-run — also crash-resilience for
aborted children),task_observeresolves a placeholder handle's real
session file from the sessions tree (the sameagent: subagent/
parent:/id:header scan the boot adoption uses) and heals the
handle onto the found path, and every read failure degrades to a
structured "transcript unavailable" / "no transcript available yet"
message instead of an uncaught tool error. The child-transcript reader
rides the transient-ENOENT retry (issue #427) — it reads while the
executor appends. -
feat(gh-1825):
/network+ scoped DAP channel membership — join by
paste (invite url / url+keys / bare channel id / wholefa dap import
command) with session/project/global scopes, live join without
restart, per-scope leave + copy invite, and the composer-paste
shortcut into the same wizard. Session scope rides a
dap_channel_membershipcustom record (leave tombstones, branch
resume); project scope is.fah/dap.json(committable,dapkey1
PBKDF2+ChaCha20-Poly1305 encrypted keys); global keeps the legacy
~/.dapfiles. Headless CI:DAP_CHANNELS_JSON(+DAP_HUB_URL,
DAP_CLIENT_SECRET,DAP_KEY_PASSPHRASE) joins at boot with zero
prompts, plaintext or encrypted privs mixed. Passphrase chain:
env → per-channel macOS Keychain item → one prompt with save default. -
feat(2117): console logging dial —
lib/src/logging/levels
(off < error < warn < info < debug < trace), categories
(keys/lifecycle/tool/provider/compaction/messaging), and the
{time} {elapsed} {sid} {level} {cat} {msg}line pattern with
logging.timeFormat, rendered only whenlogging.formatis set (the
current shapes stay otherwise). The INTERACTIVE console filters at the
resolved level (defaultwarn);fa.logfilters at its own level
(defaultdebug— every existing diagnostic line still lands, now
with a level tag) and every rendered line on every sink passes the
redaction pipeline. Sources:--log-levelflag >FA_LOG_LEVELenv >
project.fah/config.yamllogging:> user~/.fah/config.yaml
logging:> default; invalid levels fail loudly at boot;
--debug-secrets/FA_DEBUG_KEYSstay as thekeys=debugalias
(a keys-category floor, never resurrecting an explicitoff).
/log <level>switches the console sink live in the REPL. The
headless stdout contract is PINNED byte-identical: HEP/stream-json/
wire-serve/plain-run output never routes through the filter unless the
flag or the env makes the level explicit. The passiveinfo: agent stalledbanner is the first reassigned noise class (it obeys the
dial — hidden at the interactive default, shown frominfoup); tool
start/finish diagnostics reassign todebug/tool(fa.log keeps
passing them at itsdebugdefault). Background-chatter and echo
reassignment follow in #2118's follow-up. -
ci(windows-release): daily Windows desktop app pipeline — new
build-windows.ymlbuilds the flutter_app Windows RELEASE bundle,
runs the MSIX pack/sign step (scripts/msix/make_msix.ps1), attaches
fa-app-windows-x64.zip+fa-app-windows-x64.msix+ the self-signed
cert.certo the latest auto-release, and fa1.dev's download section
gains a Windows button pointing at the stable-name
releases/latest/download/fa-app-windows-x64.zipasset (the pinned
download-block golden covers the new markup). The daily-publish
orchestrator gets awindowsleg (daily-publish.yml) so the nightly
quality gate builds and attaches the Windows app exactly like the
TestFlight/macOS track, and the windows runner's product identity no
longer leaks the Flutter scaffold name (CMakeBINARY_NAME/target
renamed toFa). -
ci(windows-msix): beside the zip ships
fa-app-windows-x64.msix— a
sideload MSIX (AppxManifest assembled inscripts/msix/make_msix.ps1,
packed with the Windows SDK makeappx, signed with a per-run
self-signed cert whose public.cerships beside it) so dev/corporate
machines can install via Add-AppxPackage; a Microsoft Store submission
stays a separate Partner Center track. -
fix(gh-2140): the Flutter app boots on Windows desktop. The unguarded
DefaultFirebaseOptions.currentPlatformread in_initFirebaseApp
threwUnsupported operationon platforms with no Firebase
registration (the template options register only android/ios/web/macos
— Windows/Linux throw before theYOUR_placeholder check could run),
killing boot before the first frame: the boot-watchdog fired and no
window ever opened. The read is now guarded — Firebase is
telemetry-only, so the services stage degrades with a debug print and
the app boots without it. Test:bootServices degrades on platforms with no Firebase registration(windows-target override; previously
threw, now completes). -
feat(gh-209): two-tier compaction engine — the mid-turn relief paths
(the loop's over-window guard and the gh-1680 message-cap self-heal,
CLI and Flutter app) now run ONLY the deterministic emergency tier
(EmergencyRelief): re-anchor from the session projection, dedup
repeated reads of the same path (the newest successful copy stays
live), keep-N-recent per tool class stalest-first (read 2 / exec 4 /
other 8 —defaultEmergencyKeepRecent), then the local trim valve —
plus the buster rule: a tool result that ALONE overflows the window
folds regardless of the class budgets (marker-reopenable; pinned
expansions still veto).
Seconds, bounded, ZERO language-model calls on any path — a dead or
slow judge can no longer turn an in-turn overflow into the declared
≤15 min silent stall. All quality-tier invariants hold: whole pair
groups hide atomically (#85/D6), real user turns / protected tail /
pinned expansions never hide (F8/#1379), hides are lossless appends
(every id stays expandable behind its marker), and the relieved turn
continues visibly ([resuming] …). The quality tier (judge,
checkpoints, escalation) stays at the turn boundaries — post-run and
pre-flight — and the over-window funnel (issue #1085) survives as the
backstop when the deterministic tier cannot free the window. -
fix(gh-2138): session-ownership lease fail-open holes closed — a second
writer is no longer possible through an error path. On an enforceable
backend (atomic rename available) a lease publish failure or a
persistently failing ownership verify now REFUSES the drive-open
(LeaseRefused→ the app throwsLeaseRefusedExceptionand the wide
shell refuses loudly; the CLI prints a loud refusal — boot aborts, an
in-process switch restores the previous session, headless/serve exit
4/blocked-serve — instead of silently driving unleased); the verify
re-read re-runs up to 3× with no backoff — fail-closed is the
guarantee, not fast recovery. The
only remaining fail-open is a backend with no atomic rename (E5, web),
and a store-less manager (now impossible on desktop: every app
bootstrap wiresdefaultLeaseStore) proceeds with a loud warning.
Every drive-open logs the resolved lease branch (acquired / blocked
owner / unenforced / refused / no-store). The wide shell gained the
attach surface: a live-lease open opens the attached view (transcript
follow + composer → owner mailbox viaAttachedSessionController)
with a banner naming the owner (host + pid) instead of a dead-end
snack, and the transport's transcript poller is disposed on detach. -
feat(gh-2098): the auto-compact trigger is user-configurable —
compaction.triggerRatio/compaction.reserveTokens/
compaction.keepRecentTokensin~/.fah/config.yamlor project
.fah/config.yaml(per-key deepest scope wins) override the gh-1742
forWindowcurves; absent keys stay byte-identical (golden-pinned).
triggerRatio(0 < r < 1) pins the trigger line at r × window
(reserve = window − floor(r·window)) so every window-derived consumer
moves together — both trigger channels (estimate + the gh-1742
observed anchor), the structured engine's gate and fragile-band
escalation, the ctx meter, the spill budget, and task children (the
CLI threads the merged section through the executor).reserveTokens
sets the headroom directly (mutually exclusive withtriggerRatio—
strict namedConfigExceptions, also enforced atfa config set—
nothing persists that the next boot would reject);keepRecentTokens
overrides the post-pass kept region. Degenerate guards mirror
forWindow (reserve > window/2 clamps to window/4, keep > window
clamps to window/2) so a pass always frees tokens. A non-empty tuning
is a user pin: the bench env knob (FAH_COMPACT_TRIGGER_TOKENS)
never rewrites it (gh-1604's rule). Default decision documented in
docs/compaction.mdwith the benchmark note
(bench/compaction_trigger_sim.dart, fire points + frequency at
0.9375 vs 0.80 vs 0.75 on a recorded 218-request session): the legacy
curve stays the default (byte-identical contract + pass-frequency
cost), 0.80 is the informed opt-in. Stale doc comment fixed: the CLI
settings field described a ratio-based default
("ratio 0.7, reserve 50000, keep 80000") that never shipped — the
field now says what it does and points at [compactionTuning]. -
fix(gh-2097): auto-compact measures honestly — no more stale pre-run
estimates or «0 freed» basis flips. (1)StructuredCompactor.run()
re-anchors the agent state from the session projection BEFORE any
trigger/before/over math: the in-memory transcript can lag the session
file (an in-memory tail cut, a second writer appending to the same
session between runs), and the stale basis computedover≈ 1.4k
where ~177k was needed — the deterministic hide under-sized every
pass and the run paid extra passes/minutes; one projection build
bounded by the ledger cache (O(changed records)) now starts every
run. (2) Pass reports render an upward basis jump explicitly:
StructuredCompactionPass/AutoCompactorPassgainbasisReadTokens
(a pass appends only shrinkers, so an after-count above its
before-count is a second writer's records entering the projection,
never a regression) andformatCompactionReportprints
basis re-read: +Nkinstead of a clamped0 freed · 0%; the small
restamp jitter (no flip metadata) keeps its0 freedclamp. (3) The
compaction hooks' diagnostic lines (auto-compact pass/retry/done)
now carrysid=like every other compaction lifecycle line, and the
diagnostic appends run through one serialized in-order chain
(flushDiagnosticLog(), awaited by the REPL teardown and the
headless finally) — bursts land complete instead of being dropped by
unawaited fire-and-forget appends racing the process exit. AC: a
two-writer fixture asserts correct first-pass sizing; golden tests
pin the basis-flip rendering; log tests pin sid presence and
no-dropped-lines. (4) The app's over-window relief
(AgentService._relieveOverWindow) now drains the pending persist
BEFORE compacting — the same ordering the run-end funnel and the CLI
already enforce: the structured engine's run-start re-anchor rewrites
the live transcript from the session projection, so a relief that
compacted while the crash-safe persister still had the just-sent
message in flight re-anchored onto a projection without it (the live
context silently lost the newest message and the trim valve found
nothing droppable — the turn died on the guard error instead of
being relieved). AC: a gated-persist IT-2 fixture holds the newest
record's append in flight across the relief and asserts the turn
still completes. -
fix(gh-2132): the shipped non-sandboxed macOS app is real now — the
orphanedReleaseNoSandbox.entitlements/DebugNoSandbox.entitlements
are pruned to EXACTLY {cs.allow-jit, network.client, network.server}
(the stale personal-information/healthkit/homekit claims are
sandbox-scoped or iOS-only and poison profile-free Developer ID
notarization) and wired as a realReleaseNoSandboxXcode build
configuration (project + Runner + Flutter Assemble, byte-cloned from
Release);build_macos_nosandbox.shprunes BEFORE the re-sign (the old
prune-after-sign order shipped a broken seal) and fails the leg loud
when the SIGNED app's entitlements deviate from the pinned trio;
build-macos.yml gains a "Notarize no-sandbox DMG" step (notarytool
--wait + stapler staple, same signed-path gating and no-secrets graceful
skip as the sandboxed "Notarize DMG" step). Pinned by
test/ci_macos_nosandbox_entitlements_guard_test.dart. -
fix(gh-2096): auto-compact no longer re-pays the judge budget on every
run when the configured smol class cannot answer within it, and a judge
timeout no longer kills the retry. Three engine changes: (1) the
judge call runs under a PER-CALL child cancel token — a budget expiry
aborts only the in-flight call while the retry and the later LM stages
keep the run-wide token live (previously the first timeout cancelled
the shared token and the retry died born-cancelled in ~75 ms); (2) the
consecutive judge-failure counter is persisted per session as additive
structured_judge_healthcustom records (newest wins; no migrations —
old sessions load byte-identical), so the #541 deterministic fallback
latches ACROSS runs: while latched, auto-compact skips the judge
entirely (deterministic hide, receipt says "budget unwinnable for the
configured class") and pays ONE probe call perjudgeProbeAfter
window (default 10 min; a changed model class probes at once) — the
probe unlatches on success, failure re-arms; (3) the named judge
timeout line (#541 AC3) now carries the attempt shape — input entries,
est. tokens, elapsed — so a slow-reasoning class is distinguishable
from a wedged endpoint in logs alone; the pass reports gain
judgeInputEntries/judgeInputTokens/judgeElapsedMs/judgeLatched.
Docs: the smol/judge model-class rule (a class that answers within the
budget, or a budget sized to the class) indocs/agents/providers.md. -
fix(gh-2120): the release toolchain no longer floats on unpinned SDKs.
Twosdk: stable/channel: stableconsumers broke simultaneously
when the Dart/Flutter stable channel moved on 2026-11-11
(Dart 3.13.5 → 3.14.0, Flutter 3.47.7 → 3.50.0). (1) The ci.yml
binariesrelease job now pinssetup-dartto3.13.5: the floated
SDK changeddart build cli's output layout mid-stream
(self-containedbin/fa→ thin dartaotruntime-style binary +
lib/libdartaotfah.so), and the v1.0.709 bundle built on it broke
every machine-loop fa launch (dartaotruntime: not an AOT snapshot,
exit 255 at agent startup — dev/review legs dead since). (2) The
office-addin-suiteCI leg now pins Flutter to3.47.7: the floated
SDK failsflutter pub get --enforce-lockfileagainst the committed
flutter_app lock (deterministic skew reds the required Quality gate
for every PR). Bump these pins deliberately and in the same commit
that verifies the new toolchain end-to-end (bundle layout + factory
install + agent launch). Follow-ups: teach the factory kit
(install-fa-cli.sh / launch path) to handle the split layout; extend
the unpinned-SDK guard to these jobs. -
fix(gh-2075): the daily-publish macOS legs no longer depend on the
package:sqlite3 native-assets hook's single un-retried build-time
download. Thebuild-macos.ymlapp-build and CLI-bundle steps now
pre-warm the hook's digest-checked cache via the ONE shared tool
(scripts/sqlite3_hook_prewarm.dart, gh-2074 — the same contract
build-mobile.yml + ci.yml already ride) after pub/config resolution and
before the build; a brownout fails there in seconds with a named
::error::instead of killing a release build ~20 minutes in. The
interim bash seeder (scripts/seed_sqlite3_native_assets.sh+ selftest)
is removed — round-2 review flagged it as a second implementation of the
same hook-cache contract; the lane wiring + the single-mechanism
invariant are pinned bytest/ci_sqlite3_native_asset_seed_guard_test.dart. -
fix(gh-2074): the daily-publish
playleg no longer reds on a GitHub
release-download brownout. Three build-mobile.yml Android jobs died in
package:sqlite3's native-assets build hook withBad state: Hash of downloaded file libsqlite3.x64.android.so is bef140a1…— the hook
(released ≤3.9.1; the lockfile pins 3.7.0, the root floats 3.9.1)
hashes the download WITHOUT honoring the HTTP status, so GitHub's 504
page (a constant hash, upstream simolus3/sqlite3.dart#435) failed the
pin check and the build exited 255. The assets themselves were intact;
ci.yml had solved this exact class for itself on 2026-09-21 by caching
.dart_tool/hooks_runner/shared, but build-mobile.yml never got the
protection. Cure: newscripts/sqlite3_hook_prewarm.dart— derives the
release tag + pinned hashes from the RESOLVED sqlite3 package (no
second pin), gates on the HTTP status before hashing, bounded-retries
with backoff, verifies SHA-256 before any cache write (tmp+rename),
skips idempotently on a verified cache hit — wired as the
Native-assets hook cache+Pre-warm sqlite3 hook assetssteps in
the two Android build jobs (both roots,hooks-shared-mobile-keys)
and insideassert-builtin-skillsfor the root host asset (the step
that failed first). Guard testtest/ci_sqlite3_hook_prewarm_guard_ test.dartpins the wiring (AC1-AC4); the script's byte-level behavior
and the live hook-reuse layout are pinned in
test/scripts/sqlite3_hook_prewarm_test.dart.
Rework (2026-11-09, the PR's own CI run): five reds, two root causes,
both fixed. (1)expandTargetsaccepted itshostOs/hostArch
injection but ignored it —expandTargets('host', hostOs: 'linux', hostArch: 'x64')resolved against the REAL machine and failed on the
ubuntu-24.04-arm Core-tests shard; a fully injected platform now never
consults the host (unit-provable on x64 and arm64 alike). (2) The
pre-warm was wired as plaindart run— which executes the whole
package graph's build hooks BEFORE the script's main(), so on exactly
the gh-2074 conditions (cold cache + brownout) the pre-warm died before
it could pre-warm (proven live; the pty-visual red was this same shape).
Every invocation is nowdart --disable-dart-dev(no hook machinery)
and the script is self-contained (nopackage:imports — SHA-256
inlined) so that mode can load it. The same protection extended to
ci.yml: the lanes whose first hook consumer is a plain dart command
(test-core,integration-mock,hostile-env,fa-aot-build,
pty-integration-linux,binaries-pr,pty-visual— the last had no
hooks cache at all) now restorehooks-shared-+ pre-warm the host
asset after pub get and before that consumer; the guard pins it as
AC6/AC7. -
feat(gh-2059): browser-extension compaction parity with CLI — over-window
relief,/compactwith visible receipts, and the shared under-window
guarantee ride the sameCompactionHostWiringresolution as the CLI and
app (resolveExtensionCompactionWiring); receipts are durable across
panel attach/SW restart. Machine-review round 1: exact ladder pass
counts, busy-matrix routing (routeUserInput) for panel text and second
/compactduring a pass, window settings from the ACTIVE stored source
with positive validation, string-encoded int merges. -
fix(gh-2055): the daily-publish
clileg red-failed inpod install
(Build macOS x86_64, run 41778615815) because the vendored macOS pod's
XCFramework download block guarded on the downloaded-zip MARKER
(if [ ! -f wasm_run-v0.1.0.zip ]) instead of on the artifact the build
consumes. A fresh CI clone never has the marker, so pod install re-ran
the block on every build: it removed the WasmRun.xcframework the
build-macos.yml restore step had already placed (cache hit,
sha256-verified), re-downloaded the 92.7 MB asset with a bare
no---failcurl, and one transient reset (curl 56 at ~3 MB/92.7 MB)
left the Podfilenm -gUsymbol check with no
macos-arm64_x86_64/libwasm_run_dart.a to read. The guard now keys on
WasmRun.xcframework/macos-arm64_x86_64/libwasm_run_dart.a— the exact
path the Podfile force_loads and nm-checks — so the block is a no-op
whenever the restore step (or a previous run) put the framework in
place, and the fallback download for a truly cold tree carries
--failAND aborts the block at the curl step on failure
(|| { echo "wasm_run download failed" >&2; exit 1; }— a swallowed
status fell through to unzip/truncate residue and masked the root cause
behind the Podfilenmdiagnostic; review round 1 on this PR), and the
podspec now assigns the backtick result and raises "wasm_run framework
fetch failed" unless$?.success?— Ruby ignores a bare backtick's
exit status, so pod install would otherwise have sailed past the failed
fetch to the downstreamnmdiagnostic (review round 2). Linted
behaviorally (stubbed curl, no network; POSIX-gated sandbox, plus a
ruby evaluation of the real fetch statement) by
test/wasmrun_macos_podspec_download_guard_test.dart. -
fix(gh-2050): the daily-publish
clileg red-failed daily when its
macOS attach arrived after a sibling train had already PUBLISHED the
derived tag (the same-tag convergence race: mobile leg drafts + the tag
train publishes ~25 min after dispatch while the serialized self-hosted
mac builds need ~66 min — v1.0.685: draft 05:22:46, published 05:44:52,
mac leg attached 06:28:53).scripts/release_asset_gate.shgains a
caller-declared pre-stage policy —RELEASE_GATE_PUBLISHED_SKIP=1—
that turns the PUBLISHED+unattached-fa-* verdict into a loud whole-call
skip (::warning::, exit 0, nothing uploaded, no twin create, no flip;
all-or-nothing solatest-mac.ymlcan never land alone on a release
whose zips were skipped). The default stays the gh-2042 AC1 loud
refusal; only build-macos.yml'srelease-macosdesktop attach opts in
(its DMGs/zips/manifest are clobber-refresher pre-stage assets, not
publish blockers), the CLI-tar/extension attaches keep the refusal (they
carry REQUIRED release assets). The stranded desktop feed self-heals:
the next daily leg pre-stages the next version's draft with fresh
assets. -
fix(gh-2044): the auto-compact fragile-band escalation could fold the
ENTIRE visible projection when the remaining path fit inside
keepRecentTokens— the keep-recent walk defaulted to folding
everything when its budget never exhausted, swallowing the live tail
(the newest user ask and assistant turn included). Real-world trigger:
resumed subagent runs ended with no assistant message at all
(subagent produced no assistant message— CI cores shards 1/4 and
3/4, hostile-env, both red)._pickCheckpointRangenow declines the
fold when the whole foldable path fits the keep-recent region and
still carries live records; all-marker paths keep the lossless
deterministic consolidation (issue #387). The escalation receipt also
reports the REAL summarizer call count (a #729 chunked fold makes N
calls, not 1), and the factory wires its run token into the engine's
cancelTokenso a watchdog-shaped cancel reason (any
TimeoutException) can no longer dissolve a user abort into a
"summarizer returned no text" failed receipt while the run reports
success (#1085). Follow-up CI red on the same branch: the decline
moved tiny-transcript runs to the classic residual engine, where an
EMPTY summarizable region folded zero #729 chunks into a blank
summary that still landed as a junk CompactionRecord and a hollow
success: truethrough the no-work terminal —compactSessionnow
refuses that empty-region blank fold (gh-1743's failure-verdict
contract kept; a dialed blank answer over a real region still lands
as a record, issue #578 unchanged). Third CI red on the same branch
(flutter-app over-window relief, both shards): the whole-world decline
lived in the shared_pickCheckpointRange, so it also starved the
checkpoint LADDER — a tool-result-heavy transcript whose every ledger
token fitskeepRecentTokens(the request estimate is far over the
trigger) lost its only summarizer-based relief, and the hosted app's
over-window guard ended the turn instead of continuing it. The decline
is now escalation-only: ladder passes run over the trigger, where the
fold IS the relief (the escalation still declines — semantic 5 — and
its pass body was extracted below the CRAP ratchet's 12.00).
(gh-2044 rework, UT-ESC-13) -
fix(gh-2003): the Copilot picker filter is tier-aware. Individual-tier
/modelsresponses omitmodel_picker_enabledentirely, so phase 1
dropped every such entry as «picker flag absent» and individual/OAuth
accounts still listed zero usable models. When the response comes from
the individual tier — the individual host (api.githubcopilot.comor
pi-mono'sapi.individual.githubcopilot.comspelling) or a
no-proxy-ep token (individual by design) — an ABSENT flag is now
selectable: absence ≠ an explicitfalse, which still drops
everywhere (embeddings, completion-only). Business/enterprise answers
keep the strict picker list unchanged, and the keep is never silent:
the fetch note names it («2 of 2 models kept via the individual-tier
fallback (picker flag absent)») through the existingfetch notes:
surfacing. pi-mono parity: the trigger mirrorsallowPolicyFallback = baseUrl === "https://api.individual.githubcopilot.com"in
packages/ai/src/auth/oauth/github-copilot.ts. -
fix(gh-1990): the Copilot
/modelsdialect never answers a silent
empty list again. Every silent-empty exit names its branch through the
newfetchModelsForEndpointReportdispatch (ModelsFetchReport+
ModelsFetchDiagnostic): the token-exchange HTTP status (with the
OAuth device-flow / fine-grained PAT remedies for classicghp_…
keys), the/modelsHTTP status or timeout (with the seat + per-tier
host hint), proxy-ep-less individual tokens aimed at a business/
enterprise configured host (the tier-misrouting hint), and the picker
filter with per-model drop reasons (picker flag absent,picker flag false,policy disabled,no tool_calls,endpoint unsupported) —
«12 models fetched, 12 filtered (picker flag absent)». A failed
primary credential path retries the other path ONCE before declaring
empty (dual-path fallback, gh-1606): an exchange-401 classic PAT tries
PAT-direct (the provenance note names which path answered), a
fine-grained PAT never falls into the exchange, an OAuth token never
becomes a direct PAT Bearer. Surfacing:/modelsprints afetch notes:section per provider, the/provider copilotconnect flow
prints the named failure before manual entry, the app's model
quick-select (EndpointModelsController.emptyReason) renders it under
the field, and the Copilot connect sheet shows the reason above the
manual model id. The legacyfetchModelsForEndpointanswers are
unchanged (parity); the filter criteria themselves are unchanged
(pi-mono parity — only the reporting is new). Review round 2: the
fetch notes:wiring covers the unsaved sibling paths too (the
active-catalog and env-keyed Copilot fetches surface the same named
failure instead of a silent seed fallback), the connect flow's
no models:line reusesModelsFetchReport.reasonText(the last
hand-rolledmessage — hintjoin), and theModelsFetchReport
docs scope the diagnostic contract to the dialects that name their
failure branches. -
feat(network): channel payload sender block — app members' channel
messages carry{"text": …, "sender": {"name": …, "id": …}}(public
base64 JSON and keyed fanet1 plaintext alike), so DAP agents can
attribute the HUMAN author behind the fa_network relay's hub id. The
harness unwraps it tolerantly (raw text passes through), rides the
name asAgentMessage.fromNamethrough the fabric, and the CLI
steering line greets people again:from Uladzimir (<relay id>) in #channel: helloinstead offrom 3cfaee1aa054fe6e…. The app falls
back to the payload sender for bubble names when the envelope carries
none; DMs also name hub peers from the whois cache. Legacy payloads
without the block decode exactly as before. -
feat(gh-1956): reply auto-spill — oversized child
reply/agent_message
payloads spill to anagent://artifact automatically; the parent receives a
bounded excerpt + pointer + completeness marker with char AND byte counts.
Manual chunking degrades to a documented fallback, restorable across parent
resume via durabledeliverable_artifactrecords, behind the
subagents.replyAutoSpillkill switch (default on; honored on the CLI and
the app host alike). Rework round: the salvage hook (output-truncated
deliverable calls) restores the durable ids before allocating its own
(no post-resume pointer shadowing), durability losses emit a
[deliverables]diagnostic line, the app host honors the kill switch, the
spill-reach gate is renamedspillAppliesTo(wasspillApliesTo), byte
counts are encoded once per spill, andDeliverableRecord.artifact(bytes)
is optional again so external constructors keep compiling. -
fix(#1947):
schedule_messagefrom the orchestrator no longer misroutes
into a finished subagent's mailbox. A background shell job started by a
CHILD registered its settle continuation inside the child's subagent
zone; when the job settled after the child's run ended, the CLI's
settle-wake (_onShellJobSettled→_startRun) started MAIN's reaction
run still carrying the finished child'sactiveSubagentId(), and every
identity consumer of that run misattributed it — the reported shape was
a self-reminder scheduled "in /" that auto-resumed the
completed child (duplicate-release risk). Three layers: the
ShellJobRegistrynow binds its settle continuation to the
construction-time (boot) zone (_bootZone.run), both hosts'
scheduleSenderMailboxwiring trusts the zone scope only while the
child is genuinely in flight on the session executor
(TaskExecutor.isInFlight), and the tool response names the RECIPIENT
the record carries — an explicitto:used to be shadowed in the reply
by the sender's mailbox, which read as "the override was ignored" even
when it was honored. E2E repro drives the real AgentCli
(test/cli/agent_cli_schedule_recipient_test.dart) plus a registry-level
zone pin (test/tools/shell_job_settle_zone_test.dart). -
fix(gh-1948):
task_observeworks on a RUNNING background subagent
instead of crashing with an uncaughtSessionExceptionon the
<parentSessionId>/<agentName>placeholder. Three legs: the executor
flushes each child's transcript incrementally at every turn boundary
(the JSONL exists and grows mid-run — also crash-resilience for
aborted children),task_observeresolves a placeholder handle's real
session file from the sessions tree (the sameagent: subagent/
parent:/id:header scan the boot adoption uses) and heals the
handle onto the found path, and every read failure degrades to a
structured "transcript unavailable" / "no transcript available yet"
message instead of an uncaught tool error. The child-transcript reader
rides the transient-ENOENT retry (issue #427) — it reads while the
executor appends. -
fix(#1941): the selected CodeMie project now rides EVERY model request.
The header is baked intoModel.headersonly by the connect-time
switches (gh-1809), so every other rebuild silently dropped
x-codemie-project— and the backend bills a header-less request against
the user's DEFAULT project (codemie-codeheader-injection.plugin.ts
contract): the reported symptom is limit-exhausted from the exhausted
default project despite picking a budgeted one. Rebuilds now re-resolve
the project from the saved entry through one helper
(projectHeaderForBaseUrl): the boot folder-state restore (JWT entries
previously booted header-less — the SSO cookie patch was the only boot
carrier), the session-resume re-apply (_buildRestoredModel), the
roles-chain failover (ModelRef.project, mirroring the #964 authHeader
leg), the roles-mode/model+ settings-flow pins, and the generic
/providerswitch. The models list (/llm_models, SSO + JWT + guided
setup + entry dispatch) and the quota adapter (dark until pinned) scope
themselves to the same project, so display and billing can never diverge.
Tests pin the header VALUE on the wire (real adapter over a fake
endpoint) for the restored and failed-over models. -
feat(network): private networks created outside the app surface after
sign-in.GET /api/networks/mine(fa_network#16) is synced into the
wallet after OAuth/dev sign-in and both restore paths — best-effort,
silent on older backends (404) and any failure, and never destructive.
Synced memberships keep the server's name/class, preserve local
passwords/join facts, and land without a password (the endpoint never
returns one) until the first join. Entering such a network — sidebar,
⌘K/⌘3-9, or a restored selection — opens the join sheet prefilled with
the network id instead of a resume error or endless spinner; joining by
name now keys the wallet/session by the echoed canonical id and migrates
legacy name-keyed rows (password + channel keys) instead of duplicating
them. A malformed/minerow is skipped, not the whole list. -
fix(gh-1931): one render per tool call on the non-TUI console. Line mode
and the headless-plog printed every executed call twice — a start row
(• bash · cmd, no elapsed) followed by the end row (✓/✗ bash · cmd 0s). The duplicate start-row print is gone from_onToolExecutionStart;
the end row (command, status glyph, elapsed, failure news) is the single
render per call. The TUI keeps its running card + settled card, start
bookkeeping stays (_toolStartsfeeds the end row's detail/elapsed, the
waiting coordinator still arms per-call liveness), and persisted
artifacts (session JSONL, trajectory records) are untouched —
rendering-only change. Long foreground calls keep the gh-1055 liveness
reminders pastwaiting.toolLivenessSeconds(default 60s). -
fix(gh-1929): esc during the pre-flight auto-compaction no longer crashes
the CLI. The compaction layer's deliberate abort (#1085) used to escape
_runPromptoutside its guarded body and reach the root zone handler via
an unlistenedwhenCompletechain —fa crashed: CancelledException+
crash.log + a lost session view. The pre-flight window (submit on an
over-window transcript) now translates the cancel into a user-cancel
outcome: neutral dimsubmission cancelledreceipt (nevererror:), the
TUI composer hands the typed text back (sendInputText) so a resubmit is
one Enter away, headless exits 130 with the same receipt, and the next
prompt works (the funnel's local-trim recovery or a retried compaction).
Cancels DURING the run — in-flight relief, settle funnel — keep their
pinned loud-abort surfaces, and the post-run window keeps its
compaction interruptedreceipt via the shared_renderUserCancel
helper. -
feat(1923): stall-proof steering. Steering arriving while the loop awaits
an UNPRODUCTIVE provider submit (zero bytes, or silent past the steering
stall window) now cancels the attempt via aSteeringInterruptFire
cancel, injects the pending steering into the rebuilt request, and
resubmits — the #1916-class submit stalls can no longer queue user or
agent mail invisibly. Productive streams keep next-boundary semantics;
the interrupt never consumes a retry attempt, and the run latch re-arms
in place so watchdog replays and user aborts keep working.task_resume
caps its foreground wait (liketask_send) and continues in the
background; video polling honors soft-yield checkpoints (remote render
never restarted, honest hand-back text) and media generation honors run
cancellation; SLO-breached undelivered child mail surfaces in
task_status(UNDELIVERED … past the 2s delivery SLO); the TUI prints
steering queued — provider stalled Ns, interrupting to deliverplus the
delivered ack. -
feat(1916): image-heavy submits no longer livelock — byte-based
images.maxBytesPerRequest(default 8MB, layered onto the count cap;
/imagesnames both drop reasons), legacy text-embedded data-URL
screenshots in history fold into the once-only registry instead of
replaying raw forever, stall watchdog windows scale with the outbound
payload (capped at 2x; explicit connect clamps untouched), abandoned
connect attempts answering during the retry backoff are adopted, and
repeated identical-payload stalls fire ONE actionable /compact +
image-budget advice. TUI stall banner + docs/images.md carry the
image-heavy playbook. -
fix(gh-1912): Add an agent → DAP now turns a retired hub's unknown
enroll_createresponse into an actionable upgrade message instead of
exposingbad_frame. Independent enrollment never falls back to the
legacy same-name credential rotation endpoint, and existing credentials
remain untouched on failure. -
fix(gh-1913): Add an agent is usable on narrow phone screens: scope and
format choices wrap without per-character labels, enrollment controls
stack at full width, and actions remain reachable by scrolling. Desktop
keeps the segmented layout; phone/desktop light/dark goldens guard both. -
fix(gh-1825): DAP agent enrollments carry a stable, independent
agentInstancethrough app/CLI bundles, persistence, direct boot and
reconnect. Independent same-name agents keep distinct identities and stay
online together, while legacy bundles retain their project-scoped identity. -
feat(gh-1825): DAP private-channel sends now use self-describing
fanet1frames (sender X25519 key in the frame, channel-bound AAD) via
fa_hub_client0.2.11, so fa_network app members decrypt them without
a whois/senderKey round-trip. Inbound channel frames openfanet1
first and fall back to legacydap/1payloads. Verified live in both
directions between a headless DAP agent and the Flutter app. -
feat(gh-1825): the network offline banner now has a Reconnect now
action which restarts the socket and reloads the channel/member
snapshot. Fresh sockets also clear a stale offline flag (the server
sends no historical drain to a socket that was away during recovery).
AgentNetworkController.startstops after disposal instead of
notifying a dead controller. -
feat(gh-1825): the roster sheet shows access-scope badges (whole
network vs N channels, decoded additively from Member.access in
snapshots and presence.changed) and owner/admins can drop an agent
(DELETE /api/networks/{id}/agents/{agentId} with confirmation; the
server tombstone keeps it out of future snapshots). Guests and store
members are removable too via DELETE /api/networks/{id}/members/{id}
(sessions revoked server-side); owner/admin/self rows stay protected. -
feat(gh-1825): channel/network management in the app — rename a channel
(PATCH), delete a channel or an owned network (REST DELETE with
confirmation and state/navigation cleanup), and unnamed CLI/hub-created
channels show a short friendly label instead of the raw 64-char id. -
feat(gh-1825): pasting a DAP invite no longer demands a passphrase on
macOS — importing NEW channel secrets auto-provisions a random
passphrase into the per-channel Keychain item (decryption of existing
envelopes never auto-generates; env/prompt/headless behavior unchanged),
and passphrase warnings now name the concrete recovery (re-paste the
invite to re-encrypt, or set DAP_KEY_PASSPHRASE). -
feat(gh-1825): the network online counter opens a live-first roster
sheet (names, member class, presence), and the channel composer offers
roster-filtered @-mention autocomplete — the draft keeps the literal
@DisplayName for DAP agents and the envelope carries the resolved
member ids. On the CLI side the DAP channel notice names the agent's
own identity (display name + agentId), and inbound channel mail that
@-mentions that name (case-insensitive, word-boundary — no email or
@name2 false positives) is marked "[mentions you — you are @name]". -
fix(gh-1825): the app's network roster no longer reads as permanently
empty ("0 online"): fa_network sends roster.snapshot with an OBJECT
payload ({members: [...]}) and the app only accepted a bare list, so
every snapshot silently decoded to zero members. Both shapes are now
accepted, with a production-shape regression test. The DAP paste hint
names web alongside CLI/macOS/iOS (plain-web join is supported). -
fix(gh-1825): resumed CLI sessions rejoin their DAP channels and
receive channel mail again — session replay now re-arms membership
synchronization (plugin session-ready listeners on boot/resume and
in-process switches) and idle channel probes complete deferred joins
before inbox peek/drain. The post-replay sync also dials the
membership's OWN hub with its enrolled credential before joining:
a resumed session-scoped agent used to stay on the zero-config local
URL forever, and because a disconnected fabric probe short-circuits
before the sync, the remote dial never happened — the session-ready
listener now drives it directly (throttled to one attempt per 10 s).
App channel history no longer flashes raw
payloads on first open: decoding waits for startup's channel listing
instead of caching an undecoded guess until a manual switch. -
feat(gh-1825): the fa app consumes the same DAP enrollment block as the
CLI — paste it into the agent chat composer (macOS/iOS/Android; the
smart-paste .txt chip path included) and the channel join happens
without the block ever reachingsendText, analytics, or session
records. Native joins ride the live agent-fabric hub repository:
per-project scoped identity, invite pub/priv import, keyless public
channels, reconnect-persisted membership in a dedicated secure
enrollment store (Keychain/Keystore where available). Harness additions:
HubMessagingRepository.joinChannel/waitForConnectionwith
rejoin-before-drain on reconnect, keyed channel decrypt
(hubDecryptPayloadWithKeyPair), public showcase payloads, and
HubBearerTransport(nativeAuthorizationheader or the browser
?token=equivalent; authed dials never stringify transport errors
into logs). Plain web joins through the browser
WebHubTransport(?token=bearer equivalent, IndexedDB identity);
the browser extension rides the service worker's existing DAP client
(hub.joinop), never a panel-local second connection. Add agent now defaults to the
DAP tab with a paste-into-chat hint; web gains ai-native provider
sign-in through the existing popup/callback OAuth flow. -
fix(fa_network#4): the app inserts hub agents arriving via
presence.changedinto the roster (additive displayName/class fields)
instead of dropping them, so the online counter no longer sticks at 0
when an agent comes online afterroster.snapshot; legacy frames
without those fields create no phantom members.roster.snapshot/REST
contents are logged for decisive presence debugging. -
feat(gh-1825):
/network+ scoped DAP channel membership — join by
paste (invite url / url+keys / bare channel id / wholefa dap import
command) with session/project/global scopes, live join without
restart, per-scope leave + copy invite, and the composer-paste
shortcut into the same wizard. Session scope rides a
dap_channel_membershipcustom record (leave tombstones, branch
resume); project scope is.fah/dap.json(committable,dapkey1
PBKDF2+ChaCha20-Poly1305 encrypted keys); global keeps the legacy
~/.dapfiles. Headless CI:DAP_CHANNELS_JSON(+DAP_HUB_URL,
DAP_CLIENT_SECRET,DAP_KEY_PASSPHRASE) joins at boot with zero
prompts, plaintext or encrypted privs mixed. Passphrase chain:
env → per-channel macOS Keychain item → one prompt with save default. -
feat(gh-1844): media slots never fall back to the main connection
implicitly — SDK/CLI, app store, and the JS bridge resolve a slot
without an override as UNCONFIGURED with an actionable
"configure the slot" error; the main connection serves a slot only via
the explicit per-slotuseMainConnection: trueopt-in (YAML
models.slots.<slot>.useMainConnection/ app's "Same as main
connection" pick, preserved throughmedia_models.json). Image and
video generation accept multimodal input (text + reference images:
sandbox paths, http(s) URLs, base64) on capability-declaring
OpenRouter endpoints (input_references+ declared/probed
input_modalitiesgate; unsupported endpoints fail before any network
call); the OpenRouter video job API is a first-class video dialect
(submit → poll → mp4). Newdecidetool: structured decisions via
OpenRouter's Decisions API (/v1/systemone) — bool/choice/score
questions with calibrated probabilities, structured error results, no
streaming. -
feat(gh-1834): the FinalizeGate contract counts a parity/conformance
claim as verified only with negative + combination self-checks — new
numbered step 2.6 inprompts/cli/finalize_gate.md(refused
incompatible/mutually exclusive options, empty/corrupt inputs, boundary
values, must-NOT-work cases, alongside happy paths; a blanket
"everything matches" is not verified). Universality: abstract example
only, no benchmark/task/flag names in the prompt; the step is
conditional, so tasks with no conformance claim see no gate change.
Ledger/verdict wire formats unchanged; validated end-to-end by the
scripted IT-4 replay (real CLI + real bash) whose persisted
task_ledgercarries the rejection rows. -
fix(gh-1832): release v1.0.635 published without
fa-extension.zip— the
landing-page download 404'd. The extension's only producer (the daily
build-macos.ymlbuild-extension leg) derives its tag as "latest+1 at its
own dispatch moment"; on 2026-10-24 thev1.0.635tag was cut by
auto_releasebefore those legs ran, so the extension (and the DMGs)
landed on an orphanedv1.0.636draft while the tag train published
v1.0.635 — every leg green, nothing asserted the published asset set.
Nowscripts/release_required_assets.txtis the single source of truth,
scripts/assert_release_assets.shgates therelease-provenancepublish
flip (a missing asset leaves the release a draft and fails the run
loudly) and a newrelease-asset-smokeci.yml job post-publish probes
every landing-page release link + the full required set (red on non-200).
Remediation: the exact-tagfa-extension.zip(built from the v1.0.635
tree by run 40064876732) was uploaded to release v1.0.635 — the landing
link serves 200 again. -
fix(gh-1820): the arm64 DMG leg's stale size floor is reseeded onto the
shipped v1.0.634 shape — run 4004758753 (post-#1815 SPM-lane adoption)
passed the min-platform gate and the full build, then failed the
size_manifest.py+5% budget onApp.framework/App+5.1%
(25,020,112 → 26,284,144, the accumulated Dart AOT of #1793/#1794/
#1796/#1805/#1806); the committedscripts/size_budget/fa-macos-arm64.tsv
was still the pre-#1096-diet floor (TOTAL 210.5 MB vs the artifact's
116.4 MB), so the documented intentional-growth remediation applies:
the floor is now the exact--reseedoutput for the failing run's
artifact manifest (26 rows ≥ 64 KiB + TOTAL 116,386,369, from the run
log's printed table — the zip never uploaded past the gate), locking in
Fa 23.4→18.6 MB, quickjs_bridge 950→844 KB; new
test/ci_1820_macos_arm64_size_floor_test.dartgates the shape green
through the REALsize_manifest.py checkand pins the committed floor
byte-identical to a--reseedround-trip. -
fix(gh-1814): the desktop DMG lane ADOPTS the SwiftPM lane — Flutter
3.47.7 removed the FLUTTER_SWIFT_PACKAGE_MANAGER disable knob
(flutter/flutter#193978), so the gh-180 pure-CocoaPods pin became a no-op
and the min-platform gate (which forbade any SwiftPM state) failed both
DMG legs on every pinned-3.47.7 run (39991663029, 40022900373); the
#1813 escape (pin 3.47.4) is unreachable on the ~60kB/s runner link.
scripts/assert_macos_min_platform.shnow ASSERTS the SPM lane instead:
SwiftPM state expected afterflutter build macos --config-only,
generated package floor ≥ the app floor (the silent bump must not skip —
the original gh-180 killer), no SwiftPM product above the app minimum,
vendored inappwebview manifest floored at 14.0 if it ever reappears.
Floors were audited and need no raising: Runner pbxproj 3×14.0, Podfile
:osx, '14.0', generated floor 14.0 on 3.47.7, vendored podspec 14.0
(its Package.swift stays deleted — the plugin rides the CocoaPods half of
the hybrid lane via Podfile.lock). The dead env pin left the build-macos
job env; the SDK pin reverts #1813 back to 3.47.7. The ci.yml macOS debug
leg gets the same treatment (gh-1814 review): its
FLUTTER_SWIFT_PACKAGE_MANAGER=0 pin — a silent no-op on the floating
3.47.x stable it resolves past the knob's removal — is removed and the
lane comment corrected; the leg rides SPM enabled as it already has been
(run 399572012 green). -
fix(gh-1805): modifier chords no longer type their base letter into the
composer while the slash menu is open — the vendored dart_tui decoder
puts the base letter into the keystroke'stextfor control bytes
(Ctrl+S →ctrl+swith texts), and the slash-menu edit cluster was
the one insert surface missing the_isCommandKeystrokeguard, so a
chord pressed mid-menu poisoned the typed prefix (/memorylanded as
/smemory). Plain letters and Shift+letters still type and filter. -
feat(1515): ONE model-limits settings surface — the settings hub's
standalone "Model parameters" row is retired and bare/model-edit
(TUI) aliases into/settings→ Model capabilities, pre-focused on the
active model. The caps flow gains the model-edit preset ladders +
Custom… free input for context window / max output (a preset pick
writesmodels.overridesAND rebuilds the active model on the spot —
the old flow's live-mutation semantics, now durable), every field row
shows the current EFFECTIVE value with its source layer (pinned/
role override/catalog), the thinking row is an omp-style selector
(only levels the model supports, per-rung budget metadata, current
level preselected), and the hub row describes the effective summary
(200K ctx · 16K out · thinking off) instead of a pin count. The
scripted/model-edit <field> <n>form and the line-mode limits print
are unchanged. -
feat(gh-1746): opt-in session disk retention —
sessions.retentionin
~/.fah/config.yamlcaps the sessions root and sweeps whole session
units (transcript + sidecars) oldest-last-used-first at boot, exempting
live, named, young, and the current session; nothing is EVER
auto-deleted without the section (byte-identical legacy boot). Adds
fa session clean [--dry-run], the/sessions+fa session list
usage footer under a cap, and header-cwd/path-escape guards so a
planted session header can never steer a delete outside any root. -
fix(gh-1763): a
bashtool command running broad process kills can no
longer signal its own shell or the harness. Scripts are delivered from a
per-exec private temp file (sh -c '. "$1"' sh <script>) so the wrapper
argv never carries the script body (pkill -f <pattern>cannot
self-match its ownsh -c;$0/$#/exit codes/set -e/stdin stay
identical), a PATH shim forpkill/killallplus akill()prelude
guard exempt the harness pid chain + process group (exported as
FA_PROTECTED_PIDS) and the invoking shell from the child's own kills
while legitimate victims (stuck test runners, background servers) are
still terminated, and headlessSIGTERMaborts now log
fa: SIGTERM received …so a child-issued kill never masquerades as a
user Ctrl+C (exit code contract unchanged: 130 graceful, 143 escalate). -
fix(gh-1778): the release gate no longer reds a fully-green shard when
GitHub's cache service degrades. v1.0.621'sCore tests (shard 2/4)was
killed by its owntimeout-minutes: 12with 2535/2761 tests green — both
cache steps had stalled ~133 s on keys that existed (degraded service,
not eviction), coldpub get+ native-asset hook builds delayed the
first test to ~5 min, and the shard needed ~14 min against a budget
sized for the warm ~8.8 min wall. The job budget is now 20 min (sibling
test-leg band), and bothtest-corecache steps are best-effort
(timeout-minutes: 2+continue-on-error: true) — a failed restore is
slower setup, never a red shard.test/ci_core_shard_timeout_guard_test.dart
pins the budget and the best-effort cache contract (RED-first on the old
YAML). -
feat(#1761): the 32KB project-context budget never cuts silently again.
A file truncated to its head excerpt now carries an extended
<!-- From: path — N bytes, only the first M shown -->marker plus an
explicit MUST-read-the-full-file instruction (offset/limit/ranges,
prompt copy inprompts/context/project_context_read_full.md); a file
dropped entirely leaves a one-line tombstone naming its path instead of
vanishing; and the user gets a dim boot line per truncated/dropped file
(CLI line mode prints directly, TUI re-prints after the banner, the app
logs through its AppLog boot-notice seam). NewprojectContext:config
section:maxBytes(default 32768) —0disables the section entirely
and reads no files (fast boot); unknown keys are tolerated with a note.
Leaf-first allocation is unchanged. -
fix(gh-1757): the Android build no longer re-enters the sdkmanager
download roulette for CMake. v1.0.619'sbuild-androidleg died at
:jni:configureCMakeDebug[arm64-v8a]— the:jnimodule (transitive
jnipackage via path_provider_android) wires externalNativeBuild.cmake
with no version, so AGP auto-installed its defaultcmake;3.22.1
mid-configuration and one corrupt archive ("Archive is not a ZIP
archive") red'd the leg, the aggregate Quality gate, and the
Advance-vpinned-marker job. The gh-1655 pre-install action now also
pre-installscmake;3.22.1with bounded retry + idempotent skip (same
hardening the NDK path already carries); the guard test pins the new
AC6 assertions and the AGP-version coupling (AC7). -
feat(#1750): per-model image caps — the outbound request never carries
more unique images than the target model accepts.Modelgains an
optionalmaxImages(catalog-seeded:gemini-4-argon: 10, measured);
images.perModel.<modelId>config overrides it (strictimages:
section, user truth wins); the registry resolves
perModel > catalog > images.maxPerRequest(first present wins, the
issue-#1554 shape). A Google-shapedtoo many images … maximum allowed for model <id> is <n>400 is classified (image_overflow.dart, the
overflow.ts twin), latches the learned cap for the (provider, model)
pair for the run, and re-sends ONCE through the registry at the
smaller cap — current-first-then-newest drops with the existing
never-silent notices naming the learned cap; a second refusal
surfaces exactly as today. JSONL is never rewritten;
images.registry: falsekeeps the byte-identical legacy shape
including the recovery-off behavior. -
feat(gh-1760): oversized user-message intake spills to a file instead of
blowing the context window. Any incoming user message — headless
-p/positional, TUI first/mid-session, steering/follow-up drain,
external inbox — whose text passes the new relative threshold (a
spills.userFractionof the live window budget minus the compaction
reserve, floored byspills.userThresholdbytes) is redacted and
written verbatim to.fah/spills/<sessionId>/user-<n>.md(the #678
layout) from one choke point (Agent.userMessageGuard); the model
receives a bounded head+tail preview plus a read-in-parts instruction
riding the replacement USER message (copy in
prompts/spill/user_read_instruction.md). Images stay inline, a
refused spill write degrades to today's inline behavior, and
spills.enabled: false/userThreshold: 0/ the new
FAH_USER_SPILL_THRESHOLDenv knob (bytes) keep the legacy shapes. -
fix(gh-1743): a structured compaction that hits its total-budget
watchdog (the factory's 300stotalBudget) no longer aborts the
live session.AutoCompactorFactory.run()now applies the
mechanical local-trim fallback (keepRecentTokens, pairing-repaired,
[context trimmed locally]marker — the same valve the classic
pass ladder ends on) instead of failing fast; the honest
both-roles-failed verdict is kept only when nothing is droppable. -
fix(gh-1636): auto-compaction stops dumping the internal checkpoint
summary into the console — the default report is ONE marker line
(● auto-compacted · engine: N → M tokens (F freed · P%)); the records
line + fenced summary moved behind the newtui.showCompactionDetails
opt-in (default false), and the manual/compactstill prints the full
block. The headless log face no longer streams the summarizer deltas by
default (the gh-1433 E4 live stream is part of the same opt-in; the
gh-1430… reasoningliveness line still covers the window). Nothing
is lost — the summary stays in the session file, reachable via
compact_expand. -
fix(test): gh-1732 — the
wrap_ansi_line_perf_testsustained-contention
validation leg spikes 3 of the 5 doubled runs per attempt instead of 4
(CI run 39546301132, core shard 2/4: the old shape left exactly ONE
real-wall-clock-timed doubled sample per attempt, and real jitter on
that single sample — the very shape being modeled — inflated all three
attempts' min ratios to a 3.30x best against the 3.2 bound while the
real 500k growth legs on the same runner stayed green). 3-of-5 is the
documented live-red shape ("≥3 of the 5 timed runs"): median-of-5
[c,c,s] is still a spiked value, so the leg still proves the
pre-gh-1532 median harness fails, and the min harness now rides two
clean doubled samples per attempt. -
fix(#1705): CLI fresh-install boarding asks the provider choice FIRST —
the same list the/add-providerpicker shows (presets,Customlast) —
and onlyCustomcontinues into the api-type wizard; a preset opens its
own flow with the api type prefilled. Previously boarding opened the
custom wizard directly, cold-asking "api type" before any provider was
chosen. -
feat(providers): gh-1704 — first-class Codex/ChatGPT credential export,
CI refresh action, and Provider Queue integration (Copilot-export
parity).fa provider export <name> [--check]resolves the saved
ChatGPT login's OAuth blob from its secure-store slot, refreshes it when
stale, and prints the shell lines (OPENAI_API_KEY+OPENAI_BASE_URL
= the Codex backend — these tokens never serve api.openai.com); the
refresh token never prints and--checkreports credential health with
the SSO caveat./provider chatgpt import [path]adopts an existing
codex loginsession (~/.codex/auth.json) into the same slot — no
browser round-trip..github/actions/chatgpt-codex-authmints a fresh
access token from aCHATGPT_REFRESH_TOKENsecret in CI (direct curl,
no third-party action); invalid_grant fails fast and loudly.
providersQueue:entries speakchatgpt-codex: an omittedapiKeyEnv
resolves the Keychain slot automatically (in-memory refresh), a new
refreshTokenEnv:field mints the initial access token on slot
activation, and a raw Bearer token inapiKeyEnvis tolerated by
chatgpt_codex.dart(no more FormatException — proactive/reactive
refresh degrade, a 401 surfaces as the auth death the queue fails over
on). -
feat(bench): gh-1681 — leaderboard submission readiness. ATIF
trajectories: newexportAtifJsonwhole-snapshot exporter
(lib/src/trajectory/atif_export.dart, ATIF-v1.7 — the schema harbor
0.23.0's flagship adapters emit) behind a headlessfa trajectory export [--format atif] [--output path]verb; the harbor adapter runs
it as a bounded best-effort exec after the agent phase on every
terminal path, so<trial>/agent/trajectory.jsonreaches the hub with
the other agent logs (the leaderboard static analysis requires one per
rewarded trial) andresult.jsonmetadata carries an
atif_trajectorypresent/missing marker. The golden fixture
(bench/harbor_fa/fixtures/atif_sample.json) is pinned Dart-side and
cross-validated against harbor's pydanticTrajectory+
validate_trajectoryintest_atif_contract.py. Workflow: a
submission: truedispatch input turns the submission rules into hard
setup preflights (full task coverage, ≥5 attempts/task, no
agent-timeout override, pinned dataset) and makes the new per-shard
ATIF presence gate fail hard; default runs gain only a warn-only scan
(artifact flow unchanged). Runbook: docs/leaderboard-submission.md
(pinned dataset + @latest content-hash recording, quota-window runner
policy, lb CLI steps). -
fix(headless): gh-1589 — the headless session becomes a SEALED artifact:
no session-JSONL writes land after the run's agent phase ends. New
Session.seal()(state in the writer, no file-format change): raised in
runHeadless' finally and the REPL teardown as the LAST session action
(close order: drain → usage fold → seal → exit, one implementation both
paths — REG-2), it makes every writer (_persistMessages,
shell_job_registrysnapshots, compaction, anyappendCustomEntry,
leaf moves) drop late appends with exactly ONE stderr warning per
writer class — never a throw into an unhandled zone; the exit code
stays the turn's terminal outcome (issue #413 semantics untouched). The
settle→reaction path is sealed with the file (I2): the drain wrap-up
raises a fence (_reactionRunsSealed) so a background-shell settle or
task completion arriving after the final answer's drain — including the
registry's one-turn-deferred listener racing_finishHeadlessDrain's
check-to-return window (the 65gGW7b 10:13:42–10:14:00 burst) — does
board bookkeeping only: no_startRun, no model request, no record.
An honest drain's records (final answer → seal) stay legal (E7); the
seal is per-run state, so resume/replay/session_repairare unchanged.
Adapter side (bench/harbor_fa, I3/AC4+AC7):run()/perform_task
returns only after the fa process exited on EVERY path — the ladder
kill became terminate-and-reap (SIGTERM → bounded exec await → SIGKILL
escalation → pgrep confirm), and the external-cancel paths (harbor's
own wait_for firing first, the no-knobs exec, external-cap-only mode)
now fire the kill + bounded reap before propagating, with a loud
agent-phase exit guarantee degradedstderr note when fa survives both
signals (never a silent proceed, never an unbounded hang). -
fix(bench): gh-1643 — a trial killed mid-stream no longer reports 0/None
usage. The fold read only FINALIZED assistant messages, so a run killed
before its first assistant message (the costliest rows) folded to silent
zeros. Both folds now price a danglingmodel_request_summaryat its
KNOWN request-side volume (system prompt + outbound message chars at the
shared chars/4 rate, estimated input; output unknown) and mark the usage
incomplete instead:UsageChainScan.usageIncomplete→usage.json
(usageIncomplete: true, written only when set so completed folds stay
byte-identical),SessionUsage.usage_incomplete→ the tb adapter's
usage-guard.jsonrow and harbor'sagent_result.metadata, and the
post-mortem stampsusage_incompleteon every results.json row it
patches from a partial fold. Harbor also exports the run outcome class
(agent_result.metadata.failure_mode: agent_timeout self-kill /
external_kill / completed / crashed / never_started) so downstream
classification stops relying on exception.txt archaeology; a summary
superseded by another summary is flushed instead of silently dropped on
both sides. Never-started trials keep the gh-1638/gh-1576 audit-only
precedence (no fake usage). -
fix(stuck-calls): gh-1632 — a stuck tool call in an interactive session now
escalates like everywhere else.effectiveStuckTool()defaulted every
non-headless host toStuckFollowUpMode.advisorywhen no explicit
agent.stuckTool:was configured, so the fa 1.0.580 incident session (a
deadgit fetchin the REPL) fired itstool_stuckflag at the 300 s
threshold and then hung for 27 more minutes — advisory mode never cancels,
retries, or converts; only the owner's manual steering broke the deadlock.
The autonomous default (cancel → retry once → background-convert, then a
session-visible escalation) now applies in EVERY mode;advisoryremains
an explicit opt-out (agent.stuckTool.followUp: advisory), never an
implicit default. -
fix(bindings): gh-1624 — the gh-1570 binding preflight no longer kills
translating-proxy factories._validateModelEndpoint's vendor-prefix
verdict was fatal on ANY endpoint, soFA_PROVIDER_TYPE=anthropic+
bifrost's/anthropicpath +zai/glm-5.3exit-64'd every boot on
1.0.576 (the prefix is a routing key on a translating proxy, not a
dialect declaration). The vendor-prefix check now fires ONLY on the
endpoints that carry a dialect verdict — the three family-exclusive
canonical vendor endpoints (api.anthropic.com, api.openai.com,
generativelanguage), mirroring the family verdict's scope: those keep
the gh-1570 fail-fast, ROUTERS (OpenRouter/Copilot/DIAL/kimi — the
prefix is a routing key there too; OpenRouter's canonical ids are
anthropic/claude-*) and unknown/private endpoints carry the mismatch
as aProviderModelBinding.warningsentry, never exit 64. The warning
is rendered on EVERY resolve path (gh-1624 review): theFA_PROVIDER_*
boot notice, the provider queue (per entry at boot, on queue reload,
and in/provider queue test), and the--model/--base-urlflag
revalidation — a rider never boots silently.
Breaking-change note for 1.0.576 upgraders behind proxy
factories: the migration is thewire:FA_PROVIDER_CONFIG key —
documented now (README env-preconfig section,
docs/agents/providers.md §Translating proxies,--help) with its
caveat: the override engages only when the declared wire DIFFERS from
the provider record's own kind (record anthropic + wire: anthropic
still runs the checks). REG matrix (AC1/AC2/AC3) pinned in
test/model_roles/provider_model_binding_test.dart; AC4 IT drives a
bifrost-shaped loopback proxy through the production anthropic adapter
(test/model_roles/bifrost_proxy_binding_test.dart). -
gh-1596: the first-run wizard (
site/setup.sh) no longer crashes or
corrupts input undercurl | shon dash (Ubuntu sh) or busybox ash
(Alpine):scripts/gen_installers.dartnow renders the provider/mode/
approval menus from the live provider catalog into plain POSIX sh — the
bashisms that killed dash (printf -v,read -p) and silently corrupted
busybox ash are gone; the hidden API-key prompt usesstty -echo+ a
by-nameread(dash has noread -s) and the key never rides printf
argv; EOF/Ctrl-C mid-wizard aborts non-zero with no half-written
~/.fah, and non-TTY runs print guidance and exit 1. The wizard's temp
config ismktemp-created (no predictable, symlink-followable fixed
path). A new path-triggeredinstaller-portabilityCI leg proves the
script under dash + busybox ash (ubuntu) and bash (macOS) on every
site/**or generator change. -
fix(cli): gh-1572 —
faboot no longer rewrites~/.fah/config.yaml
from a lossy config.persistConfig(bin/fah_runapp.dart) built a
freshCliConfigcarrying only some fields andpersistConfig()ran
unconditionally at boot, so every launch silently dropped the user's
spills:,subagents:,jobs:,headless:,agent:,quota:,
tui:,trajectory:,waiting:,power.holdandauto_update
settings (first reported on 1.0.547). Three cooperating fixes: the
boot save is nowsaved.copyWith(<live overlays>)so every parsed
section rides along by construction;CliConfig.copyWithreplaces the
drifted hand-rolledwithCustomProvidersfield list (itself dropping
spills/subagents/waiting/jobs/agentMode/misuseBreaker/streamThinking
insidesaveCliConfig's merge step); the_diskPreservedSections
disk backstop covers every known top-level key.spills:renders in
toYaml(newSpillsConfig.toYaml) andagent.misuseBreaker: false
persists too; an unchanged save no longer rewrites the file at all.
Rework round: the boot snapshot re-syncs from disk after every
sanctioned mid-session settings write (onUserConfigFileChanged— a
cleared context cap, anauto_updatekey drop or a global compaction
pick is no longer resurrected/overwritten by the next save in the
same session);validateAgentSection(the strictfa config check/
config set/ settings-hub mirror) accepts the emitter's
agent.misuseBreakerandagent.stuckToolkeys sofa config check
…(truncated — 12968 bytes dropped; full notes: CHANGELOG.md)