Skip to content

Latest commit

 

History

History
783 lines (649 loc) · 162 KB

progress.md

File metadata and controls

783 lines (649 loc) · 162 KB

What SageFs has become, and what it means for you

Where the releases stand, checked on 2026-10-18 against the tags and NuGet: the latest release is v0.6.909, and master is at it. NuGet lists 0.6.870, 0.6.875, 0.6.882, 0.6.883, 0.6.891 to 0.6.897, 0.6.904, 0.6.906, 0.6.908 and 0.6.909. Everything in the newest window below (2026-10-01) is in v0.6.882, which was tagged on 2026-10-02, and in every release since. v0.6.875 does not have it. Where an older line on this page says some of that work is "not in a release", read it as true on the day I wrote it. There is no window here for what merged after 2026-10-01 yet, so for a change from the last two weeks, look at the commits behind a version tag (git log v0.6.909 --oneline) or the release notes on GitHub, which scripts/release-notes.fsx builds from them.

I kept describing SageFs as a list of features, and a list of features doesn't tell you what it's like to sit down with it. So this page goes by time instead. Each stretch says what you had when it started, what you have now, and then walks through the changes one at a time: what it was like before, what it's like now, why you'd care, a link to the code that does it, and what's still rough.

If you only read one thing: F# Interactive is amazing. Type an expression, get the answer, no build. SageFs is FSI underneath, and I use FSI all day. But on a real project it has always made you do the work. You load the project yourself. You rebuild to find out if one function is right. You run dotnet test and wait. A web app means stop, build, start. SageFs is what happens when the REPL does that work for you, and over the last seven months it went from a daemon that held an FSI session to this:

  • Your project is already loaded, and "Ready" means it. A session that loaded nothing says so, with a reason, instead of showing green.
  • You edit a function and the tests that reach it re-run, saved or not. A body-only edit like a + b to a - b selects the tests that reach the file (released in v0.6.870), and an empty dependency graph can't leave it at zero tests either (merged on 2026-10-01, in v0.6.875).
  • You save a file and the running app serves the new code, with the state you didn't touch still there. A hot reload only says "live" after SageFs has watched the new code run, and if it never ran you get "never entered", with the names.
  • Your pinned packages can't fight SageFs's. Every session runs in its own host process, on the .NET your project needs.
  • When something breaks it tells you what and why. A failed rebuild keeps the old worker serving the last good build. A dead worker leaves a log. A daemon log can't eat your disk.
  • Your agent works in the same session you do. It runs your tests through run_tests and gets a receipt, so a pass left over from an earlier run never counts. It waits for a warming session instead of sleeping and polling.
  • You can leave the daemon running. It doesn't follow symlink loops into the weeds, it watches machine memory and sheds work with a reason, and pages that aren't its own can't make it run F# as you.

None of that is finished, and every entry below says where it stops. I'd rather you hear it from me than find it out at 11pm.

How to read this

The windows run newest first. Every claim links to the code at bba42706, the commit for release v0.6.868, so the link keeps pointing at what I looked at even after the file moves on. The two windows for 2026-10-01 link to the master I was looking at when I wrote each: a615b1a0 for the newest, which is all merged and none of it in a release, and e47b355b for the one below it, which is in v0.6.870 or v0.6.875. Each entry in them says which release it is in, or that it is only merged. Where a feature was later removed, I link the commit instead. Commit counts are by author date on master. A number that came from a commit message and that I didn't re-run says so. If you find something here that's wrong, open an issue, or tell me in Discord. I'd rather know.


What merged after v0.6.875 the same day (2026-10-01, 55 commits, released in v0.6.882)

I tagged v0.6.875 on 2026-10-01 and kept merging. There are 55 commits on master after that tag, all dated the same day. When I wrote this window none of them was in a release. On 2026-10-18 I checked again: git tag --contains on the ones I describe below names v0.6.882 first, tagged 2026-10-02, and NuGet has 0.6.882. So everything in this window is in v0.6.882 and every release after it, and not in v0.6.875 or earlier. The Status lines below say so. The links go to a615b1a0, master when I wrote this. Where an entry changes something the window below it says, I say which.

A save to a run_app app is patched into the running process, and your state stays

Status: merged on 2026-10-01 after v0.6.875, released in v0.6.882 (tagged 2026-10-02). Before: an app started with run_app runs in the worker, out of the reload agent's reach, so a save to it was a restart. About six seconds on the ticker demo, and everything the app held in memory was gone. Now: SageFs builds your project, takes the difference between that build and the assembly the worker loaded, and hands the runtime a metadata delta (MetadataUpdater.ApplyUpdate, the call dotnet watch makes for C#). It takes a new method body, a closure body, a task body, a method added to a type the app already runs, and a generic function in every instantiation. A save the delta can't take is still a restart and names the declaration: a type or method removed, a field added, a signature changed, a changed startup value, a new lambda that adds a closure class. A method another tool has patched with Harmony, and a debugger on the app's process, are named restarts too. The route is on by default and SAGEFS_METADATA_DELTA=off turns it off. On the test fixture a save is served in 1.8 to 2.6 s, against 6 to 8.5 s for the restart it replaces, and the app's counter carries on. Why it matters: the common loop for a console app or a service, edit and watch, stops costing you your state. Evidence: which route a save takes, the default, one real app per row, in the same process, asking for its old counter and its process id, the decision Rough edges: it changes the app and not the REPL. The FSI host, where send_fsharp_code and the live tests run, keeps the last build's code until the session restarts or you hard_reset_fsi_session with rebuild, so a REPL call to a function you just saved runs the old body. A method a delta patches runs without its coverage probes until the next rebuild. The emitter is mine, written from two finished assemblies, and dotnet/fsharp#19941 (Nat Elkins, a community contribution the F# team is reviewing, open and unmerged as I write this) is the prior art. I took no code from it. The timings are one fixture on one machine.

A generic function is patched in every instantiation

Status: merged on 2026-10-01 after v0.6.875, released in v0.6.882 (tagged 2026-10-02). In v0.6.875 a save to a generic function restarts the app and names GenericFunction. Before: a detour of a generic function reaches only part of it. The runtime compiles one body per value-type instantiation that runs and one shared body for every reference type, and I measured that detouring the open definition throws and detouring a closed one moves only that one. Now: SageFs reads the IL of the assemblies that can name the function to list every body the runtime compiled for it, followed through generic callers and generic types, and re-points each one. The shared body, which also gets a hidden type argument, is detoured to a stub that keeps it and calls the new body for the exact instantiation. A float or a struct first used after the save gets the new body too, and so do the members of a generic type. If your code calls MakeGenericMethod, or MakeGenericType with a generic that reaches the function, it can make an instantiation no code names, so the save restarts with GenericInstantiationsUnknown and says what it saw. Why it matters: a generic helper is a normal thing to edit, and it was the one place a save said no for a reason you couldn't act on. Evidence: the scan that lists the instantiations, preparing one generic unit, the generic rows, each a real app on .NET 10 and 11, the decision Rough edges: the scan is coarse on purpose, so one MakeGenericMethod call in a program refuses every generic edit in it. Patched for a generic function means a new body was seen running and every body was patched in the same save. It doesn't mean every instantiation has been called since. A byref parameter, a struct return, a member of a generic struct and a static generic method of a generic class used with a reference type still restart. This is the detour route. An app started with run_app takes a generic body edit by metadata delta, which needs no list.

Hot reload latency is measured

Status: the measurement merged on 2026-10-01 after v0.6.875, released in v0.6.882 (tagged 2026-10-02). Before: I quoted no hot reload latency because nothing measured it. Now: the --integration-hr tier saves a file into a real running app and times it twice, to the first response that carries the new body and to the daemon saying Patched, 20 saves per path after 2 warm-up saves. Over 8 runs a patched save was served at p50 258 to 306 ms and p95 298 to 353 ms, and reached Patched at p50 296 to 346 ms. About 200 ms of that is the file watcher's debounce, a fixed timer. The machine was a 16-thread AMD Ryzen 7 5800XT on Linux with .NET 11.0.0-rc.1 and other jobs running, and the tier fails if a p95 passes its bound. Why it matters: a number with a machine and a sample count beats an adjective, and Microsoft's pages for its hot reload give no figure I could put beside it (I re-read them on 2026-10-01). Evidence: the measurement, the cases, the bounds, with the measured ranges beside them, the numbers and where the time goes Rough edges: one machine and one small app, and no figure for a large app or a save that touches many functions. I measured the restart row before the metadata-delta route existed. The tier has since been split in two: the restart row runs on a daemon with SAGEFS_METADATA_DELTA=off and a delta row runs on the default (two runs so far: p50 1.55 to 1.64 s, p95 2.23 to 2.25 s over 20 saves each), and each fails if its saves took the other route.

An edit typed while the worker is being replaced is judged

Status: merged on 2026-10-01 after v0.6.875, released in v0.6.882 (tagged 2026-10-02). Before: found through the real daemon. A confirming build replaces the worker, and an edit typed in that window could be lost. The old worker is parked, the replacement is spawned with no address yet, and a type-check or an eval that found no worker was answered with a failure and nothing else. The second save's verdict never arrived in three and a half minutes, and the daemon logged nothing. A worker that isn't active yet also answers a type-check with no diagnostics, and that read as a clean check. Now: a check or an eval asks a worker only when the session manager says one is Ready. If one is on its way, the request waits for it on the manager's own signal (no polling), up to the same 30 s a rebuild gets. An answer counts only if the worker that gave it is still the Ready one, so a reply from a retired worker is asked again. A newer check for a file replaces an older one, so only the newest text is judged, and every eval gets its run in order. Nothing unanswered is reported as a compile error. Why it matters: the pane going quiet on an edit you made is the kind of false calm live testing can't have. Evidence: the decision as a pure step, the daemon side that waits for a Ready worker, the decision Rough edges: a check that waits out the 30 s is dropped and not retried when the worker finally comes. The confirming build still restarts the worker, and FSI state goes with it. Discovery and the affected-tests run still drop a request that finds no worker. Separately, line narrowing measures a save against the last build and not the last evaluated text, so a quick revert can outrun it. I haven't fixed that one.

SageFs shows what agents leave behind, and tidies the safe part when you confirm

Status: merged on 2026-10-01 after v0.6.875, released in v0.6.882 (tagged 2026-10-02). Before: agents and orchestrators working in git worktrees leave worktrees, merged branches, the gate's checkouts, built FSI hosts, test temp dirs and orphaned processes. Nothing listed them or said which were safe to remove. Now: each leftover gets a standing that says why it is or isn't safe to reclaim (in use, merged, clean but unmerged, dirty with real work, orphaned, expired, still within retention, or unknown), and a plan is only a description with an id. get_workspace_hygiene and sagefs hygiene print it as a dry run. tidy_workspace and sagefs hygiene --tidy run only the safe part, only for the plan you were shown, and each step looks at its target again before it acts. It never removes unmerged commits, uncommitted work, anything in use, or anything it couldn't judge. The dashboard has a panel for it, and a session reply says so when there are more than five leftover worktrees or the gate directory is past 40 GB. I also stopped some of the mess at the source: my local gate reaps its stale checkouts and old pass records before it makes its own, the daemon prunes FSI host builds nobody has used for a month, and a test runner's temp dir records its owner so the next runner can sweep what a dead one left. Why it matters: a long run with several agents used to end with you hunting through directories to see what was still needed. Evidence: the pure standing and plan, the MCP side, the CLI command, the thresholds, the tool reference Rough edges: it can only judge what it can see. An owner whose liveness it can't decide, a path outside the roots it knows and a git that won't answer are all Unknown, and an Unknown is left alone, so some mess stays until you look at it yourself. CI is Linux only, so that is the platform it has run on.

A roadmap page that marks items built when their code lands

Status: merged on 2026-10-01 after v0.6.875, released in v0.6.882 (tagged 2026-10-02). Before: what I was building next lived in my head and in private notes. Now: the roadmap lists what I'm building now, what's next, and the ideas further out, in horizons. A script writes it from a typed list of items, and an item can name a file and a symbol. When that symbol is on a real code line in the tree, the item moves to Built on its own and links to the code. scripts/ship.fsx regenerates it after the version bump. Why it matters: you can see where it's going, and I can't mark something done by hand and be wrong. Evidence: the generator, the test that fails when the page and the tree disagree Rough edges: the horizons are guesses about distance and carry no dates. A landmark only says a symbol exists, so Built means the code is there, and not that it's finished or released.


The day the comparison tables lost their "restart" and "none" rows (2026-10-01, 84 commits, in v0.6.870 and v0.6.875)

One day, so a different shape from the others. Of the 84 commits dated 2026-10-01 on master when I wrote this window, the first batch is in v0.6.870, and the rest merged on the same day and are in v0.6.875. I tagged every entry below with which, because "it's on master" and "you can install it" are different claims. More merged after v0.6.875 that same day, and that is the window above this one.

The reason for the day: I sat down with what Microsoft's hot reload and Visual Studio's Live Unit Testing do, wrote down every row where they were ahead or where SageFs gave a false green, and closed what could be closed. Links in this window go to e47b355b, master at day's end, and where I link a decision I mean an entry in decisions.md.

A dead FSI host leaves Ready and says why

Status: in released v0.6.870. Before: found live on 0.6.865. A thread in user code threw, the isolated FSI host aborted with exit code 134, and the session stayed Ready and Healthy with the same worker. Every later eval said the host had exited and added "Do NOT reset the session, previous definitions are still valid". That was false, because the host held the session and everything in it was gone. The reason was only in the worker's own log. Now: the worker watches its host. A crash becomes its own session state with the exit code and the last 40 lines the host wrote, health reads Failed with the way out, evals are refused with a typed error, and the reset tools stay available. A stop or reset never counts as a crash. Why it matters: you lose your definitions with a reason and a button, not silently with a reassuring message. Evidence: the crash record, health reading it, the decision Rough edges: SageFs does not restart the host for you. I turned that down on purpose, because it would hide the cause and loop on a program that crashes the host every time. The decision says what would change my mind.

The host build can't quietly lose a source file

Status: in released v0.6.870. Before: the thread sandbox merge added ThreadSandbox.fs to the host project but not to the list of files the build writes out, so every real host build failed with FS0225. Only the host tier noticed. Now: a default-suite test compares that list with the compile list of FsiHost.fsproj, in order, so the same mistake is a red unit test and not a failed session. No release was published between v0.6.865 and v0.6.870, so the broken state never reached one. Why it matters: a host that cannot be built is a session that cannot start, and it should fail where the author is looking. Evidence: the contract test, the fix Rough edges: it checks that the two lists agree, not that every file the host needs is in either.

