Skip to content

test(audit): qualify native repeat and Windows filesystem custody - #1021

Merged
777genius merged 4 commits into
mainfrom
fix/kimi-native-coordinator-e2e-20261119
Nov 25, 2026
Merged

777genius merged 4 commits into
mainfrom
fix/kimi-native-coordinator-e2e-20261119

Conversation

@777genius

@777genius 777genius commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Postmerge acceptance — final Marketing matrix pending

Ordinary merge d3cfbb6a is confirmed. Both parents and all 5 changed file blobs/statuses match the reviewed candidate.

The actual-main Required run completed successfully: nine applicable jobs executed and passed, plus the explicit conditional classifier skip. Source-bound original logs confirm primary Go/manifest/generated/vet checks, 1231 npm passes, six explicit skips and zero failures, 133 conformance passes with zero skips, staged-hermetic one pass with zero skips, and all four lint modules. All three OS SDK jobs passed 50 tests each with zero failures/skips, including retained Skill review/replay/exact restore across host restart and a clean packed-SDK consumer. The final macOS SDK job independently confirms checkout d3cfbb6a and the production restart/restore and packed-consumer cases.

Both CodeQL languages, all six Govulncheck modules, and Dependency Review also completed successfully. All six original vulnerability logs report no vulnerabilities. The released-source harness executed 51 tests with zero skips on this main source. Its conditional Public .116 skip is not native product qualification; #1093 owns that separate manual audit.

The remaining selected gate is the latest applicable guarded Marketing main matrix. All six native lanes must actually execute successfully. The applicable final run will be reconciled again after the pending #1093 shared-helper merge; the preceding unguarded run is not final acceptance evidence.

Native Kimi 2.3.2 Skills establishes the absent-throughout coordinator path. Present coordinator replacement remains focused filesystem regression coverage; no current native 2.5.2 qualification is claimed.

This checkpoint supersedes older pending entries below. No queued, running, conditional-skip or superseded job is counted as an executed pass.

Summary

Tighten native-audit evidence for Kimi repeats and Windows filesystem custody. Kimi's empty workspace coordination target may be atomically replaced by the native client; admit that metadata change only when the target remains an owned, private, single-link, empty regular file, its scoped hash and captured identity agree, and the live lock companion is absent. All other scoped mutations remain refused.

Canonicalize the Firebase case spelling only after verifying the same directory identity. Target the Gemini Windows replacement test at the actual observed file descriptor so that the intended same-bytes swap is exercised.

Current HEAD: 3376c214ba5074479c3ac09ed1734ed6dd281993, five changed scripts. Existing hosted Kimi pins remain Skills 2.3.2 and plugin 2.4.1; historical Kimi 2.5.2 observations motivated the regression but are not a current 2.5.2 qualification claim.

Verification

  • go test ./..., make vet and make generated-check passed in current Required/test. Its log records 1231 npm tests passed, six explicit skips, zero failures, and 133 conformance cases passed without skips or failures.
  • Full Required and CodeQL completed successfully. Source-conditional Required lint/SDK skips are not counted as executions.
  • The four shared lint modules executed successfully in Core; the aggregate local command make lint was not separately invoked.
  • Updated Windows Gemini replacement regression executed successfully in job 138567930249: 15 passed, five explicit platform/scenario skips.
  • Firebase Windows lifecycle/custody passed, including repeat/remove/sentinel checks and the canonical short-path case.
  • Focused negative regressions cover changed Kimi ownership/permissions/content/lock state and Windows path/file replacement.
  • Both current Codex pilot jobs completed successfully, enabling the existing full matrix.
  • The pinned full-30 Kimi Skills job completed successfully. The original log and artifact 14996645421 bind exact head 3376c214 and checkout 510c44e37f4b00190e6d9a7c57cf938537a2b7d4 to Linux x86_64 and genuine Kimi 2.3.2: 30 attempted, 30 passed, with Ready after add/repeat, verified owned log append, removal, unchanged locks and preserved sentinels for all 30 cases. The workspace_lock witness is absent throughout this receipt. This proves the absent-throughout compatibility path; the present coordinator's atomic replacement branch is covered by the focused filesystem regressions and is not claimed as native 2.5.2 proof.
  • The Kimi plugins job completed successfully with genuine 2.4.1: 29 native lifecycle passes and one verified expected unsupported-source refusal (Marketing Kit, index 13). All 30 sentinel checks passed. Original artifact 14995468019 SHA-256 1b2dd6f20677da54347ad46d5d2ae677de3f82d96de904adca9d6158627db8f5 binds the same exact head/checkout. This is additional pinned compatibility coverage, outside the new Linux Skills branch.

Independent source review of the current five-file diff found no actionable issues. All selected premerge checks are now complete on this exact head. The five paths are disjoint from changes on current main d4485c2c; actual postmerge checks remain required. Dependency Review passed. No queued or historical native result is counted as current qualification.

Release Impact

  • No public CLI/SDK contract change.
  • Audit evidence and focused tests updated.
  • File ownership, bounded capture, identity revalidation and mutation refusal preserved and reviewed.
