Skip to content

feat(observability): say how much release a run worked on - #231

Merged
goldbarth merged 1 commit into
mainfrom
feat/release-scope
Sep 22, 2026
Merged

goldbarth merged 1 commit into
mainfrom
feat/release-scope

Conversation

@goldbarth

Copy link
Copy Markdown
Owner

Follows #230, point 4 of the measurement plan for the provider comparison runs

  • The context for every token count: the summary opens with Release: 14 commits, 10 pull requests, 9 facts (7 with a description, 22,512 characters), and the run record carries the same as metrics.release. Comparing runs across repositories needs it: cost follows description length more than pull request count (the README's alpha runs: about 22,500 vs 230 characters for ten pull requests each).
  • Counted where the facts are established: the pipeline records the scope right after the fact base is built - commits in the range, merged pull requests behind them, facts after filtering.
  • Characters are what the model reads: the facts' descriptions, after template comments are stripped and at the configured factBase.depth - title-only counts 0, because nothing beyond the title is sent. Titles are left out: short, and roughly proportional to the fact count already shown.
  • Recorded through IRunMetrics.RecordReleaseScope, so the summary and the record read it from one RunReport. Additive under schemaVersion: 1.
  • Docs: run-metrics.md, run-record.md.

Verified end to end: the release binary on six real Chartula commits (GitHub read with a token), against a local fake model:

  Release:          6 commits, 6 pull requests, 4 facts (4 with a description, 9,902 characters)

Tests: ReleasePipelineMetricsTests (scope recorded from the stubbed release), RunReportFormatterTests (line, absent without scope), RunRecordJsonSerializerTests (written and read back); full suite 725 passing, build and dotnet format clean.

@goldbarth
goldbarth merged commit 2a08716 into main Sep 22, 2026
4 checks passed
@goldbarth
goldbarth deleted the feat/release-scope branch September 22, 2026 15:59
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