A body-only edit while you type selects the tests that reach the file, and an empty graph can't read green

Status: the first half (a keystroke edit selects the tests that reach the file) is in released v0.6.870. The rest (the floor and the whitespace gate) merged on 2026-10-01 and is in v0.6.875. Before: a + b to a - b moves no symbol names, so the name delta was empty and nothing was selected. The widening that covers it ran only on a save or an explicit run, so while you typed the pane stayed green. A cold start with an empty dependency graph, or a graph that hadn't seen the test file that covers the code, selected nothing even then. And the keystroke gate that drops "no change" edits threw away all whitespace, but F# reads indentation, so moving a line in or out of an offside block, or x -1 to x - 1, looked like no edit. A comment typed after a real edit also cancelled the check pending for the real one. Now: the file-scope widening runs on every trigger. If everything finds nothing for a compiled .fs file, the live loop selects every discovered test and says ConservativeFallback with the reason, the same floor the cohort landing gate has. The gate keeps each line's starting column and a single space between tokens, and a trivia keystroke leaves the pending check alone. Why it matters: a pane that says green because nothing ran is the one failure live testing can't have. Evidence: the file scope and the floor, the whitespace-aware normalizer, the keystroke handler, the first fix, the decision Rough edges: the floor costs. A compiled file no test reaches re-runs the suite on each save, and on each keystroke for a category set to OnEveryChange. I took that over a pane that stays green on a regression.

You can debug a failing test from VS Code

Status: merged on 2026-10-01, in v0.6.875. Before: the model had a DebugTest code-lens command and no client used it. A red test in the editor was a dead end. Now: a failing test gets a Debug lens next to its result, a Debug link in its gutter hover and Debug Test in the Test Explorer. The daemon asks the host that runs your tests to hold one test and answers with its process id. The editor attaches a coreclr debugger, and the host releases the test only once a debugger is attached. On Linux the host opens the ptrace permission for the length of the hold and closes it after, and says which setting blocks it when it can't. Why it matters: the thing Visual Studio's glyph does, in VS Code, for F#. Evidence: the lens, the Test Explorer profile, the daemon routes, the hold in the host, the ptrace door Rough edges: one test at a time, VS Code only (Neovim is another repo and has none), and breakpoints don't bind in code the session evaluated, because it has no PDB. I have run the host side against a real isolated host, not a full attach with the C# extension's debugger from this repo's tests. A debug run isn't recorded in live-testing state.

Each line lists the tests that run it, and an edit selects only those

Status: merged on 2026-10-01, in v0.6.875. Before: coverage was one bitmap per run batch, stored against every test in it. A gutter could say "something covers this", and selection widened to every test that reaches the function. Now: the worker reads and clears the coverage probes after each test and sends the reading beside that test's result, so the daemon stores it against that test alone. A line's covering tests are exact. An edit that moves no symbol name and changes only lines coverage speaks for selects only the tests whose own coverage reaches them, labeled line_coverage_narrowing. Every rule runs toward more tests: an inserted or removed line, a changed line with no probe or one that runs at module start, a test with no usable coverage, an empty answer, each widens. Why it matters: a keystroke runs two tests and not twenty, and the gutter can name them. Evidence: the attributed stream, reading and clearing the probes, narrowing by lines, the decision Rough edges: to attribute a reading to one test, a run against a project with instrumented assemblies runs its tests one at a time, so a suite of slow tests is now the sum and not the longest. Visual Studio runs the tests of an assembly one after another too, per its own docs. I measured one small sample and nothing larger.

Every test row says what it ran against, and a real build confirms or contradicts it

Status: merged on 2026-10-01, in v0.6.875. Before: a keystroke's tests run against code the session evaluated, not against a build, and a row looked the same either way. A file can reach a module that comes after it in compile order, which the session allows and the compiler refuses. Now: each row carries Compiled, Evaluated, VerifiedByBuild or BuildDisagrees with the reason. Once the editing has been quiet for 2 seconds, one build of the saved text runs the same tests again, and a disagreeing row takes the build's verdict because that is what ships. The decision is a pure state machine, folded under seeded scenarios with three twins that reproduce the bugs it exists to prevent. Why it matters: the gap between "passes in the session" and "passes in a build" is visible on the row instead of a surprise in dotnet build. Evidence: the provenance type, the state machine, the build, the decision Rough edges: the confirming build is a rebuild of the session, so it restarts the worker, and FSI state and unsaved edits in other files don't survive it. A build can only confirm what is on disk, so an unsaved buffer stays Evaluated.

You can pause live testing and scope it to some tests

Status: merged on 2026-10-01, in v0.6.875. Before: live testing was on or off, with a run policy per test category. Now: pause holds the runs back while the session keeps type-checking and keeps its evaluated code current, and resuming evaluates the latest buffer and runs what went stale. A scope (every test, only those matching a pattern, or all but those) narrows what automatic runs touch, and an explicit run always runs what it names. Why it matters: refactoring mid-way with a red suite you already know about stops being noise. Evidence: pause and resume, the selection, the routes, what I did not copy and why Rough edges: Visual Studio also pauses on battery and while you debug, has a memory cap and lets you include a single test from a right-click. I have none of those.

Save-to-green and keystroke-to-verdict are measured and gated

Status: merged on 2026-10-01, in v0.6.875. Before: I quoted no latency because nothing measured it. Now: the --integration-lt tier starts a daemon, opens the FromCSharp sample (11 Expecto tests) and times two paths off the daemon's own event stream, 20 samples each after 2 warm-up edits. Edit leaving the client to the verdict on the edited test: p50 712 ms, p95 783 ms. Save to the suite back at all green: p50 542 ms, p95 631 ms. The machine was a 16-thread AMD Ryzen 7 5800XT on Linux with .NET 11.0.0-rc.1 and other jobs running, and the tier fails if either p95 passes 3 s. Why it matters: a number with a machine and a sample count beats an adjective. Evidence: the measurement, the sample and warm-up counts, the bound, with the first measurement beside it Rough edges: one machine, one small project. I have no figure for a large solution, for slow tests, for the first edit after a restart, or for the confirming build, and I didn't re-run the tier for this page. Hot reload had no latency measurement when I wrote this entry. It has one now, in the window above.

The live-bindings pane starts in Safe mode, and you click a getter to run it

Status: merged on 2026-10-01, in v0.6.875. Before: after every eval the pane ran every public getter of every class value on a clock you didn't choose, so a getter that looped, blocked or did I/O made the pane the thing that hurt you. Now: three modes per session. Safe, the default, shows a class by its fields and runs a getter only when its compiled body provably does nothing (a field read, a constant, straight-line arithmetic). Everything is the old behavior under a one-second budget, and Off doesn't open a class at all. Every getter Safe skips is listed with why, and a click on its square button walks that one binding again with that one getter run, under a 5 second deadline and, on Linux x86-64, a syscall filter that stops the network, writes and new processes. Why it matters: looking at a value stops being the same act as running your code. Evidence: the modes, what a click means in each mode, the routes, the decision Rough edges: the filter doesn't stop a spin, a stack overflow or an in-memory effect, and a getter that mutates state in memory runs once on your click and isn't undone. Off Linux x86-64 the getter runs under the deadline only, and the pane says so.

A clicked getter gets stack and loop guards for the length of the click

Status: merged on 2026-10-01, in v0.6.875. Before: the syscall filter doesn't stop a spin or a stack overflow, and an overflow ends the host process. Now: GuardPatcher walks what the getter can reach and patches an entry guard (a recursion throws a catchable InsufficientExecutionStackException with about 128 KB of stack left) and a check before every jump back (the watchdog's stop ends the loop within a few milliseconds) into each method it can patch. The guards come off when the click is over, and a method hot reload has re-pointed is refused and said on the row, because taking our patch off would put the old code back over the detour. Why it matters: a click on a getter that recurses or spins costs you a result row and not your session. Evidence: the entry guard, the refusal for a hot-reloaded method, the fence in the detour, the decision Rough edges: it doesn't reach code SageFs doesn't own (framework and package methods), async state machines, native waits or regex backtracking, and it is cooperative, so a finally block runs with the stop still set. The decision lists the rest.

Your project's pins are adapted to, or refused with the reason

Status: merged on 2026-10-01, in v0.6.875. Before: the host and your project meet in one process, and what the host had loaded first answered for both. I ran the clearest case, a solution whose two projects pin different versions of one assembly. The session was Ready and Healthy, and project B's code ran against project A's version without a word. Three other cases (an unreadable runtimeconfig.json, a target framework nobody recognises, a failed FSharp.Core rewrite) failed open with a log line nobody reads. Now: a newer FSharp.Core (including one a NuGet package was compiled against) gets a host whose FSharp.Core is the project's. A newer shared-framework assembly goes in through an extra dependency manifest. Two projects that pin different versions of one assembly are refused, naming both. A project carrying its own newer FSharp.Compiler.Service is Degraded with the versions and the way out, because the host's own code is compiled against the SDK's. An unreadable runtimeconfig.json, a target framework nobody recognises and a failed FSharp.Core rewrite are Degraded with the reason, on the dashboard, the MCP status and /api/sessions. A .NET Framework project is refused before it is built. Why it matters: SageFs adapts to what your project pins where that's safe and says so where it isn't, and nothing is silently wrong. Evidence: the plan, the refusal, the outcome tests, each a real session on an offline fixture, the decision, the page Rough edges: two projects pinning different package versions with the same assembly version aren't covered, because the runtime can't tell them apart either. The System.Text.Json fixture is a stamped copy standing in for a release that doesn't exist yet. I haven't run a project that pins an FSharp.Core far newer than the SDK's compiler service, or an unbuilt dotnet/fsharp checkout.

A lambda in a route list and an instance member reload in place

Status: merged on 2026-10-01, in v0.6.875. Before: get "/" (fun ctx -> ...) has no name to re-point, so editing one restarted the app. So did member this.Render() = ... on an object built at startup, and the reason it gave was wrong. Now: the compiler turns a lambda into a closure class, and the route list holds instances of it, so the planner reads a save that changed only lambdas and the host re-points the old class's Invoke at the new one's. The object keeps its fields (A#1 before the save, B#2 after it). Both hold only while the new code has the old code's fields. A lambda that starts capturing something, or a member that needs a new field, restarts and names ClosureShapeChanged or InstanceLayoutChanged, and one refusal anywhere in a save stops every detour of it, so a restart never leaves the app half updated. Hot reload sessions now compile their patches --optimize- to match how SageFs builds your project. Why it matters: handlers written inline, and objects with state, are how a lot of F# web code is shaped. Evidence: matching closures, the layout check, one row per case, each a real app on .NET 10 and 11, the decision for lambdas, for members Rough edges: two lambdas on one line can't be told apart by the compiler's name, so that edit restarts, and a project you built Release by hand has closures of another shape. Adding a member to an existing type still restarts.

A save that adds, removes or re-signs code lands without a restart

Status: merged on 2026-10-01, in v0.6.875. Before: adding a function, type or value, removing anything that wasn't startup code, and changing a function's signature all restarted. Now: a declaration the running build never had needs no compiled original, so it's defined in FSI and the saved code that uses it is patched to call it. A function whose signature changed is a new method to the running app, and the callers saved with it move onto it. A removal leaves the old declaration in the process, since what stopped using it was saved with it. What still restarts is the entry point, startup code and a nested module added or removed. A new declaration has no probe, so the save is Patched only once a caller has run, and a save that adds something nothing calls says "not confirmed: the new code has not run". Why it matters: add a helper and call it, delete one, add a parameter. That's most of an afternoon. Evidence: what the planner does with each kind, removals and additions, the rows addedFunction, addedType, addedValue, removed, signature, the decision Rough edges: a caller in another file keeps calling the old method until you save that file as well. The build wouldn't pass until you did, so the window is short, but the old behavior runs in it. A removal on its own reports "no declaration change".

A generic function restarts and names itself, and saves land under a debugger

Status: merged on 2026-10-01, in v0.6.875. Before: only static non-generic methods were registered, so a save had no way to name a generic function. And "does hot reload work with a debugger attached" had no test, while Microsoft's answer for F# is no. Now: a generic function is compiled once per instantiation that runs, and I measured that detouring the open definition throws and detouring a closed one changes only that one. A patch would be right for the calls that already happened and wrong for one that comes later, so a save that edits a generic function the app holds is refused with GenericFunction, naming it, and the whole save is refused with it. Separately, a real debugger (Samsung's netcoredbg, pinned by URL and SHA-256) is attached to the host process, the process itself says a debugger is attached, and four rows (an inline lambda, an instance member that keeps state, a named task, a signature change) are saved and end Patched. Why it matters: the generic gap is stated and says why, and the debugger claim is a test and not a guess. Evidence: the refusal, the generic row, the debugger test and its no-debugger twin, the generic decision, the debugger decision Rough edges: when I wrote this, generics stayed a restart unless a way to detour every instantiation turned up. One did, and the window above has it (merged, not in v0.6.875). The debugger row needs Linux on x64, downloads netcoredbg once and fails, instead of skipping, if it can't. It proves a save lands under a debugger. Nothing sets a breakpoint, steps, or edits a method the debugger is stopped in.


The stretch where SageFs stopped saying "fine" when it wasn't (2026-09-27 to 2026-09-30, 211 commits, v0.6.836 to v0.6.868)

At the start of this stretch a hot reload could tell you "Hot reloaded 1 of 1" while your running app went right on doing the old thing, a failed rebuild looked exactly like one that hadn't finished, a dead worker took its reason with it, and one pending Task bound at top level could freeze your session for good. By the end, SageFs waits to see the new code actually run before it says a patch is live, tells you when a rebuild failed and why, keeps real log files for the daemon and for every worker, goes Degraded when something underneath is stuck, and an agent can run your tests and get a receipt for that run instead of reaching for dotnet test. Most of it landed on the 30th (191 of the 211 commits on master), driven by dogfooding the tool on itself and by running cheap models through a first session to see where they tripped.

A hot reload only says "live" once the new code has been seen running

Before: a save re-pointed the old function at the new body and SageFs said "Patched". If your caller had the function inlined, it kept running its own copy of the old body, the page served the old result, and every signal read as success. Now: a save lands as "patch pending", the page refreshes, and the patch turns into "patched" only after every changed function has actually run. If 10 seconds pass and some changed function was never called, you get "never entered", naming the ones that didn't run. The same verdict shows up in get_session_status as lastReload, in the dashboard, and as a push notification to your agent, with a closed set of outcomes (patched, restarted, kept-a-value, didn't compile) instead of a bare "reloaded". Why it matters: when your edit doesn't show up, you now learn whether the code ran or the app never reached it, instead of staring at an old page and wondering. Evidence: the decision, written without a clock or IO, the events you see, the bound, real-app journeys on net10 and net11 Rough edges: a helper nothing calls ends as "never entered" after the bound, which is correct but will read like a warning until you know why, and mutable bindings are not probed.

Saving a file in an app you started with run_app now restarts it and says why

Before: every save to an app started by run_app was a silent no-op reported as a success. The patch went into the FSI host's copy of the function, the app lives in the worker, and the ticker sample kept printing the old text. Now: that kind of change becomes a restart with a reason attached ("renderLine changed, and this app runs in the worker, where an in-place patch cannot reach it"). In the ticker the new text shows up about 6 seconds later. An app you started from FSI or an init script keeps its in-place patch. Why it matters: the first thing a new user tries is edit, save, look, and for run_app apps that used to do nothing at all. Evidence: the placement rule, the commit with the red-then-green run Rough edges: it is a restart, not an instant patch, and state survives it only where your app registered it.

A failed rebuild or a dead worker now says what happened

Before: hard_reset_fsi_session with rebuild=true answered "initiated", the old worker kept serving, and a build that failed left no log line and no status field. On the ticker sample that meant a save could never reach new code and nobody was told. A worker that died had its first 20 lines of stderr reported, which is startup noise, not the reason. And if dotnet wasn't on the daemon's PATH, the rebuild threw on a pool thread and ended the whole daemon process. Now: get_session_status carries lastRestart (what the last rebuild did, and the message), and the daemon records it for rebuilds started from the dashboard and live testing too, not only from the MCP tool. A dead worker reports the last 20 of the last 200 stderr lines. A rebuild that can't start returns a failure that names the directory. A replacement worker that comes up with a bad transport leaves the old one serving instead of leaving you Faulted next to a healthy worker. And the wait after a rebuild is one await on the session manager, not a poll every 50 then 250 ms for up to 30 seconds, so a faulted session fails at once with the manager's reason. Why it matters: when a reset doesn't take, you find out which of build failed, worker died or swap refused, and you find out right away. Evidence: lastRestart in the status payload, the bounded stderr tail, the rebuild that used to end the process, the single-await wait Rough edges: the bad-transport swap fix is tested against fakes, the commit says no real worker process was used.

Workers have real log files and the daemon log can't eat your disk

Before: every worker's logging had zero sinks, so project-load failures, "Hot reload:" lines and the fallback to manual fsproj parsing were dropped, and the only way to see why a session came up degraded was to spawn the host by hand with redirects. The daemon log was worse: 7 of 20 daily files sat at exactly 1 GiB (10.3 GiB in total) and stopped writing mid-day, because the library's size roll was off and the noisy "Request starting" lines weren't being filtered. Now: each worker writes <data dir>/workers/<session>.log, capped at 4 MiB with one rolled generation. The daemon log rolls by day and by size at 50 MB, 7 files at most (350 MB, against a library default of 1 GiB for 31 files), follows SAGEFS_DATA_DIR, and its path is in /api/daemon-info. An unexpected 500 is logged with its stack and the response carries a request id you can match to it. Why it matters: "why is my session degraded" now has a file to open, and a daemon left running for weeks doesn't fill the drive. Evidence: the worker log writer, installed at worker start, the daemon log bounds Rough edges: the commit that adds the path to /api/daemon-info leaves sagefs status and get_daemon_status for a follow-up, and I did not check whether that landed.

Health goes Degraded when the session manager is stuck or your build can't hot reload

Before: if one command blocked the session manager's loop, status reads kept answering from a snapshot and everything looked fine while every caller that needed the manager hung. Separately, a project someone had built with optimizations could have a function inlined into its callers, so a hot-reload patch quietly never reached them. Now: a watchdog thread notices a command that has held the loop for 30 seconds, raises an alarm, and /health and the dashboard go Degraded with the reason. A session whose project assembly was built optimized is Degraded too, with the remedy (hard_reset_fsi_session rebuild=true). Restart delays also get jitter, so a dozen workers that die together (a sleep, an OOM kill) don't all retry on the same tick. Why it matters: a daemon that is stuck or a session that can't honor a patch now says so where you are already looking. Evidence: the supervisor alarms, how it degrades overall health, the optimized-build reason Rough edges: a build whose optimization state can't be read is deliberately silent, so absence of the warning is not proof.

Binding a pending Task at top level no longer freezes your session

Before: let t = client.GetAsync url hung the next eval for good. The live-values pass reads every public property of a class value after each eval on the eval thread, a Task is a class, and reading Task.Result waits for it. The worker sat idle and nothing answered. Now: Tasks, ValueTasks and Lazy values are shown by their state, and Result is only read once the task has finished, so looking at a value never waits on it or runs your factory. Any other getter that blocks gets a 1 second budget per binding and shows as unreadable. A first version of that guard started a thread per binding and cost 80x on the hot path (0.30 ms to 24.65 ms for 200 bindings); the shipped version uses one walker thread per pass and costs 0.40 ms against 0.35 ms unguarded. Why it matters: the ordinary thing a person types while poking at an HTTP client can't brick the REPL anymore. Evidence: the Task and Lazy handling, the per-binding budget, the numbers Rough edges: a getter that really does block shows as unreadable for as long as it blocks, which is the right call but not a fix for your getter.

Agents can run your tests through SageFs and get a receipt

Before: there was no run-tests tool, so agents reached for dotnet test, a second engine whose answers can disagree with the dashboard and list_tests. Two tool descriptions even pointed at tools that don't exist (run_project_tests, run_tests), and in an onboarding trial the agents that followed them ran dotnet test on an Expecto exe project five times in one run and found nothing. Now: run_tests dispatches the same request the editors and dashboard send and reads the engine's own record of it back. A refusal says why (session not trusted, nothing discovered, filter matches nothing). A finished run is AllPassed, SomeFailed or Incomplete, with one line per requested test saying what happened to it in this run, and a pass from an earlier run is never counted. If the wait runs out you get a receipt_id to call again with. A test reads the tool catalog and fails the build if any description names a tool that isn't registered. The server has 61 tools at this point. Why it matters: "did my tests pass" has one answer, from the same engine you see in the dashboard, and an agent can't mistake "nothing ran" for green. Evidence: the tool and its description, the receipt types, the catalog check that caught the dangling names Rough edges: the same morning's docs said "There is no run_tests tool, on purpose"; the tool arrived hours later, so older notes may still say that.

Agents can wait for a warming session instead of sleeping

Before: weak models in a trial couldn't wait for a session to warm up, so they slept or polled: two or three sleeps a run and 19 to 28 SageFs calls. Now: get_session_status takes wait_seconds (clamped to 0 to 60). A session that is Starting, Building or Restarting parks the call on the manager's event-driven wait. The reply has a wait field saying how it ended: NotNeeded, BecameReady, Faulted or TimedOut. A Ready, Faulted or Stopped session never waits. The "still warming" messages now point at it instead of "poll every 5-10s". Why it matters: your agent's first minute stops being a pile of sleep commands. Evidence: the tool parameter, the cap Rough edges: the commit says it was tested against a fake wait, not a live daemon parking on the real manager.

The agent tools stopped doing quietly wrong things

Before: send_fsharp_code kept the last result per session and snippet, and if you sent the same code twice within 2 seconds it returned the old result without running it, so counter <- counter + 1 sent twice ran once and the second reply said val it: int = 1. It also cached failures. switch_workflow tried to create a second session in the same directory and was refused by the duplicate guard. Several descriptions said "pass session_id" on tools that had no such parameter. A refused call said "session is not Ready, wait" when the real problem was that no session matched. A file that opens with namespace or a dotted module got a parser error that pointed at nothing. Now: every submission runs, switch_workflow restarts the same session in place and keeps its id, five tools take an optional session_id, a routing miss gives the routing message with a create hint, a nonexistent directory is named, and a namespace or module line gets told to send the file with file_path and eval_mode=file. Why it matters: an agent that double-submits sees the effect twice, plainly, and the error text tells it what to try next. Evidence: the dedup removal, the declaration hint, switch_workflow through the manager Rough edges: none I could find beyond the usual one, which is that these were all found by trial runs, so there are probably more of them.

The .NET 10 tool actually works, and it has its own test tier

Before: the unit suite only ran on net11, so a bug that exists only on .NET 10 was invisible. .NET 10's System.Text.Json throws on an F# union where .NET 11 writes it, and get_session_status put a union in its payload, so on the net10 tool, the one most people install, the first tool the skill tells an agent to call failed for every session. Now: the status target is a plain {kind, path}, and the default suite runs on net10 as its own tier (default-net10) with its own row in the trust report. The first net10 run errored 24 tests, 21 of them through get_session_status. A single SageFs.Json facade now owns serialization with golden-text tests in both tiers; it replaced sixteen separate options objects that each decided for themselves. Why it matters: what you install from NuGet on .NET 10 is now the thing that gets tested. Evidence: the wire shape, the net10 tier, the JSON facade Rough edges: the integration, mutation and browser tiers still run on net11 only.

First run on a fresh Linux box got friendlier

Before: sagefs status with nothing running printed two warning lines about a refused connection before saying so. A daemon started by claude mcp add sagefs -- sagefs mcp on the default port was tied to that one agent and died seconds after it exited, taking the dashboard and other agents' sessions with it. Your first git status showed an untracked .SageFs/warmup-replay-cache.json full of this machine's NuGet paths. A bare session logged a red "no source files for this project" failure. And a daemon started in $HOME would hand $HOME out as a watch root and spend an inotify watch on every directory under it. Now: a refused connection is the expected answer and prints nothing extra, plus how to start a daemon and the right claude mcp add command. The home-port daemon has no owner, so it outlives the agent. The cache writes a .gitignore for itself only, leaving config.fsx and init.fsx committable. A bare session warms up quietly. A watch root that is the home directory or above it is refused, reported to /health with a hint to open the session in a project directory. There is a systemd user unit in contrib/systemd. Why it matters: the first ten minutes with the tool stop having small unexplained messes in them. Evidence: the probe classifier, who owns the daemon, the refused watch root, the cache ignoring itself Rough edges: the service unit is Linux only, and nothing in this stretch covers Windows or macOS login startup.

A session only shows its own tests, and the dashboard stopped dropping streams

Before: on 0.6.850 a new session's list_tests returned another, stopped session's file paths under a deleted directory, because test locations were shared across sessions. Separately, about 1 dashboard page load in 80 stopped streaming under a name it never chose: the page id is 8 hex digits, and when it looked like 2352e570 the router's number parser turned it into Infinity. The friction panel you asked for also vanished on a reconnect. Now: a session lists only tests and paths under its own working directory and projects, and stopped sessions are retired from the active pointer. The stream reads the page id as text (measured: 2,517 of 200,000 minted ids were misread, 1.26%), and a page's choices belong to the page, not to whichever connection is open. Why it matters: you see your own tests in your own session, and a dashboard page does what you asked for every time, not 79 times in 80. Evidence: per-session attribution, the page id fix, the reconnect race Rough edges: the cross-session fix changes no stored format, and I did not check it against a live multi-session daemon.

Changing a record's shape can keep your live value, if your app registered it

Before: a type change in a hot-reload save was priced as a restart. The reasoning in the docs was that a no-build plan leaves the new type with no compiled form, so there is nothing to construct. Now: that premise turned out to be wrong, because FSI compiles a patched type at runtime and it is a real type the moment the patch lands. A record constructor takes one argument per field, so the migration builds the new record from the old values by field name, defaults a field the edit added only when that is safe, and refuses (naming the type) instead of inventing a value for something like an added Map. This was reachable on the 27th, when it stopped being dead code. Why it matters: adding a field to a record you're iterating on doesn't have to throw away the state you built up to test it. Evidence: the executor, the boundary hook it reads, the commit with the live transcript Rough edges: it is opt-in, your app has to register a boundary that hands over the live value, and records of other field kinds than int, string and bool fall to "no rule" and rebuild.


The stretch where the daemon stopped eating the machine and started saying what was wrong (2026-09-22 to 2026-09-26, 314 commits, v0.6.803 to v0.6.835)

At the start of this stretch you could point SageFs at a repo, leave the daemon running overnight, and wake up to a 62GB box with the daemon sitting on 55GB of it while every session said Ready and /health said Healthy. By the end you could do the same thing and the daemon watches its own memory against the machine, refuses new work with a reason when it is short, and tells you which signal broke when something does. You could also point it at the F# compiler repo itself and get a session instead of a 20 minute spinner, edit a plain let value in a running app and see it land without a restart (when SageFs can prove nothing copied it), and connect an agent with claude mcp add sagefs -- sagefs mcp without racing the daemon's startup. A lot of the week was fixing places where SageFs said something that wasn't true, which is the boring part nobody sees and the part that decides whether you trust it.

Edit a plain let value in a running app and it just lands

Before: change let greeting = "hello" to "howdy" and the app restarted, because SageFs had no way to know whether something had copied the old value, and "Patched" would have been a lie. Now: SageFs reads the IL of every method in your project that touches a module value, works out which reads let the value escape into a field, closure or return, and watches those. If nothing kept a copy, the save is Patched and the running app serves "howdy" with the file's live state left alone. If something did keep a copy, you get a restart and the message names who kept it, down to the method and what it built around the value. A save that SageFs cannot prove reached the running process no longer gets called Patched either, and a file-watch overflow that resets your session now says so instead of doing it quietly. Why it matters: you can tweak config-like values while the app keeps its state, and when it can't, you find out why instead of guessing. Evidence: Values table and how SageFs knows, the IL read classifier, no Patched without proof the copy the app calls was redirected Rough edges: the case people will hit first is that a page handler which renders the value hands it on, so once you've loaded that page, the next edit of that value is a restart (the docs say this in their own "falls short" list). Reflection reads after startup are watched in three modes you can switch live (set_reflection_read_mode, config, or the dashboard), and the hot-reload host runs with tiered compilation off by default so the watch can't be silently dropped, which costs warmup time.

The daemon no longer walks into a symlink loop and eats your RAM

