Repository navigation
feat(scan): record bundled instruction digests in scan manifests - #2263
mldangelo-oai wants to merge 70 commits into
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
alandelong-oai
left a comment
There was a problem hiding this comment.
Thanks for adding instruction identity without changing old seals. The bundle selection, worker ownership and recovery paths look sound in this owner-level review. One verification issue needs attention: the new SDK registration test fails on macOS before its first digest assertion; I left an inline comment on its database reader.
Portable checks, builds, types and formatting passed. Exact-tree CI passes the affected Python digest/recovery modules, Linux SDK registration cases, and both MCP shards, including the stdio lifecycle. The overall CI run has a failing macOS shard. Local persistence tests remain limited by filesystem ownership guards; no live model-backed scan was independently run.
alandelong-oai
left a comment
There was a problem hiding this comment.
Thanks for fixing the legacy patch-generation call and the migration formatting. The updated source looks sound in this owner-level merge-safety review. The existing macOS registration-test finding still needs a successful rerun: its database reader is unchanged, and the current SDK matrix has not run yet. I am leaving COMMENT until that verification is resolved; this is not evidence of a production digest-calculation defect.
Portable checks, builds, types, digest/schema tests and focused MCP tests passed; unchanged-source results were carried forward after inspecting the two-file delta. Current-head formatting and macOS/Windows Python CI pass, including the repaired remediation cases. Local persistence tests remain limited by filesystem ownership guards. No live model-backed scan or full local SDK pass is claimed.
alandelong-oai
left a comment
There was a problem hiding this comment.
Thanks for fixing the registration test’s database reader and preserving instruction measurements through the native deduplication integration. No blocking findings in this owner-level merge-safety rereview. The test now uses the Python workbench database-path resolver and registration environment, addressing the previous Bun SQLite path failure; the digest, migration and historical-manifest behavior remains intact.
Validation: fresh locked dependencies, ordered portable checks, SDK/plugin builds, types/format, 180 Python tests plus 170 subtests, and 15 focused MCP tests passed. Current macOS/Windows Python CI passes the repaired remediation cases. The macOS SDK registration rerun is still pending. Local registration remains blocked by filesystem ownership checks, and one packaging test’s strict stderr assertion sees an environment-injected warning; neither is reported as passing. No full local SDK suite or live model-backed scan is claimed.
alandelong-oai
left a comment
There was a problem hiding this comment.
Thanks for preserving instruction identity across registration, interrupted workers, and sealed-result recovery. I found no blocking issue in the updated implementation; there is one nonblocking documentation clarification inline.
Builds, types/format, portable checks, focused MCP/digest/schema tests, and independent migration checks passed. Current-tree Python CI passes on Linux, macOS, and Windows, including the affected digest and seal cases on Linux. Local seal integration checks hit filesystem ownership restrictions, and the local stdio lifecycle check timed out before its worker started; the remaining native/SDK matrix was still running when reviewed.
alandelong-oai
left a comment
There was a problem hiding this comment.
Thanks for preserving instruction measurements through the shared-fixture update. No blocking findings; the existing discovery-template documentation suggestion remains nonblocking. Seventeen Python digest/schema tests, the focused MCP suites and SDK discovery-prompt check passed, along with builds, types, formatting and portable checks. SDK registration checks remain blocked by filesystem ownership guards. Earlier seal and platform verification remains historical; no full current-head suite or live-model scan is claimed.
alandelong-oai
left a comment
There was a problem hiding this comment.
Thanks for preserving instruction measurements through the main integration. No blocking findings; the existing documentation suggestion remains nonblocking. Seventeen Python digest/schema tests, the MCP store/template checks and two coordinator stop cases pass, together with current plugin/SDK builds, types, formatting and portable checks. Earlier full registration, seal and platform results retain their original limits.
# Conflicts: # plugins/codex-security/shared/workbench-history-repairs.json
…o/codex/scan-instruction-digest
|
Codex Review: Something went wrong. Try again later by commenting “@codex review”. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
…can-instruction-digest
|
Codex Review: Something went wrong. Try again later by commenting “@codex review”. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
…can-instruction-digest
Update the workflow-quality and lockfile-audit action pins to v2.90.4.
Update the two action pins to the reviewed v2.90.5 release.
Summary
Two scans can report the same plugin version while using different bundled instructions. Record the SHA-256 of the selected instructions in sealed Standard and Deep scan manifests so their instruction provenance can be compared. Addresses #2242; stacked on #275.
Changes
The optional
scan.producer.instructionDigestsfield records hashes derived from the relative paths and exact bytes of bundled Markdown underskills/andreferences/. Registration measures the bundle the scan can read, including the staged Windows copy. Custom validation includes a digest when the selected sources match the bytes used to build its discovery prompt.Deep coordinators measure their bundle while claiming a lease. Each worker records that measurement when it first starts, and a replacement coordinator can contribute a different bundle after resume. Persisted measurements follow sealing, history, export, recovery, and remediation without changing an already accepted report's producer metadata.
Migration 76 preserves saved measurements and known instruction-digest preview receipts. Repository documentation explains the digest scope and independent reproduction. The published scan-results page could show these digests beside the plugin version. No public command, flag, environment variable, or default changes.
Testing
c9aaeb1b, all five ordered portable plugin checks passed: Ruff check, Ruff format check, SDKbuild:ci, plugin source compatibility, and its Node tests. The isolated receiving preflight and 27 runtime controls passed, including full native sandbox assertions and physical repository paths.c9aaeb1b, the ordered SDK sequence passed: fixed seed12345, types, formatting, then defaulttest:ci. Each full test run reported 13,375 passed, 176 skipped, one todo, and zero failures across 347 files. The default invocation produced JUnit and LCOV covering 332 records.51d6dc1c. Their source and transitive inputs are unchanged; the original execution identity is retained.c9aaeb1bpassed all 65 jobs. Its checkout tree exactly matches that source head. Verified receipts cover full Python, both cold MCP shards, all SDK shards on Linux/macOS/Windows, native validation, installed packages, standalone contracts, and container validation. Linux SDK artifacts contain coverage and JUnit. Product and portable-check inputs remain unchanged atd145bbdc; the subsequent main merge changes two CI installer pins.35373239CI. Reused product results keep their original execution identities and do not replace current-head CI.Risk and rollout
Land #275 before this child. Keep one canonical migration sequence when combining independently numbered migration branches. Released migration numbers remain intact, and known instruction-digest previews are repaired into version 76. Other branches' database histories are not claimed as verified here.
The first digest identifies the bundle selected at registration; Standard resumes retain it. Workers may read only a subset of those files or encounter later edits. Caller prompts, settings, and generated text have separate lifecycles and are outside this digest.
Older seals may omit the optional field, and accepted seals keep their original metadata. A new seal's digest list must match persisted measurements. If a Deep measurement is unavailable when a worker first starts, the scan can finish and omit the list. Imported and mock reports do not acquire the local installation's digest.
Public disclosure review