Skip to content

fix: simplify security skill instructions - #1676

Merged
mldangelo-oai merged 47 commits into
mainfrom
mdangelo/codex/simplify-security-skills
Oct 23, 2026
Merged

mldangelo-oai merged 47 commits into
mainfrom
mdangelo/codex/simplify-security-skills

Conversation

@mldangelo-oai

@mldangelo-oai mldangelo-oai commented Oct 16, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Security skills repeated orchestration rules, approval gates, evidence checklists, and reporting requirements. Simplify the instructions and give shared contracts one owner while preserving scope, evidence, tool payloads, and scan completion behavior.

Changes

  • Replace duplicated drafting prompts and case catalogs with focused discovery, validation, attack-path, writeup, and hardening guidance. Preserve canonical evidence, worker isolation, and host-owned completion.
  • Share the optional access advisory and allow it before the first blocking Deep Scan call, when no scan context exists yet.
  • Honor explicitly authorized ticket descendants and distinguish inaccessible tickets from retrieved claims. Add a synthetic descendant-intake evaluation case.
  • Move Wiz formats, deployment, and recovery guidance into a packaged reference while retaining local imports and direct repository-vulnerability CSV support. Retain current main's Endor, Snyk, Semgrep, and GitHub guidance together with the branch's current section headings and deduplicated Wiz guidance.
  • Package the extracted references and refresh custom-validation workflow digests and affected assertions.

Testing

Validated 67a32873a21a495d9ca64daac3d36b8edf0a3489 after merging main at ccbf117d21a286e54e88e6d2b919d0b442e1e3cd. The only manual conflict resolution preserves the shorter final-report instructions and the distinction between deferred requested work and optional follow-up. Independent review confirmed the other 17 incoming files match that main revision exactly; plugin references and workflow digests remain unchanged.

Checks on this candidate passed:

  • All five portable plugin checks: Ruff lint, Ruff formatting (174 files), SDK build:ci, plugin source compatibility, and its nine unit tests.
  • All 133 focused report projection, scan history, and SARIF location-deduplication tests.
  • All 23 focused SDK coverage-presentation and scan-history-renderer tests (122 assertions).
  • Triage instruction contracts and git diff --check.

These checks used Python 3.12, Ruff 0.17.1, Node 22.23.2, and Bun 1.3.14. Python fixtures used a fresh user-owned runtime temporary directory and normal umask 022 after the local sandbox and inherited writable-directory permissions caused registration failures. The portable check unit tests passed with the environment's injected Node proxy warnings disabled after those warnings interfered with exact stderr assertions. No source workaround was added for either environment issue.

Earlier validation remains historical at its recorded revisions:

  • 0fd11c6d40763cf39535f79b10c3ba7b289a495a: 24 focused deadline rollback and retained-surface-link tests, all five portable checks, and triage instruction contracts.
  • 4bb090fede217faf201b141dfdd9ba5f50de710b: 27 focused deadline rollback/recovery tests and all five portable checks.
  • 92b23f5b3b9f0f842f189957979cd5d5225a53f0: 135 contract/custom-validation tests with seed 12345, all five portable checks, a fresh 154-file plugin bundle, and triage instruction contracts.
  • 522709fa6a4fb46ab0eec3c62b9a3e931ee73287: 286 tests across contract, custom-validation, patch-risk, directory-identity, security-policy, and policy-helper suites, with seven Windows-only skips; one focused CLI patch-publication test; SDK build, SDK/MCP types, and full SDK formatting.

Those earlier SDK runs used Bun 1.3.14 and frozen SDK/MCP dependencies. Native binaries came from successful CI run 39907943181; all 28 native source/build inputs matched the tested merge before reuse. Native binaries were not rebuilt.

Full SDK suites, application type checks, plugin bundle rebuilding, cross-platform execution, live model scans, model evaluations, and external uploads were not rerun for this documentation conflict refresh. Fresh exact-head hosted CI and review remain required.

Risk and rollout

These are model-executed instructions, so static contracts and deterministic fixtures do not establish report quality across live scans or every host. Public CLI syntax and schemas are unchanged. Credential/configuration/storage protections, unsafe-path checks, canonical evidence, publication approval, and scan ownership remain in place. Ship through the normal plugin/package release; no migration is required.

Public disclosure review

  • No customer, partner, prospect, or user identities, data, or identifying details are included.
  • No credentials, personal data, private source, scan findings, or nonpublic links or tickets are included.
  • I reviewed the branch name, title, description, commits, changes, comments, logs, screenshots, attachments, and links for public disclosure.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-23T19:31:20.310617Z 67a3287 New commits
🔒 Security Review ✅ Completed 2026-10-23T19:31:36.712552Z 67a3287 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions github-actions Bot added the bug Something isn't working label Oct 16, 2026
@mldangelo-oai

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: 7f05c7ced7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The broad rewrite of model-executed security workflows needs human confirmation of end-to-end behavior across supported hosts.

0 open findings

What changed in this PR

Simplifies Codex Security’s model-driven workflows, reducing rigid process requirements while retaining evidence standards, security boundaries, and tool contracts.

Changes:

  • Streamlines scan, validation, remediation, and reporting instructions.
  • Extracts shared access-advisory and Windows-validation references.
  • Updates packaged files, workflow digests, and affected tests.
File Description
sdk/​typescript/​tests-ts/​patch-risk-contract.test.ts Tests the relocated Windows recipe.
sdk/​typescript/​src/​custom-validation-prompt.ts Refreshes workflow digests.
plugins/​codex-security/​skills/​vulnerability-writeup/​SKILL.md Simplifies evidence-backed report drafting.
plugins/​codex-security/​skills/​vulnerability-writeup/​references/​report-format.md Makes report structure adaptable.
plugins/​codex-security/​skills/​validation/​SKILL.md Streamlines validation and phase contracts.
plugins/​codex-security/​skills/​validation/​references/​validation-guidance.md Consolidates evidence and confidence guidance.
plugins/​codex-security/​skills/​triage-finding/​references/​ticket-intake.md Simplifies collection intake and retrieval recovery.
plugins/​codex-security/​skills/​threat-model/​SKILL.md Clarifies model selection and storage.
plugins/​codex-security/​skills/​security-scan/​SKILL.md Consolidates Standard scan orchestration.
plugins/​codex-security/​skills/​security-scan/​references/​scan-artifacts-and-ledger.md Simplifies standalone diff worklists.
plugins/​codex-security/​skills/​security-scan/​references/​desktop-scan.md Condenses desktop progress and completion guidance.
plugins/​codex-security/​skills/​security-diff-scan/​SKILL.md Streamlines compact diff phases.
plugins/​codex-security/​skills/​propose-security-hardening/​SKILL.md Scales hardening analysis to the request.
plugins/​codex-security/​skills/​propose-security-hardening/​references/​proposal-format.md Replaces mandatory artifacts with adaptable formats.
plugins/​codex-security/​skills/​fix-finding/​SKILL.md Removes fixed review choreography.
plugins/​codex-security/​skills/​finding-discovery/​SKILL.md Consolidates discovery criteria and outputs.
plugins/​codex-security/​skills/​define-security-policy/​SKILL.md Simplifies authorized policy edits.
plugins/​codex-security/​skills/​deep-security-scan/​SKILL.md Condenses coordinator lifecycle guidance.
plugins/​codex-security/​skills/​attack-path-analysis/​SKILL.md Simplifies analysis and decision recording.
plugins/​codex-security/​skills/​attack-path-analysis/​references/​severity-policy.md Condenses severity and reportability guidance.
plugins/​codex-security/​skills/​attack-path-analysis/​references/​attack-path-facts.md Summarizes required analytical facts.
plugins/​codex-security/​skills/​assess-patch-risk/​SKILL.md Links shared boundary and Windows guidance.
plugins/​codex-security/​skills/​assess-patch-risk/​references/​windows-validation.md Houses the existing Windows recipe.
plugins/​codex-security/​references/​threat-model.md Streamlines architecture and modeling guidance.
plugins/​codex-security/​references/​scan-prologue.md Consolidates setup and context rules.
plugins/​codex-security/​references/​desktop-config-preflight.md Defers common preflight behavior to shared guidance.
plugins/​codex-security/​references/​core-scan.md Consolidates audit and worker instructions.
plugins/​codex-security/​references/​config-preflight.md Simplifies capability checks and recovery guidance.
plugins/​codex-security/​references/​access-advisory.md Extracts the optional access advisory.
plugins/​codex-security/​plugin-files.json Packages both new references.
evals/​triage-finding/​scripts/​test-app-surface-instructions.mts Removes assertions for retired process requirements.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@mldangelo-oai

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: 4fbb099745

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The broad security-workflow rewrite needs human validation of behavior across hosts and scan modes beyond static contract checks.

