Skip to content

run_stages, stage_record_line and counters have no callers, waiting on the eleven promoted counters #670

Not planned

Description

@athvin

Deliberately unwired, waiting on a specific input · release post-appexchange · estimate 2.0 eng-weeks

Three primitives in er-obs are complete, tested, and have zero callers:

  • logging.rs::stage_record_line — the S5.2 structured stage line, 25 keys in contract order
  • counters.rs — the promoted-counter vocabulary
  • the run_stages entity — fully declared, never written

This is telemetry plan P13's second half. It reads as dead code and is not: stage_record_line validates its key set exactly against PROMOTED_COUNTERS, so a caller must supply all eleven or get KeySetMismatch, and the obvious caller — er_cli's observed() — does not have them. observed() brackets a stage and returns its result generically; the counters come from each stage's own output.

So the work is "each of the eleven stages reports its own counters", which is the substance rather than a detail.

Why calling it with nulls would be worse than leaving it

  • run_stages would fill with rows whose counters are all null
  • er-cli/tests/cli_e2e.rs asserts that table stays empty — that test is the tripwire telling you this landed, and flipping it with null rows makes it lie
  • every dashboard over it would read zeros as measurements

A visible gap beats a thing that looks like coverage. Same reason docs/telemetry-reference.md is generated rather than hand-written.

One correction to carry forward

er-cli/tests/cli_e2e.rs says run_stages's "writer is the Phase 2 pod verb". It is not. exec_task.rs does not reference the entity, and a workspace search finds zero callers of er_entities::run_stage's generated start / finish. The assertion is right about the state and wrong about the reason — the kind of comment that survives precisely because the test passes.

Tasks

  • Each of the eleven stages reports its own promoted counters out of its own output.
  • StageObserver::stage_succeeded gains elapsed: Duration — the trait captures no duration at all today, yet duration_ms is one of the eleven.
  • Wire stage_record_line and counters to their first callers.
  • Drop run_stages from cli_e2e.rs's never-written list, and fix the stale reason while there.
  • Delete the "no callers, and what it is waiting for" section from logging.rs once it has one.

State verified 2026-11-05 by searching the workspace for callers, not by reading the module docs — which are accurate here, unusually.

Activity

  1. added
    post-appexchange
    obs-backlog
    post-mvp
    and removed
    post-appexchange
    on Nov 6, 2026
  2. added
    pruned
    on Nov 27, 2026
  3. athvin commented on Nov 27, 2026

    @athvin
    OwnerAuthor

    Closed in the 2026-11-26 board prune. The board now targets a deduplication tool that works the same whatever the data's source. This card is speculative or process upkeep, so it isn't needed for that. It's labelled pruned and can be reopened if it becomes relevant.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    obs-backlogpost-mvppruned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions