Skip to content

v6.0.0

Choose a tag to compare

@maltyxx maltyxx released this 26 Aug 21:41
· 2436 commits to main since this release
02c051d

What's Changed

Ports & Adapters — three module shapes, and a variable is a path too

The framework now states what it is: Ports & Adapters, as practised — the
port owns the semantics, the adapter owns only the transport, a multi-backend
library is wrapped rather than abstracted, and the composition root has
three module shapes and no fourth. architecture.md carries the section;
naming.rs and units.rs in nest-rs-conformance keep it true.

  • Three shapes. <Vendor>Module::for_root(cfg) opens a resource —
    SeaOrmModule (the pool), RedisModule (the connection). <Port>Module::for_root(cfg)
    carries a capability's policy — ThrottlerModule, HttpModule.
    <Vendor><Port>Module binds one to the other, bare unless it owns settings —
    SeaOrmDatabaseModule, SeaOrmHealthModule, RedisQueueModule,
    RedisThrottlerModule, RedisWorkerModule::for_root. A composition root reads:
    SeaOrmModule::for_root(None), SeaOrmDatabaseModule, RedisModule::for_root(None), RedisQueueModule, RedisWorkerModule::for_root(None), ThrottlerModule::for_root(None), RedisThrottlerModule.
  • A #[config]'s namespace is its stem — crate subject, then binding folders,
    joined by __ — exactly as its type is named.
    SeaOrmConfig →
    NESTRS_SEAORM__* (NESTRS_DATABASE__* is gone: the universal convention
    named neither the crate nor the type that parsed it); RedisConfig →
    NESTRS_REDIS__* (NESTRS_QUEUE__* is gone); RedisWorkerConfig →
    NESTRS_REDIS__WORKER__SHUTDOWN_TIMEOUT_SECS; NESTRS_THROTTLER__* and
    NESTRS_SOCIAL__GITHUB__* unchanged. namespace_is_the_stem compares segment
    by segment. From a variable a reader finds the type; from a module, the
    variable.
  • nest-rs-seaorm is the adapter that wraps sea-orm. SeaOrmModule::for_root
    resolves SeaOrmConfig and opens the one pool; SeaOrmDatabaseModule is a bare
    binding that installs the ambient executor (DbContext, WorkerDbContext)
    and fails the boot naming SeaOrmModule if the pool is absent.
    SeaOrmDatabaseConfig and SeaOrmDatabaseSetup are gone; connect_from_env
    resolves SeaOrmConfig.
  • nest-rs-redis is one connection and three bindings. RedisModule::for_root
    opens RedisConnection; RedisQueueModule (bare) binds RedisQueueProducer
    as Arc<dyn JobProducer>; RedisWorkerModule::for_root owns
    RedisWorkerConfig; RedisThrottlerModule (bare) declares the store.
    RedisQueueConnection, RedisQueueConfig, RedisQueueSetup and
    RedisThrottlerSetup are gone; the connection's events file on a
    nest_rs::redis target.
  • The throttler's policy lives in the port, its counters in the store.
    ThrottlerStore is hit alone — default_limit is gone, and so are the
    default arguments of InMemoryThrottler::new and RedisThrottler::new;
    the guard carries the default (ThrottlerGuard::new(store, default),
    Throttle: Default). ThrottlerModule::for_root binds the in-process store as
    an ordinary factory, so RedisThrottlerModule supersedes it wherever it sits
    in imports and the app removes no line; two vendor bindings still contest
    (BACKEND_REMEDY). provide_guard and resolve are no longer public seams.
  • The queue port owns the attempt. nest_rs_queue::consume::{discover, attempt, Attempt} — discovery, the envelope, the trace, the queue.job span, the panic
    catch, the outcome classes, the events and the operation line — written once in
    the port; RedisWorker is a fetch loop that translates Attempt into apalis's
    Abort/Failed. A second adapter copies nothing, and
    a_unit_is_opened_only_by_the_crate_that_declares_it refuses one that tries.
  • A factory may declare the factory output it reads.
    ContainerBuilder::provide_factory_after, provide_factory_dyn_after and
    provide_declared_factory_after name the type; the boot drains in dependency
    order with queue order as the tie-break, so imports = [..] order is a
    readability choice. A cycle is FactoryCycleError, naming the set.
  • Demo features inject Arc<dyn JobProducer>; the CLI scaffold and .env
    templates write _SEAORM__URL / _REDIS__URL; nest-rs-throttler's in-band
    caller-bucket helpers are gated on the edges that use them.

The one guard that answers every transport lives at the root

AbilityGuard implements four of Guard's entries — check_http,
check_graphql, check_ws_message, check_mcp — and carries the four matching
marker traits, but it sat in nest-rs-authz/src/http/. A folder named for one
edge held the type that answers all of them, and the cost was never only the
path:

  • nest_rs::authz::http::AbilityGuard is now nest_rs::authz::AbilityGuard,
    beside gate and chain — the crate's other transport-agnostic decision
    points. Each check_* arm is gated on its own feature.
  • A transport no longer turns on http to reach its own guard. graphql,
    ws and mcp each pull the guard's dependencies directly; a GraphQL-only app
    used to enable the HTTP surface for a type it bound on resolvers.
  • check_ws_message compiles under ws, not http. The http feature
    forwarded nest-rs-guards/ws and nest-rs-ws for exactly one method of one
    misfiled file; both forwardings are gone, and gate::transport::WS drops the
    #[cfg(any(feature = "http", feature = "ws"))] that documented the anomaly.
  • In the product and in what the CLI scaffolds, authz/http/ is gone.
    AuthzGuard is authz/guard.rs and AuthzModule provides it, so
    AuthzGraphqlModule, AuthzWsModule and AuthzMcpModule import AuthzModule
    rather than the HTTP adapter they never served. AuthzHttpModule held that one
    provider and nothing else; every imports = [.., AuthzHttpModule] becomes
    imports = [.., AuthzModule].

A declaration is refused at the token that wrote it

The second refusal wave: what a decorator silently accepted, deferred to a
dependency's error, or worded for itself alone is now one sentence per
offence, worded once in nest_rs_codegen, spanned at the offending token,
with a trybuild snapshot per site — eighteen new snapshot pairs across eight
crates.

  • A mount path has a grammar, and every decorator that takes one enforces
    it.
    #[controller], #[gateway] and #[mcp] refuse a path that is
    empty, not absolute, longer than 256 characters, carrying an empty segment,
    or spelling a character RFC 3986 §3.3 does not allow in a segment —
    percent-encoding included, deliberately: a mount path is written, not
    received, so %2F asks to mount an address the router will never match.
    #[mcp] used to refuse only the empty string; the other two checked
    nothing, so path = "users" compiled and mounted.
  • #[use_guards] on the impl half names the struct half. One sentence
    from the pair itself — the struct half declares the host's access posture,
    this half declares its operations — where GraphQL and MCP each had a drifted
    wording of their own and #[routes] / #[messages] had nothing: the
    attribute reached rustc as cannot find attribute `use_guards` with no
    transport, reason or remedy named. #[force_guards] is refused the same
    way, and a #[crud] impl inherits both.
  • A missing mandatory key shows what to write. #[queue] requires `name` — write `name = "emails"` — one shape at ten sites in six crates, where
    three verbs and three shapes had grown.
  • A method declaring two roles is refused naming both, on #[hooks]
    lifecycle phases, #[indicators] probes, #[scheduled] triggers, and MCP
    roles — where it closes a real defect: a method carrying both #[tool] and
    #[prompt] compiled, and the surviving second attribute was handed to rmcp
    as an operation nobody declared.
  • #[input] names the shape it cannot take. A tuple or unit struct used
    to die inside validator's derive — Unsupported shape `one unnamed field` against a #[derive] line the developer never wrote. The refusal
    now names the shape, the derive whose limit it is, and the enum/newtype
    remedies.
  • #[cron(tz = …)] is checked against the IANA time zone database at
    compile time.
    The key is always a string literal over a closed name set,
    so a typo was the one half of the attribute still deferred to a deployment
    failure while the expression beside it was refused at expansion.

A 405 names what the route serves

RFC 9110 §15.5.6 makes Allow on a 405 a MUST, and the framework computed
the verb set at the declaration and discarded it at the mount — so poem's
MethodNotAllowedError rendered a bare status. #[routes] now registers
through nest_rs_http::MethodTable, which records each verb in the same call
that mounts it, so what is served and what is advertised cannot drift —
#[version]-narrowed routes included, each version advertising its own set.

  • HEAD is advertised whenever GET is — poem answers an unregistered
    HEAD by re-dispatching to the GET endpoint, so it is served. OPTIONS
    never is
    : serving it would put an unguarded method-listing endpoint at
    every route, so it is an owner question rather than a default.
  • Only poem's own refusal is rewritten. A handler that deliberately
    answers 405 is stating something about its own resource and keeps its
    response; an unrouted path stays a bare 404 — inventing an Allow there
    would turn every probe into a confirmation that something is there.
  • Self-mounting crates are the reported gap. nest-rs-graphql routes by
    method through poem directly, so PUT /graphql still answers a bare 405;
    MethodTable is public as the drop-in for it.

A timeout is the origin's own 503, and every header the framework knows is emitted or argued

