Proposed adr-003 · 2026-10-03

A Repository's Declaration Takes Effect Only by Explicit Registration

Context

A project declares what openbyname may do for it in a .openbyname/ folder at its root: places relative to named roots, backends, applications, and tasks the handler may run after redemption (adr-002). That folder travels with the repository, so any clone of any repository — including one the person does not control — brings a declaration with it. If a declaration took effect by being on disk, cloning a hostile repository would be enough to make the person's machine serve its places and run its tasks through obn:// links that any web page can hand to the operating system.

Decision

A project's .openbyname/ takes effect only when the person runs `openbyname project register <root>`. Registration exports project.ncl under the installed project-source contract, resolves its named roots and backends to this machine's values given on the command line, refuses any place whose path is absolute or leaves its root, and — when the declaration holds tasks — refuses unless --approve names the sha256 of project.ncl as it is now, printing that digest in the refusal. What the handler reads is the registered JSON, never the folder: a later change to .openbyname/ does nothing until it is registered again, and doctor reports the drift. Nothing — no installer, hook, clone or consumer program — registers a declaration with tasks on the person's behalf, and a consumer that registers on their behalf never passes --approve.

Constraints

Alternatives considered