Repository navigation
Count confirmed Bug origins against their Runs - #1304
Merged
Merged
Conversation
JacobStephens2
marked this pull request as ready for review
October 25, 2026 06:57
This was referenced Oct 25, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Rejected and unsettled Bug origins count for nothing. Late confirmations and corrections are joined when metrics are read; old Command records remain unchanged. The manual and hand-written site pages describe the behavior.
Closes #1039
Evidence
cargo test --test metrics confirmed_bug_origins_count_at_read_time_against_the_run_and_its_weekfailed with a missing count (null, expected0). The Spec review's exact continuation reproduction failed: one confirmed Bug origin counted2.0times.After: the same test and exact reproduction pass.
cargo test --test metricspasses 29 tests (one subprocess fixture ignored), including late confirmation, corrections, rejection, reopened bugs, child Runs, retained metrics and continuation attribution.cargo checkpassed during implementation.scripts/affected-tests issue-981ran for 959.27s, including compilation. All 44 site tests and 2,250 Rust tests passed beforesite_deploystopped on an unrelated hostsnapd.servicewarning (Unknown key name 'RestartMode').SYSTEMD_LOG_LEVEL=err cargo test --test site_deploy the_systemd_units_verifypasses. The affected run used process-only Git configuration to disable this host's global commit/tag signing defaults; machine settings were unchanged.c0dd9930: passed, including the full Linux Rust suite, formatting, clippy, Python tooling, site and Console browser checks. Exact-head CI run. Release build and smoke checks also passed.Test seams
thirdshift metrics <command> --json, text output, and weekly trends come out.Review
Fixed point:
issue-981(c77938b014d94c68438abbf569e1ba55f81f2608). Independent Standards and Spec reviewers inspected eleven of the twelve final changed files, including generatedCargo.lockandsite/docs/index.html; no generated-output exclusions.Changed file left unread by both independent review axes:
tests/run_metrics.rs. It changed after their follow-ups to add the new read-timeconfirmed_bug_origins: 0field to two existing whole-object expectations, while continuing to compare every retained metric. The implementer inspected it;cargo test --test run_metricspasses 10 tests (one subprocess fixture ignored). Each report explicitly records this final coverage gap.tests/metrics.rs.Full reports, including each axis's final files-read list, are saved with this Session at
.thirdshift-review-DGsqRr/standards.mdand.thirdshift-review-DGsqRr/spec.md.Unaddressed findings
Standards
None.
Spec
None.
Merge Danger
Door: two-way
The change only reads local Scoring data and adds a metrics signal; it does not rewrite retained records.
Blast Radius: metrics
Malformed Scoring checkpoints report an error instead of silently showing zero Bug origins. Attribution follows the Scoring checkpoint format already on
main; the specified base branch does not yet contain that writer.Built with codex · gpt-6.1-sol · high