Historical context and evidence from earlier heads

The following text is retained for provenance. Its “current” hashes and check results refer to superseded heads and do not qualify the current HEAD identified above.

Problem

The genuine Kimi 2.5.2 full-30 Skills audit in run 44527327922, job 135571242259 observed Ready after all 30 first and repeated installations, and retained removal/foreign-sentinel evidence. Repeat qualification nevertheless failed for all 30 cases: the existing log-append proof detected an additional inode/mtime change in the exact native workspace coordinator.

The fixed, hashed diagnostic identifies metadata:0:.kimi-code/.projects-write-lock. The official pinned Kimi source writes an empty target atomically before acquiring its proper-lockfile companion and releases that lock in finally. Its storage bootstrap uses private 0700/0600 modes; atomic storage writes use a sibling temporary file followed by rename.

The earlier native run remains failed: it did not capture the additional custody facts introduced here.

Change

Extend the existing bounded held-read/scoped-snapshot proof for that one exact coordinator:

  • Require an empty regular 0600 file, one hard link and the same owner; bind the held read to its initial/final identity, empty-content hash and scoped metadata.
  • Permit only native inode/mtime replacement between the first and repeated installation. Device, mode, link count, size, UID/GID and parent authority must remain equal.
  • Require the proper-lockfile companion to be absent, including a no-follow check after the held read. A companion appearing during the final post-list read refuses qualification.
  • Keep content, configuration, trust, managed/foreign paths, after-versus-post-list equality, native snapshot bindings, public Ready and normal command completion checks unchanged.
  • Preserve the previous log-only case when the coordinator is absent throughout. Creation or removal is not admitted.

Only a fixed private proof field is added; no raw paths, contents, errors or credentials enter diagnostics. Product commands, installation behavior and public Ready semantics are unchanged.

Verification

Independent source/privacy review completed. Review found and fixed a late-companion race before publication.

All 13 existing test methods remain byte-for-byte unchanged. Four additional methods cover the positive empty atomic replacement; unsafe content/mode/owner/hard links/symlinks/type/read replacement; a companion created only during the final held read; and unrelated path/configuration/parent changes, creation/removal, post-list writes, Ready and timeout refusal.

The local executor became available again. On exact head fc3c60b60101947dff59c2f3294d6fbceb947728 and tree 0110110624ddb90767987a94b27262bc9b57e685, python3 -m unittest discover -s scripts -p test_kimi_repeat_log_audit.py -v completed with 17 tests PASS, 0 failures/errors/skips (3.270s). Both changed source blobs were independently checked against the published tree. These are inert filesystem/diagnostic controls; they do not substitute for the genuine native run.

Current-head hosted Python controls, normal core/lint and the genuine full-30 Kimi audit remain required. No old PASS is transferred to this source, no failing native run is reclassified, and no budget or assertion is relaxed.

Current head 6c1dd49539b5b8af483875393567e04dbd128450, tree c76179ea8a8e28b656141441d02b1cb6af87bc4d, parent 1206c4679b0a81d7c30c871e473dacfdda4c12a7; five files versus main 0c85dbf6f770ef69417142f976887a5aa4b94907. The latest commit changes only the Firebase failure collector and its controls; both reviewed Kimi blobs and the Windows Gemini correction are unchanged. The permission proof is for the existing Ubuntu Kimi lane; no Windows ACL equivalence is claimed.

Windows Gemini custody fixture correction

The actual Windows observer job on predecessor fc3 passed its PowerShell contracts, then reported 13 PASS / 2 FAIL in the 15-test Windows journal custody suite. No Gemini vendor process is involved in these controls.

Both negative tests installed global OS hooks around a helper that first takes a snapshot. That shared snapshot now uses held OS reads and Windows descriptor transfer, so the hooks fired in the snapshotter before the intended Gemini custody checkpoint. One test received an earlier scope refusal; the other never reached its tracked native handle transfer.

The follow-up freezes the same snapshot and phase interval before installing the hooks, then invokes the same checkpoint under those hooks. The same-bytes replacement hook is limited to the held FD of the exact new leaf. Every existing negative assertion and real FD/native-handle cleanup assertion is unchanged; all other test-function ASTs are identical. No product, parser, runner, timeout or cleanup policy changes.

Root and independent peer source review: GO. Syntax, exact one-file tree scope and assertion conservation were checked. The corrected Windows suite passed in the ordinary hosted lane: job 135683293692 completed 15/15 Python controls with zero failures/skips in 22.954s, including both previously failing cases. Actual tested merge a7a6942a1ce1754da6eac13c27817338e8b2e6c0 has parents main 0c85 and then-current 1206; its tree is exactly the tested predecessor tree 61820805e2dd4c086496c91c9b553c7ba4fe3da5. Bash, PowerShell 7 and Windows PowerShell observer contracts also passed; the separate Unix-only Bash signal test was explicitly skipped on Windows. These are real Windows filesystem/handle controls, not a Gemini vendor-process or model qualification. The retained 17 Kimi tests passed on fc3 against the identical Kimi source; that is separate from Windows acceptance.

Windows Firebase failure-fact authority

The actual source-built Windows Firebase/Claude job timed out during add under the original 70-character Windows TEMP case. It registered no installation or lock, left 13 native staging-file deltas, and did not attempt repeat/removal. The failure remains unqualified.

Its bounded diagnostic also refused at staging-binding / staging-data-parent. The isolated client derives environment paths from the canonical case, while the collector previously derived expected paths from the unresolved temporary spelling. The five-line correction validates both directory chains, requires identical device/inode/mode authority and uses the same canonical root. Both original and canonical directory identities remain in final custody checks; symlink/reparse and held-file refusals, exact staged environment/owner bindings and private output bounds are unchanged.

Root and independent peer source/privacy review: GO. The existing 26 mutation controls remain intact and passed within the existing Linux test method. The added actual Windows short-name/redirect method is explicitly skipped on Linux and awaits the normal Windows lane. This fixes diagnostic path binding only: it does not establish or waive the cause of the original 200-second installation timeout. No timeout increase, path shortening, cache exemption or native retry is introduced.

Release impact

Test/audit correction only. No release, dependency update, new workflow, frozen VS Code change or new installation framework.

Bind the exact empty private coordinator through the held read and scoped snapshot. Permit only its native inode/mtime replacement, retain all readiness and custody assertions, and refuse a late active lock companion.
@strix-security

Copy link
Copy Markdown

Strix is installed on this repository, but we couldn't run this PR security review because this workspace's trial has ended. Add a card to resume code reviews here.

So far, Strix has reviewed 392 pull requests, surfaced 113 security issues (1 critical/high) and blocked 3 risky merges across this workspace.

@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 41 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between b72fcf1 and 3376c21.

Files selected for processing: 5

  • scripts/firebase_runtime_failure.py
  • scripts/live-install-audit.py
  • scripts/test_firebase_runtime_failure.py
  • scripts/test_gemini_windows_runtime_audit.py
  • scripts/test_kimi_repeat_log_audit.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@777genius 777genius changed the title test(kimi): qualify the native workspace coordinator during repeat install test(audit): qualify Kimi repeat and Windows Gemini custody Nov 19, 2026
Match the isolated client's canonical Windows case spelling while validating both original and canonical directory identities. Preserve redirect and held-file refusals and add a real Windows short-path control. Installation timeout remains unqualified.
@777genius 777genius changed the title test(audit): qualify Kimi repeat and Windows Gemini custody test(audit): qualify native repeat and Windows filesystem custody Nov 19, 2026
@codecov

codecov Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 64.03%. Comparing base (479e7be) to head (3376c21).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1021   +/-   ##
=======================================
  Coverage   64.02%   64.03%           
=======================================
  Files        2324     2324           
  Lines      141572   141572           
=======================================
+ Hits        90644    90653    +9     
+ Misses      37933    37926    -7     
+ Partials    12995    12993    -2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

777genius added a commit that referenced this pull request Nov 21, 2026
Reuse the pinned Codex SQLite auditor for independent Marketing Kit A/B/C profiles. Verify full bounded runtime state, foreign and peer custody, and each public mutation before its inventory check. Preserve strict native residue scanning and the never-installed final policy profile.

Reuse the reviewed Windows canonical TEMP custody correction from #1021 for failure-only Firebase diagnostics. Keep native acceptance and the 180-second budget unchanged; no timeout fix is claimed.

Validation: 133 Marketing Kit regressions pass, including seven real SQLite and adversarial controls. Existing Firebase mutation cases pass; actual Windows short-path controls await hosted qualification. Independent review found no remaining blocker.

777genius commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner Author

Repro on independent #1071 final-source Windows Firebase (2026-11-21)

A genuine Windows hosted run again reproduced the original 70-character TEMP profile without changing the 180s add timeout. Run 44910088113, failed job 136937731544, failure artifact 14719412800.

Source-built agentplugins 0.1.115 passed the signed Directory floor and clean-checkout / executable-provenance checks. Pinned Claude 2.1.263 and 5 Windows output-capture contracts passed. Actual add was timeout=true, exit_code=null, with registered firebase 0.2.6 (release seq 8, signed revision d9c8d778) and prepared binding. Failure collector now correctly returns observed-unqualified instead of custody refusal: an active runtime package, firebase-tools 15.35.0, ~256KiB lock, node_modules, marker, entrypoint and one npm log are present. No repeat/remove executed. Foreign sentinels intact. Exact checkout is GitHub PR merge commit 83b613e02a541ebe6b03c62643a2996fa94afd1b (not branch source df240dd).

This corroborates the long Windows path timeout independently of the earlier shorter-RUNNER_TEMP successful case. Not a Cursor adapter failure; do not relax native deadline, shorten this fixture or mark as PASS. If this owner is investigating Windows native setup/lifecycle, the new artifact supplies concrete state for root cause. #1071 keeps its source unchanged while awaiting all other gates; no duplicate new PR or rerun requested.

