Summary
The root AGENTS.md written by agent init is the one file every coding agent loads by default.
It currently teaches diagnostics only — skills, find_guidance, doctor, telemetry, drift
receipts — and says nothing about how to build with NetScript. The file that does teach the
architecture, apps/<app>/AGENTS.md, is never referenced from it.
The result is that an agent starts with a complete picture of how to investigate NetScript and no
picture of how to use it, and the guidance that would fix that sits in a nested file it is never
told about.
Evidence
Fresh 0.0.6 scaffold + agent init --host all --with-docs, and a Wave 7 build run on it
(Claude Opus 5, max effort, ~1.5h, 7 commits).
Root AGENTS.md — 1,655 bytes, loaded by default. Mentions of build surfaces:
| Symbol |
Occurrences |
definePage, withResource, staleTime, withForm |
0 |
defineRouteContract, query factories, dehydration, optimistic |
0 |
| contract → service → SDK → page flow |
0 |
pointer to apps/<app>/AGENTS.md |
0 |
It is entirely find_guidance / search_docs / doctor / aspire otel / drift-receipt guidance.
That content is good — it is simply only half the job.
App-level apps/<app>/AGENTS.md — 2,073 bytes, not referenced from root. This file is genuinely
strong: it names the canonical local examples to inspect, gives the MCP path
(list_api_services → list_service_operations → get_operation_schema) before hand-writing a request,
and lays out a five-step default architecture — contract → client and query factories in the
resource-local (_lib), withResource + definePage layers, QueryIsland + useMutation with
canonical query keys, live stream where needed, withForm for route-bound mutations — plus the three
ui:add verbs and an explicit copy-versus-delete rule.
What the run actually did, having loaded the root file and not followed the app file:
(_lib) used in 0 files (the app guide says query factories live there)
ui:add invoked 0 times (the app guide lists three verbs)
- NetScript MCP calls: 0 (both files point at
find_guidance)
- Deleted
routes/(_components)/dashboard-view.tsx — the first file the app guide says to inspect
- Ended with 0 route contracts, 0 dehydration/prefetch, ~0 optimistic UI, and one dead partial
CLI adoption was otherwise strong (25 db, 11 contract, 6 plugin install), so this is not an
agent that ignored tooling in general — it followed what it was given and never saw the rest.
Why this is high leverage
AGENTS.md is the only file with a guaranteed read. Everything else — offline docs, MCP, /design,
the app guide, the scaffold examples — depends on the agent choosing to go there. Six consecutive
measured runs across waves 4–7 have shown near-zero discovery of exactly those optional surfaces.
Fixing the guaranteed file is strictly cheaper than trying to make six optional ones more attractive.
Target contract
Root AGENTS.md should, in addition to today's diagnostics content:
- state the architectural spine in a few lines — database-derived schemas → contract → service →
typed SDK and query factories → definePage composition → islands — so an agent knows the intended
shape before it invents one;
- link
apps/<app>/AGENTS.md explicitly as the build guide for app work, and say that it exists;
- name the
ui:add verbs as the way to create routes, islands and tables;
- keep it short. This is a pointer surface, not a tutorial — the depth belongs in the MCP and the
offline docs, both of which already have it.
Acceptance
Boundaries
Complements #1672 (generated guidance must teach the Deno toolchain) — same file, different gap: that
issue is about the runtime's tooling, this one is about NetScript's own architecture and the
unreferenced app-level guide. Does not change the MCP corpus (#1201) or the scaffold's example routes
(#1333); both are fine and both are already correct.
Provenance
Wave 7 run 3 (ceiling probe, 0.0.6), evidence in
agent-posts/wave-7/runs/PROCESS-LEDGER.md. Filed 2026-08-17.
Summary
The root
AGENTS.mdwritten byagent initis the one file every coding agent loads by default.It currently teaches diagnostics only — skills,
find_guidance,doctor, telemetry, driftreceipts — and says nothing about how to build with NetScript. The file that does teach the
architecture,
apps/<app>/AGENTS.md, is never referenced from it.The result is that an agent starts with a complete picture of how to investigate NetScript and no
picture of how to use it, and the guidance that would fix that sits in a nested file it is never
told about.
Evidence
Fresh
0.0.6scaffold +agent init --host all --with-docs, and a Wave 7 build run on it(Claude Opus 5, max effort, ~1.5h, 7 commits).
Root
AGENTS.md— 1,655 bytes, loaded by default. Mentions of build surfaces:definePage,withResource,staleTime,withFormdefineRouteContract, query factories, dehydration, optimisticapps/<app>/AGENTS.mdIt is entirely
find_guidance/search_docs/doctor/aspire otel/ drift-receipt guidance.That content is good — it is simply only half the job.
App-level
apps/<app>/AGENTS.md— 2,073 bytes, not referenced from root. This file is genuinelystrong: it names the canonical local examples to inspect, gives the MCP path
(
list_api_services → list_service_operations → get_operation_schema) before hand-writing a request,and lays out a five-step default architecture — contract → client and query factories in the
resource-local
(_lib),withResource+definePagelayers,QueryIsland+useMutationwithcanonical query keys, live stream where needed,
withFormfor route-bound mutations — plus the threeui:addverbs and an explicit copy-versus-delete rule.What the run actually did, having loaded the root file and not followed the app file:
(_lib)used in 0 files (the app guide says query factories live there)ui:addinvoked 0 times (the app guide lists three verbs)find_guidance)routes/(_components)/dashboard-view.tsx— the first file the app guide says to inspectCLI adoption was otherwise strong (25
db, 11contract, 6plugin install), so this is not anagent that ignored tooling in general — it followed what it was given and never saw the rest.
Why this is high leverage
AGENTS.mdis the only file with a guaranteed read. Everything else — offline docs, MCP,/design,the app guide, the scaffold examples — depends on the agent choosing to go there. Six consecutive
measured runs across waves 4–7 have shown near-zero discovery of exactly those optional surfaces.
Fixing the guaranteed file is strictly cheaper than trying to make six optional ones more attractive.
Target contract
Root
AGENTS.mdshould, in addition to today's diagnostics content:typed SDK and query factories →
definePagecomposition → islands — so an agent knows the intendedshape before it invents one;
apps/<app>/AGENTS.mdexplicitly as the build guide for app work, and say that it exists;ui:addverbs as the way to create routes, islands and tables;offline docs, both of which already have it.
Acceptance
AGENTS.mdnames the contract → service → SDK → page spineapps/<app>/AGENTS.mdand states what that file is forui:addroute/island verbsui:addor non-zero MCPfind_guidanceusage, or an explicit recorded rejection — silence is a harness failure, not an agent failure
Boundaries
Complements #1672 (generated guidance must teach the Deno toolchain) — same file, different gap: that
issue is about the runtime's tooling, this one is about NetScript's own architecture and the
unreferenced app-level guide. Does not change the MCP corpus (#1201) or the scaffold's example routes
(#1333); both are fine and both are already correct.
Provenance
Wave 7 run 3 (ceiling probe,
0.0.6), evidence inagent-posts/wave-7/runs/PROCESS-LEDGER.md. Filed 2026-08-17.