Repository navigation
Add an ecosystem security work playbook - #40
Open
francisco-dlp wants to merge 1 commit into
Open
francisco-dlp wants to merge 1 commit into
francisco-dlp wants to merge 1 commit into
Conversation
Centralize lifecycle decision guidance, a bounded agent brief, and publicly verifiable lessons. Add organization navigation and update the obsolete proposal-process link. Assisted-by: OmO:z-ai/glm-5.3-flash
francisco-dlp
force-pushed
the
security-playbook
branch
from
November 22, 2026 11:04
499effe to
43ed4aa
Compare
francisco-dlp
marked this pull request as ready for review
November 22, 2026 11:07
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 of the change
Add an initial, canonical security-work playbook for the HyperSpy ecosystem. This centralizes decision discipline rather than security implementation code: demonstrated impact, upstream/package/application ownership, minimum effective fixes, evidence, dependency and CI/CD review, bounded AI-agent execution, coordinated disclosure, residual risk, and post-release learning. Fixes and tests remain in the repository that owns the behavior.
Documents added:
SECURITY-PLAYBOOK.md(304 lines): the full ecosystem security lifecycle, including code execution/injection, deserialization, file access, supply chain, CI/CD, sensitive data, and resource exhaustion. It explicitly rejects generalized guard frameworks and exhaustive resource-exhaustion guards by default.SECURITY-AGENT-BRIEF.md: a copy-paste TASK / DELIVERABLE / SCOPE / VERIFY / STOP WHEN template with exact-command fields, positive controls, review caps, authorization, cleanup, disclosure, and residual-risk requirements. The tool and model are resolved from the active AI tool's configuration or session metadata when used; neither is hard-coded.SECURITY-LESSONS.md: general references separated from four publicly verifiable I/O and deserialization examples (NumPy, SymPy, h5py#2891, and Option(s) to disable various kinds of external file access HDFGroup/hdf5#6618), with primary URLs, review dates, and revisit triggers.README.mdandCONTRIBUTING.mdlink these resources. The contributor guide's pre-existing obsolete proposal-process URL is updated to the current proposals repository section.Proposal: hyperspy/hyperspy-proposals#10 (open; acceptance pending).
AI-assisted contribution?
Assisted-by: OmO:z-ai/glm-5.3-flashand no AICo-authored-by:trailerProgress of the PR
upcoming_changes/conventionVerification
gh.python3 -m pytest -q tests— 61 passed.pre-commit run --files CONTRIBUTING.md README.md SECURITY-AGENT-BRIEF.md SECURITY-LESSONS.md SECURITY-PLAYBOOK.md— passed.git diff --checkandgit diff --cached --check— passed.43ed4aa95b9370b26f5b23a1de5c5084d1c76437:pytest (3.10),pytest (3.12), andpytest (3.14)passed. The smoke job completed with only the pre-existing policy-pin failure described below.pre-commit run --all-filesalso invokes the policy-pin hook and reports a one-lineAGENTS.mdmismatch (pre-commit hookversusCI script). This is pre-existing: upstreammainat base SHA267caabd9579a10d8614d8dcc3cb74f02132b73efails the same check in https://github.com/hyperspy/.github/actions/runs/45004318001. The automatic unrelatedAGENTS.mdedit was reverted and is not part of this PR.Confidentiality and scope
Only public upstream examples are included. No internal HyperSpy/RosettaSciIO case study, private GHSA material, unreleased advisory, remediation detail, proof of concept, or private branch/commit information is included. No security implementation framework, new tooling, workflow, towncrier, Sphinx, or test machinery was added.
Recommended follow-up after this canonical PR merges: add thin
AGENTS.md/SECURITY.mdlinks in HyperSpy and RosettaSciIO through separate PRs, then roll the same links out to other ecosystem repositories.