0 open findings

🧠 Review effort: Balanced

@alandelong-oai alandelong-oai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for simplifying these workflows. Owner-level merge-safety review of 67009a98596a against 05ff204ee048: no blocking findings. The shorter instructions retain scan ownership, authorization, candidate evidence, canonical artifact contracts, and host-owned completion; the relocated Windows recipe is unchanged.

Builds, types, formatting, all five portable checks, seven plugin/concurrency tests, the app-instruction checks, and packaged discovery extraction pass. The patch-risk helper has 25 passing cases; three Windows cases are skipped locally. Hosted CI has 48 successful jobs and two intentional skips. The local custom-validation module has three passes and 23 failures at inherited directory-ownership checks before the changed workflow; I am not claiming its full lifecycle passed. No live model workflow trial was performed, so report quality and behavior across real scans remain outside this verification.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 215033e037

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

@alandelong-oai alandelong-oai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for simplifying these workflows. Owner-level merge-safety review of cae07f7: no material findings. The shorter instructions retain scope, evidence, worker isolation, publication authorization and host-owned completion. File, scan-root and parent-directory identity checks now preserve large IDs exactly.

Fresh builds, types, formatting, 99 focused SDK tests, phase/schema/triage checks and the 726-entry package check passed; 10 Windows-only tests were skipped. Portable checks and seven plugin tests passed on the preceding head with their inputs verified unchanged. The new root-replacement regression passes locally. Full contract execution remains limited by the existing filesystem-owner guard; no native Windows, live model scan or model-evaluation pass is claimed.

@alandelong-oai alandelong-oai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for simplifying the skills while retaining scope, evidence and completion ownership. Owner-level merge-safety review of all 39 changed files found no material issue; the Deep access-advisory ordering and exact directory identity checks are sound.

Fresh portable checks, builds, types, formatting, 94 focused SDK tests, seven Python tests and deterministic phase/triage/schema checks passed. The 726-entry package, 30 changed Markdown files and three prompt digests were verified. Broader custom-validation and identity checks retained 33 existing filesystem-guard failures; ten Windows-only cases were skipped. No live model or full local integration pass is claimed.

@alandelong-oai alandelong-oai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for simplifying the workflows while retaining scope, evidence, worker isolation, and host-owned completion. This owner-level merge-safety rereview found no material issues across the 51-file diff, including the updated deadline recovery integration. The earlier access-advisory ordering issue remains fixed.

Fresh portable checks, plugin/SDK builds, types, formatting, 14 Python contract/recovery tests, 32 focused SDK tests, triage checks, and replay/rollback controls pass; three Windows-only cases were skipped. Packaged references and custom-discovery digests were verified. Full local lifecycle execution remains limited by filesystem ancestry checks; live model behavior and full current-head hosted qualification are not established by these checks. Merge #1710 first as documented.

@mldangelo-oai mldangelo-oai changed the title fix: simplify security skills and preserve scan file identity fix: simplify security skill instructions Oct 23, 2026

@alandelong-oai alandelong-oai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for simplifying the instructions while retaining scope, evidence, publication approval, and host-owned completion. This owner-level merge-safety rereview of the 38-file diff found no material issues. The main merge preserves the distinction between deferred requested work and optional follow-up; the earlier access-advisory ordering issue remains fixed.

Fresh frozen dependency installs, all five portable checks, plugin/SDK builds, types, formatting, 12 Python contract/report tests, 24 focused SDK tests, and deterministic triage checks passed. Packaged references, workflow digests, and the unchanged Windows recipe were verified. Full SDK/lifecycle suites, live model evaluations, and native Windows execution were not rerun; current hosted CI is still running.

@mldangelo-oai
mldangelo-oai merged commit 75bb513 into main Oct 23, 2026
64 checks passed
@mldangelo-oai
mldangelo-oai deleted the mdangelo/codex/simplify-security-skills branch October 23, 2026 19:55
@github-actions github-actions Bot mentioned this pull request Oct 23, 2026
3 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants