# Camber `camber.bend` delivers fixed prepared applications, scoped hooks, once-only error mapping, strict typed inputs, validated packed responses, and public serving through published HTTP0.44.0.1. Package version: `0.18.0.0`; CI publishes after merge, never by hand. Entered-policy notifications run inline at explicit application-only or actual transport completion boundaries; optional redacted access logging uses published Notch0.3.0.0. ```bend import bend-kit-camber@0.18.0.0/camber.bend as Camber import bend-kit-camber@0.18.0.0/input.bend as Input import bend-kit-camber@0.18.0.0/notices.bend as Notices import bend-kit-http@0.44.0.1/http.bend as Http import bend-kit-http@0.44.0.1/pure.bend as Pure import bend-kit-time@0.3.0.2/pure.bend as Time ``` `camber.bend` does not re-export `input.bend` or `notices.bend`. Import each file you call. HTTP model types, headers, codecs, and server configuration come from `Pure`; effects and server handles come from `Http`. Both imports must use `bend-kit-http@0.44.0.1`. Router uses `bend-kit-router@0.2.0.0` and JSON uses `bend-kit-json@0.7.3.0`. Notices use pure `Time.Duration`; `Http.clock.mono()` returns that type, unlike runtime `Time.mono()` from `time.bend`. ## API ### Fixed applications and direct dispatch `application(~A, ~K, ~P, routes, groups, context, root)` returns `Result>` without effects or listening. Action tags `A`, application context `K` (which may include the owner's `Context`), and policy declarations `P` are `Data`. Routes are `Route{method, pattern, action, groups, policy}`; groups are `Group{id, ancestors, policy}`, with root-to-leaf IDs. Construction rejects unknown/duplicate groups, inconsistent ancestry, invalid patterns/methods, duplicate method/path shapes, and shared-path ancestry conflicts. Group declaration order does not matter. Executable dispatch uses `P = Policy`: `policy(~H,id,before,transforms)` fixes declaration order and prepares reversed transforms once. The application retains prepared `GroupPlan` chains for method misses and generated OPTIONS; dispatch never resolves group ancestry again. `describe(~A, ~C, ~P, app)` returns the published Router descriptions, including registered method/pattern/group membership and parameter-route methods hidden by a more specific literal path. No listener is needed. `dispatch(~A, ~S, ~K, ~E, ~H, ~N, ~before, ~after, ~run, ~mapper, ~notify, ~report, observer, access, app, state, req)` returns `IO(Completion)` through one prepared Router selection pipeline. `S` is `Type`: a whole affine resource bundle or ordinary request-local Data, threaded exactly once through hooks, handlers, mapping and recovery. The other types remain `Data`; `N` is the copied notification observer, never an affine resource hidden in a receipt. The executor has type `A -> S -> K -> Match> -> Pure.Req -> IO(S & Result<&2,&1,Error,Pure.Res>)`. It performs explicit decoding and business work only after selected before hooks. An ordinary `Pure.Req -> IO(Pure.Res)` handler fits by returning its response as `Done`, without converting its packed body. Before hooks receive `H -> S -> K -> Metadata -> IO(Step)`, where `Metadata{method,target,headers}` contains no body. `Continue{state}`, `Early{state,response}`, and `Reject{state,error}` preserve the request-local state; early exits skip subsequent scopes, decoding, and the executor. Root hooks precede target parsing. Path groups run for 405/generated OPTIONS, but route hooks do not. Empty scopes are entered too. Transforms receive `H -> S -> K -> Pure.Res -> IO(S & Result,Pure.Res>)` and unwind only entered scopes, inner-to-outer in reversed declaration order. `Match{target,params,groups,method,pattern,policies}` preserves strictly parsed query/captures and effective declarations. Absolute-form authority replaces Host only after global hooks; implied HEAD keeps the original request method while selecting GET. Direct dispatch retains the original affine packed body and never suppresses HEAD/204/304 response bodies. `Error` distinguishes `ApplicationError{error}`, `Framework{status,allow}`, and `ResponseInvalid`. The application's closed mapper receives `S -> K -> Error -> IO(S & Result,Pure.Res>)` at most once. `default.mapper(~S,~K,~E)` produces RFC 9457 Problem Details for framework 400/404/405/415 and an empty generic500 otherwise. Deliberate early responses bypass mapping. Transform failure stops all remaining transforms; final validation failure maps without restarting transforms. Mapper failure/invalid output and failures after mapping return the fixed empty500. Runtime crashes/stalls are not expected failures and are not contained. `Completed{state,response,entered,mapped,stopped}` records actual application completion. `entered` retains the actual immutable `Policy` values inner-to-outer, including empty scopes, using O(1) stack pushes; IDs are labels, not unique identities. Notifications consume those values without reconstructing scopes from IDs. `mapped` records one mapper invocation; `stopped` records halted recovery/unwinding (including transform/validation failure or a failed/invalid mapper result), not ordinary deliberate early completion. This value itself does not claim a socket write or peer receipt. Framing failures never call dispatch. `plain(~handler,req)` remains a standalone validation adapter returning `IO(Result<&2,&1,ResponseError,Pure.Res>)`; it is not a router or a hook pipeline. All routed consumers use `dispatch`, with explicit empty policies and the default mapper when no hooks are needed. `dispatch_check.bend` is the compiled acceptance consumer (also called by `check.bend`): registration rejection, reversed insertion order, path-first precedence, per-method captures, exact slashes, absolute authority Host, strict target/segment decoding, 404/405/Allow, explicit/implied HEAD/OPTIONS, OPTIONS *, hidden descriptions, prepared ancestry/policies, typed context, and a NUL/FF/80/slash packed-byte plain-handler fixture. ### Checked typed inputs Import the package's `input.bend` module as `Input`. `path(~I, ~convert, params, key)` reads the router's already-decoded capture without percent-decoding again. `query.scalar(~I, ~convert, query, key)` requires exactly one value; repeats (including escaped spellings of the same key) and missing values fail400. `query.list` converts every matching value in encounter order, returning an empty list when absent. Both use the published Target query result, never a competing target/query parser. `u32` requires nonempty ASCII decimal text and checks overflow before arithmetic. `Input.raw(body)` moves the same affine packed bytes unchanged. `Input.text(headers, body)` accepts `text/*`, absent or UTF-8 charset, and identity content encoding; unsupported media/charset/encoding fails415, malformed UTF-8 fails400. Its packed byte walk reuses published Target's strict RFC3629 state machine, not `Pure.text` replacement or a linked-list octet copy. `Input.json(headers, body)` uses default depth64; `json.with_depth(headers, body, cap)` sets the maximum array/object nesting (scalars have depth0). Media is case-insensitive `application/json` or `application/+json`; ignored parameters may contain quoted semicolons, and charset must be UTF-8. Published Json0.6.0.0 performs strict bounded parsing before an unrestricted tree can exist. Camber then rejects repeated decoded keys in every object, including objects nested in arrays, preserving the affine tree, object/array order and exact packed number text. Neither decoder decompresses or caches the body. `number.u32` is an explicit checked conversion of a JSON number; decimal fractions, exponents, signs and overflow are rejected rather than coerced. Input helpers return `Result<&2,&1,U32,I>`, with expected status400/415. `C.input(~I,~E,result)` adapts them to the existing `Error` mapper. Call `execute(~I,~S,~K,~E,~H,~decoder,~handler,state,config,match,req)` from dispatch's `run` template: its decoder returns a validated typed `I` or expected error; only success invokes the business handler. This is an executor inside the single public dispatcher, not another pipeline. All applicable before hooks therefore precede body and typed path/query decoding. `input_app.bend` is a reusable public-dispatch consumer with typed lookup, raw, text, document, checked-number and validated creation inputs. `input_check.bend` and `run_inputs.py` exercise that same consumer directly and through finite published Http socket IO. Real file journals distinguish authentication, decoding, business effects and mapping. Historical ownership/surface/author research stays unchanged; it is not the new public API or its acceptance evidence. ### Explicit outputs and expected failures `json(~T, ~encode, status, value)` accepts an explicit `T -> Json.Val` public encoder and produces `application/json` using published Json `0.5.1.0`. It never reflects or serializes domain fields itself. `text(status, value)` encodes code-point text with the existing UTF-8 encoder and sets `text/plain; charset=utf-8`. `raw(status, Pure.Body)` moves packed bytes without a guessed content type; `empty(status)` has no body or content type. These helpers return `Pure.Res`; the final dispatch/plain boundary validates status and headers. `redirect(status, location)` returns `Result<&2, &1, ResponseError, Pure.Res>`. Only 301/302/303/307/308 with a nonempty safe Location succeed; other inputs return `InvalidRedirect`. Location is an HTTP field octet String, not an implicitly encoded Unicode URL. `validate(response)` returns `Done` with the original packed body and repeated header values, or expected `Fail{InvalidResponse{}}`. It accepts status 200..599, lowercase RFC token names, and octet field values without controls except HTAB. Header values must be 0..255: shared Http concatenates header Strings and packs each Char's low eight bits, so accepting a larger code point could truncate into CR/LF. Encode non-ASCII header/URL bytes explicitly. Obs-text 128..255 is preserved. Content-Length, Transfer-Encoding, Keep-Alive, Upgrade, TE, Trailer, and Proxy-Connection are prohibited. Every Connection value must be exactly `close`. Validation neither strips nor coerces invalid output. Standalone `validate`/`plain` return expected failures before transport. Scoped `dispatch` maps them once after transforms and returns the final safe response; public serving runs that same dispatch. This is a breaking dispatch/application-policy change from 0.2.0.0. All public dispatch consumers now inspect application completion; ordinary handler inputs and `IO(Pure.Res)` outputs remain unchanged. ### Bounded dependency owner `start(~K, ~R, ~P, ~I, ~E, ~O, ~create, ~handler, ~destroy, config, capacity, room)` returns `IO(Result<&2,&1,E,Owner>)` after opening exactly `capacity` complete affine bundles. Runtime configuration `K`, principal `P`, input `I`, expected error `E`, and output `O` remain typed `Data`; bundle `R` and completion owner `Owner` are `Type`. The closed initializer receives configuration and a slot index, and returns `Result`. It must close partial handles within a failed bundle; Camber closes all previously completed bundles on expected initialization failure. `owner.context(..., owner)` returns the same affine owner beside a copied `Context` for concurrent requests. Only the inbox is copied; the actual `IO.fork` completion future remains owned once. `call(..., context, principal, input)` returns `Success`, `Expected`, `Exhausted`, or `Stopped`. The closed handler receives and returns one whole resource bundle. Opposite operation orders inside one bundle cannot cause separate-set acquisition deadlock. Only disposable `Data` outcomes cross caller replies; external resource handles return through the private inbox first. `submit(..., context, principal, input, reply)` is asynchronous: callers own a fresh one-slot reply, receive at most one outcome, and close it. Early reply disposal does not strand bundles or capacity. Serving uses wrapper-owned, one-slot body/response pipes containing only disposable packed HTTP buffers, never external handles. It consumes the response only after the Data owner reply confirms bundle restoration, and drains/closes both pipes on success or capacity rejection. `inspect(..., context)` returns counts (`capacity`, `in_use`, `completed`, `rejected`) or `None` after closure. `in_use` includes a handler that stalls or loses its bundle; capacity never silently replenishes. Available capacity is `capacity - in_use`. `close(..., owner)` consumes the affine owner and returns `OwnerClose`. `OwnerBusy{owner,counts}` preserves the same owner/future for retry; no resources are closed while work holds them. `OwnerClosed{}` follows explicit bundle destruction and joining the actual actor result. Close cannot be repeated or raced through copied request contexts; only stop controls are copyable. Calls through retained contexts afterward return `Stopped`. This breaking lifecycle migration replaces context-based close; forced process termination still cannot promise cleanup. ### Public shared-transport serving `server.config(port)` explicitly chooses loopback `127.0.0.1`, body1048576 bytes, headers65536 bytes,128 connections,128 active requests,128 buffered reservations, header5000ms and body/idle/write30000ms. Public binding and raised limits require an explicit `Pure.ServerConfig`; no transport defaults leak into Camber. `server.start(~A,~S,~K,~E,~H,~before,~after,~run,~mapper,~destroy,registration,config,bundles)` consumes preowned `List` and the fallible `application(...)` result. It returns `Result<&2,&1,StartupError,Server>`. Registration/configuration/empty-bundle errors precede listening. Real bind failure explicitly destroys every owned bundle once before returning `TransportFailed`; no affine value is silently erased. Only successful binding starts the existing bounded dependency owner. Startup success owns an accepting listener; announce readiness only after inspecting `Done`. `server.control(...,server)` retains the server and returns a copied `Http.ServerControl`. `Http.server.stop(control)` requests quiescence; its Boolean does not attest drain. `server.observer` similarly exposes transport stats. `server.dependencies` returns a copied dependency context for `inspect` counts while retaining the affine owner. `server.run(~A,~S,~K,~H,~E,~done,~observe,~notify,~report,~access,server)` consumes the transport owner, runs the same internal `dispatch.application` core as direct dispatch, waits for published HTTP's actual `ServerExit`, then explicitly closes and joins the dependency owner. `server.close` performs the same cleanup for a started server whose run loop has not been launched. `ServerExit` is affine and contains the transport exit plus `OwnerClosed` or a preserved `OwnerBusy` for retry; Busy is never encoded as a disposable completion. `serve(...)` combines start/run with the same notification/report/access templates and returns expected startup failure or that actual exit; owners needing readiness and stop controls use start/run separately. `done` receives published `TransportCompletion.Completion>` after entered-scope notifications and optional access output. `Dispatched{entered,mapped,stopped}` preserves application metadata separately from status and the actual transport outcome; `CapacityRejected{}` means no application scope/business work entered. The separate raw `observe` receives status/outcome for transport-generated responses too. Neither raw observer invents a peer-receipt guarantee; host acceptance is not peer receipt. Plain `Pure.Req -> IO(Pure.Res)` handlers remain usable inside Camber and beside it through the same published transport. Direct dispatch and live serving share status, application headers and packed body; only live transport adds framing and suppresses HEAD/204/304 body bytes. Exhausted bundles produce503 and close without business work. An inbox wait remains inside HTTP's active/buffered reservations until the wrapper actually returns. `serving_check.bend` and `run_serving.py` exercise real File bundles and explicit yielding gates through a plain published-HTTP control listener. No timers release held work. The smallest native/JS bind-close smoke passed; full direct/live and overload/drain receipts are recorded in [`serving_results.json`](serving_results.json). Historical experimental socket transports, failures and budgets remain separate; they are not the public server. No arbitrary cancellation, handler replay, hard CPU deadline or embedded-server isolation is promised. Manual probes, benchmarks, and the serving, notice, and users harnesses bind port 0 and read each retained listener's port from live output. HTTP servers use the public `Http.server.port` observer after normal startup; raw listeners use `Wire.listen`. The Python harnesses share the readiness parser in `run_owner.py`. Their occupied-port tests keep the blocking socket open until startup fails. Historical evidence keeps its original ports. The aggregate JSON probe uses its existing 180-second observation window for HTTP phases. Its separate Wire read still uses a 200 ms timeout. Shared batch gates stay open until every held worker finishes. Published HTTP0.30.0.0 is `0x8bc87dd4d1e610fe1bf336b567537a8c`; Wire0.4.5.0 is `0x1435aec27074c8141b74747909079afc`. Existing shared HTTP drain evidence remains in [`../http/drain_results.json`](../http/drain_results.json). Actual dedicated native/JS launchd deployment and TLS recipes are in [`deploy/README.md`](deploy/README.md). [`deploy/results.json`](deploy/results.json), invocation6, records all eight final-source cases: cooperative owner completion and actual Store close, platform-forced CPU/IO exit, PID reaping and peer closure within the frozen 5-second grace plus 1-second teardown budget, and unchanged origin-form targets through TLS. These are repository consumers, not new hub modules or hard runtime cancellation. `users.bend` is the reusable four-route consumer over published Camber0.10.0.0, HTTP0.34.0.0 and Json0.6.0.0. Its one affine Store owner holds the map and File; application configuration receives only the copied owner context. `users_direct.bend` and `users_live.bend` exercise that same public application and dispatcher separately. `users_demo.bend` adds a second loopback published-HTTP listener whose only administrative command is `POST /stop`. That listener trusts local processes, is not an authentication or supervisor boundary, and must never be proxied or exposed. It demonstrates cooperative application/store/control joins only; dedicated forced-exit supervision is exercised separately in [`deploy/README.md`](deploy/README.md). The `users*.bend` files are repository examples that consume published packages. They are not published package modules; compile them from this checkout. Examples pinned to Camber0.17.0.1 and HTTP0.40.0.1 keep their old imports until Camber0.18.0.0 publishes; do not mix those types with the new split imports. The demo uses `Bearer seven` for Alice/id7 and `Bearer eight` for Bob/id8. These fixed credentials are not an authentication product. The store is an in-memory map with an owned diagnostic File, not durable database storage. Default operation does not log requests, credentials, raw targets, query values, Host, or domain records. Trace and fault controls belong only to the separate acceptance consumers. ```sh bend camber/users_demo.bend -o /tmp/camber-users /tmp/camber-users 0 0 /tmp/camber-users.journal ``` Use the first `PORT` line as `APP_PORT` and the second as `CONTROL_PORT` in another terminal: ```sh curl "http://127.0.0.1:$APP_PORT/health" curl -H 'Authorization: Bearer seven' "http://127.0.0.1:$APP_PORT/users/7" curl -H 'Authorization: Bearer eight' "http://127.0.0.1:$APP_PORT/users/me" curl -X POST -H 'Authorization: Bearer seven' -H 'Content-Type: application/json' \ -d '{"name":"Cara"}' "http://127.0.0.1:$APP_PORT/users" curl -X POST "http://127.0.0.1:$CONTROL_PORT/stop" ``` For JavaScript, compile to `/tmp/camber-users.js` and run it with `bun` using the same three arguments. `python3 camber/run_users.py --phase full --lane both` runs the sequential direct/live, owner, plain-byte and standalone acceptance. Cumulative source-bound successes and adverses are in [`users_results.json`](users_results.json) and [`users_attempts.json`](users_attempts.json). The successful full invocation contains252 scenario records, including grouped owner/overlap/standalone scenarios with several requests. This is runtime evidence, not a new pure proof, performance budget, or forced-exit guarantee. Two temporary application mutations proved that the existing acceptance checks catch missing name validation and internal-field disclosure. The first returned `201` and created an empty-name user where `400` was required. The second included the synthetic internal secret where exact `{id,name}` bytes were required. All six build/run commands exited naturally; each acceptance invocation failed as expected before live serving. Both mutations were restored to the exact original application hash, preserving the 252 good records. The supported package gate passed with 331 unsafe/foreign exclusions disclosed. Two earlier combined-consumer builds hit 120s/240s guard timeouts; those failures and their forced cleanup remain recorded, not successful compilation evidence. ### Completion notifications and access logging Import `notices.bend` as `Notices`. `Notice{status,duration,mapped,stopped,outcome}` contains an explicit `ApplicationOnly` or `Transport{outcome}` with published HTTP's actual `HostAccepted`, `WriteFailed`, or `IncompleteResponse`. Direct `notify` has type `N -> Policy -> Notice -> IO(Result<&2,&2,E,Unit>)`; `report` is `N -> E -> IO(Unit)`. Live templates use application configuration `K` as the copied observer instead of a separate `N`: `notify: K -> Policy -> Notice -> IO(Result<&2,&2,E,Unit>)`, `report: K -> E -> IO(Unit)`, and `access: K -> Notices.Access`. Expected notification failure invokes owner reporting, then continues remaining scopes; it cannot change the completed response, enter the mapper, or replay committed business effects. `notice.ignore` and `notice.error.ignore` are explicit closed no-op choices. The monotonic boundary is precise: direct `Http.clock.mono` starts before `dispatch.application` and ends after final application response validation. Live timing starts before the private body/response pipes and dependency call, includes that wait and dispatch, and ends at actual HTTP write/suppression completion. Both capture duration once before notifications; all entered scopes see that same duration. Live timing excludes HTTP framing/body reads; both boundaries exclude notification and access-log latency. Callbacks nevertheless remain inline and keep HTTP active/buffered admission reservations until they really return. They run outside the Admission actor and may query real `Http.server.stats`. A stalled callback is still counted, not detached. `Notices.Disabled` produces no access output. `Enabled{Notch.Logfmt{}}` or `Enabled{Notch.Json{}}` selects published Notch output with a closed projection: status, duration_ms, mapped, stopped, outcome, and Notch's time/level/message envelope. No request, raw target, route, body, query, credentials, headers, arbitrary logger context, transport diagnostic, or internal application error enters the projection. Access lines cover Camber Reply completions, including dependency `CapacityRejected`503, not transport-generated responses that never reached Camber. Owner error reporting does not require access logging. `notices_check.bend` and `python3 camber/run_notices.py` passed native/JS direct and real-socket completion acceptance. Distinct actual policies sharing ID7 notify route→group→root on success; root/group/route early exits, target400/404/405/OPTIONS, decoder/handler/transform/validation failures, true mapper failure and invalid-result fixed-minimal500 recovery all retain exact entered order/count. Direct outcomes remain application-only. Live HEAD/204 suppression reports actual host acceptance; an explicit post-file-effect gate allows a definitive SO_LINGER reset before response release, producing actual write_failed notices and a subsequent successful request without replay. Callback failure reports to the owner, leaves the response unchanged, and continues outer scopes even with logging disabled. Stalled callbacks remain counted; callbacks query real admitted counts1/1. Actual enabled/disabled Notch output with body/query/credential/header/internal-error canaries is inspected for safe fields, exact status/mapping/recovery/outcome flags, and nonnegative shared per-request durations. Notifications and logs are operating-process guarantees only. Runtime failure or forced exit of the dedicated process may skip notices, flushing, and resource cleanup. There is no hard CPU cancellation, embedded isolation, or peer-receipt claim. `python3 camber/run_notices.py --small` passed before the full matrix; `--checks` uses the existing Camber package gate. The initial seven fixture checker/quantity/adaptor failures remain append-only, as does an erroneous extra scoped `--check-only` invocation that exited1 solely for339 inherited unsafe/foreign dependencies. That redundant extra gate was removed, not suppressed or rerun. The affected package gate passed, disclosed331 unsafe/foreign entry dependencies (including owner/transport and imported clock/Notch IO), and checked the empty pure-law inventory. Neither that empty inventory nor host-excluded proof checking attests socket, clock, notification or logging behavior; compiled native/JS observations do. The guarded append-only command/output, source hashes, sampled descendant peaks, actual journal facts and listener release receipts are in [`notices_results.json`](notices_results.json). Initial native compilation peaked at7,124,320KiB; the full notification matrix compilation peaked at6,606,864KiB. These are sampled aggregate descendant RSS, not kernel peaks or memory upper bounds. Commands require10GiB disk headroom and kill above20GiB aggregate descendant RSS. Historical adverse and performance receipts remain unchanged. The migrated input consumer also passed four scoped direct native/JS cases (one-time path decoding, authentication before malformed JSON, JSON rejection, and byte-identical packed raw input). The migrated response consumer passed43 actual sockets per lane:21 invalid outputs wrote zero bytes,21 routed invalid outputs wrote one safe empty500, and the final valid output preserved distinct Set-Cookie fields. These reused existing assertions without replacing historical input receipts. A verification-harness timeout-adapter TypeError before launching the response runtime is retained separately, then corrected. `python3 camber/run_serving.py` passed the actual public-serving regression (sampled compilation peak7,311,392KiB); the guarded scoped `bash scripts/publish.sh --check camber` accepted0.6.0.0 for publication, without publishing it. ## Complete-application benchmarks [`bench/PUBLIC.md`](bench/PUBLIC.md) records the public consumer, commands, pinned comparators, semantic differences, frozen criteria and source-bound evidence. It compares published Camber0.6.0.0 with the equivalent prepared raw HTTP application in native single-thread, native default and JS lanes, plus libevent, axum, production Flask, Node HTTP, Fastify, Hono and Elysia. These are repository consumers, not new hub modules; the package version remains unchanged. All234 live parity checks and234 warmups passed across13 implementations and18 shared workloads. The complete measurements contain2,106 live rows,108 direct parity checks and324 direct trials. Successful output parity does not mean performance acceptance: | Frozen gate | Result | |---|---| | Paired framework overhead, live and direct |20/216 PASS;196 FAIL | | Historical live and direct budgets |28/216 PASS;188 FAIL | | Direct-dispatch overhead alone |0/54 PASS for either budget | | Correctly timed sustained overload |0/54 overall PASS | | Work overlap, progress, timeout and recovery |18/162 trial PASS;144 FAIL | The corrected overload run observes real same-PID RSS at or before actual offering-end+10s, independently of outstanding drain. All54 cases stayed within the4GiB steady-window envelope;52 met the64MiB variation ceiling,24 met retained RSS≤initial+128MiB, and54 completed100 error-free recovery requests with p99≤100ms. Actual sample age, late current observations and late recovery starts remain recorded. Pressure resets/errors and the original post-drain timing-gap receipt remain adverse evidence; component successes do not turn any complete overload case into PASS. Overlap trials preserve the original16-permit cases separately from18-permit headroom. All162 completed the actual workload; subsequent recovery latency was within100ms in every trial. Only18 met the complete overlap contract. Same-lane internal BEGIN/END/ORDINARY stamps, actual received timeout bytes, resets, EOF, late delivery and ordinary-request failures remain recorded. Buffered host log receipt is not proof of handler progress. No scheduler isolation, arbitrary handler cancellation or general responsiveness guarantee follows from these measurements. Initial release accepts this measured boundary. The ceilings stay as recorded, and failed rows stay failed. Direct text remains about 85 µs against about 2 µs raw. Overload resets are the connection-cap close already specified for unread sockets; parsed rejection is `503`. CPU overlap stays a Bend limit. None of those three results is relabelled PASS. Pure laws do not prove these host-IO observations. ## Bounds and trust The command inbox has `room` buffered slots (zero uses rendezvous). Resource exhaustion is rejected, never queued waiting for a bundle. Callers blocked submitting to the bounded inbox must be counted inside the caller's admission limit; this dependency owner does not replace transport admission. Reply channels must have one slot so abandoned receivers cannot block the owner. Do not forge protocol messages or close the context's internal owner channel; use the public lifecycle API. Bend has no module privacy enforcement. The lifecycle receive loop uses `@unsafe` because its termination depends on an external orderly-close command, not structurally shrinking input. The post-close drain is structurally bounded by the inbox's slot count. Base channel/file effects also lie outside mathematical proofs. `ledger.bend` has no host imports. Its universal laws prove fresh-return rejection, full-pool rejection, exact lend/return counts, capacity bounds, and resource conservation. The bounds assume a valid pool and a matching aggregate grant, as maintained from `open` by the proved transitions. These proofs do not attest host IO or lifecycle safety. Import `bend-kit-camber@0.18.0.0/ledger.bend` for `Ledger`, `open`, `lend`, `give`, `counts`, and `refuse`. The old ledger exports in `camber.bend` are removed. Actor inspection still returns `Camber.Counts`; pure ledger inspection returns the separate `Ledger.Counts` projection. The owner maps that projection at its message boundary. `check.bend` remains the native/JS owner consumer with real two-File bundles, held principals, expected failures, exhaustion, counts, disposed caller replies, partial startup cleanup and Busy→same-owner retry. `python3 camber/run_serving.py --checks` runs the affected package gate and both actual compiled owner/serving lanes sequentially, with aggregate descendant RSS/disk guards and explicit listener release. [OWNER_EVIDENCE.md](OWNER_EVIDENCE.md) preserves the original owner receipts rather than rewriting historical measurements. ## Registration/direct-dispatch verification `python3 camber/run_owner.py` exited 0 for the package gate and actual compiled native and JS consumers. Both lanes printed `camber registration/direct dispatch: PASS` and retained the owner journal/explicit-close checks. The dispatch assertions verified the scenarios listed above, including reading POST's `id` and GET's `name` independently, `%252F` captured as `%2F`, HEAD returning the unsuppressed handler body, and exact packed word `796983040` (`00 ff 80 2f`) through the plain adapter. Peak sampled RSS was 2,220,432 KiB for the package gate, 1,974,880 KiB for native compilation, and 1,681,856 KiB for JS compilation; the runner enforced at least 10 GiB free disk and a 20 GiB per-process RSS ceiling. Temporary binaries and owner journals were removed by the runner. The first consumer checks exposed Bend's prohibition on destructuring computed IO/array results and an incorrect `Http.text` argument/quantity annotation; the fixture now uses parameter-bound helpers, packed-byte conversion only in assertions, and explicit reusable status metadata. Review also replaced eager group lookup with the existing lazy-helper pattern. `bash scripts/publish.sh --check camber` exited 0 with `bend-kit-camber` version `0.8.0.0` — `will publish`. Hub Http/Router/Target imports resolved during compilation. No manual publication was performed. The entry check explicitly reported 278 definitions relying on unsafe/foreign code, including imported Http/Wire effects and the existing owner lifecycle. The empty Camber proof inventory printed `ALL PROOFS CHECK`; it is not mathematical evidence of IO or routing behavior. No new unsafe or foreign definitions were added. These are direct-dispatch observations, not socket framing, HEAD/204/304 transport suppression, hook lifecycle, response validation, or serving evidence. ## Output validation verification (0.2.0.0 historical receipt) The package gate `bash scripts/check.sh camber` passed with the public response checks included in `check.bend`. `bash scripts/publish.sh --check camber` passed and printed `bend-kit-camber` version `0.8.0.0` — `will publish`. Compiled `dispatch_check.bend` and `response_check.bend` passed natively and under Bun after `bend ... -o ` / `bend ... -o `. Fixtures observed the public JSON projection excluding secret/internal fields, UTF-8 café bytes, binary NUL/FF preservation, empty and allowed redirect semantics, unsafe Location rejection, status/header/framing/Connection rejection, repeated cookies, and unsuppressed direct HEAD/204/304 bodies. The original packed route-dispatch check and a separate plain-adapter check both observed word `796983040`. Compiled `response_live.bend` passed in native and JS lanes. Real loopback clients received zero bytes for each of 21 invalid outputs, while both plain and routed handlers returned expected `InvalidResponse`. The final valid response reached shared `Http.talk.send` and sent distinct `set-cookie: a=1` and `set-cookie: b=2` lines plus `ok`. This finite acceptance caller is not a Camber server, parser, or mapper. `python3 camber/run_response.py` exited 0 end-to-end for the exact final consumers, including routed 204/304 body retention, sequential package/publication gates, and both compiled lanes. It enforces the existing 10 GiB disk-headroom and 20 GiB RSS guards. During implementation, live-consumer compilation exposed affine header reuse, computed-result destructuring, and incorrect Base close/result-unwrapping calls; those were corrected before the successful run. Final peak sampled RSS was 2,351,824 KiB for the package gate; live native/JS compilation used 2,258,080 / 1,904,528 KiB. Temporary binaries, owner journals, listeners, and sockets were closed/removed. The entry gate still explicitly reports 278 definitions relying on existing unsafe/foreign code. No new unsafe or foreign definition was added. The empty human-owned law inventory remains unchanged and is not proof of host IO, transport behavior, or response correctness. No HTTP serving, hook/error-mapper lifecycle, or strict request-text decoding claim is made. ## Scoped lifecycle verification (0.3.0.0) The single public dispatcher replaces the prior basic dispatcher; no alternate matcher, target parser, router, compatibility entrypoint, or transport was added. `scoped_check.bend` is included in the package gate and was compiled and exercised in native and JS lanes. Both observed 26 scenarios, with actual `IO.print` effect journals plus returned per-request state assertions. Every R6.6 outcome is covered: invalid target/star misuse,404, OPTIONS*,405, generated OPTIONS, group/route early responses and failures, decoder/handler failure, validation failure, and success. Assertions check exact before/transform order, entered actual policy contents in inner-to-outer order, empty scopes, sibling isolation, reversed registration, metadata-before-decoding, unsuppressed raw body, and the absence of decoder/handler effects on early exits. Forked requests retain distinct typed principals and journals. R6.5 checks observe one mapper event or none, transform halt, failure after previous mapping, mapper failure/invalid output, and validation before/after mapping. Recovery does not restart transforms or business effects. Framework400/404/405/415 bodies match Problem Details; application/fallback500 bodies are empty with no secret diagnostics. The helper regression also observes correct JSON escaping and UTF-8 for a title containing quote, backslash, newline, and café. `python3 camber/run_response.py` completed its package and scoped publication gates and all four native/JS consumers with exit0. Live loopback clients observed zero bytes for21 invalid standalone `plain` outputs, then exactly one safe500 for21 invalid routed originals in each lane. Routed recovery uses the actual `Completion.response` through shared `Http.talk.send`: clients reject private/secret bodies, original application headers, or a second HTTP response. The valid final response still carries two distinct Set-Cookie lines. This finite caller proves write-boundary recovery, not production serving or completion notifications. The invocation was wrapped once in `run_owner.run`; after the child succeeded, that outer wrapper attempted to reread owner journals already checked/deleted by the child and raised FileNotFoundError. That wrapper error is not hidden or a failing application scenario. `python3 camber/run_owner.py` separately exited0 after actual compiled native/JS owner+dispatch+helper+scoped regressions, journal checks, and explicit bundle/listener cleanup. `python3 camber/run_surface.py` exited0 for all47 unchanged experimental scoped cases per lane; these receipts preserve the experiments, not substitute for the public-dispatch evidence. The scoped publication check printed `bend-kit-camber` version `0.8.0.0` — `will publish`; nothing was manually published. The final owner compilation peak was6,216,560 KiB; final standalone scoped compilation peaked at5,326,784 KiB native and4,456,464 KiB JS. Every guarded command required10 GiB free disk and killed a process exceeding20 GiB RSS; no limit was reached. Temporary binaries and journals were removed and sockets/listeners closed. The entry check discloses278 existing unsafe/foreign dependencies, including imported HTTP/Wire effects and the owner lifecycle. No unsafe or foreign definition was added; human-owned LAWS and adverse FINDINGS remain unchanged. The empty proof inventory is not mathematical evidence of IO behavior. This leaf does not deliver body codecs, transport framing/deadlines, live completion notifications/logging, server lifecycle, cancellation, exception containment, or peer receipt. It makes no public-dispatch throughput or release-performance-budget claim. Full package release remains incomplete until the complete-application/cross-language benchmark gate in #340. These lifecycle receipts do not satisfy that gate. ## Historical typed input verification (0.4.0.0, initial PR head) `python3 camber/run_inputs.py` exited0 after the coordinator's source review and exclusive Bend verification-slot grant. It ran `bash scripts/check.sh camber`, `bash scripts/publish.sh --check camber` (reported `bend-kit-camber` version `0.8.0.0` — `will publish`), and compiled `input_check`, `check`, `dispatch_check`, `response_check`, `scoped_check`, and `response_live` with both `bend camber/.bend -o ` and `bend camber/.bend -o `. Native binaries and `bun ` were run sequentially. No manual publication occurred. [The historical input receipt](https://github.com/paymog/bend-kit/blob/0591c1f6cfc8ecc32108dd4387daa35e37fc56ec/camber/input_results.json) at initial PR head `0591c1f6cfc8ecc32108dd4387daa35e37fc56ec` records120 cases per lane and surface: native/direct, native/live, JS/direct, JS/live (480 checked request outcomes). Each set observed35 status200, two201,62 expected400, two auth401, and19 expected415 outcomes. Direct and real loopback requests agreed exactly on status, body bytes and all application headers (transport framing excluded). File journals show `auth,decode,business` only on success, `auth,decode,map` on applicable decoder rejections, and auth alone on early rejection. Invalid router target/query syntax maps before a route's auth scope is entered, as required by R6.6. Rejected inputs never record a business event; expected failures map once. The cases cover once-decoded path captures, U32 max/overflow/nondigits/empty values, escaped scalar repeats versus ordered lists (empty keys/values, first `=`, `+`, ignored empty fields), malformed query escapes/UTF-8/NUL, JSON media suffix/case/quoted parameters, shared coding-list identity semantics, strict text UTF-8, empty/bad/BOM/surrogate JSON, escaped-key duplicates at nested object and array-object levels, valid independent object keys, exact `-0`/fraction/exponent/large-integer number text, checked JSON-U32 conversion,64/65 nesting, configured2/3 and0 depth boundaries, and application schema/name validation including100/101 four-byte Unicode scalars. Raw NUL/FF/80/slash bytes remain unchanged even when marked gzip; there is no decompression. The same command retained compiled owner journal/explicit-close, registration/direct-dispatch, output-helper and26-case scoped-lifecycle regressions in both lanes. Real clients also retained21 invalid standalone responses with zero bytes sent,21 invalid routed originals recovered to exactly one safe500 without private body/headers, and the final valid response with distinct Set-Cookie fields. The finite input caller uses published Http's existing connection IO; its template-only transport constructs an application per request, so these are correctness receipts, not serving/startup or throughput measurements. Adverse development evidence: three initial guarded native smoke compiles exited1, first for a computed tuple scrutinee, then a nominal packed-Bytes identity mismatch (`bend-kit-bytes` version `0.3.2.0` type `bytes.Bytes` versus newer `Bytes.Bytes`), then reusable-versus-affine callback quantity mismatch. Parameter-pair helper seams, the exact published Bytes identity shared by Http/Json, and affine callbacks with local Data copying corrected these; no checker warning was suppressed. The final guarded smoke compiled and returned200 for `/users/%37?limit=1` with an actual `auth,decode,business` journal before the full successful gate. The entry still discloses278 unsafe/foreign dependencies; no new unsafe or foreign implementation was added. Human LAWS and research/benchmark artifacts remain unchanged. The maximum sampled RSS in the complete gate was6,459,616KiB, below the20GiB kill ceiling; disk headroom was checked before each process. The verification slot was released with no matched compiler/runtime processes, no listeners on18335 or18333,34,663,456,768 bytes free, and all owned temporary builds/journals removed. HTTP admission/T3, production serving, completion notifications, archive publication, and the full release benchmark remain outside this leaf. ## Final quoted-pair charset verification (0.4.0.0) Coordinator source review found that quoted charset values must be compared after RFC quoted-pair decoding: `charset="ut\f-8"` denotes UTF-8, not an unsupported raw spelling. The shared `media.parameter` now uses a streaming expected-value comparison for both JSON and text. It consumes escaped characters once without allocating another decoded parameter string, retains case normalization, and requires a genuine unescaped closing quote at the end. Unsupported decoded values and malformed syntax still reject415. A guarded native `bend camber/input_check.bend -o ` smoke exercised all14 new direct cases with actual response and file-journal assertions: singly and multiply escaped UTF-8 succeed for JSON/text; unsupported values, escaped quote/backslash, incomplete close and trailing junk reject415. Its first compile exited1 because `c` was matched after later `expected`/`escaped` binders. Matching `c` first corrected the checker-order error without changing value semantics; the successful smoke compile peaked at3,532,304KiB. Coordinator reviewed and accepted the corrected source. The exact final `python3 camber/run_inputs.py` exited0 in130.00 seconds. [The current receipt](input_results.json) records134 cases in each native/direct, native/live, JS/direct and JS/live set (536 checked outcomes), including all14 charset additions. Each set observed39 status200, two201,62 expected400, two auth401 and29 expected415. Exact direct/live responses and effect journals passed, as did the same package/publication, owner/dispatch/helpers/scoped and genuine recovered-safe-response live regressions described above. The final receipt's `adverse` array is empty; the earlier checker failures remain recorded here as historical development evidence, not erased or presented as final runtime failures. The maximum sampled final-gate RSS was6,168,160KiB; the entry still discloses278 inherited unsafe/foreign dependencies. The exclusive verification slot was released with no matched compiler/runtime processes, no listeners on18335/18333,34,305,249,280 bytes free, and all temporary smoke/gate binaries and journals removed. No runtimes were started after release. ## Public serving0.5 verification The controlled native/JS `python3 camber/run_serving.py` matrix exited0 (`PUBLIC SERVING PASS`). Each lane compared14 direct/live responses: packed plain echo, strict JSON success/failures, pre-decoding auth rejection, one mapper call,404/405 and Allow, malformed target, and HEAD/204/304 suppression only at transport. A genuine plain published-HTTP handler beside Camber echoed the same binary bytes. With an explicitly held File bundle, each lane observed24 exact503 rejects, no rejected business journal, active/buffered counts1/1 before and after actual stop, and no cleanup while held. Explicit release produced the admitted200, journal `BUSINESS hold\nCLOSED\n`, descriptor1→0 while the beside server still lived, then real application/transport joins. A separately blocked dependency reply retained active/buffered1/1 and an empty journal until explicit release. Both application/control listener ports rebound after actual zero exits; rebind uses SO_REUSEADDR for TCP TIME_WAIT, not SO_REUSEPORT. The affected package gate exited0 and disclosed315 unsafe/foreign-dependent definitions; the empty human law gate is not IO proof. The migrated owner passed both native/JS Busy→same affine owner retry, disposed Data reply, startup rollback and close. Its paired File journals independently matched principals7/8/10/12; destructor markers matched once per returned bundle and partial cleanup. Peak aggregate RSS in the final serving/owner matrix was6,561,968KiB (native owner compilation), below the20GiB descendant ceiling. Very short native executions with0/32KiB sampled peaks are not memory benchmarks. A temporary guarded verification script reused the existing input/response consumers without overwriting their historical evidence. It verified134 input cases per lane directly and live (536 comparisons/journals total),21 plain invalid responses with zero bytes plus21 routed safe mapped500 responses per lane, and repeated Set-Cookie preservation. The finite input fixture now stops and joins published HTTP's owner rather than calling an obsolete template-only socket loop. Historical dispatch benchmark native/JS eight checksums matched at3 measured iterations; this is not final public-dispatch release/performance proof. `bash scripts/publish.sh --check camber` exited0: `bend-kit-camber` version `0.8.0.0` — `will publish`; no manual publication occurred. [`serving_results.json`](serving_results.json) preserves every command/output, peak, observed process identity/release, descriptor/rebind observation and retained journal receipt. It retains the five initial compile failures, owner tuple-let rejection, wrong fixture auth mapping and its forced failure cleanup (never success), initial TIME_WAIT rebind failure, and later input/writer API migration failures. Successful final commands used no forced cleanup. Temporary binaries, retained-script scaffold and owned test journals were removed. Historical failures/budgets, unsafe/foreign exclusions and external-supervisor limitations remain unchanged.