Skip to content
This repository was archived by the owner on Oct 13, 2026. It is now read-only.

feat: a nook runs code when it has a run command, not when it says so - #7

Merged
vish727 merged 1 commit into
mainfrom
eng-24-infer-from-run
Sep 22, 2026
Merged

vish727 merged 1 commit into
mainfrom
eng-24-infer-from-run

Conversation

@vish727

@vish727 vish727 commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

Vishal's call, relayed: drop type from the manifest and infer from run. Doing it now, before anything downstream teaches agents a field we are removing.

{ "name": "board", "run": "python app.py", "port": 8000, "secrets": ["SLACK_TOKEN"] }
  • IsService() is Run != "". A nook is a folder; if the manifest has a run command, something runs it, and if it does not, the folder is a page.
  • Old files still parse. type is read and ignored — including a value nobody ever defined, which used to be a hard error and now simply does not decide anything. Nothing on disk breaks.
  • It is never written back out. json:"-", so a pull, an export, or nook init cannot teach it to anyone again. There is a test asserting the marshalled form has no type.
  • A manifest claiming "service" with no run command is a page, which is the honest reading once the field stops being authoritative.
  • Everything that only means something alongside run — port, secrets, egress, cron, source — now says so by name when it appears without one.
  • nook init writes { "name": "..." }. The five examples and SKILL.md lose the field.

Source visibility is unchanged: editors-only when there is a run command.

nookd needs a v0.5.0 tag of this before its own half can land — that PR reads Run rather than the type and drops "service nook" from everything user-facing.

Part of ENG-24

type is gone from the manifest. A nook is a folder; if the manifest has a run
command, something runs it, and if it does not, the folder is a page. There is
nothing left to declare and nothing to get wrong.

Files written before this still parse: type is read and ignored, including a
type nobody ever defined, so nothing on disk breaks. It is never written back
out, so a pull, an export, or nook init never teaches it to anyone again. A
manifest claiming "service" without a run command is simply a page.

Everything that only means something alongside run — port, secrets, egress,
cron, source — now says so by name when it appears without one.

nook init writes { "name": "..." } and the examples and SKILL.md lose the field.
@vish727
vish727 merged commit 0026717 into main Sep 22, 2026
1 check passed
@vish727
vish727 deleted the eng-24-infer-from-run branch September 22, 2026 03:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant