Cotal TypeScript packages
    Preparing search index...

    Function canonicalCwd

    • #1616 proof item 5 — ALIAS NORMALIZATION POLICY. One clone reached through a symlink and through its realpath is ONE writable directory, and the single-writer rule keys on identity, so the two forms must collapse before any claim is taken. THE CANONICAL FORM IS THE REALPATH: it is the form the kernel and the child's own process.cwd() report, so a claim keyed on it matches what any concurrent run or imperative spawn path observes, whichever alias that caller typed. The symlink path is NOT canonical — normalizing toward it would require resolving every other alias to it, which has no unique answer. Resolution is done ONCE, on the serving host, before the claim and before launch; an unresolvable path is a refusal, never a pass-through of the raw string.

      Parameters

      • cwd: string

      Returns string