Skip to content

The word is scope, not target: TargetName, TargetSpec, TargetOrder, TargetHome and TargetSystem become Scope*, and writ.targets becomes writ.scopes; a target stays a path #925

Open

Description

@David-Noble-at-work

The writ lifecycle surface

The ruling (#762, 2026-08-31; this lane ruled 2026-09-23)

The word is scope, not target. Language matters. A scope is a named execution context: a name, a target
root, a confinement boundary, an elevation posture, and its own graph (2.4-hermeticity-guarantees.md is the
authority). A target is a destination path -- where one file lands. The code uses Target for both, four lines
apart in one file: builder.go:49 "Target is the absolute path to the target file"; builder.go:57
"TargetName is the target scope". A reader cannot tell from the word which is meant, and the lifecycle work that
follows (--scope, per-scope elevation, the lifetime as a whole writ deploy invocation across scopes) needs the
word to mean one thing.

The rename

From To Why
TargetName ScopeName it names a scope
TargetSpec ScopeSpec it describes a scope: name, root, elevation
TargetOrder() ScopeOrder() the order scopes run in
TargetHome() / TargetSystem() ScopeHome() / ScopeSystem() the two builtin scopes
writ.targets writ.scopes config key, user-visible; the schema and the defaults, both
TargetRoot unchanged it is a path: the scope's root directory
Target, Entry.Target unchanged it is a path: where the file lands

Mechanical; no behavior changes. Doc comments, test names and error strings that say "target" for a scope change
with the identifiers. builder.go:49 and :57 then read as two different words for two different things.

Evidence of completion

  • no identifier in cmd or pkg says Target where it means a scope; TargetRoot, Target and
    Entry.Target remain, and each's doc comment says it is a path
  • writ.scopes in schema/devlore-config.json and schema/defaults/writ.yaml; writ.targets refused
  • every error string and narration line that names a scope says "scope"
  • make check green; both VMs: deploy common noblefactor-ops, upgrade, unchanged results

Plan and design documents

Kind Document
Plan docs/plans/feature/762-lifecycle-scopes.md Phase 3, the vocabulary sweep; a lane plan arrives with the branch
Design docs/architecture/2.4-hermeticity-guarantees.md, 10-command-line-interface.md §4.1

Activity

  1. David-Noble-at-work commented on Oct 22, 2026

    @David-Noble-at-work
    ContributorAuthor

    Where the branch stands, 2026-10-21

    feature/925-scope-not-target holds 22 commits, pushed between 2026-10-01 and 2026-10-03 and never opened as a pull
    request. Its worktree on Danoble-MBP-A, ~/Workspace/NobleFactor/devlore-cli.925-scope-not-target, holds 32 more
    uncommitted plan edits, each status: in-progress to status: active, #1027's change. Develop has none of it: develop
    still names TargetName in 7 Go files and ScopeName in none, and has moved 21 commits past the branch point.

    What the 22 commits hold:

    Found parked on 2026-10-21, against agent-rules rule 8, by the session working NobleFactor/noblefactor-engprod#301. Kept,
    not deleted: it holds a feature, and it is #916's schedule's to finish.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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