Additional bounded source trace: scripts/live-install-audit.py::install_case_timeout sets Windows Firebase outer add deadline to 180s; providers/runLockedNPM gives the inner locked npm ci --ignore-scripts --omit=dev --no-audit --no-fund 10 minutes. The report's runtime marker and entrypoint are present, so do not infer npm itself was still running: this may have progressed to later UAP transaction/native work. The process runner has bounded stderr and a 1s WaitDelay, so inherited output descriptors alone do not prove this hang. The artifact does not contain the raw npm log—only its length/hash—and does not identify the stuck phase. Recommend phase-specific bounded instrumentation/positive evidence in the dedicated Windows investigation rather than a blind timeout increase or custody relaxation.

Further bounded phase attribution (same downloaded artifact, no new runner): The report has staging=[], exactly one permanent targets[] runtime containing .agentplugins-runtime.json, node_modules/.bin, package-lock and entrypoint, plus one runtime lock entry. In the exact df240dd production source, installLockedRuntime calls runner (the actual npm install) before validatePreparedRuntime, writeRuntimeMarker, and commitLockedRuntimeTarget; only a successfully prepared/validated temporary tree can reach the permanent target. Therefore this fresh-case evidence establishes npm completed successfully and the locked runtime reached permanent materialization before the outer add timeout. Earlier cautious wording that npm might still be running is now narrowed by control flow. The recorded locks=1 does not distinguish an active lock from a retired lock, and neither the report nor the marker proves where add stalled after target commit (ready verification, lock retirement, receipt/native finalization, process cleanup remain to inspect). Keep native subprocess timeout intact; phase-specific bounded post-runtime instrumentation is the next proper diagnostic. Source: install/integrationctl/agentplugins/providers/locked_npm_runtime_install.go on exact candidate; failure ZIP SHA256 4faea8ec19ed686da9a92c0b84be95c9c4b398e83b8ca5c7098128021163788f.

Additional bounded call-path lead (not a proven stall phase): On the exact #1071 source, user-scope Claude activation follows claude/lifecycle.go::Activate → verifyClaudePlugin (first plugin list --json) → finishClaudeMCPActivation → inspectClaudeMCPNamespace (second plugin list --json) → per selected Firebase MCP server mcp get plugin:firebase:firebase. Each command uses claude/probe.go::RunClaudeListCommand with its independent 60-second upper bound. Thus the successful npm runtime commit need not imply the add is near completion: in the worst case three serialized bounded native probes plus cold setup exceed the outer 180-second Windows Firebase audit budget, without any one command violating its own bound. The existing artifact cannot distinguish slow duplicate listing, mcp get, or another post-runtime phase. A legitimate fix should first record bounded, nonsecret phase begin/end and verify if the second listing can be safely reused without losing native namespace/ownership freshness; do not blindly extend a deadline or remove a security probe.

Verified success-vs-failure fixture comparison (downloaded original receipts, 21 Nov): The earlier sentence calling the preceding successful run a shorter-RUNNER_TEMP case was inaccurate. Both source-authenticated ZIP receipts report temp_profile="original-windows-default" and case_root_chars=70 for the same plugin-06, claude, firebase case, not a shortened-path control. Successful run 44904850936 artifact 14707114951 (source merge 77ce1418ef...) has install.exit_code=0, repeat_verified=true, removal_verified=true, activation=active/installation_verified. Current failed run 44910088113 artifact 14719412800 (source merge 83b613e02...) has the same 70-char profile and same signed Firebase revision, install.timeout=true, activation=prepared/package_validated, repeat/removal unobserved. Both count 16 native-file deltas. Their source build digests differ and a previous successful run does not qualify this failed source. This evidence rules out a changed shortened-vs-full fixture as the explanation, but cannot distinguish runner variance, native probe latency or an installation race. Do not claim a verified root cause or lift the 180s acceptance guard.

Original job elapsed-time comparison (bounded, non-causal): successful previous-source job 136848117761 entered its entire current-source Firebase add/repeat/native/remove Python phase at 12:58:39.794 UTC and reported full success at 13:01:34.058 UTC (~174.3 s). Failed final-source job 136937731544 entered the identical outer phase at 18:33:36.201 UTC and reported unqualified at 18:36:51.946 UTC (~195.7 s), including the fixed 180 s initial add timeout and subsequent failure capture. The successful ~174 s covers all lifecycle calls, not just first add; its duration cannot be misused to infer which internal native command stalled. Both artifacts have the same 70-character original Windows profile and signed Firebase release. The observed variability warrants bounded phase timings rather than raising timeouts without evidence.

Independent newer #1071 HEAD 04d0 Firebase timeout — materially different phase (21 Nov 2026 ~20:50 UTC)

Another real Windows E2E run 44944383703, failed job 136968349427, original artifact 14723888766, ZIP SHA-256 d21b8c7dda37cae57ddf2ceacd4336b8fb0acacbefac47becd069d153eed3928 on #1071 current PR source 04d0be1a93d5a3e4e63817abd32d781b31e95b23 (checked-out synthetic merge 2e15a95631cf753f677fc05e39a2e231838350ed) FAILED at the original 180s add deadline, with status=failed-install-residue, install.timeout=true/exit_code=null, no repeat/remove, foreign sentinels preserved. Exact pinned source-built CLI 0.1.115, Firebase 0.2.6 / firebase-tools 15.35.0. Same temp_profile=original-windows-default, case_root_chars=70 as prior failure.
Crucially, this new original receipt does not show the previous post-npm-commit state:

  • runtime_failure_facts.source[0].location="staging", vs previous "active";
  • one facts.staging[] target with package.json / 256247-byte lock / entrypoint / node_modules=true but node_modules/.bin=false, marker absent; facts.targets=[] (no permanent committed runtime);
  • one npm log, 200733 bytes, SHA-256 fcc7e960f7c556f9ad8573e32e4c43edbee555c3c04f50c32756e4e4fb29cf86; old failed report had a permanent marked runtime, .bin=true, and 228401-byte npm log.
  • current public_target_states.after-add.states=[] rather than prior one Prepared/package_validated binding.
    Therefore the earlier conclusion “npm completed successfully and the stall was after permanent commit” is specific to old run 44910088113 only. It does not generalize to newer run 44944383703. The current run may have exceeded deadline during locked npm preparation (or its cleanup), but staging presence alone is not enough to assert which child/process was still running. A robust fix/diagnostic should record bounded timing and process phase at npm entry/exit and after runtime commit/lock retirement, in addition to post-runtime Claude probes; preserve exact original 70-char fixture, hard outer deadline and foreign custody. Do not waive either failure or blindly increase timeout/retry. This is independent of feat(cursor): scoped automatic MCP tool approval after confirmed project add #1071 Cursor adapter, and feat(cursor): scoped automatic MCP tool approval after confirmed project add #1071 branch was not modified for this finding.

@777genius
777genius merged commit d3cfbb6 into main Nov 25, 2026
90 checks passed
@777genius
777genius deleted the fix/kimi-native-coordinator-e2e-20261119 branch November 25, 2026 12:18
777genius added a commit that referenced this pull request Nov 26, 2026
…ect add (#1071)

* docs(cursor): audit scoped automatic MCP trust and three review rounds

* feat(cursor): add reviewed exact MCP tool permissions to project setup

* test(cursor): admission, policy, explicit consent and drift regressions

* docs(cursor): scope native CLI approval and Editor trust limitations

* test(cursor): run exact tool trust contracts with pinned native lifecycle

* fix(cursor): bind trust E2E fixture to its selected active projection

* test(cursor): refuse foreign project symlinks and oversized CLI policy

* fix(cursor): bind tool grant to sealed owned package digest

* refactor(cursor): isolate sealed proof and native policy merge guards

* fix(cursor): preserve automatic native project activation with scoped extension

* test(cursor): public CLI project add and remove scoped approval lifecycle

* test(cursor): assert persisted prepared state and native removal without false assumptions

* refactor(cursor): bound public CLI E2E functions for strict size lint

* test(cursor): prove exact UAP MCP tool grant with genuine pinned CLI

* fix(cursor): bind public CLI project E2E lifecycle to selected project authority

* test(cursor): prohibit synthetic named-tool grant in native runner

* test(cursor): reject synthetic grant and wildcard native proof

* ci(cursor): check native runner refusal contracts on PR HEAD

* fix(cursor): qualify pinned server approval and remove manual native E2E enable

* docs(cursor): anchor exact native approval version proof and no-manual E2E

* test(cursor): keep public Project E2E state and transactions under selected root

* fix(cursor): keep MCP-only native Ready with scoped trust declaration

* fix(cursor): bind named permissions to authored MCP and accurate runtime inventory

* refactor(cursor): keep consent regression within strict function-size gate

* fix(cursor): preserve committed MCP state when tool trust rollback fails

* fix(cursor): compose public Project CLI E2E with exact scoped planner and resolver

* test(cursor): use strict .uap project state and production-scoped planner in CLI E2E

* fix(cursor): preserve approved policy reader bounds and round-trip max grants

* test(cursor): distinguish installed tool grant from genuine native readiness

* test(cursor): iterate map-keyed client state in full project CLI E2E

* fix(cursor): satisfy strict Go lint with scoped policy state and eligibility

* test(cursor): refresh scoped capability and planner golden contracts

* test(cursor): surface safe native inventory refusal categories in pinned E2E

* test(cursor): correct Python native diagnostic contract syntax

* fix(cursor): use same native CLI profile for pinned inventory as UAP approval

* test(cursor): guard consistent native profile authority in no-auth E2E

* fix(cursor): require exact-case MCP tool allow token

* test(cursor): preserve case-distinct foreign MCP grant and exact approval

* test(cursor): format qualified native pin regression cases

* fix(ci): refresh published audit pin and normalize Hermes fixture

Use the existing immutable 0.1.115 release for Marketing Kit qualification. It authenticates the November Directory key and current snapshot 49, while 0.1.104 falls back to stale embedded snapshot 43. Preserve all four immutable source tuples, historical snapshot 45, exact-version checks, and lifecycle assertions.

Write the disposable Hermes YAML baseline with explicit LF so the Windows fixture matches the existing strict byte guard. Production YAML preservation remains unchanged.

* test(landing): respect signed Context7 install routes

Derive browser expectations independently from eligible signed grants across active distributions. Preserve immutable-source fallback checks and the route-specific source notice and layout assertions.

* fix(ci): align source audit fixture with current signed policy

Current source audit builds advertised 0.1.95, so authenticated production policy correctly refused Atlassian before installation because it requires 0.1.108. Use the existing 0.1.115 eligibility fixture for both source audit workflows while retaining exact checked-out source provenance and the separate published 0.1.95 parity contract.

Name the browser route assertion for both eligible signed and immutable-source commands. All native, policy, ownership, cleanup, and version refusal assertions remain unchanged.

* fix(ci): align Firebase source audit with signed policy

The current-source fixture stamped 0.1.95 correctly fails Firebase's minimum installer 0.1.108 policy. Use the already reviewed 0.1.115 eligibility stamp and retain its exact runtime assertion. Check agreement between the build stamp and proof assertion without changing historical published contracts or native acceptance.

* test(e2e): bind Codex runtime state and Firebase failure facts

Reuse the pinned Codex SQLite auditor for independent Marketing Kit A/B/C profiles. Verify full bounded runtime state, foreign and peer custody, and each public mutation before its inventory check. Preserve strict native residue scanning and the never-installed final policy profile.

Reuse the reviewed Windows canonical TEMP custody correction from #1021 for failure-only Firebase diagnostics. Keep native acceptance and the 180-second budget unchanged; no timeout fix is claimed.

Validation: 133 Marketing Kit regressions pass, including seven real SQLite and adversarial controls. Existing Firebase mutation cases pass; actual Windows short-path controls await hosted qualification. Independent review found no remaining blocker.

* ci: bound Windows broad CLI suite at 25 minutes

The Windows package alarm expired after 15 minutes while the active HTTPS fixture had run for six seconds, with no assertion failures. Retain all tests and per-case deadlines, use a finite Windows-only 25-minute package budget inside the existing 35-minute job cap, and expose per-test timings. Unix remains at 15 minutes.

* test(e2e): isolate the Codex version probe profile

Pinned Codex 0.153.4 creates arg0 helper links even for --version, including when its parent directories already exist. Probe the version in a separate disposable native profile and remove it before the unchanged lifecycle HOME/project/data checks.

Keep exact version and zero-delta assertions, all SQLite/runtime ownership guards, and the raw native scan unchanged. Cover private-profile cleanup and wrong version, timeout, nonzero exit, raised invocation, and lifecycle-write refusals.

Validation: all 135 selected Marketing Kit regressions pass; genuine pinned Codex A/B/C initialization, five-database baselines, and final checkpoints pass; root and independent security review found no blockers.

* ci(marketing): prepare native Codex sandbox prerequisite

* test(landing): assert Hermes WebP inside support matrix

* test(e2e): complete scoped lifecycle qualification and failure diagnostics

Address all four Marketing review findings: dependency triggers, bounded full Codex version output, native Windows snapshot keys, and truthful sticky SQLite checkpoint evidence.

Reuse only the reviewed Marketing harness corrections from #931's frozen 92344d6 candidate: explicitly authored cold-UAP Copilot B trust prerequisite, exact signed Claude cache retirement, continuously held Project A custody through User cleanup, and adversarial regressions. Preserve #1071's Codex observer implementation and all strict native scanners.

Add fixed bounded npm exit/timing facts to the existing owned Firebase failure collector. This changes diagnostics only, with no timeout, custody, production, or acceptance relaxation.

Validation: 151 Marketing regressions, 16 dedicated Claude custody tests, combined relevant Python suite 323 tests (318 passed, 5 platform skips), workflow dependency checks, and independent technical reviews without blockers. Genuine final-source native CI remains required.

* test(e2e): correct installation audits and native fixtures

Qualify exact prepared Cursor/Grok and Windsurf installation lifecycles separately from native execution, and bind complete receipts to immutable source and scope identities.

Preserve original npm 0.1.95 default-feed refusal before its verified historical archive lifecycle. Fix owned macOS temporary-root aliases, absent Copilot probe journals, and stale Landing assertions. Retain Cline state and ordinary catalog diagnostics before unchanged Ready/Active gates.

Update dependent workflow triggers and exercise the new validators. Local validation: 680 Python tests, zero failures, 17 Windows-only skips; 47 Landing policy tests. Genuine final-source hosted gates remain required.

* fix(install): retain detected surfaces through native Skills verification

Reuse the reviewed surface transport from f667afe (#1023) across selected,
group and sibling requests. Freeze host observations and keep them out of
JSON so Cline and Copilot can reach their existing guarded native catalogs.
Preserve negative surfaces and reject conflicting or cross-target evidence.

Extend the public Cline regression with fresh unchanged-repeat observation
and absolute-executable negative controls. Keep the strict Copilot absent-
event-log oracle already on this branch.

Reuse the Kimi fixture correction from 7046c23: expect resolving-only output
after the exact held-identity no-change result has been validated.

Independent source review and the unchanged 138-rule lint baseline passed.
Local Go execution is unavailable; genuine final-source CI remains required.

* test(e2e): verify Kimi coordination and Kiro installation custody

Bind Kimi 2.5.2's empty coordinator replacement to held-byte authority and require the exact bounded log proof in the stable workflow. Preserve Ready, source pins, repeat, removal and foreign-state gates.

Add an explicit Kiro installation-only lane for 30 Project Skills and 29 User lifecycles plus the exact signed-package refusal. Correlate all six public receipts with source-bound managed projections, deterministic identity, protected files and complete owned removal. Keep native/runtime/authentication qualification false.

Capture fixed unqualified Windows job facts before timeout cleanup, within the existing deadline, without exporting process identity or changing mandatory termination.

Validation: 409 distinct relevant Python tests, 404 passed and 5 Windows-only skips; independent bounded reviews and lint-baseline checks passed. Genuine final-source hosted E2E remains required.

* test(e2e): align cold install bounds and owned fixture baselines

Give only the cold Windows Claude Firebase add a bounded 900-second evaluation window for its existing npm preparation and native probes. Preserve the 180-second repeat, other case bounds, owned-job termination and strict lifecycle qualification. Account for the source-only and dual-control workflow budgets.

Create the explicit Kiro audit's fresh owned data root with the same 0700 mode enforced by Directory caches and state-v2, before recording its immutable baseline. Preserve all later mode, owner and inode checks and add data-root drift controls.

Complete the older Kimi stable-workflow positive fixture with the target, kind and closed repeat command now required by the actual oracle. Do not weaken the workflow checker.

Validation: 452 distinct affected Python tests, 447 passed and 5 Windows-only skips; independent bounded reviews, YAML and diff checks passed. Genuine hosted qualification is still required on this source.

* test(cursor): execute scoped approval contracts on all three OSes

The existing three-OS Project selector runs TestProjectCursor but omits the new TestCursor scoped approval and public CLI contracts. Full Required and Core cover them only on Linux.

Add one verbose selection of the existing 26 Cursor tests to the existing Linux, macOS and Windows Project cells, including the full public CLI, exact grant/refusal, native fingerprint and rollback cases. Preserve every earlier step, matrix, concurrency rule and job budget.

Validation: independent workflow/selection review, YAML parsing, exact additive two-line diff, and existing test inventory. No Go or test source changes; the previously executed 452-test Python source manifest is unchanged. Actual hosted execution is still required.

* test(ci): distinguish Firebase job gates from event-based budgets

The automatic-source policy check matched workflow_dispatch inside a legitimate timeout expression and stopped the Package manager preflight before any catalog run.

Reject actual job-level if keys instead, including quoted YAML keys. Preserve all bootstrap, exact-source, lifecycle and artifact assertions. Exercise the real policy against manual-only, false and legacy-dependent job mutations so automatic execution cannot be silently gated.

Validation: all 15 policy tests passed, including three negative workflow mutations; two independent bounded reviews and diff checks passed. No workflow, product or other test source changed.

* test(e2e): preserve Kiro custody and use portable Cursor fixtures

* test(e2e): align native audit fixtures and lifecycle evidence

Correct owned fixture setup, native remove argv and repeat progress. Bind
Copilot raw Skill evidence to its receipt, lock and managed path, preserve
Pi foreign-project custody, and refuse unqualified Pi plugin native PASS.

Align signed target pins, Kimi provisioning and Claude authentication
expectations with immutable published contracts. Refresh the three
Remotion fixture pins and add refusal regressions without changing client
implementation or frozen VS Code behavior.

Validated with make lint and 447 passing Python controls; four
Windows-only controls await their native CI runner.

* test(e2e): qualify exact Copilot log churn and signed policy; diagnose native drifts

* test(e2e): emit bounded Remotion failure site in workflow log

* chore(integration): carry exact main Hermes LF fixture and surface field

* test(integration): align signed-source browser oracles and retain Kiro/Cursor cases

* fix(ci): restore integration guards and retain native refusal evidence

Remove the duplicate surface refusal without changing error precedence, initialize the existing Pi audit loader, and align the Milestone A event oracle with current main.

Keep Windsurf image equality and published Windows native guards strict while retaining bounded diagnostic roles and held facts. Add privacy/refusal regressions and run the Windows diagnostic suite before native acquisition.

Independent review cleared the exact eight-file tree. Local execution is unavailable; source-bound hosted qualification remains required.

* test(e2e): expose bounded Remotion refusal facts in job logs

Emit the same sanitized held-only diagnostic to stdout and the failure artifact so CI evidence remains readable without a local ZIP decoder. Bound encoded output, preserve original failures, and cover sanitizer, encoding and stdout failures.

Native acceptance, pins and cleanup remain unchanged. Exact two-file patch independently reviewed; hosted execution is still required.

* fix(e2e): refuse nonregular Kiro audit files without blocking

Use nonblocking nofollow opens for the macOS Kiro custody audit so a FIFO cannot hang before the held regular-file checks. Preserve all source, identity, ownership and byte comparisons.

Add real FIFO regressions for state and projection reads, refusal before pread, and constructor descriptor cleanup. Independent source review completed; hosted POSIX validation remains required.

* fix(e2e): preserve explicit Pi cohorts and Windows runtime authority

Route explicit Pi foreign/clean cohorts through their original project authority while retaining generic peer isolation. Reuse the guarded canonical TEMP handoff for published Remotion and retain bounded causes from existing failed reads. Reserve bounded cold-acquisition time for Grok and require OpenSSH with bounded conditional setup.

* test(ci): assert PR-only package-manager cancellation without cancelling push checks

* test(native): admit only held-verified neutral Devin Global infrastructure after removal

Qualify exact initially absent empty managed config, owned lock or empty skills-parent directory across all six native snapshots without rebasing protected identity. Keep all public lifecycle, foreign state, rollback and negative-evidence refusals unchanged; add 10 adversarial real-filesystem regression tests.

* fix(ci): isolate pinned npm launcher cache from protected Codex HOME

Keep the genuine published npm shim and its signed binary verification while
routing its disposable bootstrap cache outside native HOME on Windows. Preserve
all native profile custody and same-opened inode checks. Add focused positive
and fail-closed cache authority tests.

* fix(test): admit exact retained Windsurf mutation lock on no-op

Reuse the reviewed collector guard from #1078, preserving exact lock bytes,
metadata, authority, and repeat-remove full-frame equality. Rewritten locks
still require timestamps in the command window. Retain the existing stricter
progress tests and add the two no-op custody regression tests.

Evidence: #1078 runtime admission contracts job 138228330280 (170 tests),
native job 138254538470 (artifact 14899865090), and local lock-guard replay.
The old guard rejected the actual unchanged repeat-add-a lock; the new guard
admits the ten observed stages and rejects changed custody/stale records.
No production, workflow, version pin, or runtime qualification changes.
Full final-source qualification remains required on #1071.

* fix(test): qualify canonical Copilot remove and historical Codex fixture

Use the real public `agentplugins remove` receipt rather than a shortened alias, with negative command/schema/result controls. The archived npm 0.1.95 inert runtime fixture now reports the required pinned-native identity and unmodified semantics; production proof requirements remain unchanged. Fixes diagnosed current-source failures in jobs 138387828018 and 138387827610.

* test(copilot): align full lifecycle mocks with canonical remove receipt

Two full Copilot Project Skill scenarios emitted command=remove despite the actual public CLI returning command=agentplugins remove. Align both positive mock replies to the audited real response. Explicitly reject the bare alias in negative cleanup envelope tests; preserve full add/repeat/remove and foreign-state verification.

* fix(e2e): restore reviewed Windows Firebase cold-install budget

Preserve the original 900s cold Claude/Firebase bound across main integration, including sequential native probes. Keep warm repeats at 180s, unrelated clients at their original limits, and all timeout/ownership/readiness checks strict. Restore matching focused contract; do not change native acceptance.

* fix(e2e): reconcile integrated audit contracts and published Remotion pin

Restore exact retained no-op lock evidence, checkpoint-before-capture ordering, bounded Grok workflow contracts and signed-policy reauthentication coverage. Keep strict Prepared routes authoritative instead of shadowing them with legacy summaries; exercise full envelopes for all Cursor/Grok routes and refuse reduced fixtures. Preserve the historical Remotion 0.1.102 failure; qualify immutable 0.1.116 with the same strict public Ready and native lifecycle oracle while retaining the 0.1.101 negative control.

* test(e2e): initialize Marketing Codex profiles once

Reuse one guarded CodexProfile for each A/B/C lifecycle after the exact isolated version probe. Keep shared bootstrap, peer, SQLite and pinned-system-file protections while preserving both final checkpoints and sticky failures.

Capture live evidence through ExitStack before disposable profiles are removed, and serialize the recorded evidence afterward. Cover actual main orchestration, real SQLite, cleanup/capture failures and late checkpoint interruptions.

Validated 155 selected Marketing tests plus the new capture-failure regression, 12 profile contracts, and independent source review.

* test(e2e): close shared audit gaps for Cursor qualification

Bind Prepared Kiro observations to explicit intent and prevent rejected direct receipts from falling through generic admission. Give Windsurf's Global sentinel one owner and preserve historical Codex observation labels.

Add independent pinned Pi registration inventories before add, after add, after repeat and after remove. Keep public Prepared states and default native failures, retain connection errors, and qualify registration separately from authentication or model tools. Preserve signed-source lifecycle, foreign-state and removal checks.

Focused harness and public Cursor regressions pass locally; genuine representative Pi probes exercised separately. Full hosted catalog qualification remains a distinct execution step.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant