Skip to content

The taxonomy reshape: unexported base, AnyEntry variant #617

Closed

Description

@David-Noble-at-work

Phase 1 of any-entry-claims.md.

  1. file.Resource → unexported file.entry — the shared implementation, unnameable and un-hand-buildable outside the package. Its name pairs with the interface (Entry/entry). Embed sites and composite literals follow (&Regular{Resource: *base} → {entry: *base}); promoted access (x.SourcePath, x.Path()) is unaffected, but code naming the embedded field as .Resource is swept, not assumed absent.
  2. file.AnyEntry lands: embeds entry, declares sealedEntry(), and announces with a discovery constructor — the constructor claiming and rehydration both key on. The taxonomy then equals exactly the announced set.
  3. AnyEntry.Exists is lstat plus "any taxonomy kind admits" (the predicate EntryKind.admits already spells for EntryKindEntry) — explicitly NOT the base's following Stat: a dangling link must count as present, a FIFO must not.
  4. AnyEntry's content identity delegates to the observed kind at call time, so an unasserted claim does not silently lose drift detection before it resolves.

Expected to be behavior-neutral: the suite must stay green across the rename with no test edits beyond the field name.

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions