Repository navigation
fix: keep the promises the 3.0 audit surfaced (air-gap, determinism, frozen-contract, secrets) - #174
Merged
Merged
Conversation
…nistic gate) A multi-agent promise audit flagged two genuine AT-RISK gaps; both fixed: 1. LOCAL-FIRST / air-gap completeness — checkForUpdate (the only outbound call on a normal `kit` run) now short-circuits under KIT_AIRGAP (isAirGap()), alongside the existing CI/KIT_NO_UPDATE_CHECK suppressors. Air-gap mode no longer leaks a lone npm-registry beacon; "no outbound network by default" is now a complete posture. 2. DETERMINISTIC GATE — bumblebee threat-intel catalog staleness (>60d) was a `warn` that failed `kit ci --strict` purely on wall-clock time (same repo + scanners, different verdict by date). Staleness is now ADVISORY: status stays `pass`, the age is surfaced in detail/suggestion, and the gate verdict is a function of inputs only. Tests: checkForUpdate returns null under KIT_AIRGAP (other suppressors cleared, proving the air-gap branch). Full suite 1918 pass; security-check PASS. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015ERHw6bVUz39sAuoQZ1iyg
|
✅ Docker image built successfully
|
3. FROZEN CONTRACTS — "additive-only across 2.x" is now TEST-enforced, not just
review discipline. A new invariant test compares the live surface to the
committed contracts/public-surface.json baseline and fails on a removed stable
command, a stable→experimental/deprecated downgrade, or a schemaVersion/
adapter-sdk major regression — so a breaking change can't be hidden by
regenerating the byte-for-byte snapshot.
4. SECRETS — entropy backstop for the fail-closed shared-memory gate. The
kv-secret heuristic allowlists KIT_/GITHUB_/… env prefixes, so a real
high-entropy credential under such a prefix slipped past `kit memory share`.
findSecrets(text, {entropyBackstop}) now also flags an ALL-CAPS KEY=value
whose value is long + high-entropy (Shannon ≥ 4.2 bits/char) regardless of
prefix; shareEntry enables it. Catches base64/base62 secrets, clears hex
hashes (~4.0) + dictionary words; the code/diff scan path is unchanged.
Full suite 1923 pass; security-check PASS. Completes the four promise-keeping
fixes the 3.0 review surfaced.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015ERHw6bVUz39sAuoQZ1iyg
|
✅ Docker image built successfully
|
This was referenced Jun 30, 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.
Description
This session's multi-agent promise audit found kit largely keeps its promises (honestly scoped). This PR closes all four gaps it surfaced — two AT-RISK, two hardenings.
1. Local-first / air-gap completeness (AT-RISK)
checkForUpdate— the only outbound call on a normalkitrun — now short-circuits underKIT_AIRGAP(isAirGap()), alongside the existing CI suppressors. Air-gap mode no longer leaks a lone npm-registry beacon.2. Deterministic gate (AT-RISK)
A clean supply-chain scan whose bumblebee threat-intel catalogs were >60 days old was a
warnthat failedkit ci --strictpurely because the wall clock advanced. Catalog staleness is now advisory (status: pass, age noted); the gate verdict is a function of inputs only.3. Frozen contracts — additive-only now test-enforced (hardening)
The byte-for-byte snapshot forced acknowledgement of drift but treated additive and breaking changes identically. A new invariant test compares the live surface to the committed
contracts/public-surface.jsonbaseline and fails on a removed stable command, astable → experimental/deprecateddowngrade, or aschemaVersion/adapter-sdk major regression.4. Secrets — entropy backstop for the fail-closed shared-memory gate (hardening)
The
kv-secretheuristic allowlistsKIT_/GITHUB_/… env prefixes, so a real high-entropy credential under such a prefix slipped pastkit memory share.findSecrets(text, { entropyBackstop })now also flags an ALL-CAPSKEY=valuewhose value is long + high-entropy (Shannon ≥ 4.2 bits/char) regardless of prefix;shareEntryenables it. Catches base64/base62 secrets, clears hex hashes (~4.0) + dictionary words; the noisier code/diff scan path is unchanged.Type of Change
Testing
npm test) — 1923 pass / 0 fail;run-security-check.mjsPASS (19 ok).Breaking Changes
None / N/A.
🤖 Generated with Claude Code
https://claude.ai/code/session_015ERHw6bVUz39sAuoQZ1iyg