Skip to content

docs(agents): routing-maintenance guide for promoting/demoting native capabilities - #126

Merged
zackees merged 1 commit into
mainfrom
docs/routing-maintenance
Sep 16, 2026
Merged

zackees merged 1 commit into
mainfrom
docs/routing-maintenance

Conversation

@zackees

@zackees zackees commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds agents/docs/routing-maintenance.md and links it from AGENTS.md and agents/docs/polylinker.md. Docs only.

It answers, for agents working on the native engine:

  • How a native enhancement is promoted so the fast engine is used: prove-before-promote (native conformance test merged while the flag still routes to lld), flip the routing tests instead of deleting them, flip CI route expectations, re-check satisfied-by-construction neighbors, regenerate README/polylinker/DESIGN claims.
  • How a native bug is demoted: add a measured Requires(lld) route immediately, never a warning or silent-ignore entry.
  • How to classify a new flag: four dispositions, and the rule to check lld's option table for "ignored for compatibility" before routing to it.
  • How a routing decision is surfaced, and why stderr is not free: measured with rustc 1.95, the linker_messages lint is allow-by-default, -W makes every linker stderr byte a warning, -D makes it a build error. So: never write to stderr on a successful link without RELD_LOG_ENGINE; use RELD_INVOCATION_LOG, the output .comment section, and (per Polylinker no-gaps gate: classify every flag, route by target not host, prove coverage before reld becomes soldr's default #123) RELD_REQUIRE_ENGINE in CI.
  • A PR checklist for changes under args, bridge, elf*, layout*, or the -z table.

Refs #123.

🤖 Generated with Claude Code

… capabilities

Adds agents/docs/routing-maintenance.md: the contributor procedure that keeps
polylinker routing in step with the native engine. Covers where routing lives,
the promote-a-capability procedure (prove before promote, flip tests, flip CI
route expectations, regenerate claims), the demotion procedure for native bugs,
the decision tree for classifying a new flag (never route to an engine whose
option table says "ignored for compatibility"), adding an engine behind the
capability table, and the stderr policy: rustc's linker_messages lint turns any
linker stderr on a successful link into a warning (-W) or build error (-D), so
routing is surfaced via RELD_INVOCATION_LOG, the output .comment section, and
RELD_LOG_ENGINE only.

Cross-links from AGENTS.md and agents/docs/polylinker.md; corrects the
polylinker "observable" non-negotiable to say not-on-stderr-by-default.

Refs #123.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant