fix(kpi): restack ambiguous provenance JSON bytes on current main - #321
Closed
seonghobae wants to merge 1 commit into
Closed
fix(kpi): restack ambiguous provenance JSON bytes on current main#321seonghobae wants to merge 1 commit into
seonghobae wants to merge 1 commit into
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This was referenced Aug 14, 2026
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.
Purpose
Rebuild only PR #315's strict production-KPI provenance byte-integrity hardening onto current protected
mainafter #305 advanced the base. No predecessor CI, review, scanner, coverage, production-KPI, release, deployment, legal-rights, or acquisition authority transfers.Exact construction
mainimmediately before publication:534bf1708a6277c443867e87092ac5f2c05ea490;cfc5dd4a2e7fc40459f3b415d22be3e2e53217ca;7f3519161d2b650cbccd8a4b8300fe53bbcbda4a;scripts/kpi-gate.mjsandtest/kpi-provenance-json-integrity.test.ts.Protected-main movement since #315's prior base changes only the distributed rate-limiter source/tests, so this successor overlays #315's exact two head blobs without overwriting intervening protected bytes.
KPI provenance integrity contract
Strict provenance is kept as raw bytes until fatal UTF-8 decoding, then rejected on escape-equivalent duplicate decoded object names before
JSON.parseor production-source identity, collection timestamp, record count, SHA-256/byte-size, verified snapshot, final identity, and least-authority KPI child-process decisions. Existing production-source/provenance binding remains unchanged. This does not synthesize a real 30-day production KPI window.Evidence boundary
Keep Draft until this unchanged exact head receives fresh terminal-success application
ci,reviewer-ci, protected-base-eligible centralSecurity Scan, exact 100% owned production statement/branch/function/line coverage with realistic tests, and zero valid unresolved findings. Pending, queued, skipped, absent, neutral, failed, cancelled, stale, predecessor, status-only, model-only, or rate-limited evidence is non-passing.Immediately before Ready or merge, independently re-resolve protected main, exact head/base/ancestry, formal reviews/threads, checks and checkout SHAs, live rulesets, central Security Scan revision/triggers/base filters/thresholds, releases, and writer state.
Supersedes #315 only after fresh exact-head verification and protected integration. Related: #3.