Repository navigation
Port enforce policy, enforce-misses and telemetry consent into the CLI - #44
Merged
Merged
Conversation
…from DiffCI.com Development of these features continued in DiffCI.com's private src/client after the CLI moved to Core on 2026-10-18, so the published CLI lacked them. Three-way merged from the common base (DiffCI.com b35f55c, the archived 0.3.10 source) onto Core's CLI: - add enforce-policy, enforce-misses, enforce-misses-collect and telemetry - verify: run --policy enforce on top of batched selection; fullSelection now returns the same shape as executableSelection - cli: keep --baseline-on-failure alongside --policy enforce, --share-usage, --no-send, and the telemetry and enforce-misses commands - give the CLI package its own tsx test runner and port the matching tests - list the new files in the reviewed release boundary Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Why
After the CLI moved to Core on 2026-10-18, work on it kept landing in DiffCI.com's private
src/client. So the published@diffci.com/diffciwas missing:--policy enforce(DiffCI/DiffCI.com#69)diffci enforce-misses(DiffCI/DiffCI.com#71)3ff9e44, Oct 14)This brings them into
packages/diffci-cliso Core is the only place the CLI is developed.How
Three-way merge from the common base, DiffCI.com
b35f55c(identical to the archived 0.3.10 source Core first imported), onto Core's CLI:enforce-policy.ts,enforce-misses.ts,enforce-misses-collect.ts,telemetry.tscontext.ts,observe.ts,mcp.ts,usage-signal.tsverify.ts: enforce mode runs on top of Core's batched selection;fullSelectionnow returns the same shape asexecutableSelection. The report keeps bothfailure_baselineandenforcement.cli.ts: the usage line keeps--baseline-on-failurealongside--policy enforce,--share-usage,--no-send, and adds thetelemetryandenforce-missescommands.tsx, same as Core's root) and the matching tests.release-files.jsonlists the new files.Server-side parts of the telemetry change (product and site workers) stay private in DiffCI.com.
Testing
audit:boundary(198 reviewed files)package:check,package:smokeupload-artifact@v4tag that Core replaced with commit SHA pins inb7bd7af.Follow-up
Point DiffCI.com's dogfood workflows and type imports at the published CLI, then remove its
src/clientcopy.🤖 Generated with Claude Code