Skip to content

gate: prove audit_log.trace_id is populated — pg_orgs.rs phase (from #660) #840

Closed

Description

@athvin

Child of #660, which is otherwise landed on main. This ticket is the in-repo half of its remaining work; the live re-probe half stays on #660 (blocked on cluster access — see #839).

What

audit_log.trace_id has no gate at any level proving it is ever populated. er-server/tests/telemetry_trace_continuation.rs asserts exported-span lineage; nothing writes an audit row and reads trace_id back.

Add the phase to rust/crates/er-server/tests/pg_orgs.rs (which already tests the audit ledger):

  1. A request carrying a traceparent header writes an audit row whose trace_id is that trace id.
  2. A request without one writes null (or the zero trace id — assert whichever the code intends, and make the code's intent explicit if it is ambiguous).

The machinery exists: pg.rs:1292 audit_rows returns trace_id via er_obs::current_trace_id(), and telemetry.rs make_span adopts an acceptable incoming traceparent. The test only has to prove the two meet in the ledger.

Done when

pg_orgs.rs carries both assertions, make check-e2e is green with them, and the PR ledger is closed.

Size: 0.1w. Split out of #660 by the #655 session under the board's decomposition convention.

Activity

  1. self-assigned this
    on Nov 8, 2026
  2. athvin commented on Nov 8, 2026

    @athvin
    OwnerAuthor

    Claimed — working in #841 (draft). Closing that PR releases the claim.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions