# Seeds public Complex Node

Base URL: this website origin (relative endpoints). Transport: direct NWP HTTP Overlay, JSON only,
NWP 0.22 subset using LabAcacia.NPS.NWP 1.0.0-alpha.19 models. No visitor enrollment.
Fetch /nwp/public/.nwm, /nwp/public/.schema and /nwp/public/actions.
Fetch any action params/result anchor with `/.schema?anchor_ref=...`.
Business catalog: /agent/catalog.json.
This deployment does not claim full GEO or Node Profile conformance.

## Query

```bash
curl --fail --silent --show-error \
  -H 'Content-Type: application/nwp-frame' \
  -H 'Accept: application/nwp-capsule' \
  --data '{"frame":16,"anchor_ref":"sha256:d815ced2669444bc1ad11f52324c2897b266b711a3ba8c04f647aca8f90b70e4","limit":5}' \
  /nwp/public/query
```

Response: `{"anchor_ref":"sha256:d815ced2669444bc1ad11f52324c2897b266b711a3ba8c04f647aca8f90b70e4","count":N,"data":[...]}`.
`count` equals the number of returned rows; an empty publication returns count 0.
Rows follow the schema: id, collection, name, text, source_url, language, updated_at,
version. Records come only from current published public projections; read source_url
for full content. Text over 24,000 characters is explicitly shortened. Sources may be
unconfigured; a failure returns an error, never invented merchant facts.
Select schema fields with `fields`, filter strings with `$eq`/`$contains`, combine with
`$and`/`$or` (max depth 4, max 10 children). Ordering is stable ID; custom ordering,
vectors, aggregation, subscriptions, graph traversal and token budgets are unsupported.
Catalog and queries return an ETag identifying the current registry/knowledge view.
Compare ETags across reads and refetch if they differ.
Site identity metadata is read separately; this is not an immutable multi-request bundle.
Use `next_cursor` as `cursor`; if the publication/query changes, restart without it.

## Public actions

Fetch the catalog for IDs and input/output JSON Schemas. Send
`{"frame":17,"action_id":"seeds.pages.get","params":{"slug":"/"}}` to
/nwp/public/invoke using the same headers. Success is a CapsFrame whose
`data[0].result` follows the action output JSON Schema; `result_anchor` describes this
wrapper. Missing/unpublished resources return null inside the result.
Only synchronous, public, read-only actions are installed. Idempotency keys are rejected;
current reads are never replayed from a response cache. Creating websites, submitting
forms, customer records, admin APIs and ActNode actions are outside this public boundary.

## Limits and recovery

Request body: 32768 bytes; response: 1048576
bytes; query results: default 20, clamped to 50; source records:
500 total (capacity overflow fails closed); timeout: 5s;
concurrency: 8; rate: 120 requests/minute,
globally per process including discovery. Cancellation is cooperative; trusted plugins must
honor the deadline. A noncooperative provider keeps its scope and concurrency slot until it settles. Multi-instance ingress must add a shared limit.
JSON is the only encoding. HTTP 400/422 means invalid request, 404 unknown action/route,
406 unsupported Accept, 413 oversized body, 415 unsupported Content-Type, 429 exhausted
budget (Retry-After), 503 unavailable dependency or expired deadline.
NWP errors use application/nwp-error+json with status/error/message; no partial success.
X-NWP-Request-ID is echoed when present; conflicting body/header IDs are rejected.
On failure use readable source pages, then retry only these read-only operations.
All generated responses use Cache-Control: no-store. Publication, correction, withdrawal
and deletion are observed on the next read from the authoritative store; there is no
generated snapshot/cache to restore withdrawn content. An already-running read can
complete using the public state it observed before withdrawal.