fs: IoError.path becomes a Path (step 3 of #68) #680
Labels
No labels
loop
queue/failed
queue/queued
ready
status/parked
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
torbscript/language#680
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Step 3 of #68 (PATH slice 2):
IoError.pathbecomes aPath. Steps 1 (#419), 2 (#547), 2b (#559) and 2c (#580, PR #583) are onmain; the compiler already understandsPathinIoError.path(step 1 taught the lowering both forms).Source
Goal
Every construction and read site of
IoError.pathuses aPath:std/fs,std/io,std/process,compiler/andtools/. The type of the field changes fromStringtoPath; messages anddescribeoutput stay byte-identical.Acceptance criteria
IoError.pathis declared asPath; allIoError(...)construction sites (about 30 instd/fs,std/io,std/process, the compiler) pass aPath, and all read sites handle aPath.IoErrorof a native from itspathparameter yields thePathform (verify against what #419 landed before changing anything).std/fs/testscover the error path: thepathof anIoErrorfor a missing file reads back as thePaththat was passed, and its text is unchanged.docs/design/PATH.mdstatus paragraph says step 3 is in; slice 2 stays open for step 4. Docs regenerated intoskills/as needed;tools/check-commits.shclean;sh tools/gates.sh agreen in forge CI.Seed
Decide first, from
CLAUDE.md"Seed and breaking changes": if the change needs a seed that does not exist yet (the field type changes in a form the published seed4b3045d31334cannot compile), do NOT land it in one go; push the teaching half as its own commit and report in the release comment what the seed refresh needs. If the published seed compiles both forms, one PR with one Conventional Commit (refactor(fs): IoError.path is a Path) is enough.Dependencies
#68 steps 1 to 2c (all landed). Step 4 (
list,absolutePathanswerPath) follows this one.Part of #68 (epic; do not close it).
Into<Path>signatures (PATH slice 2) #68Into<Path>signatures (PATH slice 2) #68[loop:torbscript] ready: scoped from the epic; the seed question is the worker's first check.
next: ready
[loop:torbscript] claim implement by session:loop-torbscript-20261030 @anthropic:theorben until 2026-10-30T13:00:00Z
[loop:torbscript] claim implement by session:loop-torbscript-20261030 @anthropic:theorben until 2026-10-30T13:00:00Z
Into<Path>signatures (PATH slice 2) #68[loop:torbscript] release: worker finished. The teaching half is PR #681 (head
74e0d095, nativefileReadAllText, CI green, argus requested). The migration (IoError.path: Pathacross std/fs, std/io, std/process and compiler,File.readAllas a wrapper overfileReadAllTextwith a privateReadFailure, PATH.md and fs.md) is done and checked locally (torb check clean, std/fs 41/41) but cannot be pushed until the seed knows the new native. Patches are kept on the loop host. Order: merge #681, run theseedworkflow on main, then a worker rebases and pushes the migration.next: waiting (merge of PR #681, then seed refresh)
Into<Path>signatures (PATH slice 2) #68[loop:torbscript] wait: PR #681 merged. Next is the seed refresh (Actions,
seed, run on main), which is the owner's step; the migration commit is pushed by a worker after it.next: waiting (seed refresh by the owner)
[loop:torbscript] decision: the seed refresh (Actions workflow
seedon main) is a technical step inside this project's own repo, so it is the agent's, not a question for the owner (triage row 3, orion/infra#2731). The wait on the owner is cleared. PR #681 is merged; the migration patches stay on the loop host. Next: an interactive agent turn runs theseedworkflow on main, then a worker rebases and pushes theIoError.path: Pathmigration.next: ready (seed refresh by the interactive agent, then migration push)
ArrayList, the hash tables and the tries onBuffer#55Into<Path>signatures (PATH slice 2) #68Into<Path>signatures (PATH slice 2) #68Into<Path>signatures (PATH slice 2) #68native fnbodies as IR andnative { }blocks #53std/tensoron the CPU #82[loop:torbscript] claim implement by session:loop-torbscript-680-impl until 2026-11-16T02:10:00Z
[loop:torbscript] release implement: #822
Seed check: the newest published seed
56ea5b416df5(seeds.txt, 2026-11-15) is built from a commit 157 commits after the merge of #681 (6ec3571c), and main HEAD6b2b420ais 21 commits ahead of it, so the seed knowsfileReadAllText; the migration lands as one commitrefactor(fs): IoError.path is a Path. The old patches (base 4b6c139c) were applied onto current main: one conflict inFile.list/namesOfresolved (kept main'snamesOf,listStoragetakesInto<Path>), plus newIoError(...)test sites fixed instd/fs/testsandtools/release-sync/tests. No local builds, gates or bootstrap run (CI only); onlycheck-commits.shwas run locally and is clean. Review by argus requested.next: waiting (forge CI and merge-gate review of PR 822)
std/networkaddresses and network interfaces (OS slice 5) #129[loop:torbscript] claim review by session:loop-torbscript-680-fix until 2026-11-16T09:35:00Z
Reason: PR #822 (head
8305675) is mergeable but forge CI is red onci / tier A (linux-x64),ci / tier B (linux-x64)andci / tools/release-sync and tools/registry (linux-x64); the merge gate (argus) has only a pending review request. A fix worker reads the failed runs, fixes the branch and re-checks CI.[loop:torbscript] checkpoint review by session:loop-torbscript-680-fix: PR #822 head
8305675d. The red tier A, tier B and release-sync/registry jobs were not a code failure: run 3102 was cancelled (no test failure in any log; the logs end together at 03:14Z) and PR #822 is mergeable, main only gained CLI/book commits that do not touch std/fs. I reran CI on the same head (run 3117/3167, no new commit). Since 03:33Z that run is still queued: the forge runner pool is saturated by long-running and queued runs of other PRs (3162, 3165, 3164 and a queue of 8+ runs). Next: wait for the queue, then read the CI result; if red, a code fix round follows. Claim kept until 2026-11-16T09:35:00Z.[loop:torbscript] note: PR #822 landed as a merge commit (
17298cd0), so main's push check 'ci / commit messages' is red (tools/check-commits.sh refuses merge commits; main is linear). Content is fine; the check clears with the next rebase or squash landing. Rewriting main needs a force push, which is Torben's call, not the loop's.next: waiting (next landing on main)