-
Notifications
You must be signed in to change notification settings - Fork 10
feat(sync): W1 measurement contract — source-attributed sync instruments (I1–I9) #2033
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
5534dd0
feat(sync): W1 measurement contract — source-attributed sync instrume…
Jurij89 3cc2e8a
test(sync): close W1's R1/R2/R5 ALS conditions with discriminating tests
Jurij89 9bc84f4
fix(sync): add `control-plane` source and protect the I9 bucket contract
Jurij89 6bf6fbb
test(sync): delete a responder assertion that executed no responder code
Jurij89 2456be4
test(sync): drop the dead import and name the real responder entry point
Jurij89 737dd38
fix(w1): close the review round — Prometheus byte spelling, teardown …
Jurij89 ce0e398
docs(w1): record that the teardown guard resolves #2029 without maski…
Jurij89 9e6dd5d
fix(w1): wire the two gates that could not fire, and narrow the lane …
Jurij89 b2be6f8
fix(w1): bind the queried metric names to the core declaration, count…
Jurij89 df1ef6c
fix(w1): close D4 — a releaseCatchupJob that deletes nothing passed t…
Jurij89 904b210
fix(w1): zero-fill each byte leg, bind the source vocabulary, make te…
Jurij89 a701c1a
fix(w1): one source of truth per label vocabulary, and actually run t…
Jurij89 487fc0d
fix(ci): make the W1 promtool step lint-clean and correct on the suc…
Jurij89 55af936
fix(w1): pre-send abort boundary on the changelog lane, and bind I7/I…
Jurij89 2c65f37
fix(w1): classify changelog terminals from the captured stop signal, …
Jurij89 4ce70ec
fix(w1): make the I4 operation classifier causal too, and fix the tes…
Jurij89 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 Issue: W1 semantic verification is not triggered by the source contracts it mirrors
What's wrong
The new W1 verifier gives good coverage when observability artifacts change, but the workflow does not run for changes to the production telemetry contract that the verifier is supposed to guard. That leaves an important stale-query regression unverified.
Example
A later PR renames
dkg.sync.attempt.request_bytesor adds a newSYNC_ADMISSION_SOURCESmember without touchingtools/observability; the W1 queries stay stale, but this workflow does not run because the changed path is outside its filter.Suggested direction
Expand the workflow path filter or add an equivalent CI check in the main test workflow so telemetry-contract-only edits cannot skip the W1 render verifier.
For Agents
Update
.github/workflows/observability-artifacts.ymlso the W1 verification job also runs when the production sources that define W1 metric names/units/source families change. At minimum includepackages/core/src/telemetry-api.tsandpackages/agent/src/sync/policy.ts; consider any other source files the verifier intentionally mirrors.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in
9e6dd5d30. Same class as the packet-gate finding, and equally right: a verifier that mirrors a contract has to be triggered by that contract, or it is a check that cannot fire on the change that matters.verify-w1-render.mjsholds its own copies of the W1 instrument inventory (names + units) and the eight-member source vocabulary — deliberately, so the artifacts are checked against an independent statement of the contract rather than against themselves. But that independence is exactly what makes the path filter wrong: a PR renamingdkg.sync.attempt.request_bytesor adding aSYNC_ADMISSION_SOURCESmember without touchingtools/observability/would leave every W1 query stale and skip the only check that could say so.Added both sources you named to the filter:
Those are the two the verifier actually mirrors — instrument names/units come from
telemetry-api.ts, andSYNC_ADMISSION_SOURCESis declared insync/policy.ts(catchup-policy.tsandindex.tsonly re-export or consume it). The workflow already re-triggers on itself, which is the same principle applied to the gate.Both workflow files re-parsed after the edit.