Repository navigation
[kyo-system] add a filesystem abstraction behind the Path API - #1863
Merged
Merged
Conversation
DamianReeves
force-pushed
the
filesystem-abstraction
branch
from
August 12, 2026 22:39
4a98bab to
79c3094
Compare
DamianReeves
force-pushed
the
filesystem-abstraction
branch
from
August 21, 2026 14:28
79c3094 to
d48dbd6
Compare
FileSystem.Read and FileSystem.Write describe filesystem access as a service, and HostFileSystem implements them over the platform backends already in this module. Nothing calls the new service yet. Path keeps its direct signatures, calling the platform tier itself, and no module outside kyo-system gains a runner or a capability effect. The conformance suites exercise the host backend directly so the contract is pinned before anything depends on it.
PathSnapshotTest asserted that root.list returned a.txt before nested, but neither backend promises an order: the JVM reads the directory through Files.list and Node through readdirSync, and both report entries in filesystem order. The assertion passed on linux-x64 by luck and failed on linux-arm64, which returned nested first. Sorting by the last path segment keeps the assertion exactly as strong (the same two full paths, no more and no fewer) while dropping the dependency on an order the API does not guarantee. This matches how PathTest already compares every one of its own list results.
DamianReeves
force-pushed
the
filesystem-abstraction
branch
from
August 23, 2026 21:44
c73e08b to
59d3c5a
Compare
fwbrasil
reviewed
Aug 24, 2026
| */ | ||
| object FileSystem: | ||
|
|
||
| trait Read[S]: |
Collaborator
There was a problem hiding this comment.
Let's use abstract class if possible. It's the default choice in Kyo given that it's more restricted (no multiple inheritance) and avoid interface dispatches, which are more expensive
Collaborator
Author
There was a problem hiding this comment.
Changed both tiers to abstract classes in 7539fc7. Nothing needed the mixin: every implementor extends exactly one of them and Write extends Read in a single chain.
fwbrasil
approved these changes
Aug 24, 2026
Read and Write were traits, but nothing mixes them in: every implementor extends exactly one of them, and Write extends Read in a single-inheritance chain. An abstract class is the codebase default for base types because JVM interface dispatch is more expensive than class dispatch.
This was referenced Aug 25, 2026
fwbrasil
pushed a commit
that referenced
this pull request
Aug 25, 2026
…mpletion (#1901) A kyo-system PR (#1863) pushed both Native jobs into the 6-hour job ceiling twice in a row, and digging into the logs turned up more than a slow build. This PR restructures the Native leg of ci-test.sh around one module plan and a pool of fresh sbt drivers, and closes two honesty gaps in the runner along the way. ## What the logs showed * The old flow did the expensive work twice: an upfront aggregate `kyoNative/Test/nativeLink` linked all 58 modules (even on a diff run selecting 30), then the testKyo process recompiled and relinked the affected subtree from scratch. The duplication came from testKyo's `++` round trip pinning kyo-config/kyo-scheduler/kyo-stats-registry at 3.3.8 in the test process while the link processes built them at 3.8.4, invalidating zinc across the graph. #1895 fixed the version pinning on main; this PR removes the duplicated work path itself. * A green full Native run was not actually a full run: the test phase could die at a module boundary with a clean tail and the crash tolerance in check_log could not tell that from a completed pass. One observed "successful" run started 10 of 58 module binaries. check_log now requires a completion marker (`[testKyo] completed`, printed by the command chain of every pass) before tolerating a crash or hang, so a truncated run retries and then fails instead of reporting green. * One driver accumulating every module's link peaked at 12.5G RSS with the box at the edge for hours. The measured accumulation delta (+2.2G) builds up around the tenth module of a shared driver. ## The new Native flow ``` plan testKyo --dry-run --plan-file <file> --scala 3 [--exclude NATIVE_SKIP] Native pre-link NATIVE_HEAVY ∩ plan, each in its own capped driver link pool batches of NATIVE_LINK_BATCH modules: testKyo --phase link --scala 3 --modules a,b,... Native test pool batches of NATIVE_TEST_BATCH modules, each under the crash-retry loop cross testKyo --cross Native (the real 2.12/2.13 passes) ``` The selection is computed once and written to a plan file; the shell partitions it, so the link and test pools operate on the identical list and the log shows batch membership. Each batch is a fresh driver, so none carries more than 8 modules of accumulated heap, and a crash retries one batch instead of the whole phase. Zinc and the nativeLink disk cache hit across process boundaries now that every process agrees on the effective Scala versions; the CI runs show `Build skipped` and zero recompiles inside test batches. testKyo gains `--phase link`, `--cross`, `--modules a,b,c` (validated against the build, loud failure on unknown names), and `--plan-file`, alongside the existing `--exclude`/`--only`/`--quick`. NATIVE_SKIP composes with the plan: a skipped module never enters it. ## Validation * ci-test.sh --self-test: 48 cases (from 39), covering batch partitioning and membership, per-batch retry isolation, the marker-less truncation shape (retried, then exit 1), hang-after-marker tolerance, NATIVE_SKIP reaching the plan and cross pass, and the CPU cap on every link invocation and no test invocation. * Cross-process cache reuse verified directly: a plain-task compile followed by `testKyo --scala 3 --modules kyo-preludeNative Native` in a fresh process does zero compiles, zero relinks, `Build skipped`, tests run, marker printed. * Prior validation runs of this flow (pre-rebase) on both linux poles: link count equals plan size, zero relinks inside test batches, per-batch retry saved two batches that hit the known shutdown-hang shape. * Two full-scale runs on both poles are in flight on this branch stack and will be linked here when they land. NATIVE_LINK_CPUS moves from 2 to 3: the 2-CPU cap was sized for a driver already carrying the whole set; with accumulation bounded per batch the extra optimizer thread uses headroom the logs showed idle.
fwbrasil
pushed a commit
that referenced
this pull request
Aug 31, 2026
### What this adds
The capability flip. Reads carry `PathRead` and writes carry
`PathWrite`, discharged by `Path.run` and `Path.runReadOnly` against the
host backend, or by `Path.runWith` and `Path.runReadOnlyWith` against
any other `FileSystem`. A function's effect row now states whether it
touches the disk and whether it can modify it, and a caller can
substitute the backend without changing the code under test.
`PathWrite <: PathRead`, so a write-capable context also satisfies
reads, and `Path.runReadOnly` rejects a program containing a write at
the call site rather than at runtime.
Every module that used the direct `Path` API moves to the capability
form, which is why this is the widest pull request in the stack.
`Path.tail`, `Path.tailBytes` and `Path.Origin` migrate with it and open
through the installed read service.
### What the new callsites look like
An operation no longer names its own failure. It names the authority it
needs:
```scala
// before
val text: String < (Sync & Abort[FileReadException]) = config.read
val done: Unit < (Sync & Abort[FileWriteException]) = out.write(text)
val kids: Chunk[Path] < (Sync & Abort[FileStructureException]) = dir.list
// after
val text: String < PathRead = config.read
val done: Unit < PathWrite = out.write(text)
val kids: Chunk[Path] < PathRead = dir.list
```
A runner discharges the capability and folds the three per-operation
failure types into the `FileSystemException` umbrella:
```scala
val loaded: String < (Sync & Abort[FileSystemException]) =
Path.runReadOnly(config.read)
val saved: Unit < (Sync & Abort[FileSystemException]) =
Path.run(out.write(text))
```
An existing `Abort.run` or `Abort.recover` at a callsite keeps its
shape. It moves to the umbrella type and gains a runner inside it,
because the failure is raised by the runner rather than by the
operation:
```scala
// before
Abort.run[FileWriteException](path.write(html)).map {
case Result.Success(_) => ...
case Result.Failure(e) => ...
}
// after
Abort.run[FileSystemException](Path.run(path.write(html))).map {
case Result.Success(_) => ...
case Result.Failure(e) => ...
}
```
A public API that reads on the caller's behalf stops choosing the
filesystem for them. It declares `PathRead` and lets the caller pick the
runner:
```scala
// before
def init(locales: Seq[Locale], start: Locale)(dir: Path): I18n < (Sync & Abort[FileReadException])
// after
def init(locales: Seq[Locale], start: Locale)(dir: Path): I18n < (PathRead & Sync)
```
Which is what makes the backend substitutable. The same call runs
against the host or against a supplied `FileSystem`, with no change to
the code under test:
```scala
// production: the Local-selected backend, which defaults to the host
Path.runReadOnly(I18n.init(locales, Locale.en)(bundleDir))
// a test: any FileSystem.Read, with the same program
Path.runReadOnlyWith(fixtureFileSystem)(I18n.init(locales, Locale.en)(bundleDir))
```
Temporary paths go through the service too, so a substituted backend
owns them the same way it owns everything else:
```scala
val tmpFile: Path < (PathWrite & Sync & Scope) = Path.temp("kyo-build-", ".json")
val tmpDir: Path < (PathWrite & Sync & Scope) = Path.tempDir("kyo-build-")
```
Streaming reads, follow streams and the stream sinks carry the
capability the same way:
```scala
val lines: Stream[String, PathRead & Scope & Sync] = config.readLinesStream
val live: Stream[String, PathRead & Async & Scope] = log.tail(pollDelay = 100.millis)
val sink: Unit < (Scope & PathWrite & Sync) = Stream.init(rows).writeLinesTo(out)
val records: Stream[Event, PathRead & Scope & Async & Abort[DecodeException]] =
Jsonl.watch[Event](path, from = Path.Origin.End)
```
One consequence is worth knowing before reading the diff. A backend
failure is raised by the runner, not by the frame that suspended the
operation, so an `Abort.run` nested inside a runner cannot observe it.
Code that needs to inspect a filesystem failure runs its own runner at
the point it wants to catch:
```scala
result <- Abort.run[FileSystemException] {
Path.run(Scope.run(stream.writeTo(file, options = Path.WriteOptions(createFolders = false))))
}
```
### What changed, module by module
**kyo-system** carries the change. `Path.Op` gains the operation ADT for
both capabilities plus `Op.Raise`, so a failure the read loop detects
itself lands on the runner's `Abort` rather than adding an `Abort` row
to every follower. Every extension method on `Path` suspends instead of
calling the unsafe tier directly. The four runners (`run`,
`runReadOnly`, `runWith`, `runReadOnlyWith`) and the `Isolate` instances
that let a capability cross a fiber boundary are new. `Path.temp` and
`Path.tempDir` both move from `PathDirectories` onto `Path` and carry
`PathWrite`. Each suspends its own op (`Op.Temp`, `Op.TempDir`), the
service vends a removal handle (`TempFileHandle`, `TempDirHandle`), and
the `Scope` finalizer removes through the service that created the
entry, so a temp path made by one backend is never deleted by another.
The `tempUnscoped` and `tempDirUnscoped` variants stay host primitives
on purpose: an entry whose lifetime the caller owns has no scope for a
service-vended handle to hang from. `StreamSystemExtensions` opens its
handle through `Path.Op.OpenWrite` and writes through
`Path.Op.WriteChunk` and `Path.Op.WriteString`; because the failure now
arrives at the runner, the append-preserving `finish()` moves into a
single `Scope` finalizer that reads the computation's outcome, which
also makes it independent of the finalizer parallelism `Scope.run` was
given. `PathCapabilityTest` is new and pins each method's row, including
the negative law that a write program does not compile under
`runReadOnly`. `PathSnapshotTest` becomes `FileSystemSnapshotTest` and
drives the backend directly. README and CONTRIBUTING are rewritten
around the runner table.
**kyo-schema-json** moves the JSONL file surface onto the capability:
`Jsonl.read`, `readResults`, `watch`, `watchResults`, `write` and
`append` carry `PathRead` or `PathWrite` instead of
`Abort[FileReadException]` or `Abort[FileWriteException]`, and the
decode failure stays on its own `Abort[DecodeException]`. `writeAll`
reifies its fold and re-raises through `Path.Op.Raise` once the handle
is released, so the caller's row stays `PathWrite` and the runner
reports the failure exactly as it would report a suspended operation.
**kyo-core** exposes `Stream.fromInputStream` publicly, which the file
sinks need now that they are typed in terms of the capability rather
than the concrete handle.
**kyo-tasty** routes the snapshot cache through runners: listing,
`stat`, `remove` and `exists` each wrap in `Path.runReadOnly` or
`Path.run` and recover on `FileSystemException` instead of the three
separate types. `ClasspathOrchestrator`, `SnapshotReader`,
`SnapshotWriter` and `DigestComputer` follow. A classpath fidelity test
is pinned to scala-library so the count only moves on a deliberate
stdlib bump.
**kyo-doctest** wraps one runner per operation rather than one per
block, because each `Abort.recover` there carries a distinct operation
label in its `IoError` message and a shared runner would lose which
operation failed.
**kyo-browser** moves `Image.writeFileBinary` and `writeFileBase64` to
`Abort[FileSystemException]` with the write discharged inside, so the
public signature does not leak a capability the caller never asked for.
`BrowserLauncher` and `ChromeDownloader` follow, and the download tests
take their temp directories through the host runner.
**kyo-ai** collapses the Claude and Codex completion error unions from
`FileStructureException | FileReadException | FileWriteException` to the
single `FileSystemException`, and the MCP bridge config write is
discharged where it happens so the config file stays an implementation
detail rather than a capability the caller must grant.
**kyo-website** and **kyo-i18n** move their read and write paths to the
umbrella type with runners at the boundary. `I18n.init` declares
`PathRead` so a caller can load bundles from a substituted filesystem.
**kyo-aeron**, **kyo-jsonrpc**, **kyo-pod**, **kyo-net**, **kyo-ffi**,
**kyo-http**, **kyo-ui**, **kyo-markdown**, **kyo-schema-ion**,
**kyo-stats-machine**, **kyo-sql-mysql** and **kyo-sql-postgres** are
callsite migrations: temp directories, socket cleanup, fixture reads and
container binds move to the runner form with no behavior change.
`PosixStructs` additionally stops reaching into `SystemPlatformSpecific`
and reads the architecture through the public `kyo.System` unsafe
boundary.
**build.sbt** promotes the `kyo-system` edge from test scope to compile
scope for every module whose main sources now use `Path`, and
consolidates the split `dependsOn` calls those modules had accumulated.
### Stack
Part of the path-capability stack: process fixes, filesystem vocabulary,
abstraction, capability flip, channels, locks, watch, durability,
confinement, in-memory, zip, then overlay (#1799). Merge bottom up;
GitHub retargets the stack above each merge.
The lower branches (#1856, #1857, #1852, #1854, #1888, #1861, #1862,
#1863) have landed, so this branch is now a single commit rebased onto
`main`. The original incremental development history remains visible in
#1799's earlier timeline and in the backup refs recorded in the working
notes.
fwbrasil
pushed a commit
that referenced
this pull request
Sep 1, 2026
### What this adds
Positioned file access. `Path.ReadChannel[S]`, `Path.WriteChannel[S]`
and `Path.ReadWriteChannel[S]` expose reads and writes at absolute
offsets over an open file, so a caller can read a header, skip past it,
and overwrite a record in place without loading the file into memory or
rewriting it.
Every operation names its own offset and no call moves an implicit
cursor, so two callers holding the same channel cannot disturb each
other's position. `readAt` tolerates a short read at end of file and
returns fewer bytes than requested rather than failing. `writeAt`
zero-fills a gap past the current end, so a sparse write is an ordinary
write.
### What the new callsites look like
A channel is acquired from a backend rather than from a `Path`, which is
what keeps it substitutable like every other filesystem operation:
```scala
import kyo.*
val positioned =
Scope.run {
FileSystem.host.openReadWriteChannel(Path("index.bin"), FileSystem.WriteOpen.CreateNew).map { channel =>
channel.writeAt(0L, Span.from(Array[Byte](1, 2, 3))).andThen(channel.readAt(0L, 3))
}
}
```
Acquisition takes two independent decisions and keeps them separate. The
method chooses the capability, and `FileSystem.WriteOpen` chooses what
should happen about existence:
- `Existing` requires an existing regular file.
- `Create` opens an existing file or creates an absent one.
- `CreateNew` creates the file and fails when the path is already taken.
None of the three truncates an existing file. `CreateNew` is atomic
against a concurrent creator, through `CREATE_NEW` on the JVM and Native
and `O_EXCL` on Node, so exactly one of two racing openers wins and the
loser sees `FileAlreadyExistsException`.
Capability is enforced at the type level in both directions. A
`ReadChannel` has no `writeAt`, `truncate` or `sync`; a `WriteChannel`
has no `readAt` or `size`. A `FileSystem.Read` backend vends
`openReadChannel` and nothing else, so a read-only backend cannot hand
out a write channel:
```scala
// compiles
def inspect[S](fs: FileSystem.Read[S], path: Path)(using Frame) = fs.openReadChannel(path)
// rejected at the call site
def mutate[S](fs: FileSystem.Read[S], path: Path)(using Frame) =
fs.openWriteChannel(path, FileSystem.WriteOpen.Existing)
```
`ReadWriteChannel` extends both parents and keeps their distinct failure
rows rather than widening every operation to one filesystem error. A
read on a read-write channel still fails through
`Abort[FileReadException]` and a write through
`Abort[FileWriteException]`, so a caller recovering from one does not
silently catch the other.
Lifetime belongs to the `Scope` active at acquisition. The public
channels expose no `close`, so a channel cannot outlive the scope that
owns it, and there is no way to close one twice.
### What changed
**`Path`** gains the three channel traits plus a private `RawChannel`
and `RawChannelAccess`. `RawChannel` is the single narrow surface a
platform must implement (`readAt`, `writeAt`, `sync`, `truncate`,
`size`, `close`) and it stays `private[kyo]`; the public capabilities
are assembled from it rather than exposing it.
**`FileSystem`** grows the acquisitions along its existing tier split.
`Read` gains `openReadChannel`, `Write` gains `openWriteChannel` and
`openReadWriteChannel`, and the `WriteOpen` enum is new. The unscoped
variants stay `private[kyo]`: they hand back a release function for the
cases inside the module that own the lifetime themselves, and they are
not part of the public surface.
**`HostFileSystem`** wraps the raw channel into the typed capabilities
and validates bounds at the boundary, so a negative position, length or
truncation size fails through the channel's own typed error instead of
reaching the OS.
**`FileSystemOperation`** gains `Channel` and `Sync` so an acquisition
failure and a `force`/`fsync` failure name what they were doing instead
of borrowing `Read` or `Write`.
**JVM and Native** implement `NioRawChannel` over `FileChannel`, using
the positioned `read(ByteBuffer, long)` and `write(ByteBuffer, long)`
overloads, which by contract do not touch the channel's own
file-position cursor. Both loop until the request is satisfied, since a
single call may transfer fewer bytes than asked.
**JS and Wasm** implement `NodeRawChannel` over a Node file descriptor,
passing `readSync`/`writeSync` an explicit `position` for the same
reason. Opening uses numeric flags rather than mode strings, because the
string modes carry truncation and append semantics that a positioned
channel must not have. The facade declares those position parameters as
`Double`: JavaScript has no 64-bit integer and Scala.js compiles `Long`
to a two-word object rather than a JS number, so the conversion happens
once at the boundary and the arithmetic above it stays in `Long`.
**Tests.** `PathChannelTest` covers the capability and tier laws with
`typeCheckErrors`, positioned short reads and sparse writes, the three
open policies, concurrent `CreateNew`, invalid bounds, scope release,
idempotent unscoped release, and release exactly once under interrupt.
`FileSystemChannelTestSuite` is the reusable cross-backend contract,
joining `FileSystemReadTestSuite` and `FileSystemWriteTestSuite`, so
every mutable backend added later inherits the same laws.
### Stack
Part of the path-capability stack: process fixes, filesystem vocabulary,
abstraction, capability flip, channels, locks, watch, durability,
confinement, in-memory, zip, then overlay (#1799). Merge bottom up;
GitHub retargets the stack above each merge.
The lower branches (#1856, #1857, #1852, #1854, #1888, #1861, #1862,
#1863, #1864) have landed, so this branch is now a single commit rebased
onto `main`. The original incremental development history remains
visible in #1799's earlier timeline and in the backup refs recorded in
the working notes.
fwbrasil
pushed a commit
that referenced
this pull request
Sep 3, 2026
### What this adds
Advisory file locks. `Path.Lock` is scope-managed: acquiring registers
the release with the enclosing `Scope` before anything is claimed, so an
interrupt landing between the claim and the finalizer cannot strand the
lock. `LockMode` selects shared or exclusive compatibility, and
`LockWait` selects whether a contended attempt fails immediately, waits,
or waits until a deadline.
```scala
import kyo.*
val guarded = Scope.run {
Path.runReadOnly {
Path("state.bin").lock(Path.LockMode.Exclusive, Path.LockWait.Immediate).map(_.check)
}
}
```
`tryLock` answers `Absent` for a conflicting holder and never waits for
one. It still carries `Async`, for a different reason: a backend that
merges same-process claims onto one platform lock has a span in which a
compatible claim is being taken but is not yet shareable, and answering
during that span would report a conflict that does not exist. Waiting it
out is bounded and needs no holder to release anything.
There is no public manual release. A lock goes when its `Scope` closes,
and `check` reports `FileLockOwnershipLostException` for the backends
that can lose a claim underneath the handle.
### What changed
**`Path`** gains `LockMode`, `LockWait`, the public `Lock` trait, and
the `lock` and `tryLock` extension methods. The private surface a
platform implements is `RawLock` plus `LockAttempt`, which separates
"no" from "not yet": only the unsettled answer is worth retrying on its
own, since a real conflict clears when the holder releases and that is
the waiting caller's concern.
**`FileSystem.Read`** gains `tryLock` and `lock`, so a read-only backend
still vends locks. `FileSystem.awaitLock` holds the waiting policy in
one place and paces its retries with `Async.sleep` rather than
`Clock.sleep`, since the latter hands back the timer fiber instead of
suspending on it and would turn the retry into a busy spin against the
holder it is waiting on.
**`FileSystemException`** gains the `FileLockException` marker and the
`FileLockUnavailableException`, `FileLockTimeoutException` and
`FileLockOwnershipLostException` leaves. `FileSystemOperation` gains
`Lock`, so an acquisition failure names what it was doing instead of
borrowing `Read`.
**JVM and Native** back a lock with `FileChannel.tryLock` behind a
process-wide `NioPathLockRegistry`. POSIX advisory locks do not exclude
the owning process from reacquiring its own lock, so same-process
exclusion is enforced explicitly rather than assumed from the platform
call. The registry key is the resolved real path, so two names for one
file through a symbolic link share one entry instead of opening two
channels the JVM then refuses as overlapping.
**JS and Wasm** implement an `O_EXCL` lockfile protocol. A claim records
host, pid and a random token, and an owner whose process is provably
gone is reclaimed rather than left blocking the path for good.
**Tests.** `FileSystemLockTest` joins the read, write and channel suites
as the fourth cross-backend contract, so every backend added later
inherits the same laws. `HostPathLockTest` covers the interrupt window
from both ends: an interrupt delivered from inside the claim node with
the OS lock already held, and repeated interrupts landing before the
claim is made. The repeated-interrupt stress case is currently marked
ignored: it reliably exposes #1928, a core defect where an interrupted
fiber can lose its `Scope.ensure` finalizers under load, which no
backend-side code can compensate for. The claim path additionally
records the holder through a tombstone, so a claim that completes after
the finalizer has already drained releases the lock in place instead of
stranding it.
### Stack
Part of the path-capability stack: process fixes, filesystem vocabulary,
abstraction, capability flip, channels, locks, watch, durability,
confinement, in-memory, zip, then overlay (#1799). Merge bottom up;
GitHub retargets the stack above each merge.
The lower branches (#1856, #1857, #1852, #1854, #1888, #1861, #1862,
#1863, #1864, #1865) have landed, so this branch is now a single commit
rebased onto `main`. The original incremental development history
remains visible in #1799's earlier timeline and in the backup refs
recorded in the working notes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this adds
FileSystem.ReadandFileSystem.Writedescribe filesystem access as a service, andHostFileSystemimplements them over the platform backends already in the module. The read and write conformance suites pin the contract against the host backend.Nothing calls the new service yet, deliberately: no public
Pathsignature changes and no module outsidekyo-systemchanges in this pull request. That is what lets the capability flip arrive as its own reviewable change directly above.One note for reviewers:
p.list(glob)usesSensitivematching whileFileSystem.host.list(p, glob)probes the volume, so the two can disagree on a case-insensitive volume. The divergence lasts exactly one pull request and closes when the flip routesPaththrough the service.Stack
Part of the path-capability stack on #1859: process fixes, filesystem vocabulary, abstraction, capability flip, channels, locks, watch, durability, confinement, in-memory, zip, then overlay (#1799). Merge bottom up; GitHub retargets the stack above each merge.
Each branch carries one synthesized commit whose diff is exactly this pull request. The original incremental development history remains visible in #1799's earlier timeline and in the backup refs recorded in the working notes.