Breaking, wire and API. Four corrections on the HTTP edge, each aligning a
default with the standard that owns it:

  • An overrun handler answers 503 Service Unavailable with Retry-After,
    not 504.
    RFC 9110 §15.6.5 scopes 504 Gateway Timeout to a server
    acting as a gateway or proxy; this transport is the origin, and a 504
    invites exactly the wrong retry — a load balancer reading it as "that
    node's upstream is flaky, try another one" re-runs a handler that will
    overrun again. The delay is whole seconds rounded up, minimum 1, because
    Retry-After: 0 reads as "retry immediately", the one instruction a server
    shedding load must not give.
  • HttpConfig::request_timeout_secs: Option<u64> becomes
    request_timeout: Option<Duration>
    , read through the framework's shared
    seconds grammar — so NESTRS_HTTP__REQUEST_TIMEOUT_SECS=0 now means no
    timeout
    , the family's sentinel, instead of zero seconds. And
    max_body_bytes = 0 fails the boot naming the field, instead of rejecting
    every bodied request, the same floor its MCP and WS siblings already have.
  • The security-header family is closed: each member is emitted by default,
    or configurable with its default argued.
    Three new defaults —
    Referrer-Policy: strict-origin-when-cross-origin,
    Cross-Origin-Opener-Policy: same-origin,
    Cross-Origin-Resource-Policy: same-origin — and three settable but
    deliberately off, each with its reason recorded: Content-Security-Policy
    (an API framework cannot know a page's sources),
    Cross-Origin-Embedder-Policy (breaks embeds to buy an isolation nothing
    here uses), Permissions-Policy (a default would be a guess about pages
    the framework does not serve). One table drives validation and emission,
    so a member cannot arrive validated but unemitted.
    SecurityHeadersConfig::headers now returns HeaderNames.
  • CORS refuses * beside credentials on all four lists, not just
    origins: * is a valid tchar, so nothing else refuses it — the header
    is emitted, every browser drops the response, and there is nothing
    server-side to point at. The error names the config field and the response
    header it would have poisoned.

The client behind a proxy is RFC 7239's answer, and disagreement is refused

The transport read only X-Forwarded-For and X-Real-IP, so behind an
RFC-conformant proxy speaking Forwarded every caller resolved to the
balancer: one rate-limit bucket for the entire internet, the balancer's
address on every access line and span, and — the peer being trusted —
traceparent continued for a client the transport could not identify. All
three headers are now read, in order Forwarded, X-Forwarded-For,
X-Real-IP, gated on the same trusted-peer check.

  • §6.2 unknown and §6.3 obfuscated nodes are skipped: reading either as
    a client would key a rate-limit bucket on a string a proxy chose to
    withhold.
  • When Forwarded and X-Forwarded-For both name a client and disagree,
    neither is believed.
    The origin degrades to the trusted proxy itself and
    a warn carries both values. The common way to reach that state is a
    proxy that appends X-Forwarded-For and passes unknown client headers
    straight through — nginx's default — where a caller sending
    Forwarded: for=… would outrank the genuine hop the proxy itself
    appended, and the trusted-proxy gate cannot catch it. A "prefer RFC 7239"
    rule is exactly that hole.
  • Breaking: ClientOrigin::resolve gains a leading forwarded
    parameter.

A health probe answers inside the kubelet's second

Breaking for slow indicators. Indicators ran serially, each under a
hardcoded five-second ceiling — four of them were a twenty-second worst case
against a kubelet whose timeoutSeconds defaults to 1. They now run
concurrently, so a probe costs the slowest check rather than the sum, under
two ceilings a new HealthConfig owns:

Default Meaning
NESTRS_HEALTH__INDICATOR_TIMEOUT_MS 750 one check's ceiling — expiry reports it down
NESTRS_HEALTH__PROBE_DEADLINE_MS 900 the whole response's ceiling
  • Milliseconds, deviating from the framework's *_SECS grammar on
    purpose
    : a grammar that cannot express a value inside one second cannot
    express the only interval that matters here. And 0 is refused at boot
    rather than meaning unlimited — here off is the defect, since a hung pool
    would hang the probe and the kubelet reads that as a dead process.
  • An unanswered indicator reports "probe deadline exceeded", the third
    fixed reason beside "check failed" and "timed out"; the real error goes
    to a warn on nest_rs::health, never to the caller.
  • Concurrency is FuturesUnordered, deliberately not spawn: the
    operation span and the trace context are task-locals, and a spawned check
    would file its warn under no unit of work at all. The report body stays
    name-ordered, not completion-ordered.
  • A prefixed app says where its probes went. Under
    NESTRS_HTTP__GLOBAL_PREFIX=/api/v1 the kubelet must call
    /api/v1/health/live; a manifest written from the docs gets a 404, the
    kubelet reads that as a failed probe, and on a liveness probe that is
    CrashLoopBackOff caused by documentation. The boot now logs one warn
    naming the real paths.
  • HealthModule::for_root(HealthConfig…) is the pinning seam, with the
    composition test every for_root owes.

A listener invocation is a unit of work

The last unused edge namespace is in use: every #[listeners] method files
one events.dispatch line, with its own span — a name nothing emits under is
the same defect as a span field nothing fills.

  • The unit is one listener invocation, not one emit. A listener is
    developer code that logs, writes and can panic, while an emit is the
    emitter's own line, already inside whatever unit the emitter is serving.
    One emit is one cause: its listeners share one trace, and each gets its own
    span_id — filing them all under the inherited correlation gave two
    listeners on one event one span_id between them.
  • A panicking listener still files, with outcome = panic, and both the
    line and the containment error are emitted inside the continuation, so
    neither arrives without ids.
  • Listeners with no bus are a boot report. A provider listed in
    providers = […] without EventsModule in imports used to boot clean
    and react to nothing; the boot now emits one warn per reachable listener,
    naming it.
  • #[listeners] registers through subscribe_named, so the line names the
    method; the anonymous subscribe files as <anonymous>.

Every dispatched GraphQL field files its own line

Every query and mutation in a deployment was the same line — POST /graphql 200 — and which field was slow, which one failed, and which one the caller
was refused at were all unanswerable from the console. #[operations] now
runs every #[query], #[mutation], #[entity] and #[field_resolver]
body through a graphql.operation unit: its own span under the request's,
one line with role, operation, outcome and duration_ms.

  • A failing resolver files outcome = error — a GraphQL error is
    answered with a 200, so the HTTP line alone reports a request that failed
    as one that succeeded.
  • #[subscription] is deliberately excluded: its unit is the connection,
    filed as graphql.subscription when the socket ends; wrapping it here
    would file a second line naming the subscribe, which is not the work.
  • operation is the wire field name, not the Rust ident — async-graphql
    renames list_users to listUsers on the wire, and a line naming the
    ident cannot be joined against a capture of the request that produced it.
  • The span deviates from the OTel GraphQL conventions where they cannot
    carry this, and says so
    : graphql.operation.role carries a superset of
    the conventions' operation.type enum (entity, field), and
    graphql.document is deliberately absent — it is the caller's query text,
    which carries their literals.
  • The generated delegating method is now always async for the wrapped
    roles.

The MCP line names the wire method and what it addressed

Breaking for log consumers. The operation line carried the rmcp Rust
ident — call_tool, initialize — which appears in no MCP document and
cannot be joined against a capture of the wire, and every tools/call was
byte-identical. The line now carries method, the JSON-RPC method
(tools/call), and operation, the tool, prompt, resource or task it
addressed — absent where nothing is addressed, so a query for one can never
match a method that has none.

  • Method strings are read from rmcp's own ConstString markers, so a
    protocol rename is a compile error instead of a stale literal; the one
    request whose method is data (on_custom_request) reads it off the wire.
  • The span gains mcp.method.name / mcp.operation.name — one seam over
    every method, where the semantic conventions spell three per-kind keys.

A socket ends with the code that says why

Every server-side termination dropped the Sink, so the peer read 1006
Abnormal Closure
— a deliberate close indistinguishable from a broken pipe,
against which a client retries identically and never learns what to do
differently. The gateway now writes a Close frame, after flushing every
reply already queued
, with the RFC 6455 code the cause earns:

Cause Code
connection lifetime ceiling 1001 Away, reason re-upgrade to continue — nothing the peer sent reaches this ceiling, a clock does, so not 1008
outbox full 1008 Policy
read failure 1011 Error
peer's own Close echoed, then flushed — a second Close would be refused, not merged
  • A Binary frame is refused in band instead of silently dropped: an
    error envelope answers it and the socket survives, 1003 being the other
    conformant answer and deliberately not this one.
  • The connect/disconnect lines gain outcome = ok — the one field of the
    family those two dropped, so a cross-edge outcome != ok query silently
    skipped them.

nest_rs_testing drives a real upgrade

New ws feature: TestAppBuilder::build_ws() boots the app's own configured
transport on a reserved port and hands back a WsApp, whose
socket(path).bearer(token).connect() yields a WsSocket — send,
next_envelope, expect_silence, expect_close, close. expect_close
panics on a socket that ends without a Close frame: "the connection went
away" is never an acceptable pass. The client is tokio-tungstenite at the
exact version poem's own websocket feature already compiles, so nothing new
enters the build. The WS suites — the framework's own gateway tests included
— now assert close codes and reasons off the wire instead of accepting any
termination.

One throttler guard meters every edge, keyed per caller

Breaking for custom stores and for dashboards. ThrottlerGuard checked
HTTP only, and /graphql and /mcp are Exempt at the endpoint while a WS
message runs after the upgrade chain returned — so a guard bound anywhere
left the three in-band edges unmetered. It now implements check_graphql,
check_mcp and check_ws_message, each behind a crate feature the matching
umbrella edge feature forwards.

  • The bucket key gains a transport segment and a caller segment. A
    #[query], a #[tool] and a #[subscribe_message] may all be called
    search; without the transport they would drain one budget between them.
    And the in-band edges key on actor_id — keyed on the operation alone,
    every caller shares one bucket and one client spending the window 429s
    everybody, which is the difference between a rate limiter and a
    denial-of-service amplifier. An anonymous surface degrades to a shared
    bucket and says so once.
  • The wait a denial carries now reaches every caller. It was computed by
    the throttler, carried on the Denial, and read by exactly one of four
    renderers — HTTP's Retry-After. GraphQL, MCP and WS now carry
    retryAfterSeconds in the structured refusal detail where reason and
    requiredScopes already ride, and a 403 never carries it. The value
    rounds up with a floor of 1 on every edge: truncation handed every denial
    in the final second of a window Retry-After: 0, an instruction to
    hot-retry against the limit the guard just enforced.
  • The shared-bucket dedup lock is gone from the hot path — it serialized
    every anonymous in-band request, a ceiling on exactly the traffic a rate
    limiter exists to survive.
  • Breaking: ThrottlerStore::hit is async and the trait no longer
    answers trusted_proxies() — client identity is the transport's answer.
    The rate limit exceeded warn drops the composite key field for
    transport plus per-edge fields and retry_after.

A token minted for another service is refused

Breaking, and security-relevant: previously-accepted tokens are now
rejected.
A verifier with no configured audience switched jsonwebtoken's
aud validation off entirely, so a token the shared issuer minted for a
sibling service
verified here — the confused deputy: every app sharing an
issuer was a credential for every other. RFC 7519 §4.1.3 obliges a verifier
to reject a token carrying an aud it is not named in, and that clause binds
a service naming no audience of its own too.

  • The check is now always on. An unconfigured verifier still accepts a
    token with no aud at all; what configuring audience adds is the other
    direction — the claim becomes mandatory.
  • The opt-out is named: allow_any_audience
    (NESTRS_AUTHN__ALLOW_ANY_AUDIENCE), off by default, reporting itself at
    warn once per boot, and refused beside audience — one field says
    "only tokens for me", the other "tokens for anybody", and silently letting
    either win is how a deployment ends up believing the stricter one.
  • iss deliberately gains no twin: §4.1.1 states no clause obliging a
    verifier to reject a token carrying an issuer it does not name, so there is
    nothing to switch on and nothing to opt out of.
  • JwtOptions and JwtConfig each gain the public allow_any_audience
    field.

Three authn gaps, each silent or fail-open, closed

  • A machine principal reports its scopes. AuthenticatedClient inherited
    the trait's scopes() → None, which means not scope-aware — so every
    .requires_scope(…) rule applied in full and a client registered for
    posts:read satisfied rules requiring anything. It now answers Some,
    always: this is the framework's own OAuth credential, so an empty registry
    entry means delegated nothing, never scope does not apply here.
  • The third way to refuse an OAuth callback now logs. A forged, replayed
    or expired transaction cookie produced no warn anywhere while its two
    siblings (provider mismatch, CSRF mismatch) both did. All three now file
    one OAuth callback rejected event with a constant reason code —
    invalid_transaction, provider_mismatch, csrf_state_mismatch — so an
    operator greps once and reads reason to tell them apart.
  • The Argon2id work factor is pinned at the OWASP recommendation
    (m = 19 MiB, t = 2, p = 1) instead of riding Argon2::default(), which
    happens to equal it today — a security-critical parameter sat on a value an
    upstream release could lower without a line changing here. Verification
    reads the parameters out of the stored hash, so existing credentials still
    verify and the constants can move without invalidating a database.

A denial is one event with one vocabulary, on every edge

Breaking for saved queries. reason was two value spaces: gate exits
reported machine tokens (no_class_grant, insufficient_scope) while
masking exits reported whole English sentences, so a query grouping denials
by reason returned tokens from one half and prose from the other — and
HTTP re-typed the tokens as literals because the constant lived behind a
feature it does not build. Every fail-closed exit in nest-rs-authz now
files through one emitter, with reason a constant, the sentence moved to
detail, and the fix moved to remedy — an incident groups by the first
and reads the other two.

  • A refusal is a record, not seven arguments (Refusal): each site knows
    a different three of them, and a field added to the record reaches every
    site at once — which is the whole reason the emitter is shared.
  • Every mask failure names its transport, and the one silent branch
    logs: masked_output_ambient sent an empty object out with nothing on
    nest_rs::authz to say masking had degraded, so a wire type whose fields
    are all optional deserialized clean and the operator had no event to find.
  • An MCP field-grant refusal is filed as the denial it is — same event,
    same reason GraphQL files when a stripped key was selected — and it now
    names which keys the grant withheld, the one thing the serde error could
    not say. It also tells a class denial from a field grant: a row the caller
    may not read at all produces the very same failure, and filing it as
    field_not_granted carried the nullable remedy — advice that, if taken,
    would answer a denied row with an all-null object rather than a refusal.
    The client-visible error becomes forbidden, no longer internal.
  • AbilityGuard gains its fourth edge. It attested HTTP, GraphQL and WS
    and not MCP, so #[use_guards(AuthzGuard)] on an #[mcp] host did not
    compile — and had it been bindable, every check_* defaults to Ok(()),
    so it would have passed every operation in silence. check_mcp refuses an
    operation with no ambient ability, and the McpGuard marker makes the
    symmetric #[use_guards(AuthnGuard, AuthzGuard)] its three siblings carry
    bindable here too.

The umbrella matrix pulls what its decorators emit

Breaking: the resource feature is gone. #[expose] expands to
::nest_rs_seaorm:: paths and #[crud] to ::nest_rs_resource:: paths, so
two separate features would each have to imply the other — a cycle Cargo
rejects. seaorm now activates nest-rs-resource directly; a manifest
saying features = ["resource"] drops the word.

  • seaorm and graphql imply authz strongly. #[crud] emits
    ::nest_rs_authz::… unconditionally and a GraphQL posture is mandatory, so
    cargo add nest-rs --features http,seaorm plus #[crud] was E0433: cannot find authz in nest_rs — an error inside a macro expansion, blamed
    on the attribute, whose natural remedy is exactly the second manifest line
    the umbrella rule forbids.
  • redis-throttler is a feature that finally exists. nest-rs-redis
    gated RedisThrottler behind its own feature and nothing in the umbrella
    forwarded to it, so nest_rs::redis::RedisThrottlerModule existed in no
    umbrella build — demo/ enables every feature and still could not name the
    type. Kept separate from redis so a producer/consumer app that never
    rate-limits does not compile the throttler.
  • The nest-rs-macro-hygiene witness swaps resource for seaorm, keeping
    the one-dependency proof standing.

The scaffold refuses reserved names, and its prose moves where an agent reads it

  • nestrs g feature module no longer writes ModuleModule in
    module.rs.
    A feature named after the structural vocabulary — module,
    service, http, apps — collided with the layout it was scaffolded
    into, silently. The reserved set is scraped from the architecture rules
    file the CLI already embeds
    , category by category, so the rules and the
    refusal cannot drift; the refusal names the category's role and suggests
    the domain word.
  • The teaching prose leaves the generated code. The // SECURITY: blocks
    in the WS, schedule and MCP skeletons, and the migration crate's header,
    move into the scaffold's AGENTS.md — which gains the access-posture
    recipe (declare per operation, wire the guards, the two edges that differ)
    and a migrations-and-seed section. Public scaffolded routes gain
    #[api(summary = …)] so the published document starts described.
  • cargo install --locked nest-rs-cli, in the README and in
    nestrs update — an unlocked install resolves this tool's dependencies to
    versions it was never built against.

A documented fact is derived once, and the gate fires where it broke

The docs linter derived its own facts: seven checks opened crates/**,
demo/** and the root manifest and re-derived in JavaScript, with regexes,
what nest-rs-conformance derives in Rust with syn and toml_edit. Two
implementations of one definition drift, and these did — the linter counted
umbrella capabilities as features carrying a dep: (27) where the join
counts dep: entries (28), while the linter's own comment claimed the two
derivations could not disagree. The word had never been defined: a feature a
developer types and a crate a feature activates are different sets that
numbered the same until seaorm grew a second dep:.

  • docs/canon.json and docs/demo-sources.json are derived by the canon
    join and read by the linter, which now derives nothing.
    Verified by
    instrumenting fs: zero reads outside docs/. Two artefacts rather than
    one because the facts are twenty values a reviewer reads at a glance and
    the quoted demo corpus is 380 KB that churns whenever demo/ moves.
  • The workflow's paths: docs/** filter became a true declaration, where
    it named one input class of eight. A framework change that falsified a page
    did not run the job; the failure surfaced later on an unrelated docs commit,
    naming index.mdx, which no commit in the window had touched. Regenerating
    the canon now lands a docs/** diff on the commit that moved the fact, so
    the gate fires there. The Cargo.toml entry the filter carried for one
    check is gone with the check that needed it.
  • The linter's thirty-two rules are a family joined against themselves.
    Each owes a fixture that makes it fire, a STYLE.md § F entry, and no
    violation naming anything outside RULES — thirty bare literals at
    thirty-two call sites became one frozen object. Nothing had proved a rule
    still fired: neutralising any regex left the gate greener, which
    .claude/rules/testing.md calls worse than an empty cell. Nothing was
    importable either, so the seam was structural rather than a missing chore.
  • The baseline contract is enforced instead of promised. A line naming a
    violation since fixed now fails, a corpus below its floor fails, and
    --update-baseline is gone: it re-snapshotted every violation including the
    code-truth ones, so the remedy the failure message printed turned a
    proven-false public claim into a permanent exemption, offered to whoever
    held the red build and could not see the cause from the message. --land <rule> replaces it — one named rule, written and then failed, which is
    baseline.rs's shape for its reason.
  • Two rules the corpus never had. link resolves all 969 internal links
    and their anchors — a probe page linking a route that does not exist built
    clean and shipped the dead href, the only validated targets being the ~20
    sidebar slugs. Anchor ids follow GitHub's algorithm, written out rather than
    imported because github-slugger last published 2023-09-15, outside the
    twelve-month freshness bar, and verified against the built site: 933 of 933
    agreeing in both directions. fence-drift asserts that a fence titled with
    a real demo/ file is an excerpt of it; 102 pre-existing drifts are
    baselined and the list only shrinks.
  • A docs join puts the framework's families against the corpus, so a
    family declared in Rust owes a docs cell by construction rather than by
    anyone remembering. It found twelve holes and all twelve were closed rather
    than recorded: graphql.operation and events.dispatch appeared on zero
    of 125 pages while the table publishing the canonical unit names listed eight
    of ten, and ten config keys a deployment can set were documented nowhere —
    among them the ceiling on a GraphQL subscription's stale-privilege window and
    the bound on a federation _entities request.
  • What the pages were saying. /packages/ published cargo add nest-rs --features resource for a feature 335b80e5 had deleted, so the command
    failed for anyone following the page the landing calls the feature map, while
    redis-throttler was absent from it. Both authentication pages published a
    #[module] inside a file titled mod.rs, which the architecture rules the
    CLI generates into every scaffolded project forbid, and /configuration/ testing/ published a #[tokio::test] inside one titled tests/e2e/main.rs,
    which the locked test-layout norm forbids. One anchor pointed at a heading
    renamed out from under it.
  • Four smaller corrections in the joins themselves.
    sources::exported_decorators accepted #[proc_macro] against the argument
    its own doc comment makes — a bang macro is applied name!(…), so it opens a
    cell nothing can fill. umbrella.rs defined a capability as a feature while
    counting crates, and its README corpus borrowed the capability floor.
    declared_str reads an associated const as well as a free one, so the
    docs join derives the env prefix from EnvPrefix::DEFAULT rather than
    spelling it — which env_names had refused, correctly.

A driver carries its own subject, and a role file is named for its role

The naming law reaching the last few types that read correctly in isolation and
wrongly against their path. Breaking, and all of it is a rename.

  • nest_rs_storage::HeadMetadata is ObjectMetadata, and Storage::head
    returns it. The old name described the call that produced the value; the
    value is metadata about an object, and head is only one of the ways to
    reach it. Same field, byte_size, now with Debug/Clone/PartialEq so a
    test can assert on one.
  • nest_rs_seaorm::DbHealthIndicator is SeaOrmHealthIndicator. Db named
    no backend — it is the bare capability word worn by one driver, which is
    exactly what RedisThrottlerModule exists not to be. Its module,
    SeaOrmHealthModule, already said the right thing; the indicator beside it
    did not.
  • nest_rs_health::HealthController is pub(crate). A mounted controller
    is reached over HTTP, not by name: nothing in either workspace imported it,
    and a pub on it promised an API nobody had priced.
  • exception.rs is exception_filter.rs, the role the naming tables give
    the file. Internal — ExceptionFilter is exported from the crate root as
    before.

A health probe's names are settled at boot, and a missing host is an outcome

Two failures a probe could not previously report, both closed where the fact is
known.

  • Two reachable indicators claiming one name on one probe fail the boot,
    naming both hosts.
    The name is the probe body's JSON key and
    ProbeReport::from_indicators folds by it, so a collision did not merely
    shadow an entry: a down verdict could be overwritten by an up one and a
    failing check would leave a readiness probe with nothing said anywhere. Which
    of the two won was inventory link order, which nobody declared. The check is
    per probe, not per registry — #[readiness] fn db beside #[startup] fn db addresses nothing twice, which is the pair nest-rs-seaorm ships.
  • An indicator whose host the container does not hold reports down, it does
    not panic.
    The thunk runs inside a probe request, where a panic takes the
    response down; an Err is the outcome the crate already renders, with the
    real sentence on nest_rs::health. The sentence is the kernel's
    INERT_HOST_HINT, so the five causes are named and no unverifiable edit is
    prescribed.

A task boundary carries the unit of work, through one seam

nest_rs_core::TaskContext — capture the ambient span and request context at
the hand-off, re-install both around the spawned work. Both halves cross, and
neither substitutes for the other
: the span is what puts trace_id on the
events the spawned work emits, the ambient context is what makes
current_trace_id() answer inside it. Carrying only the span leaves the events
looking correlated while every accessor below answers None — the more
expensive failure, because it reads as covered.

Two sites, both of them previously hand-rolling it or missing it:

  • A cancelled multipart upload's abort is filed under the request that
    opened it. Cancellation is precisely the case where the reader holds the
    timed-out request's trace_id and needs the outcome line to carry it. The
    context is captured at construction rather than at Drop, because a dropped
    future is not guaranteed to be dropped on the task that owned it.
  • The GraphQL dataloader batch keeps the behaviour it had and stops spelling
    it locally.

The test harness says which protocol it speaks, and stops hiding a dead socket

  • Edge modules keep their namespace. nest_rs_testing::graphql:: and
    ::ws:: are the paths; the root re-exports of GraphqlSocket,
    GraphqlSocketBuilder, WsApp, WsSocket, WsSocketBuilder, WsFrame and
    CloseCode are gone. Re-exporting both ways gave every type two paths,
    and this crate was already spelling one of them two ways 200 lines apart.
  • CloseCode is nest_rs_ws::CloseCode — RFC 6455 §7.4.1's codes,
    published by the crate that chooses them (a gateway closes with Away,
    Error and Policy), so a caller writing a gateway and a caller testing one
    name one path. nest-rs-ws's own suite used to reach into nest-rs-testing
    for it.
  • Silence and a dead connection are different answers. WsSocket::read_within
    returns WsRead::{Frame, Silent, Aborted} and the GraphQL driver's
    GraphqlEvent/GraphqlRefusal carry the same split. Folded into one None,
    a socket that died mid-test satisfied expect_silence: the assertion "nothing
    was sent" passed because nothing could be sent. close() now loops for the
    peer's answer too — §5.5.1 obliges it to reply "as soon as practical", which
    does not oblige it to reply first.
  • The driver speaks graphql-transport-ws, and says so. graphql-ws is the
    legacy subprotocol identifier; the mount negotiates both and this driver
    pins the modern one, whose refusal close codes (4400, 4401, 4403, 4408, 4409,
    4429) try_connect now reports instead of mapping every one of them to None.
  • mcp::PROTOCOL_VERSION is pinned to the SDK's own LATEST, by a test.
    It sat on 2024-11-05 for four revisions and nothing said so: rmcp accepts the
    oldest revision forever, so every MCP suite in both workspaces passed while
    negotiating a handshake no current client performs. A shared constant was never
    the guard against that. nest_rs_mcp::ProtocolVersion is re-exported so the
    comparison has something to make.

A global ExceptionFilter covers the route table, not the edge

"Global" means a different thing for the two layer families, and only one of
them said so. A global Filter attaches a wrap at the transport edge, so it maps
errors raised where no route matched. A global ExceptionFilter is read
per route by the #[routes] composer — so a 404, a self-mounted surface such
as /graphql or /mcp, or a WS upgrade never reaches one, even when the error
raised there is exactly the type it claims to catch. Use a Filter for those.

Documented on the trait method, on /fundamentals/exception-filters/, and in the
dedup section, which also stops describing the two as nesting: both compose
through compose_chain into a single chain endpoint per route
(ExceptionFiltersEndpoint for the typed catches, FilterChain for the untyped
ones), so the dedup covers every pair of scopes including controller + method
with no global in play.

nest-rs-filters no longer claims to span transports. Its crates.io
description and README said "on HTTP, GraphQL, and WS"; a Filter is bound at
the HTTP edge and reject_http_only_layers is the compile error the other three
edges already raise. The claim was read by everyone as true of them.

Also

  • nest-rs-opentelemetry loses five dependencies and gains a voice.
    nest-rs-http, nest-rs-interceptors and poem were optional entries
    without dep:, so Cargo synthesised a public implicit feature per entry
    and --features poem built poem — the opposite of what the manifest's own
    comment described; tokio and async-trait were simply unused. And an
    unparseable <PREFIX>_LOG_FORMAT / _LOG_SOURCE_LOCATION now reports
    itself instead of silently keeping the default — LOG_FORMAT=console gave
    a production deploy text output where it asked for JSON, with nothing
    anywhere saying why.

  • Two boot internals leave the kernel's surface.
    nest_rs_core::access::reachable_provider_ids and
    container::DuplicateProvider go pub(crate), having no caller outside
    the crate in either workspace; the unit catalogue in operation_log now
    names the edge crates that own each constant.

  • The OpenAPI document lines file under nest_rs::openapi, not
    nest_rs::routes — a target's one job is to say where an event came from,
    and the write happens in nest-rs-openapi.

  • nest_rs_core::unresolved_host is the run-time half of INERT_HOST_HINT.
    Five decorators resolve their host with Container::get::<Self>(), so the
    sentence they report belongs beside the boot-time one rather than inside
    whichever capability wrote it first.

  • OpenTelemetryMeter moves to meter.rs and PipeError to error.rs —
    a file exists for its own content, and errors live in error.rs.
    nest_rs_opentelemetry::parse_bool is no longer re-exported; it is
    nest_rs_core::parse_bool and always was.

  • nestrs doctor reads the namespaces that exist. It answered for
    NESTRS_DATABASE__URL and NESTRS_QUEUE__URL, which no #[config] declares
    any more — it now reports NESTRS_SEAORM__URL and NESTRS_REDIS__URL. Its
    Rust floor is parsed from CARGO_PKG_RUST_VERSION rather than retyped, so the
    toolchain sweep no longer compares the anchor against a stale copy of itself.

  • A dry run says so in every sentence it prints. nestrs new claimed
    "Created …" and pinned an HTTP port directly above "Dry run — no files
    written."; the tense is read off the report, which is the thing that knows.

  • A scaffolded skeleton no longer restates the edge's own line. The queue
    processor and the scheduled tick each filed an info beside the one
    nest_rs::operation already files per unit of work — the same work said twice,
    on a target the documented toggle does not silence. tracing leaves those two
    skeletons' generated manifests with it.

  • nestrs g mcp names the tool after the resource, not its singular.
    Names::tool() read singular where its six siblings read pascal.

  • A generated mod.rs exports the module and not the handler. A controller
    reachable as features::posts::* is a decision the generator was making for
    every project at once.

  • LogCapture can assert on what it could not see. CapturedEvent carries
    the event's name: — its metadata identity, which an OTLP log bridge exports
    as event.name — so a line whose name: had drifted from its message no
    longer passes every assertion in the repo; CapturedSpan carries level, so
    the Level per layer contract is assertable for spans and not just events, and
    it is exported from the crate root. The buffers survive a poisoned lock rather
    than panicking a second time on top of the first failure.

  • EphemeralDatabase stops dropping the host of a path-less URL. RFC 3986
    §3.2 terminates the authority at the first slash after the scheme, not the
    last, so postgres://host:5432 yielded postgres://<db> — surfacing much
    later as a connection error naming a URL the developer never wrote. The
    ephemeral name's prefix is one constant now, read by the reaper instead of a
    hand-counted _ offset that a rename would have shifted silently.

  • nest-rs-health drops nest-rs-interceptors, which it never named, and
    OpenTelemetry::init_for_tests is #[doc(hidden)] — a harness entry point,
    not a documented one. nestrs info stops printing a CLI row that
    nestrs version already owns.

The documented front door is compiled

  • use nest_rs::prelude::* now has a reader, and it had drifted where
    nothing looked.
    #[resolver] and #[mcp] were re-exported without their
    impl halves #[operations] and #[tools], so the documented import gave the
    struct half of two decorator pairs and an unresolved attribute on the other —
    whose natural remedy is exactly the second manifest line the umbrella rule
    forbids. The witness lives in nest-rs-macro-hygiene, which now applies
    every prelude decorator rather than merely importing it, because a glob
    import cannot fail on a name it does not find.
  • #[input] leaves the prelude's http block. It is nest-rs-core's and
    every edge re-exports it, which is the statement that it belongs to none of
    them; behind http it left a --features queue worker's job payload with no
    #[input] and a remedy that pulls the whole HTTP stack into a headless
    binary.
  • nest-rs-guards documents all its features on docs.rs. The three
    per-edge marker traits are feature-gated and docs.rs builds default features
    only, so the published page carried neither the traits nor the links naming
    them.
  • full states its one exception. It pulls every capability but testing,
    which is a --dev install; folding it in would put a test harness in every
    release binary of anyone who took the undecided default. Asymmetry argued in
    the manifest, not silent.
  • Two capabilities gained their composition witness. nest-rs-server-timing
    and nest-rs-health each boot the documented wiring in their own crate and
    read the result back — the header off a route, the probe off the controller —
    instead of leaning on demo/ to prove it.

Every declaration grammar refuses the same four ways

A decorator that takes key = value arguments owes four refusals, each a
compile error naming the decorator, the offender and the alternatives, spanned
at the offending token:

The offence The sentence
an unknown key unknown #[crud] argument `servcie`; expected `service`, … or `paginate`
a key written bare #[queue] `name` needs a value — write `name = ...`
a key written twice #[controller] takes at most one `path`
a value outside a closed vocabulary unknown #[injectable] scope `reqest`; expected `singleton`, `request` or `transient`

The four sentences are worded once, in nest_rs_codegen, and every decorator
now reads them from there. Seven had adopted all of them and four had adopted
none: #[expose], #[api], GraphQL's #[authorize] and #[inject] each took
a repeated key and kept whichever came last in source order — on #[api] that
is published prose choosing itself, on #[authorize] it is which service loads
the authorized subject. A bare key on several grammars died on syn's
expected `=` with no decorator named, and a wrong value was answered five
ways, three of which named neither the decorator nor the key.

  • What was silently wrong is now a compile error. Code that spelled a key
    twice compiled before and does not now; what it meant was already ambiguous.
  • Fifty-six new trybuild snapshots pin the sentences, one per refusal per
    decorator, across eight crates.
  • A grammars join in nest-rs-conformance derives the population — a
    decorator is in it the moment a *-macros crate names a key set — and fails
    the site that hand-rolls or drops a refusal, so the next decorator cannot
    ship half of this.

A concern lives in the crate that owns it

Breaking for Rust importers; nothing changes on the wire, in a decorator, or
in a filter directive.
A cluster of kernel exports moved to the edge that owns
them, and the two strings every crate had re-typed moved into the kernel:

Was Is
nest_rs_core::operation_log::unit::HTTP_REQUEST, … nest_rs_http::unit::REQUEST, nest_rs_ws::unit::{MESSAGE, CONNECT, DISCONNECT}, nest_rs_queue::unit::JOB, nest_rs_schedule::unit::TICK, nest_rs_mcp::unit::OPERATION, nest_rs_graphql::unit::SUBSCRIPTION
nest_rs_core::{HandlerMetadata, MappedError, Public} nest_rs_http::{HandlerMetadata, MappedError, Public}
nest_rs_core::current_body_limit, and the body-limit argument on with_request_scope / RequestContinuation nest_rs_http::current_body_limit; the HTTP edge carries its own limit around body polls
AppBuilder::strict_resolver_membership() GraphqlConfig::strict_resolver_membership — a real config field, env-settable and pinnable through GraphqlModule::for_root
UnreachableResolversError, in the kernel OrphanResolver, in nest-rs-graphql; the boot warn files on nest_rs::graphql
  • The unit names go where the span targets went last release. A unit name
    says which edge did the work, and the kernel does not know the edges exist.
    The <edge>.<unit> grammar stays nest_rs_core::operation_log's; the names
    do not — the same split as targets, held by the same conformance join.
  • HandlerMetadata reads a poem::Request and marks a poem::Response —
    two types the kernel cannot name — and the other edges resolve posture at
    compile time, so the "transport-agnostic" contract had one implementor and no
    second candidate for as long as it existed.
  • A capability's knob was sitting on the kernel's seam. The body limit is
    HTTP's and the orphan-resolver policy is GraphQL's; each now lives with its
    owner, and the GraphQL one becomes a config a deployment can set rather than
    a builder method only code could call.
  • What moved in is what everyone had re-typed. nest_rs_core::parse_bool
    is the one truthy/falsy vocabulary for every framework boolean variable — it
    sat behind the logging Cargo feature, so the crate reading every
    <PREFIX>_<NS>__<KEY> boolean had respelled it. And
    nest_rs_core::UUID_V7_REQUIRED is the one sentence the three id gates word
    (#[crud]'s, HTTP Bind's, GraphQL bind's) — two of the three had already
    drifted apart.
  • The kernel's access exports now match the family. ScopeViolationError
    joins its six siblings — it was the one boot error a caller could not name as
    nest_rs_core::… — and the three graph validators went pub(crate), having
    no caller outside the crate in either workspace.
  • A contained panic is logged under one field name. The downcast ladder was
    already shared in nest_rs_core::panic; the field it lands in is now declared
    beside it and held by a nest-rs-conformance join across the three seams
    that catch — the scheduler, the event bus, the queue consumer.

Two config types reading one variable is a boot error

ConfigService now records which type each resolved variable was read for, and
the second type to read the same name fails its resolve with
ConfigError::ContestedVariable — naming the variable, the owner and the
claimant. Several types sharing a domain stays deliberate (nest-rs-authn
ships three authn configs); two types sharing a variable meant a deployment
setting it configured whichever happened to read it, both silently — their key
sets disjoint by accident of the current fields, a fact about today rather than
a property anything held.

The recording sits on the reader rather than on the type: HttpConfig
delegates ten of its keys to sub-structs that are not Configs, and nothing
that inspects types can see those reads. The free env_var stays outside the
registry deliberately — it is the documented spelling for a cross-namespace
borrow, and what an unowned read should claim is an owner question, recorded in
the module doc rather than silently decided.

The operation-log target is nest_rs::operation

Breaking for operators; nothing to change in Rust. The one line every edge
files per unit of work moved from nest_rs::access to nest_rs::operation:

 INFO nest_rs::operation: tick ran provider="AudioTasks" method="warmup_on_boot" outcome="ok" duration_ms=0.302 trace_id=01a015a91d527cb1b9d15a8ba7fe8846 span_id=bd824ae7eb1f9e7a
Old nest_rs::access
New nest_rs::operation
Change NESTRS_LOG / RUST_LOG directives, log-router rules, dashboard and alert queries

The Rust surface is unaffected — the target has always been read from
nest_rs_core::operation_log::TARGET, so any code importing it follows with no
edit. What breaks is every place the string was typed by hand: a filter
directive, a runbook, a saved search, a dashboard panel. A stale
nest_rs::access directive now matches nothing and fails silently, so grep for
it rather than waiting for a quiet console to be noticed.

  • The old name was HTTP's word for HTTP's line. It survived the
    generalisation to six edges in 5.1, where it stopped being true of five of
    them: a scheduled tick has no caller, so nothing accesses anything. Every
    other framework target names a subsystem and is rooted at the crate that emits
    it; this one names a category of line that crosses all of them — exactly one
    per unit of work, carrying an outcome and a duration_ms — and a
    subsystem-shaped word hid that. operation is the word the operation span,
    the MCP edge's operation served and the owning operation_log module
    already used.
  • nest_rs::access was also silencing a target nobody meant to silence, and
    the rename fixes it.
    EnvFilter compares a directive's target to an event's
    with starts_with on the raw string rather than by :: segment, so
    nest_rs::access matched nest_rs::access_graph too — the boot warn naming
    resolvers unreachable from the GraphQL schema. The documented toggle,
    NESTRS_LOG=info,nest_rs::access=off, therefore took that startup diagnostic
    away as well, with nothing on the console to say it had. Anyone who ran that
    directive was missing those warnings; nest_rs::operation=off silences the
    operation log and nothing else.
  • The property is now executed, not just intended. A join in
    nest-rs-conformance derives every tracing target both workspaces emit and
    fails when one is a prefix of another, and nest-rs-core asserts the
    EnvFilter behaviour the join rests on.
  • NESTRS_HTTP__ACCESS_LOG is unchanged and stays correct. It toggles one
    edge's per-request line — which is what an access log is — rather than the
    family, and it is an app's pinned config rather than a deployment's filter.
    nest-rs-http's access_log.rs keeps its name for the same reason.

One canonical name per unit of work

Breaking for operators. The message on an operation line is now the unit's
canonical name — the same string its span carries — instead of a sentence
written per edge:

Edge Was Is
HTTP request request served http.request
WS message message served ws.message
WS socket open/close socket lifecycle + lifecycle="connect" ws.connect / ws.disconnect
Scheduled tick tick ran schedule.tick
Queue job job ran queue.job
MCP operation operation served mcp.operation
GraphQL subscription subscription served graphql.subscription
 INFO nest_rs::operation: schedule.tick provider="AudioTasks" method="warmup_on_boot" outcome="ok" duration_ms=0.302 trace_id=01a015a91d527cb1b9d15a8ba7fe8846 span_id=bd824ae7eb1f9e7a
 INFO nest_rs::operation: queue.job queue="audio" processor="AudioProcessor::transcode" attempt=1 outcome="ok" duration_ms=33.733 trace_id=01a015a9252076e399f736a97ae90784 span_id=7bbcfc44c1f0c676

Reading which kind of work a line reports no longer means inferring it from
which fields happen to be present.

  • There were two vocabularies for the same eight things. Four edges already
    named their span http.request, ws.message, mcp.operation,
    graphql.subscription; the other two had drifted to prose ("scheduled job",
    "process job"), and every line invented a third wording. nest-rs-ws had
    already hit the wall and left the workaround in a comment — "lifecycle
    rather than the span's name because tracing offers no way to read one back".
    Now there is one name, <edge>.<unit>, declared in
    nest_rs_core::operation_log::unit.
  • It is also the log record's event name. Each line sets name:, which
    opentelemetry-appender-tracing maps to the exported event.name. That field
    used to carry event crates/nest-rs-mcp/src/propagate.rs:183 — a source path,
    one value per call site. Nothing here depends on the exporter: the constants
    are &'static str in the kernel and an app that exports nothing pays nothing.
  • The namespace comes from the closed edge vocabulary, so a new transport
    cannot invent a seventh word without opening the edge deliberately.
  • lifecycle is gone from the WS lifecycle line — ws.connect and
    ws.disconnect say it.
  • A join in nest-rs-conformance derives every naming site and refuses a
    literal at any of them
    , and it reads doctests as well as items. It did
    not, and the one example teaching the grammar — operation_span!'s own — was
    therefore the one site spelling all three slots as literals, with nothing
    failing. syn lowers /// to #[doc = "…"], so an example is a string
    literal to a macro visitor; it is now parsed back into code and walked, since
    an example is what a developer copies.

Every span target and span kind is a constant

230 call sites that spelled target: "nest_rs::orm" now name a constant, so a
typo is a compile error instead of a target carrying one event that no filter
selects. operation_log::kind does the same for the five otel.kind values.

  • The crate that owns the concern declares it — nest_rs_events::TARGET,
    nest_rs_seaorm::TARGET, nest_rs_ws::TARGET — and everything emitting on it
    reads that constant, a sibling crate and a *-macros expansion included.
    Owning is not emitting: nest_rs::routes is filed from six crates and
    nest_rs::queue from a macro expansion rather than from nest-rs-queue
    itself. A target's one job is to name where an event came from, so a central
    table in the kernel would have meant nest-rs-core carrying a name for a
    concern it does not know exists.
  • A crate owning several concerns gets a target module, and there are
    exactly two: nest_rs_core::target (six) and nest_rs_http::target (the
    transport and its route table).
  • report_inert_host! now takes an expression rather than a literal target.
  • Nothing an application writes is affected: an app's own tracing::info! on
    its own target is untouched, and only the framework's own family is policed.

Full Changelog: https://github.com/YV17labs/NestRS/commits/v6.0.0