Before: starting the daemon from your home directory put it inside a recursive project scan with no cycle detection. A Wine prefix under Steam has a z: folder that points back at /, so the walk went around forever, 95% of a 6.2GB heap was path strings, and in two nights the daemon reached 51.7GB and 55GB on a 62GB machine. Five agents all rebuilding at once did the same thing by a different route, and nobody could say which one was misbehaving because nothing coordinated them. Now: file discovery prunes excluded folders before it descends, refuses to follow directory symlinks, and stops at 64 levels or 50,000 entries while saying it truncated. Separately, the daemon reads the machine's available memory with hysteresis and acts on it: dead sessions are freed the moment they die, idle ones get stopped when memory is tight (never the one you are looking at), and at critical it refuses new sessions with a 503 and a reason. When the daemon's own memory first reads as broken it takes a gcdump so there is something to look at afterwards. Agents can ask for a lease before an expensive build, test run or app start (acquire_full_build_lease and friends) and get Granted, Wait with a retry time, or Refused. Why it matters: leaving the daemon up on a laptop or a shared dev box stops being a gamble. Evidence: directory walk that cannot loop, shed-or-refuse policy and its guarantee about the session you are viewing, the lease pool Rough edges: the symlink walk explains the incident we took a process dump of, but a ten minute idle-daemon test I wrote could not reproduce the reported 2GB a minute, so I would not claim every runaway is closed. Machine memory is read from /proc/meminfo on Linux and approximated from the process's own view elsewhere, so the pressure numbers are weaker on Windows and macOS.

/health says which signal broke, and sagefs stop can tell a wedged daemon from no daemon

Before: the daemon sat at 51.7GB with every session Ready and /health reporting healthy, and sagefs stop printed "No daemon running" while the old process kept the port, so the next start failed to bind and looked like start was broken. Now: the daemon keeps a detector per signal (memory, /health latency, mailbox depth, eval latency) and /health carries the baseline, the current value and how long it has been off. A broken signal makes the daemon Unhealthy even when every session is fine. sagefs status reports a wedged daemon with its pid and sagefs stop kills it directly instead of waiting on an HTTP shutdown that will never answer. A daemon on a non-default port has to name an owner or a TTL, so a test daemon can't outlive whatever started it. Why it matters: when something is wrong with SageFs you get a sentence about it instead of a green light and a dead machine. Evidence: per-signal watch, EWMA plus CUSUM detector, NotRunning, Running or Wedged Rough edges: a plain "drifting" verdict does not flip health on its own, the machine memory pressure reading is what makes the daemon unhealthy in the memory case.

Starting, stopping and cancelling no longer hang forever

Before: pointing a session at the F# compiler checkout left it in "Starting" for 20+ minutes with nothing to look at, stop_session on it hung for the full 300 second client timeout, and cancel_eval on a runaway loop left the session wedged so the next eval hung too (a second thread got started on the same live FSI session). Now: warmup is judged by inactivity, not just elapsed time. Any progress resets a 30 second clock and a 10 minute ceiling applies regardless, so a big repo can take minutes but a silent one gets caught in 30 seconds. Stop has a hard ceiling. After a cancel the session sits in a Cancelling state and a new eval is rejected straight away with a message that names hard_reset_fsi_session. The blocking readers that were pinning thread pool threads for every session's lifetime now run on their own threads, which is what had been starving the daemon's own timers. Why it matters: when a thing is stuck you hear about it in seconds, and the message tells you the next move. Evidence: warmup inactivity and ceiling, the 30s and 10 minute defaults, Cancelling blocks resubmit but keeps hard reset reachable Rough edges: a cancelled eval still can't be un-cancelled, you recover with a hard reset.

"Ready" means a project actually loaded, and a faulted session says why

Before: a session pointed at a directory with no projects came back Ready with loadedProjects: [], and a warming session could report state: Ready right next to lifecycle: Starting. An agent that gates on Ready walked into a session with nothing loaded and every eval failed with "not defined". A faulted session just said "run reset", with the real reason only in /api/sessions. Now: if you named a project (or there was something to auto-discover) and none of it resolved, the session faults and the message names exactly what you asked for and what to check. A named project can't be reported Ready by a live status poll until the daemon's own check has run, state, lifecycle and loaded projects all come from one reconciled status so they cannot disagree, a Faulted or Stopped session can't be resurrected by a stale worker reply, and every tool and get_fsi_status carries the fault reason. A session that is busy evaluating stops reading as Stale (it is now called Idle, and only a Ready session nobody has touched goes idle). Why it matters: you and your agent can trust the word Ready. Evidence: the earned-Ready gate, the daemon faults on RequestedButUnresolved, one reconciled status for state and lifecycle Rough edges: the VS Code extension's own readiness check was moved to the daemon's health verdict (cf4218e0), but I only read the parse, I did not click through it.

Connecting an agent works the first time, and a restart doesn't strand it

Before: an HTTP MCP client that started before the daemon cached the failure and never retried, so you had no SageFs tools and no hint why. A client that outlived a daemon restart was permanently bricked, with an error telling it to call a tool it could not reach. A switch_session could be silently undone by an unrelated status poll during warmup. Now: claude mcp add sagefs -- sagefs mcp starts a small stdio bridge that makes sure the daemon is up, waits for it, and only then shows your client its tool list. A stale session id re-binds to the one live session in that working directory, and refuses to guess if there are several. A deliberate switch_session survives warmup. The reset tools are callable from a session that never finished warming up (it used to be a catch-22). On connect, the agent is told the REPL loop, and there is a back_to_the_repl prompt for pulling a drifting agent back. A Claude Code hook can deny dotnet build while a Ready session covers that directory, and says BUSY rather than broken when the daemon is under load. Why it matters: the first minute with an agent stops being a debugging session of the connection. Evidence: the stdio bridge decision core, stale id recovery that refuses to guess, the repl guard decision Rough edges: in a git worktree, tools resolve to Gone with a create hint instead of falling back to the main checkout's session, which is correct but surprises people. The Claude Code hook is a Claude Code thing and nothing for other agents yet.

What the agent reads back is true

Before: after a run the agent saw "12605 test result(s) received (Fresh)" right next to "0 passed, 0 failed", which a small model reads as 12,605 passing tests, when the payload was pure discovery. Server instructions and replies told agents to call tools that no longer exist. A printed ProjectOptions came back as one 90,000 character result. ANSI escape codes from a colored test logger landed in the text an agent tries to parse. Three detected tests reported Total=3 Passed=0 Failed=0 which looks like nothing happened. Now: the line says discovered, passed, failed, not run, stale, running, and never prints the old shape. Retired tool names are a DU and a contract test checks that no agent-facing string mentions one against the real tool catalog. Eval results are capped at 4,000 characters with a note saying how much was cut and a drill-in that works (it still holds the whole value in the session). ANSI is stripped from eval and script-load output. Every test status now falls into a summary bucket, and the unknown cases take the conservative answer, so a test with no result is never counted as passing. When live testing can't find the worker proxy the warning names which piece is missing. Why it matters: an agent that reads a green line can't be fooled by a run that never ran. Evidence: test accounting line, retired tools as a DU, the 4,000 char bound Rough edges: at this point SageFs had no tool that ran your test suite for you. It ran tests through the live-testing engine and you read them with list_tests. That changed on September 30, and the last stretch below has the run_tests tool.

Big and unusual repos load: the F# compiler, Arcade layouts, pinned SDKs

Before: three onboarding trials on dotnet/fsharp all hit a wall. Arcade repos carry their own SDK and point global.json at it, SageFs built its FSI host with a different one, and died with "compatible .NET SDK was not found". Projects that reference a multi-targeted library loaded the first TFM and said "isn't built yet" about a project that was built. A preview SDK on the machine poisoned MSBuild loading for the whole daemon. The file watcher had hit its 50,000 directory cap silently, because the compiler repo has 76,596 directories and 74,582 of them are scratch under artifacts/, and then it used one inotify instance per directory and fell over at 975. Now: the host builds with the SDK the project asked for, the daemon's own MSBuild variables are scrubbed from every child process (one list, one function), multi-targeted references are reloaded at the TFM the consumer actually builds, a newer-major SDK is never loaded in-process, artifacts/bin/<Project> is found when there is no bin/, and sagefs check stops reporting the oldest SDK as missing. The watcher is one recursive watch per root, with excluded folders filtered at event time, and when it fails it reports into /health instead of looking healthy. The missing-DLL error lists every path it checked with its TFM, so you can tell not built from looked in the wrong place. Why it matters: SageFs works on the big, odd repos where a live REPL would help most. Evidence: skip a newer-major SDK in-process, one recursive watch, excluded subtrees filtered at event time, the one list of poisoned variables Rough edges: the watcher design flipped mid-week after I measured the compiled binary instead of dotnet fsi (the first fix was wrong, the commit says so), and a daemon started from a scratch directory like /tmp still inherits it as a permanent watch root.

Your use bindings are no longer silently turned into let

Before: SageFs rewrote every indented use to let before handing code to FSI, on the way in for evals and for your own init.fsx. The stated reason was that FSI can't take use in expression context. That is false on the shipping toolchain, and the cost was real: streams left open, handles held, transactions never rolled back, in your code, changed by us. Separately, a project's own compiled use inside task { } died with MissingMethodException because the host's FSharp.Core won over the project's (issue 141). Now: the rewrite is gone and use behaves as written. The project's FSharp.Core now resolves for the project's code, repointing only the type references whose signatures differ instead of renaming the whole assembly. The SAGEFS_ISOLATED_FSI opt-out is deleted so one stray env var can't drop you back into the shared-FSharp.Core mode. Why it matters: SageFs's REPL now runs the code you wrote, not an edited copy of it. Evidence: commit removing the use to let rewrite, the in-place FSharp.Core fix, where it runs after shadow-copy Rough edges: the first FSharp.Core fix (rename the whole assembly) broke live-testing discovery, the second one is narrower, and a Release build of your project sidesteps the original failure anyway.

The dashboard stops yanking you around

Before: scroll up to read something and the next eval threw you back to the bottom. The sidebar showed hot reload, live testing, cohort and friction panels to everybody, always. Picking a workflow in the dropdown did nothing (the server saw an empty target). A busy session mid-eval read as Stale after ten minutes. Now: output follows new evals while you sit at the bottom and holds still once you scroll up, with a "3 new evals" pill you can click or hit Enter on. Panels only appear when they apply: hot reload when the viewed session is in the Hot Reload workflow, live testing only if it's on, cohort only while members are present. Hidden panels carry their reason. The workflow dropdown sends what you picked, and the sidebar's "evals: N" finally shows a number. Enter on a focused button now clicks it. Why it matters: the dashboard stops showing you controls that do nothing for the session you are in. Evidence: panel visibility, one decision per panel, chat-style output panel and the unseen-eval pill, activity touches so busy is never idle Rough edges: the friction panel is hidden unless you open /dashboard?panels=friction, because there is no real endpoint to send reports to yet.

SageFs tells you when you're running a stale daemon

Before: a daemon started before your code changed kept serving the assemblies it started with, and nothing said so. An agent lost a whole session reading that as "SageFs is broken" and routing around it with dotnet, when restarting one process was the fix. Now: for a tool install, the daemon checks NuGet (one request, 3 second timeout, cached on disk, re-checked every 6 hours) and says so in get_fsi_status, /health, sagefs status and a startup log line, but only when it is sure it is behind. A local build never claims to be stale, and a failed or skipped check never reads as "you're current". Related: get_fsi_status now reports the SageFs.Core version loaded in the worker, not the daemon's, since a rebuild only respawns the worker. Why it matters: "restart the daemon" gets said before anyone burns an hour. Evidence: the pure outcome type, the NuGet fetch and cache, how /health reports it Rough edges: it only knows about the NuGet tool install, so a source build (which is how I run it) gets silence, not a nudge.

Hot reload is learning when a restart can skip the build (opt-in, early)

Before: a type change under a scoped restart still paid a full dotnet build every time, because SageFs could not tell whether anything alive still held an instance laid out by the old type, and reflection cannot answer that. Now: an app can keep state in a registered holder and declare which unit is a restart boundary, and the restart decides from evidence whether a build is needed. If SageFs cannot establish that nothing alive holds the old shape, it pays the build, so the safe answer is the default. The whole decision chain is reachable from a save, a user's build gets SageFs's reference injected so nothing needs to go in the .fsproj, and the ConsoleTicker demo holds its counter this way. Why it matters: later, when you edit a record your app holds, the respawn doesn't have to wait on a build or drop your state. Evidence: the three restart outcomes, including carry the value and skip the build, the app-facing boundary registry, build injection Rough edges: this is opt-in and aimed at Run App projects, a scoped restart is not yet cheaper than a whole one on its own (width and cost are different questions), and the piece that builds the new value for a changed type did not land until 09-27, after this window.


Hot reload that keeps your state, live tests that don't lie, and sessions that run on their own .NET (2026-09-15 to 2026-09-21, 387 commits, v0.6.517 to v0.6.782)

By the end of this week you could save a file in a running Falco app and have the change land in the process that is already serving requests, with your counters and caches still holding their values, and with SageFs telling you plainly when it could not do that. You could edit a test project and have the affected tests rerun against code you had not saved yet, without a body-only edit slipping through as green. Every session now runs in its own host process on whatever .NET your project needs, the tool installs on a .NET 10 or a .NET 11 SDK, and when something goes wrong the message points at your line of code instead of a wall of framework frames. You could also pick the mode a session runs in (REPL, live testing, hot reload) from MCP, VS Code or a dropdown on the dashboard.

Save a file and the running app changes, or SageFs says why it didn't

Before: a save that only re-pointed some helper functions, and none of the handlers you edited, was logged as "Hot reloaded" and the browser refreshed into the old code. For an app started from an init script, a save could also patch a copy of the function nobody was calling: it reported success on .NET 11 and restarted the app for no reason on .NET 10. Now: SageFs works out which copy of a function your app is really holding and patches that one, and every save ends with one stated outcome about the running process, with the reason and the fix when it needs a restart. A handler written as a lambda bound to a name (let handler : HttpHandler = fun ctx -> ...) and an edit to a member body inside a type now reload instead of asking for a restart. The shape matrix test that pins each F# binding shape runs against a real host. Why it matters: when you press save and reload the page, you are looking at what you typed, or you are told why you are not. Evidence: the code-shape table with the test that pins each row, the pairing against the copy the app holds, the one place an outcome becomes a browser event. Rough edges: a function that touches a private function or type in its file, a changed signature, and a handler built once at startup (let h : HttpHandler = Response.ofHtml ...) still mean a restart, and the doc says so.

Your counters and caches survive a save

Before: editing a function in a file with a let mutable could reset the live value to its initializer, and editing the initializer was a restart (or, when SageFs was not the one running your app, a whole-file re-eval that quietly reset the state). Now: a public or private let mutable keeps its live value when you edit a function that uses it. Edit the initializer from 10 to 25 while the app holds 13, and the app keeps 13 and the save says so, something like kept 'App.State.tuned' = 13 (your new initializer 25 applies when you reset it). The dashboard's Hot Reload panel lists every kept value with a Reset button, and the reset_hot_reload_state MCP tool does the same. Changing the type (= 1 to = "one") is checked against the running app, not just your annotation, and that one is a restart. Why it matters: the minutes you spend rebuilding app state after every tweak go away, and SageFs never keeps something without telling you. Evidence: the state table, with the real-app test for each row, the planner choosing "patch and keep state" over a restart, the kept-state notice and Reset button on the dashboard. Rough edges: the Reset button only re-runs the initializer, so an initializer that uses something private in its file gets a restart instead of a kept value.

Live tests rerun against unsaved code, and a body-only edit can't go green by accident

Before: as-you-type live testing selected tests by which symbol names changed. Rewrite a + b to a - b and no name changes, so zero tests were selected and the run reported green on a real regression. Flake history was also thrown away on every daemon restart, so no test could be demoted until its window refilled. Now: an edited buffer is evaluated into the session and only the affected tests run against that fresh code, on keystrokes and on save. When a save changes no names, selection falls back to every test that reaches a symbol the file declares. Flaky tests get quarantined out of the next selection with a line in the session output saying so, and the flake history is written to the test cache so it survives a restart. Why it matters: red goes green when you fix the code, and a quiet green means something ran. Evidence: the buffer-eval effect and the file symbol delta, quarantined tests excluded from the next run, and said so, the flake section in the test cache. Rough edges: if the dependency graph has not yet seen the test file that covers a symbol, the narrow still finds nothing, and the code names that limit itself. The fallback is the whole discovered suite on a cohort landing, not on a keystroke.

Your project's packages can't collide with SageFs's, and each session runs on the .NET it needs

Before: the FSI session lived in a process that also held SageFs's own assemblies, so a project pinning a different FSharp.Core or System.Text.Json could get mangled, and a net11 project could not warm up at all because the host ran on net10. Now: every session runs its FSI in a separate host process that links no SageFs assembly, started on the runtime the project's own build asks for. The worker no longer loads your assemblies at all, and the tool itself ships a net10 and a net11 payload, so dotnet tool install works on either SDK. Why it matters: whatever versions your project pins are the versions your code runs against, on the .NET you chose. Evidence: session kinds, and why there is no opt-out, picking the host's runtime from the project's runtimeconfig, the tool multi-targeting net10 and net11. Rough edges: an unbuilt project has no runtimeconfig to read, so SageFs needs the project built before the session starts, and .NET Framework projects are refused (see the project shapes entry).

When something breaks, the message points at your code and says what to do

Before: a failed eval printed the whole exception text with the one useful line buried under FSharp.Core and FSI frames. A not-yet-built project told you to leave the tool and run dotnet build. A session could read Ready and green after loading nothing. Now: a runtime error leads with the exception type, the message and the first frame in your own .fs file, and the dashboard folds the framework frames and promotes the assertion line. A build that fails with a cluster of "X is not defined" errors for names that live in a later file gets a hint naming the file to move. A session that loaded nothing it was supposed to load reads Degraded, with the real warmup reason, in the API, in get_fsi_status, and on the dashboard card. A not-yet-built project points at the in-tool rebuild. Why it matters: the first screen of an error says what to fix, and Ready stops meaning only "a process is alive". Evidence: runtime errors led by your own source frame, the compile-order hint on a failed build, the session health verdict. Rough edges: the main Degraded trigger is a project that was expected while warmup loaded zero assemblies and opened zero namespaces, so a partial failure can still read Healthy (the code says why "any failed open" was too noisy to use).

Pick the mode a session runs in: REPL, Live Testing or Hot Reload

Before: there were two workflows, hot reload was called "Live", an agent could not start a hot-reload session at all through MCP, and the dashboard showed the workflow as a read-only badge. Now: a session runs in exactly one of REPL, Live Testing or Hot Reload, and there is no way to ask for hot reload on top of a full REPL because that combination does not exist as a value. A Live Testing session turns the test watcher on by itself the moment it is ready. You choose the mode when you create a session over MCP or HTTP, and you switch a running session from MCP, from VS Code's Switch Workflow command, or from a dropdown on the dashboard. A typo in the workflow name is rejected instead of quietly giving you a REPL. Why it matters: you pick the loop you want for the work in front of you (explore, TDD, or a web app) and the session is set up for it. Evidence: the closed set of workflows, what each mode does and how to switch, the MCP tool telling you hot reload needs Live mode. Rough edges: switching restarts the session, so REPL definitions and cell state are gone, and live still means Hot Reload on the command line for historical reasons. The dashboard dropdown shipped on 09-20 but did not send your pick until a fix on 09-22 (commit 2e4c20c2), so inside this window it looked right and did nothing.

Oxpecker, plain ASP.NET and Raylib projects load, and an unsupported project is refused with a true reason

Before: Oxpecker and Minimal API projects were not recognised as web apps. A Raylib-cs project could kill the whole worker with a native crash on a background thread. A .NET Framework project got told it "has not been built", which was false. Now: Oxpecker and plain ASP.NET Core projects are detected, including ones that reach ASP.NET through the Web SDK instead of a package reference. The worker resolves a hosted project's native libraries from the project's own output, so Raylib no longer takes the worker down, and desktop UI frameworks (Avalonia, MAUI, WinUI, Uno) are classified as native GUI so they skip the web patch. A net48 project is refused up front, naming the project, its target framework and why. Why it matters: if SageFs can host your project it does, and if it can't, it says so in one sentence instead of failing at warmup. Evidence: the framework support table, native library resolution for hosted projects, the hostability verdict that refuses .NET Framework. Rough edges: .NET Framework is not supported and needs a second host that has not been built (the doc links issue #135).

The dashboard stops lying about the daemon, and a stuck eval has a Cancel button

Before: if the daemon died mid-stream the dashboard sat there looking fine. A runaway eval left you no option except killing the daemon and losing every session. A console or game app started with run_app had no visible output, and once its output did flow, a continuous ticker grew daemon memory into the multi-GB range. Now: the server sends a heartbeat and the browser compares it against its own clock, so a dead daemon shows the disconnect banner and clears it when the daemon comes back. A Cancel button appears while an eval is in flight. A run_app app's stdout shows in the session output, batched at most every 150 ms, and in the commit's live check daemon memory stayed around 240 MB over 40 seconds of a one-line-a-second ticker. Why it matters: you can trust what the page says about the daemon, and a mistaken while true do () no longer costs you the whole daemon. Evidence: the heartbeat against the client's own clock, the Cancel button and what it can't promise, batched app output, with the flush timer rooted. Rough edges: Cancel is cooperative, so a tight CPU loop with no yield point can resist it, and the button's own tooltip points you at Hard Reset for that case.

The VS Code extension stops doing the wrong thing with the right information

Before: the "Eval" CodeLens above block 5 evaluated whichever block the caret sat in. A faulted session popped a modal every 15 seconds. Switch Workflow offered two of three workflows and forked a second session in the same directory. "Start Daemon" passed flags the daemon had started refusing, so autoStart could not start a daemon at all. Every hot-reload toggle threw away its result. Now: the lens evaluates the block you clicked, the fault prompt fires once per fault, Switch Workflow offers all three modes and switches the session you are in, the daemon starts with flags it accepts, and a rejected hot-reload toggle says so. Commands that need a daemon or an F# file are gated in the palette by state, the Sessions tree shows the daemon's own health verdict, and the density setting hides what it says it hides. Why it matters: the buttons in the sidebar and the lens above your code do what they say. Evidence: the eval anchor for a CodeLens click, the daemon start args, with the reason, one total table for what each density shows. Rough edges: VS Code's Switch Workflow restarts the same session id in place, while the MCP switch_workflow tool creates a new session and stops the old one, so the two switch by different paths (the README says so).

Your agent gets answers it can act on

Before: list_tests returned zero tests for a session that had three passing, enable_hot_reload returned a scary internal error, create_session accepted any path and treated projects=[] as a bare scratch REPL when it actually loaded whatever sat in the directory, and one session's events showed up in another session's tool replies. Now: list_tests reports every discovered test and puts the ones without a file and line under a separate heading. enable_hot_reload answers by the session's real mode and tells you the exact switch to make. create_session rejects an unsafe path or an unknown workflow, and its reply separates the projects you asked for from the ones the worker resolved. Each tool reply carries only the events of the session you are looking at. switch_session actually moves the daemon's active session. Why it matters: an agent working through MCP gets a true answer and a next step, so it stops guessing. Evidence: every test resolved, located or not, one path check shared by MCP, HTTP and the dashboard, the hot reload tool answering by mode. Rough edges: the connect-time guidance that tells an agent to use the REPL loop landed the day after this window, so this week's agents still had to be told.

Several agents on one repo land their work through a gate that checks the rebased code

Before: the cohort landing gate could land a breaking change. It verified compiled output that was stale after the rebase, an empty "affected tests" set counted as "nothing to verify", one failing landing froze every landing behind it, and a member's own commits were never brought into the integration worktree. Now: a landing replays only the member's own commits onto the integration head, re-evaluates every rebased file, and runs the affected set with a floor: if the narrow comes back empty on a real diff, the whole suite runs. A failing landing is recorded as blocked for its author to fix and the next landing moves on. get_cohort_status shows the integration session's state, including a reason when it failed to start. Why it matters: you can run a few agents at once on the same repo and a change that breaks a test does not reach master. Evidence: the no-empty-escape floor on the verification set, replaying only the member's commits, the cohort tools. Rough edges: the cohort tools are for agents more than for a person at a keyboard, and several of this week's cohort fixes (the rebase, the stale verification, the jammed queue) were found while building the landing demo, so it is young.

A settings panel on the dashboard that refuses illegal values

Before: changing a timeout or the default working directory meant hand-editing a file and restarting. Now: /dashboard/settings lists each setting with where its value came from (default, global or repo) and whether an edit applies live, on restart or not at all. You save to the global layer or "this repo", and Reset clears an override. A bad value, such as a port outside the legal range, is refused when it is parsed and never written. The bind host stays read-only on purpose. Why it matters: you can tune the test timeouts or set a default directory for the New Session form from the page you already have open, and see which layer is winning. Evidence: the settings routes, a live setting wired to the real timeout. Rough edges: the catalog has five settings today (two test timeouts, the MCP port, the bind host and the default working directory), so this is a spine with a few ribs on it.


Run your app, trust what it tells you (2026-09-01 to 2026-09-14, 438 commits, v0.6.339 to v0.6.517)

At the start of this stretch the Run App button was a stub, live testing showed "Discovering tests..." whether it was discovering or not, and any web page open in your browser could in principle talk to the daemon. By the end you can start your project's real app from a session and watch saves either patch it in place or restart it at the same address. Live testing says what it is actually doing, a bad build no longer takes your session down with it, and the daemon refuses requests from pages that are not its own. Agents also got a way to share one repo: claims, a landing queue, and a dashboard panel that shows who holds what.

Run your project's app from a session, and a save either patches it live or restarts it where it was

Before: Run App was a fake. It guessed an entry-point file and never launched anything you could open, and the dashboard passed an empty project name. Now: the session runs the real entry point of the project it loaded, from the dashboard card (status line, the real URL, an open-in-browser link, Stop) or from the run_app and stop_app agent tools. When you save, a planner reads your file and decides: a changed function body is patched into the running app, while a changed type, value, startup code, entry point or function signature stops the run, rebuilds, and relaunches at the same address so the browser tab you had open still works. Why it matters: you edit, save, and refresh the tab you already had, and when SageFs cannot patch a change it tells you why and does the restart instead of quietly serving old code. Evidence: runApp, the plan a save produces: patch, patch keeping state, or restart with reasons, the detour planner that stopped two copies of a function from jumping to each other Rough edges: a console app that just keeps running has no server to stop in place, so Stop tells you to hard-reset the session instead.

Live testing says what it is doing, in the same words everywhere

Before: with zero tests the panel said "Discovering tests..." forever, twelve tests that had never run read "0/12", and a failed discovery or a compile error looked the same as waiting. A save from vim or a JetBrains safe write (write a temp file, rename it over the source) was never noticed at all. Now: each session has one live-testing state: off, looking for tests, discovery failed (with the reason), no tests found (with the framework it detected), waiting on a file to compile (file name and error count, showing the last good results), rebuilding, running, or settled. The dashboard and the VS Code status bar use the same wording, a failed rebuild shows the first compiler error instead of "Build failed (exit 1)", and a test the worker never reported on shows as stale instead of failed. Rename-style saves now trigger a run. Why it matters: you can tell "it is compiling, give it a second" from "something is broken" without opening a log. Evidence: the states and their wording, why a test has no result, and that it is not a failure, the file watcher now listening for renames

A failed rebuild no longer takes down the session you were working in

Before: a hard reset with rebuild stopped your worker first and then ran the build. Live testing takes that path on every save whose type-check fails, so one typo mid-edit left the session Faulted, and fixing the typo could not recover it because there was no worker left to check the fix. The rebuild also cleaned the outputs, so a failed compile deleted your DLL. Now: the build runs first while the old worker keeps serving the last good build. If the build fails the session is left as it was and you get the compiler output as structured diagnostics (file, line, column, code). A session also loads the freshest of the Debug and Release outputs by write time, so a stale Debug build can no longer shadow the Release build you just made. Why it matters: a typo costs you a red squiggle, not your REPL state. Evidence: the rebuild-completed handler: old worker keeps serving on a failed build, loading the freshest build across configs, build failures as data

The daemon does what it says: stop stops, hung evals end, a wedged worker gets replaced

Before: sagefs stop printed "Daemon shutting down", exited 0, and the daemon kept serving. The HTTP calls to the worker had no timeout, so an eval stuck in an infinite loop hung whoever asked. One unhandled exception in the session manager killed its mailbox and orphaned every session. The session manifest could lose writes (the commit measured 20 concurrent purges leaving 19 of the 20 purged sessions on disk, three runs out of three), and a session whose directory you had deleted was retried and warned about on every start, forever. Now: stop waits for the process to actually exit and kills it if it will not. Worker requests have a ceiling (ten minutes by default). The session manager catches a crashing handler, answers the caller with an error, and carries on with the last good state. A worker whose process is alive but stops answering is restarted after three missed health checks. The manifest has one writer, startup forgets sessions whose directory or projects are gone, and a restart now starts the replacement worker before retiring the old one. The idle standby worker that used to sit around per session is gone. Why it matters: when SageFs says something happened, it happened, and a stuck eval or a crashed handler stops being a reason to restart the daemon. Evidence: the stop command waits for exit, the supervised mailbox step, the hung-worker health probe Rough edges: the ten minute cap will cut a legitimately longer eval, and SAGEFS_WORKER_HTTP_REQUEST_MINUTES is how you move it.

Other pages in your browser cannot make your daemon run F#

Before: the dashboard and MCP servers listened on localhost and checked nothing about who was calling. The commit that fixed it spells out the attack: a malicious page or a DNS rebinding trick could POST across origins, create sessions at arbitrary paths, and evaluate F# as you. A later pass found a page served from any other localhost port (a compromised npm dev server, say) counted as the same site, that http://localhost.evil.com passed a prefix check, and that a text/plain POST skipped the browser preflight. Now: the Host has to be loopback, a browser Origin has to match one of the daemon's own origins exactly (parsed, never by prefix), and any POST with a body has to be labelled JSON. The worker's HTTP server got the same guard. The dashboard also stopped loading Datastar from a moving CDN branch and fonts from Google (both are served from the daemon now), HTML-encodes runtime strings (a bound string containing markup used to inject script into the live bindings view), and SAGEFS_BIND_HOST only accepts loopback values. curl, editors, MCP clients and the CLI send no browser headers and pass unchanged. Why it matters: you can leave the daemon running and browse the web. Evidence: the origin decision, the gate wired into both servers, loopback-only bind host Rough edges: there is still no authentication, and a LAN bind is now refused outright with a message about port forwarding instead of being supported. A bearer token was considered and rejected in the commit because every client would need an auth flow.

When something fails you get what, where, and what to try, as data

Before: /exec always answered success=true, so a compile error, a dead worker and a good eval looked the same. check_fsharp_code returned bare "[severity] message" lines with no position. Error categories were guessed from substrings across the whole message, stack frames included. /health sent a null error for a faulted session, so VS Code drew a bare error icon. Now: /exec reports success=false with an error field when the eval failed (HTTP stays 200 because the request was processed) and a real error status when it never ran. check_fsharp_code gives line and column plus a suggested fix. MCP tool failures come back flagged as errors with a stable case name, message and suggested action, and send_fsharp_code returns structured diagnostics with spans next to its unchanged text. A faulted session shows its reason and a suggested action in /health, and no single tool result is bigger than 256 KiB. Why it matters: an agent or an editor can branch on the result instead of reading prose, and you see where the problem is. Evidence: the /exec contract, first-line, specificity-ordered classification, and by FS error number, send_fsharp_code's structured result

Agents get a smaller, truer tool surface

Before: eighteen feature tools (diagnose, impact_forecast, plan_ripple, export_notebook and friends) were written but never registered, so no agent could reach them. Every tool ran in every session state. get_available_projects answered with 161 KB and 1,620 lines because it walked into every agent worktree. create_session split the documented JSON-array form of projects on commas, so an agent that followed the docs loaded a bogus path and still got a Ready session. After a successful pure-MCP eval, get_recent_fsi_events said nothing had happened. Now: the eighteen tools are registered (the commit counts 20 going to 38 at that time), every tool call is checked against the state of the session it targets and refused with a clear reason when that session cannot take it, the project list is capped at 40 with a "N more, narrow with working_directory" note, create_session accepts the array form, session-create paths must stay inside the working directory, and pure-MCP evals land in the event history. Agents can also read cohort://status and sessions://list as MCP resources and subscribe to updates instead of polling. Why it matters: the agent sees what it can actually call right now and the answers it gets back are true. Evidence: the gate that classifies every tool, the project-list cap and the tolerant projects argument, the two MCP resources

Several agents can work in one repo through claims and a landing queue

Before: two agents in the same repo had no way to know about each other. Worktrees were also routed wrongly, because a session lookup from inside a worktree walked past its .git file up to the main checkout. Now: agents join a cohort, claim files or projects (with fencing tokens so a stale claim cannot win), and queue a landing. A landing is rebased in a real git worktree, verified, and fast-forwarded in, strictly one at a time. Verification runs only the tests whose coverage touches the diff (a test with no trustworthy coverage always counts as affected) and takes results from a content-addressed cache when the inputs are unchanged. A landing that could not be verified is marked inconclusive and does not jam the queue. The dashboard has a cohort panel, a worktree is its own routing boundary and shows its branch in list_sessions, and sagefs play replays a saved ledger file offline. A dogfood test drives two separate MCP connections through join, conflicting claims, a refused role, and real landings. Keeping a run: the daemon prunes a finished cohort's ledger rows after their retention, so sagefs cohort-export [--scope <path>] [--data-dir <dir>] <out.jsonl> writes them out first. It reads the SQLite ledger offline (no daemon running), writes the same whole rows the ledger holds, entropy included, and sagefs play <out.jsonl> replays the file. If the ledger holds more than one cohort it lists them and asks for --scope rather than picking one. Why it matters: you can point two or three agents at one repo and see who holds what, instead of finding out in a merge conflict. Evidence: landing states and the blocker kinds, including inconclusive, narrowing verification to the diff, the request_landing tool Rough edges: it is claims v1. A daemon holds one cohort per repository, each has its own conductor seat, so two agents in two repositories never contend, but the first agent to join a repository's cohort becomes its conductor with no way to hand that over yet, and identity follows the MCP connection, so agents that share one connection count as one member.

The dashboard stays fast, and the eval history stops getting slower as a session grows

Before: the dashboard re-rendered and re-sent the whole page on every timer tick even when nothing had changed, with a fixed 100 ms coalescing delay on pushes. At the history cap, every eval triggered a full rescan of the retained cells (the commit measured one such rebuild over 10,000 cells at about 100 seconds on the old build), and an idle session with 9,607 discovered tests kept the daemon's message loop busy with a 25 ms timer that had nothing to do. Now: a tick whose snapshot has not changed skips the render and the send, the stream is compressed, and the fixed delay is gone. Per the commit, eval-to-pixel on a warmed worker settled at 2.7 to 14.4 ms, from a 100 ms+ floor. Recording an eval costs about the same at 100 cells as at 10,000 (0.011 ms against 0.060 ms in the Debug harness), the history lives in fixed-size chunks so the 10k-versus-1k scaling ratio dropped from about 5x to about 1.1x, and live bindings are pulled after the reply instead of being built before it. The test timer idles unless a debounce is pending, and coverage travels as a packed bitmap, roughly a fortieth of the old JSON size by the commit's estimate. Why it matters: a long session keeps answering as fast as a fresh one, and the browser tab stays quiet when nothing moved. Evidence: skip the render on an unchanged tick, recording an eval at a flat cost, the eval-to-pixel latency trace Rough edges: those timings come from commit messages, one machine, a hello-world project and a Debug harness, so treat them as direction and not as a benchmark.

The dashboard lands on a live session, never goes blank, and fits a narrow window

Before: 0.6.460 shipped a dashboard that rendered as a blank screen with no session in play (the page's update stream tried to patch a picker that was not in the page). The first fix then hid the sidebar and the New Session panel. A session you created while sitting on the picker never appeared, and a tab viewing a session that died elsewhere kept showing it as "Uninitialized". Now: the full shell (header, sessions panel, New Session panel, statusline) always renders. With no session selected the page shows the first live one and falls back to the picker only when none is live. A tab whose session died moves on to the next live one. Below 768px the sidebar stacks under the main pane instead of squeezing it, and each session gets a drill-down coverage treemap (solution, project, file, symbol) sized by probe count and coloured by pass or fail. Why it matters: you open the dashboard and see your session, on a wide monitor or a half-width window. Evidence: choosing which session to show, the single-column layout at narrow widths, the coverage treemap Rough edges: the no-session behavior changed twice inside this window (picker first, then default to a live session), which is the sort of thing that should have been right the first time.

The Jupyter kernel runs your F# now

Before: SageFs --jupyter spoke the Jupyter protocol but its evaluator echoed your code back as a fake val it: string = "...". No F# ran. Two more bugs hid behind that one: the kernel info reply went out as an empty object, so a real client could not finish the handshake, and every successful result was shown as the literal text "ok". Now: the kernel sends your code to the daemon's own /exec (the same path the editors use), creates a session for the working directory if none exists, shows the real output, and fails with a clear message when no daemon is running. The commit records a real jupyter_client connecting and evaluating 1 + 1 against a live daemon. Why it matters: notebook users can use SageFs sessions from Jupyter. Evidence: the daemon bridge Rough edges: there are no completions in notebooks yet, the bridge answers "no matches".


The quiet stretch: three months of near silence, then a late-August push on trust (2026-04-01 to 2026-08-31, 143 commits, v0.6.241 to v0.6.353)

This was not a steady stretch, and I'm not going to dress it up as one. About 59 of the 143 commits landed between April 8 and May 14, and a lot of those are bot-written Lean proof files and merge noise. On May 14 I switched the automated workflows off because of billing, and on July 6 I put a note in the README saying I couldn't promise any work on the project. Between May 14 and August 11 there is one commit, and it's that README note. Then from August 11 to the start of September, 83 commits landed, most of them in the last eleven days. The version numbers (0.6.241 to 0.6.353) look like a lot of releases, but at the time every commit bumped the version, so read them as a commit counter. What you could do at the end that you couldn't at the start: trust a "Ready" session to actually have your project loaded, point SageFs at a web project whose package versions differ from SageFs's own, watch your bound values change live in the dashboard like a debugger watch window, hard-kill the daemon without leaving orphaned workers eating RAM, and give an agent tools that fail in ways it can read.

A session that says Ready can actually see your project

Before: warmup would report success without checking that your project's assemblies had loaded into the session. You got a green Ready, typed something, and every open failed with "not defined". Now: after warmup, SageFs compares the assemblies your projects should have produced against what the session really loaded. If none loaded, the session goes Faulted with a reason and FSI's own init errors attached. If only some loaded, the log names exactly which are missing. When the project loader returns zero projects inside the daemon's worker (it did this, even though FSI itself was fine), SageFs falls back to reading the .fsproj by hand so you still get your source files and namespaces, and warmup warnings like missing DLLs or zero namespaces show up in the dashboard's "Failed Opens" section. Why it matters: the status light means something now, so you stop debugging a session that was never loaded in the first place. Evidence: the load classifier, where warmup faults on it, the manual .fsproj fallback Rough edges: "some assemblies missing" is a log warning, not a fault, so a half-loaded session still reads Ready.

Your project's package versions stop fighting SageFs's

Before: the worker process carried SageFs's own web dependencies (Falco, OpenTelemetry, Datastar). If your project used different versions, say a Falco 6 beta, FSI bound SageFs's copy first and your app failed to load with a 0x80131040 error. Now: the F# Interactive session runs in its own small host process, SageFs.Host, which references only SageFs.Core and ASP.NET. Falco and OpenTelemetry live in the daemon and never enter the host. The host also checks its own folder at startup against a manifest of the files it was built with and refuses to start if anything extra is in there. Before that split, an interim fix moved aside any bundled DLL that your project's bin also had; the commit says it was verified live on a Falco 6 beta project (I didn't rerun that for this page), and that interim code is gone now that the host replaced it. A startup crash loop also gives up after 3 tries instead of 5, with a longer backoff, so a host that can't start fails fast. Why it matters: a real web project with its own dependency pins is exactly what you point a REPL at, and it no longer loses to the tool's own copies. Evidence: host references only Core + ASP.NET, the fail-closed startup check, the interim quarantine fix that the host replaced Rough edges: the host still carries FSharp.Compiler.Service, Fantomas, Cecil and Harmony through Core. A "swap in a version-matched variant" planner was written and tested in this stretch, but nothing calls it at this commit, so a project pinning a different Fantomas or FCS is not handled yet.

Watch your bound values live, like a debugger watch window

Before: the bindings panel was FSI's printed val x : T = v text parsed back into rows, so a record or a list was one flat string. Now: after every eval the worker walks the real runtime values and ships a snapshot to the dashboard, which renders an expandable tree. Records, lists, maps, unions, tuples, arrays and class properties expand, closure captures are shown and flagged as best-effort, and cycles and truncation are marked instead of hidden. Only the bindings panel updates, and only when the values structurally changed. Why it matters: you can see what the session actually holds after each eval without typing x;; for everything. Evidence: the value walker, the change-only store, the dashboard panel Rough edges: the walk is capped (depth 6, 50 children, 200 top-level bindings), so a huge session shows a truncation marker rather than everything.

Kill the daemon the hard way and nothing keeps running

Before: if the daemon died without a clean shutdown (Task Manager, taskkill /F, a crash, the OS going down), its worker processes sat waiting for a shutdown message that never came, and stayed around as orphans (issue #126). Now: the daemon hands each worker its own PID, and the worker checks every 2 seconds that the daemon is still there. If it's gone, the worker shuts itself down. The check compares the daemon's start time as well as its PID, so a recycled PID can't keep a worker alive, and any lookup error counts as "gone". Why it matters: you stop finding gigabytes of dead sessions in the process list after a crash. Evidence: the liveness check and loop, the worker wiring Rough edges: it's a 2 second poll, because there's no portable event to wait on for a process that isn't your child.

Stop a session and get it back, or purge it for good

Before: stopping a session gave no immediate feedback, and there was no clean way to throw away a corrupted session's saved state. Now: Stop unloads the session and keeps its entry under "Resume Previous". Purge stops it and deletes its entry from the saved manifest, the "delete obj and bin" move for state that went bad. The dashboard swaps the session card to "Stopping session..." right away, clears the output if you were looking at it, then moves you to the next session, or to the session picker if none are left. Why it matters: you can park a session you want back, and nuke one you don't, without waiting on the daemon to tell you what happened. Evidence: the teardown operations, stop and purge in the daemon, the dashboard routes Rough edges: this shipped as three tiers (stop, dispose, purge), but dispose later became the same call as stop because the per-session replay file went away, so today the dashboard has a Dispose button that does what Stop does (original commit).

Agents get tool errors they can read and optional arguments that are optional

Before: an agent that left out an optional argument (say block_start_line on send_fsharp_code) crashed inside the MCP library, because the schema marked it required. Tool exceptions came back as raw stack-shaped text. Now: every optional parameter across the registered tools has a default, so omitting it works. Any exception a tool throws is turned into a proper error result (marked as an error, with the missing parameter named if that's the cause). enable_hot_reload and disable_hot_reload are new tools that turn the hot reload patching on or off mid-session without losing your FSI state, and disable now really disables it instead of being cosmetic.Why it matters: if you drive SageFs from an agent, a bad call now tells the agent what to fix, and it stops falling over on its first malformed call. Evidence: optional parameters with defaults, exceptions become error results, the hot reload tool replies Rough edges: after enable_hot_reload you still have to cancel your running web app and re-evaluate it for the middleware to apply, and hot reload itself was marked "in progress" in the README on Aug 27 because changes weren't reaching running module-declared apps yet.

A reset or crash can't leave a session lying about its state

Before: hard_reset_fsi_session with rebuild ran as fire-and-forget and never updated the status snapshot. If the rebuild failed the session stayed "Restarting" forever, and get_fsi_status and list_sessions could disagree about whether it was Ready. Now: a reset moves the status to Starting, then to Ready or Faulted with the reason, whichever way it ends, including timeouts and transport failures. A session the daemon lost track of shows as "lost" in the sidebar instead of vanishing. Why it matters: when something breaks you see Faulted with a reason and a way out, not an endless spinner. Evidence: reset moves status to Faulted or Ready, the one status vocabulary, including Lost and Faulted-with-reason, the startup-crash circuit breaker Rough edges: the soft reset gives up after 5 minutes, which is long to stare at a stuck session.

One coverage badge per function in VS Code, not one line per test

Before: with live testing on, a function covered by 100 tests could get 100 inline decorations above it. Now: the daemon projects coverage into one summary per function (for example "✓ 97 ✗ 3"), sends it to editors as a coverage_view event, and the VS Code extension shows a single CodeLens per function. The defaults never auto-collapse, because F# people write lots of tests per function, and a newer test run replaces older results so stale lenses go away. Why it matters: you can see at a glance whether the function you're editing is covered and passing, and the editor stays readable. Evidence: the per-function coverage type and badge DU, the daemon emitting one event per function, the VS Code CodeLens provider Rough edges: the "collapse when over N tests" threshold exists in code but there is no editor setting wired to it yet, and I didn't check whether the Neovim plugin renders the new event.

Dashboard tabs stay independent, and each project remembers its theme

Before: the daemon had one global "active session", so switching sessions in one place could change what another view showed, and the theme was one global choice. Now: each browser tab has its own viewing session, and the dashboard layer can't read a global active session at all (the field was removed, so code that tried wouldn't compile). Theme choice is saved per project directory, with paths normalised so C:\Foo, c:\foo\ and C:/Foo are one project, and there are 8 themes: One Dark, Kanagawa, Tokyo Night, Gruvbox, Catppuccin Mocha, Monokai, Dracula and Nordic. The layout was also redone as a flat tabline, sidebar and statusline, and the session cards were made single-column so they wrap instead of squeezing. Why it matters: two tabs on two sessions don't trample each other, and your game project and your web project can look different. Evidence: the theme list, the path canonicalisation behind per-project themes, the commit that removed the global Rough edges: the dashboard was reworked again right after this window, so what you see today differs from the redesign described in this stretch's changelog.


The editor loop gets real: results on the line, tests as you type, and a daemon that doesn't need Docker (2026-03-01 to 2026-03-31, 635 commits, v0.5.406 to v0.6.241)

At the start of March, SageFs was a daemon you sent code to, and it wanted a Postgres container to remember anything. By the end you could hit Alt+Enter on a block in VS Code and see the value on the line, turn on live testing and watch the right tests rerun while you type, open a dashboard that shows your bindings, coverage and failures live, and restart the daemon without losing your sessions or starting Docker. Agents got a tool list that follows what the session can actually do, and a few tools that tell them what to verify next. There's also a pre-flight check and a first-run walkthrough now, so a new machine has somewhere to start.

Alt+Enter an F# block in VS Code and the answer shows up on the line

Before: the extension was an early cut, and March opens with a run of reliability fixes (daemon lifecycle, SSE reconnects, crash detection) just to make it fit for the Marketplace. Now: Alt+Enter evaluates the block around your cursor (blocks split on ;; if the file uses them, on blank lines if not), the result lands inline, Shift+Enter evaluates and moves on, Ctrl+Up and Ctrl+Down jump between blocks, and Ctrl+Alt+Enter runs the lot. Binding values show up as ghost text, and a sessions tree and status bar menu let you switch, reset and stop sessions without leaving the editor. It publishes to the VS Code Marketplace and Open VSX from CI. Why it matters: you stay in your .fs file and see values as you write, the way a notebook feels, without a terminal in the loop. Evidence: https://github.com/WillEhrendreich/SageFs/blob/bba42706/sagefs-vscode/package.json#L285-L322 , https://github.com/WillEhrendreich/SageFs/blob/bba42706/sagefs-vscode/src/Extension.fs#L3100-L3105 , https://github.com/WillEhrendreich/SageFs/blob/bba42706/.github/workflows/publish.yml#L107-L127 Rough edges: the Visual Studio extension got the same treatment in March (sprints 2 to 12 in the log) and is deprecated now, so none of this is a claim about Visual Studio. See commit https://github.com/WillEhrendreich/SageFs/commit/5020205d

You can evaluate a piece of a real project file, not just a scratch script

Before: a function copied out of module Foo.Bar has none of its opens or its module around it, so FSI has nothing to resolve it against. Now: editors and agents send the file path, whether it's a whole file or a block, and the line the block starts on. SageFs parses the file's structure, wraps the block in its enclosing module with the file's opens, and maps compiler error line numbers back to your original file. The parse is cached per file and content hash, so repeated evals don't pay for it again. Why it matters: you can poke at the middle of a real module with Alt+Enter and get errors that point at the lines you actually see. Evidence: https://github.com/WillEhrendreich/SageFs/blob/bba42706/SageFs/McpTools.fs#L652-L673 , https://github.com/WillEhrendreich/SageFs/blob/bba42706/SageFs.Core/Middleware/CompilationContext.fs#L519-L530 , https://github.com/WillEhrendreich/SageFs/blob/bba42706/SageFs/Mcp.fs#L915-L916

Tests rerun as you type, and adding a comment doesn't throw away a run in progress

Before: test feedback was save-driven, and the test-cycle timer ticked every 200ms, so even the fast path got rounded up to the next tick. Now: the editor streams your unsaved buffer to the daemon, the test cycle ticks every 25ms while a debounce is pending (the file watcher debounce went from 200ms to 75ms in the same commit), and a keystroke that only changes whitespace or comments is recognised as trivia, so it doesn't kick off a type-check and doesn't mark in-flight results stale. In a compiled project a keystroke runs the affected tests and a save triggers a rebuild first. Each session gets its own file watcher, so a background session reacts to its own files. Why it matters: the red or green on your test changes while you're still typing the fix, and typing a comment doesn't make it flicker. Evidence: https://github.com/WillEhrendreich/SageFs/blob/bba42706/SageFs.Core/Timeouts.fs#L165-L182 , https://github.com/WillEhrendreich/SageFs/blob/bba42706/SageFs.Core/Features/LiveTestingTypes.fs#L94-L182 , https://github.com/WillEhrendreich/SageFs/blob/bba42706/SageFs.Core/Features/LiveTestingTypes.fs#L3595-L3618 Rough edges: the docs still call live testing "functional but still being stabilized" with Expecto the best covered, and the compiled-project path has been reworked since March (an unsaved buffer is now evaluated into the session instead of waiting on a rebuild), so the March commits describe where it started and not where it is.

A failing test tells you which line, what changed, and which counterexample

Before: a red test told you it was red. Now: SageFs pulls the first non-framework line out of the stack trace (skipping Expecto, FSharp.Core, System and Microsoft frames) so editors can jump to it. When a test goes from passing to failing it records a narrative: how long since it last passed, which symbols and files changed in between, and for an FsCheck property the shrunk counterexample. Failing tests run first, then tests that have never reported, then the ones that passed. Next and previous failing test are keybindings in VS Code, and an agent can ask for the same story with explain_test_failure. Why it matters: when something goes red you start from "this changed, here's the line" and not from a diff of your last hour. Evidence: https://github.com/WillEhrendreich/SageFs/blob/bba42706/SageFs/Mcp.fs#L2390-L2420 , https://github.com/WillEhrendreich/SageFs/blob/bba42706/SageFs.Core/Features/LiveTestingTypes.fs#L2618-L2630 , https://github.com/WillEhrendreich/SageFs/blob/bba42706/SageFs/McpTools.fs#L1798-L1823 Rough edges: the "what changed" list is a correlation, not a proof, and the tool description says so itself.

Live testing knows what kind of test each one is, and treats it accordingly

Before: a Theory with five InlineData rows counted as one test, and a slow integration test would be as eager to run on every keystroke as a pure one. Now: xUnit (v2 and v3), NUnit, MSTest and TUnit are found by their attributes, Expecto is found by reflection with no compile-time dependency on it, and each InlineData row is its own test case (issues #38 and #39). Tests are sorted into categories, and the default policy runs unit and property tests on every change, architecture tests on save only, and integration, browser and benchmark tests on demand. A test whose source touches System.IO, HttpClient and similar is classed as integration without you tagging it. An FsCheck counterexample is reported as a real bug, never as "flaky", and environmental flakiness is demoted in the run order. Why it matters: the fast loop stays fast because the slow tests wait for you to ask, and a property test that finds a bug doesn't get a flaky label. Evidence: https://github.com/WillEhrendreich/SageFs/blob/bba42706/SageFs.Core/Features/LiveTestingExecutors.fs#L289-L325 , https://github.com/WillEhrendreich/SageFs/blob/bba42706/SageFs.Core/Features/LiveTestingTypes.fs#L183-L211 , https://github.com/WillEhrendreich/SageFs/blob/bba42706/SageFs.Core/Features/LiveTestingTypes.fs#L1162-L1175 Rough edges: the docs say Expecto has the best coverage, which is another way of saying the attribute-based frameworks have had less mileage.

Restart the daemon and your sessions come back, with no Postgres and no Docker

Before: session history went through Marten and a Postgres container SageFs started via Docker, and if neither was available the daemon exited with an error. Now: sessions are written to one binary file (daemon.sagefm), checksummed over the whole file, written atomically through a temp file, with the previous copy kept as a .bak that load falls back to if the primary is corrupt. Your last test results are cached in a second binary file the same way. Marten and Postgres are gone from the code. Why it matters: install the tool and run it, and a restart doesn't cost you your session list. Evidence: https://github.com/WillEhrendreich/SageFs/blob/bba42706/SageFs.Core/Features/ManifestPersistence.fs#L296-L345 , https://github.com/WillEhrendreich/SageFs/blob/bba42706/SageFs.Core/Features/DaemonPersistence.fs#L25-L48 , https://github.com/WillEhrendreich/SageFs/commit/5677d0e2 Rough edges: Postgres was made mandatory on March 2 (https://github.com/WillEhrendreich/SageFs/commit/2d416045) and removed on March 4, so for two days the tool was strictly worse than the day before it.

The dashboard shows what's in your session: tests, coverage, bindings, failures

Before: tests were a sidebar list, and "what is bound right now" was something you remembered or went and asked. Now: each session row carries test badges and a treemap coloured by pass, fail, running and uncovered, with a coverage drill-down. A bindings panel lists active bindings with their types and values and keeps shadowed ones in their own collapsed section. There's a daemon health panel (version, memory, uptime, per-session state), a failure narratives panel, an FSI diagnostics panel and an eval filmstrip. Most of those start collapsed, with a minimal mode that hides most panels until you expand, and clicking a session row highlights it before the server has answered. Why it matters: you can look at one page and see whether your session is healthy and what your tests are doing, instead of asking an agent or grepping output. Evidence: https://github.com/WillEhrendreich/SageFs/blob/bba42706/SageFs/DashboardFragments.fs#L1444-L1461 , https://github.com/WillEhrendreich/SageFs/blob/bba42706/SageFs/DashboardFragments.fs#L3449-L3470 , https://github.com/WillEhrendreich/SageFs/blob/bba42706/SageFs/DashboardFragments.fs#L580-L590 Rough edges: because most panels start collapsed, a first look shows less than this paragraph implies.

The browser reloads when you save, and shows you the compile error instead of a stale page

Before: a hot-reload save that failed to compile could leave the browser stuck on "recompiling". Now: with the hot reload workflow on, saving a web app's .fs file puts a "compiling" pill on the page with elapsed time, then reloads and keeps your scroll position. A compile failure shows a red panel with the diagnostics, a few lines of source around the error, and a link that opens your editor at that file and line (VS Code by default, Cursor or Rider if SAGEFS_EDITOR or EDITOR says so). A loop guard stops runaway reloads, and it works behind a Content-Security-Policy by adding a nonce. Hot reload is its own workflow because it blocks redefining types in the REPL, and the workflow type has no case that combines the two. Why it matters: you save, you see either the new page or the exact line that broke it, and you never have to look at a terminal to find out which. Evidence: https://github.com/WillEhrendreich/SageFs/blob/bba42706/SageFs.Host/Resources/devreload.js#L36-L58 , https://github.com/WillEhrendreich/SageFs/blob/bba42706/SageFs.Host/DevReloadMiddleware.fs#L20-L36 , https://github.com/WillEhrendreich/SageFs/blob/bba42706/SageFs.Core/WorkflowTypes.fs#L352-L367 Rough edges: an app started with run_app restarts on save instead of being patched in place (docs/hot-reload.md has the table), and that restart resets the app's state.

Agents are only offered the tools that make sense for the session's state

Before: an agent could call anything at any time and get a confusing failure back, and warmup messages invited sleep-polling loops and duplicate sessions. Now: every tool call is checked against a table. While a session is warming up an agent sees status, session management and lease tools, and once it's Ready it also gets eval, tests, diagnose and the analysis tools. A tool nobody declared is refused, not allowed. A TypeLoadException tells the agent to remove the duplicate #r before it considers a reset, and warmup tells it to read recent events instead of looping on sleep. Why it matters: an agent that can't call the wrong thing wastes fewer turns on a session that isn't ready yet. Evidence: https://github.com/WillEhrendreich/SageFs/blob/bba42706/SageFs.Core/Affordances.fs#L41-L110 , https://github.com/WillEhrendreich/SageFs/blob/bba42706/SageFs.Core/Affordances.fs#L163-L186 , https://github.com/WillEhrendreich/SageFs/blob/bba42706/SageFs.Core/ErrorMessages.fs#L62-L70

An agent can ask what to verify next, and the answer is allowed to be "I can't tell you it's green"

Before: an agent told you the change worked because the eval returned. Now: targeted_verify plans the safest verification step for one changed behaviour, and refuses to claim green when the session's trust is ambiguous or the loaded code is stale. diagnose rolls six analyses (failure narratives, cell dependencies, staleness, ripple plan, next-cell suggestions, timing) into one report with a short summary. suggest_next_action ranks what to do next, failures first, then coverage blind spots, performance, stale cells and tests. plan_ripple and preview_what_if show which cells a change would touch without running anything. Why it matters: an agent that says "this might be stale" is more use to you than one that says "done". Evidence: https://github.com/WillEhrendreich/SageFs/blob/bba42706/SageFs/McpTools.fs#L1553-L1566 , https://github.com/WillEhrendreich/SageFs/blob/bba42706/SageFs/McpTools.fs#L1843-L1858 , https://github.com/WillEhrendreich/SageFs/blob/bba42706/SageFs/McpTools.fs#L1908-L1923 Rough edges: run_tests was removed from MCP on March 28 (https://github.com/WillEhrendreich/SageFs/commit/1961300a) and came back on September 30, so any March description of what an agent could do about tests is out of date.

Two agents in one session can see each other

Before: a second agent evaluating in the same session had no idea the first one was there. Now: SageFs tracks which agents are active in a session, what they said they were doing (the intent argument), and which files they recently evaluated from. When you eval from a file another agent recently touched, the result carries a note naming that agent and the files. The dashboard shows agent badges on session rows and tints a contested or unhealthy session. Why it matters: you find out about an overlap from the tool that's about to cause it, not from a merge conflict. Evidence: https://github.com/WillEhrendreich/SageFs/blob/bba42706/SageFs.Core/SessionOperations.fs#L146-L160 , https://github.com/WillEhrendreich/SageFs/blob/bba42706/SageFs.Core/SessionOperations.fs#L222-L254 , https://github.com/WillEhrendreich/SageFs/blob/bba42706/SageFs/Mcp.fs#L1150-L1158 Rough edges: it's advice and nothing blocks anyone, and the tracker lives in the daemon's memory and is wiped on restart on purpose (the file says so at the top).

A first run has somewhere to start: a pre-flight check, a walkthrough, and a pile of koans

Before: first-run problems like a missing SDK or an occupied port showed up as a daemon that wouldn't start. Now: sagefs check looks at the .NET SDK, whether dotnet fsi works, whether there's an .fsproj in the folder, whether the MCP and dashboard ports are free and whether a daemon is already running, and prints pass, warn or fail with a hint for each. The VS Code extension has a five-step Get Started walkthrough and welcome panels for empty views. The daemon itself always starts bare now (the --proj and --sln startup flags were removed) and you create sessions from the client. There's a port of ChrisMarinos's FSharpKoans, 23 .fsx files you fill in with live tests running on save, plus "coming from" guides for Python, C#, Java, JavaScript, Rust and Jupyter. Why it matters: the first ten minutes of someone else's machine now has a path that doesn't start with reading source. Evidence: https://github.com/WillEhrendreich/SageFs/blob/bba42706/SageFs/Program.fs#L100-L106 , https://github.com/WillEhrendreich/SageFs/blob/bba42706/sagefs-vscode/package.json#L799-L830 , https://github.com/WillEhrendreich/SageFs/blob/bba42706/samples/from-koans/00-about-sagefs-koans.fsx#L1-L25


The first week and a half: from a REPL daemon to a daemon that runs your tests and talks to your editor (2026-02-20 to 2026-02-28, 403 commits, v0.5.18 to v0.5.383)

At the start of this stretch you had a daemon holding an F# Interactive session, a dashboard, and an MCP server, mostly driven from a terminal UI. By the end you could hit Alt+Enter in VS Code and get the result inline, edit a function and watch only the tests that reach it re-run, see coverage bars in the gutter, let an agent ask SageFs to run the tests and get a real verdict back, and save a file and have the browser reload without you touching it. You also no longer needed Docker running just to start the thing.

Edit a function and only the tests that reach it re-run

Before: you ran the whole suite, or you picked tests by hand, and a build sat in the middle of every loop. Now: SageFs finds your tests (even in a file that doesn't compile yet, because it reads the source with tree-sitter), builds a map of which tests reach which functions, and when you edit, it re-runs just those through the warm F# session. No MSBuild rebuild in the loop. It started out with a nasty bug where a single eval could trigger all 3,464 tests of the project, and that got fixed the same day it showed up. Why it matters: you stay in the edit-and-see loop instead of waiting on a build and a full test run. Evidence: https://github.com/WillEhrendreich/SageFs/blob/bba42706/SageFs.Core/Features/TestTreeSitter.fs#L1-L12 and https://github.com/WillEhrendreich/SageFs/blob/bba42706/SageFs.Core/Features/LiveTestingTypes.fs#L2124-L2128 and https://github.com/WillEhrendreich/SageFs/blob/bba42706/Readme.md#L168-L172 Rough edges: nobody has timed the real save-to-green path end to end, so I'm not quoting a speed. The README says the same thing. Also, if the dependency map hasn't seen the test file that covers your function yet, the narrowing can find nothing (the code comment at LiveTestingTypes.fs L3441-L3452 says so).

See which lines your tests actually cover, right in the gutter

Before: you guessed, or you ran a separate coverage tool and read a report. Now: SageFs instruments your project's assemblies with probes, records which probes each test hits, and sends that to the editor as gutter bars. Green means every test covering the line passes, red means some covering test fails, gray means no test reaches it. The same data is how it picks affected tests, by intersecting the changed file's probes with each test's recorded hits. Branch info (fully, partly, not covered) rides along on each annotation. Why it matters: you see which of your code has no test and which test is failing without leaving the file. Evidence: https://github.com/WillEhrendreich/SageFs/blob/bba42706/SageFs.Core/Features/CoverageInstrumenter.fs#L14-L20 and https://github.com/WillEhrendreich/SageFs/blob/bba42706/SageFs.Core/Features/LiveTestingTypes.fs#L683-L716 and https://github.com/WillEhrendreich/SageFs/blob/bba42706/Readme.md#L405-L415 Rough edges: the first cut of the instrumenter produced invalid IL and ballooned to 39 GB of memory under a full test load. The fix (commit 1bbd235d, in this window) brought it to about 4 GB and added a circuit breaker that turns instrumentation off after 3 failures in a row, so a bad assembly can't take the machine down again. The README lists coverage gutters for VS Code and Neovim only.

Your agent can run the tests and get an answer it can trust

Before: an agent that wanted to know if your change worked had to shell out to dotnet test and parse the output. Now: there's a run_tests tool on the MCP server. It can filter by name, file or category, waits for the result, and hands back a receipt. If the run isn't done when the wait ends, the agent calls again with the receipt instead of polling. A run where something was skipped or never reported comes back as Incomplete, not green. This week's version was simpler (a timeout_seconds argument and a poll loop, commit 43e8ed71); it has since been rebuilt around receipts. Why it matters: an agent can check its own work against your real tests and know whether "passed" means passed. Evidence: https://github.com/WillEhrendreich/SageFs/blob/bba42706/SageFs/McpTools.fs#L2112-L2130 and https://github.com/WillEhrendreich/SageFs/blob/bba42706/SageFs/McpRunTests.fs#L1-L30 Rough edges: none I could find that are specific to this window's work, but the timeout version was replaced, so don't describe it as the current design.

Save a file and the browser reloads, with the app still running

Before: you edited a web app, rebuilt or restarted it, and refreshed the page. Now: SageFs watches the files you've opted in, re-emits the changed functions into the running session, points the old methods at the new bodies with Harmony, and tells connected browsers to refresh over SSE. The week added the browser side (an injected script and an SSE endpoint) and a Playwright test that drives a real browser through an edit. You choose which files, directories or projects are watched, from the dashboard, VS Code or Neovim. Why it matters: you edit a Falco handler, save, and look at the page instead of restarting. Evidence: https://github.com/WillEhrendreich/SageFs/blob/bba42706/Readme.md#L58-L68 and https://github.com/WillEhrendreich/SageFs/blob/bba42706/SageFs.Core/DevReload.fs#L1-L12 and https://github.com/WillEhrendreich/SageFs/blob/bba42706/SageFs.Core/HotReloadState.fs#L1-L12 Rough edges: it patches methods, so a handler computed once at startup can't be patched and you can't redefine types. An app started with run_app gets restarted with your change, not patched in place (about six seconds on the ticker demo, per the README). The details have moved a lot since this week, so link the hot reload doc and not this stretch's commit messages for behavior.

Alt+Enter in VS Code runs your code, and your Ionide send-to-FSI keys come along

Before: the extension didn't exist. Now: Alt+Enter evals the selection or the current code block with the result inline, Alt+Shift+Enter evals the file, a "Eval" CodeLens sits above each block, and completion comes from the live session. If you already use Ionide, its send-to-FSI commands (SendSelection, SendLine, SendFile) are rerouted to SageFs, so your existing muscle memory works. It started the week as a TypeScript MVP and was rewritten in F# via Fable on 02-22. Why it matters: you get a live session in the editor you already have, without relearning keys. Evidence: https://github.com/WillEhrendreich/SageFs/blob/bba42706/sagefs-vscode/package.json#L286-L295 and https://github.com/WillEhrendreich/SageFs/blob/bba42706/sagefs-vscode/src/Extension.fs#L2308-L2321 and https://github.com/WillEhrendreich/SageFs/blob/bba42706/sagefs-vscode/src/CodeLensProvider.fs#L1-L10 Rough edges: Alt+Enter replaced Ctrl+Enter on 02-28 (commit 9efd8257), so any docs or videos from earlier in the week show the wrong key.

Your tests show up in VS Code's own Test Explorer, with pass/fail marks in the file

Before: test results lived in a terminal or the dashboard. Now: live test results feed VS Code's native Test Explorer, show up as pass/fail marks next to the test functions, and there's a next/previous failing test jump on Alt+Shift+] and Alt+Shift+[. (The 02-24 commit also routed failures into the Problems panel; I didn't re-check that one at head.) Why it matters: red tests are where you already look for them. Evidence: https://github.com/WillEhrendreich/SageFs/blob/bba42706/sagefs-vscode/src/TestControllerAdapter.fs#L26-L35 and https://github.com/WillEhrendreich/SageFs/blob/bba42706/sagefs-vscode/src/Extension.fs#L2939-L2945 and https://github.com/WillEhrendreich/SageFs/blob/bba42706/sagefs-vscode/package.json#L321-L330 Rough edges: the README says client polish still varies across editors, and this is the newest of those clients.

The dashboard and your editors stay responsive while thousands of tests run

Before: with live testing running about 2,945 tests, the /api/sessions and /api/status calls started timing out (3 seconds and up) around 40 seconds into a run, because every read queued behind the session manager's mailbox. Now: reads go to a published snapshot and never wait behind writes. The commit measured 4 to 129 ms on /api/sessions and 12 to 150 ms on /api/status for the whole run, with zero timeouts over 24 probes in 120 seconds. Dashboard helpers got the same treatment (commit 58aa23e9), and responses are Brotli-compressed on the way out. Why it matters: the tool doesn't freeze on you in the one moment you most want it, mid test run. Evidence: https://github.com/WillEhrendreich/SageFs/blob/bba42706/SageFs.Core/SessionManager.fs#L214-L232 and https://github.com/WillEhrendreich/SageFs/commit/5cb67321 Rough edges: those numbers are from one run on Will's machine, in the commit message. Treat them as a measurement of that fix, not a guarantee.

You can see exactly what your session loaded when it warmed up

Before: if a namespace failed to open or a file didn't load, you found out when something later didn't resolve. Now: the session keeps a record of what warmup did (assemblies loaded, namespaces opened, files scanned, what failed, how long each phase took) and shows it in the dashboard and in a VS Code Session Context view. Why it matters: "why can't it see my module" gets an answer you can read. Evidence: https://github.com/WillEhrendreich/SageFs/blob/bba42706/SageFs.Core/WarmupContext.fs#L6-L36 and https://github.com/WillEhrendreich/SageFs/blob/bba42706/sagefs-vscode/package.json#L420-L423 Rough edges: I only confirmed the data type and the VS Code view still exist; I didn't re-check the dashboard panel's current look.

SageFs starts without Docker

Before: the daemon wanted a Docker-backed PostgreSQL event store. Missing or broken Docker was, in the commit's words, the number one class of user-reported bugs. Now: the first step this week made persistence opt-in (--persist) and defaulted to in-memory, on 02-26. A few days later (03-04, outside this window) the Marten/PostgreSQL dependency was removed entirely and a binary manifest became the only persistence. Today the install is dotnet tool install --global SageFs and there's no database to run. Why it matters: nothing to stand up before your first eval. Evidence: https://github.com/WillEhrendreich/SageFs/commit/a2665e93 and https://github.com/WillEhrendreich/SageFs/commit/5677d0e2 and https://github.com/WillEhrendreich/SageFs/blob/bba42706/Readme.md#L110-L111 Rough edges: --persist no longer exists at the current head, so don't mention the flag as a feature.

Turn what you did in the REPL into a script

Before: a session's history lived and died with the session. Now: you can export the active session's evals as an .fsx from VS Code (the SageFs: Export Session command) or over HTTP. Why it matters: an experiment that worked becomes a file you can keep. Evidence: https://github.com/WillEhrendreich/SageFs/blob/bba42706/SageFs/McpServer.fs#L2850-L2882 and https://github.com/WillEhrendreich/SageFs/blob/bba42706/sagefs-vscode/src/Extension.fs#L2717-L2728 Rough edges: it only exports the active session; for any other session it returns an empty export with a note. The comment above the endpoint also says the endpoint was once documented but never mapped, so both editors' export commands 404'd for a while.