Est.

Auditing the Contractual Weight of a PR Held Open by Live Production Telemetry Versus Closed by Pipeline Exit Code

Exit codes judge the process, telemetry judges the system, and gates must say which.

· 8 min read
Cover illustration for “Auditing the Contractual Weight of a PR Held Open by Live Production Telemetry Versus Closed by Pipeline Exit Code”
Observability · November 29, 2026 · 8 min read · 1,785 words

A PR held open by live production telemetry and one closed by a pipeline exit code rest on different kinds of evidence. An exit code gives a verdict on the process. Telemetry gives a verdict on the system. Auditing their contractual weight means establishing what each signal proves, which decision it can authorize, and how a live failure becomes an enforceable gate condition.

Why an exit code and a production telemetry signal are not the same kind of verdict

An exit code describes what a pipeline concluded about the artifacts and inputs it could read during a run. Live production telemetry keeps watching a deployed system to show its runtime state. These are different levels of knowledge. The former reports the result of an evaluation. The latter supplies evidence about the system that evaluation may claim to represent. A pipeline that never reads production state cannot prove what that state is just by finishing successfully.

A gate contract gives these signals their authority. It defines the condition that permits an action and the evidence required to establish that condition. Under such a contract, “ready to merge” and “observed working in production” need not mean the same thing. Both verdicts can be valid for what they cover. The ambiguity begins when a shared status channel makes them appear interchangeable without specifying which proposition the gate actually evaluated.

What exit codes actually assert, and where their authority ends

PR #1034 on wangzitian0/infra2 shows how much a single exit code can hide. Exit 1 previously represented pending, red, open thread, draft, not open, and a gh crash. A caller may need to wait for one state to clear, while another needs an owner or shows that the evaluation itself failed. A single failure code erased those distinctions.

The PR introduced a taxonomy with exit 0 for ready, 1 for wait, 2 for owner required, 3 for action required, and 4 for could not evaluate. Each reason has its own kind, and the verdict derives from the aggregated kinds. Exit 4 is neither clearance nor demotion. It states that the gate lacks the information needed to judge.

The same PR introduced a preflight that refuses to judge when the gate’s own checkout is behind main. That check recognizes that stale rules undermine the evaluator’s authority. Yet even a current evaluator has a bounded scope. Exit 0 from a pipeline that never read live telemetry establishes only an absence of contradiction within the pipeline’s inputs.

Diagram: The Five Exit-Code Verdicts: What Each One Actually Asserts. Visualizes: The infra2 PR #1034 on wangzitian0/infra2 replaced a single ambiguous exit code with a five-level taxonomy: exit 0 = ready, exit 1 = wait, exit 2 = owner required…

The temporal gap between pipeline green and production truth

Time adds a second boundary to the pipeline’s authority. Its verdict is a snapshot taken during a run, while the deployed system continues to change. By the time a later decision is made, the state on which that verdict was based may have changed. Correct logic cannot eliminate this temporal gap. A gate that reads only pipeline state remains limited to what was available at time-of-check.

Continuous production telemetry reports the runtime state it observes, while an earlier pipeline result shows what was true during that run. This adds evidence that the original run did not have. Where the contract requires production confirmation, the gate needs that evidence rather than an inference from elapsed pipeline success.

The infra2 PR also makes the report, rather than the exit code, the basis for judging the run. The step raises an error annotation when no remediation report exists. Absence is not treated as success.

What production telemetry actually certifies, and the conditions under which it can hold a gate

A telemetry-based hold asserts that a required production condition has not yet been established. It does not necessarily dispute the pipeline’s result. worldlinemuse-lgtm/multi-model-ai-platform Issue #48 records skipped deploy and hosted-acceptance jobs, with zero of 45 mapped production phases confirmed OTel-instrumented. The release verdict remained NOT INTEGRATED despite no demonstrated GitHub permission or mergeability blocker.

The issue defined a concrete close condition. A real operation in the publicly deployed workshop had to generate a truthful, inspectable OpenTelemetry trace and associated metric. The complete release CI, offline, privacy and diagnostics acceptance gates also had to pass. Runtime evidence was therefore a required part of the contract.

The strength of that hold comes from its specificity. It names the operation’s environment and the evidence needed to close the gate, while retaining the other acceptance requirements. Telemetry can support only the claim its observation establishes. An open-ended demand for more telemetry, with no defined operation or close condition, would be an indefinite block.

Where exit codes and telemetry legitimately agree, and what that agreement proves

An exit code can reflect live evidence when the pipeline explicitly consumes that evidence as an input. In that case, the process verdict partly inherits the authority of the system observation it evaluates. Two signals displaying success independently do not prove that either was evaluated against the other or that both concern the same condition.

The infra2 PR connects the gate to live state through its production lock. The gate reads a live GitHub environment with a required reviewer, admin bypass off, and deployment policies on main and v*, created 2026-10-08. The gate provides evidence about deployment controls and fails closed if that lock cannot be read.

Reliable agreement therefore requires named live inputs, machine-readable and versioned conditions, and a failure policy that does not convert unreadability into permission. Under the owner’s principle, only a production deployment needs the owner. A merge verdict and a deployment verdict can legitimately differ because they authorize different actions under separate contracts.

The demotion record as the contractual object that bridges the two verdicts

A demotion record is a named, persisted artifact that holds a gate open until a human closes it. It translates a telemetry-observed failure into an obligation the gate can read. Persistence gives the failure continuing contractual force. Without that object, a live observation and a later gate evaluation may remain disconnected, leaving the failure visible to a person but unenforced by the check.

A post-merge-failure record, or another issue that names the run, does not hold the gate merely because its description concerns the same event. Only a demotion record with the correct marker format does so. Human interpretation is not the matching rule.

A gate audit must check whether the token with filing permission can reach the filing path, since the presence of demotion-record logic alone does not prove that it can. An unreachable path leaves the intended obligation unenforced.

Approval fatigue, stale approvals, and where human authority belongs in the chain

Requiring every merge to wait for production observation would impose latency and make human reviewers a bottleneck. Human authority belongs at irreversible actions, including production deploys, data deletion, external communications, and credential changes. Routine operations can be auto-approved through automated merge-gate checks without transferring that permission to production deployment.

The infra2 production environment implements this distinction through its required reviewer and disabled admin bypass, while ordinary workflow changes do not require that owner approval. This allocation preserves review at the deployment boundary. It also prevents a production safeguard from becoming a general requirement for every merge.

Approval must also remain bound to the reviewed change. An approval tied to a specific commit SHA and an expiry window cannot be treated as permission for an unrelated or later change. Stale approvals create a route for shipping unreviewed changes. An audit must consequently inspect expiry as well as approval presence, while excessive approval frequency calls for narrowing the gate to irreversible actions and preserving the limits on what an approval permits.

How to audit a gate contract for the process/system verdict gap

The audit starts with four questions that need answers from artifacts beyond the pipeline’s own report that it passed. The first is whether the exit-code schema distinguishes a pipeline pass, an inability to evaluate, and confirmed live production state. If all three produce exit 0 without distinguishing evidence, the schema cannot support a production verdict. The infra2 taxonomy provides a concrete contrast. It assigns “could not evaluate” to exit 4.

Second, the auditor must establish what a successful exit code proves the pipeline actually read. The auditor must distinguish a named telemetry input from the weaker condition that no pipeline step failed. This means reading the inputs and reports behind the result. The multi-model platform’s acceptance rule makes the distinction tangible because it requires a real deployed operation, its trace, and its associated metric. A successful result without that evidence would not satisfy the stated close condition.

Third, the auditor must identify what enforces a demotion or telemetry failure after it occurs. A demotion record, lock state, or JSON report must make the obligation machine-readable rather than depend on an agent or reviewer remembering it. Enforcement requires a check. For a demotion record, the audit includes its marker format, filing permissions, reachable filing path, and human closure requirement. For an unreadable production lock, the infra2 gate prints “production lock NOT verified” and fails closed. A gate that instead grants clearance when required telemetry is unavailable warrants a finding of the highest severity.

Fourth, the auditor must identify which action each approval authorizes and how that approval is bound to a named person, a named SHA, and an expiry window. Agents can merge PRs under automated merge-gate checks, while promotion to production is a separate event that needs a named approver.

Why the same epistemic gap appears in growth engineering and agent-driven GTM workflows

A content or campaign pipeline can declare an asset published without establishing that it works in the live environment it targets. Publication is the process verdict. Citation rate, agent visibility score, and buying-signal response show how the system performs beyond that pipeline. Closing a content PR on SEO-pipeline-green therefore cannot, by itself, establish GEO visibility. The pipeline certified publication, not that AI answer engines read the asset, cited it, or routed buyers to it.

Ranking and citation require separate instrumentation because pages that rank in search are not reliably the pages AI engines cite. A live citation audit or agent visibility signal can serve as the marketing engineering equivalent of a demotion record when it is machine-readable and tied to a defined gate condition. The required observation must match the claim. For a gate requiring reachability and citation, indexing alone is insufficient. An observed AI response must supply the evidence the contract names.

Making a site legible to a machine is consequently an engineering problem of structure, links, proof, currency, and interoperability. Continuous measurement tests that legibility beyond the moment of publication. Platforms that track citation presence and agent-readable structure also keep completed work separate from the results they observe. When the contract requires a live signal, a publishing process that finishes successfully cannot count as a pass if that signal is missing.

Filed underObservability

More in Observability