Skip to content

feat(file): discover and resolve land; kind-honest activation; the ordering edge - #615

Merged
David-Noble-at-work merged 3 commits into
developfrom
explicit-conversion-docket
Aug 23, 2026
Merged

David-Noble-at-work merged 3 commits into
developfrom
explicit-conversion-docket

Conversation

@David-Noble-at-work

Copy link
Copy Markdown
Contributor

Phase 4, PR 3 of the resource-construction campaign (docs/plans/resource-construction.md) — the
explicit-conversion docket. Closes #611; phase 4's code completes with this merge.

The two actions (4-resource-management.md §5.7): file.discover(path, kind?="entry", after?) —
lstat, the entry itself, no follow — and file.resolve(path, kind?="entry", after?) — stat, the full
chain, the TERMINUS's identity, confinement judged against the resolved root (macOS's symlinked temp
roots would otherwise false-refuse). EntryKind is a named enum with explicit values and the full
marshal surface; the entry zero value is the permissive default; Stop-only throughout; results intern
as discoveries and activate through VerifyExistence — a discovery of a claimed path reaches the
claimed entry (one identity, both doors).

The pure ordering edge (§5.7 rule 8): after, typed op.OrderingEdge — the scenario's sharp
assertion caught after any silently not ordering (an invocation bound to an any-typed parameter
captures the flow-combinator convention, not its promise); the dedicated type carries the contract and
discards the delivered value by type. En route the generator's defaults vocabulary was made uniform: a
nil default always emits the bare-optional token (the old rule panicked the generator itself on
struct-kinded nil defaults; one bootstrap hand-patch of the gen file, then regeneration reproduced the
fix from the corrected generator).

The runtime grammar (§5.7 rules 3 and 9): NormalizeRuntimePath — plan-space rules as authored,
plus fsroot.RelWithin's under-root rebase (the capability added to fsroot, where path/root questions
live); machine-absolute outside the root refuses as confinement; the leading-slash sharpening (the
machine reading wins at run time) is recorded as rule 9.

Kind-honest activation (door one of the false-claim taxonomy): per-kind Exists — lstat plus kind
test on all three kinds; SymbolicLink's lstat-only predicate was itself kind-blind. The writ audit's
find: migrate's layer registration moved a DIRECTORY through a *Regular claim (the #585 C2 recorded
kind-looseness) — retired by file.MoveDirectory (a *Directory-claimed sibling over the shared
kind-agnostic move core), with writ migrate switched onto it.

The Entry-slot refusal lands at the planner's binding seam (shaped: "a claim asserts a kind and an
interface asserts none"); t.symlink joins the harness as the OUT-OF-BAND actor (plain os.Symlink — no
provider, no catalog) that the kind-honest scenario needs at the starting line.

Acceptance — explicit-conversion suite items 4–13 all green: ten new judgment stars (the
discover-after-exec skip lifted) plus Go pins — the per-OS runtime-dialect table, RelWithin,
EntryKind round-trip and lstat-strict admits, and the kind-honest Exists matrix whose
symlink-to-regular row is the door-one fix pinned. Authoring findings recorded: $PWD is not
Windows-portable through the star shell (item 9 split star/Go) and shell.Result does not convert to
string.

Refs #581, #586.

Gate: make test 103 ok / 0 fail; make vet clean under darwin, windows, and linux; gofmt -l clean.

@David-Noble-at-work David-Noble-at-work self-assigned this Aug 23, 2026
@David-Noble-at-work
David-Noble-at-work merged commit 516db84 into develop Aug 23, 2026
8 checks passed
@David-Noble-at-work
David-Noble-at-work deleted the explicit-conversion-docket branch August 23, 2026 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

file.discover and file.resolve; kind-honest activation

1 participant