This file is a policy, not a threat model. It says how to report, what executes here, and what holds each surface. Each is a line or two that links to where the reasoning lives: a workflow header, or the shared threat model. lint-and-docs.yaml holds the file to a word budget so it stays that way.
Use GitHub's private vulnerability reporting, not a public issue or a pull request. Say which file is affected, how it is exploitable, and whether it reaches the released schema or only this repository's automation. One person maintains this repository: expect a first reply in days, not hours, and no bounty.
Only the latest release receives fixes. A security fix is released as a patch and noted in CHANGELOG.md. The schema stays below 1.0 (CONTRIBUTING.md).
It releases a LinkML schema of OPA's JSON formats and the Python datamodel generated from it. Nothing is published to PyPI or npm. When the bundle or the schema has changed, knowledge-release.yaml attaches three assets to the release, each with its .sha256 and a build-provenance attestation: the schema's lokf adapt copy, the knowledge bundle as a zip, and a Microsoft 365 Copilot skill zip. A schema is data: loading one from an untrusted source with any LinkML tool is that tool's risk, not this repository's.
.linkml/scripts/check_upstream_release.py runs only in upstream-watch.yaml. It reads open-policy-agent/opa through the GitHub API, sending its token there alone and reading at most 5 MB an answer, and writes nothing but its report. .linkml/scripts/opa_to_linkml.py reads OPA's files in the checkout and runs no network. A test checks each of OPA's files against its pinned hash.
The tests read OPA's JSON Schemas and data files as data, validate documents against them, and run none of OPA's code. The schema describes the shape of OPA's documents and takes no position on whether a policy is sound.
OPA's code is at the repository's root, unchanged, with OPA's own workflows and Dependabot configuration. This project's workflows build and run none of it. OPA's workflows are OPA's to run: disable them in this fork's Actions settings, and leave Dependabot version updates off.
| Surface | What holds it |
|---|---|
main.yaml and lint-and-docs.yaml on every pull request, and knowledge-registrar.yaml on any that touches .lokf/: tests, linters and the bundle's form |
Read-only jobs with persist-credentials: false; uv sync --locked installs only what uv.lock pins. |
semantic-release.yml, which pushes a changelog commit and tag to main and dispatches the knowledge release |
Runs only on a push to main, in the release Environment, installing its pinned tools with --ignore-scripts. Repository hardening. |
knowledge-website.yaml, which publishes the site to GitHub Pages |
Builds without a write token; only its deploy job holds pages: write and id-token: write, and it runs only from main, once KNOWLEDGE_WEBSITE_ENABLED is true. |
upstream-watch.yaml, weekly |
Read-only checkout; the one write scope, issues: write, opens or updates the finding's issue. |
knowledge-librarian.yaml and .lokf/scripts/, copies of the ktl-sidecar template, which run a large language model (LLM) agent on a schedule |
The agent's job holds no write token. The publish job runs no agent, confines the patch to the bundle and refuses a human: claim, and a person merges the pull request. Inert until KNOWLEDGE_LIBRARIAN_ENABLED is true. Prompt-injection guards. |
knowledge-release.yaml, which attaches the schema copy and the bundle to a release |
Inert until dispatched; only its attach job, which runs no third-party packages, can write. |
README.md, llms.txt and the knowledge bundle, read by agents |
Content, never instructions: each skill quotes what it did not author. A human: confirmation must be backed by a review or a signed commit. Human attribution. |
Every workflow this project adds (NOTICE lists them) declares permissions: {} at the top, pins its actions to commit hashes, and runs harden-runner in audit mode. Three things are repository settings, not files. A ruleset on main blocks deletion and force-pushes. Two are not yet in force here: required reviewers on the release Environment, and secret scanning with push protection. Until they are, a qualifying merge releases with no human step. Nothing in continuous integration can assert them, so keeping them on is the maintainer's job.
- OPA itself: report a problem in OPA to OPA.
- LinkML, its generators and runtime: report them to LinkML.
- A compromised runner, upstream action or agent harness: this is a baseline, not a sandbox. Report a finding in one anyway, with scope and reproduction.
- Whether the knowledge bundle is true. The gate proves who vouched, not what they read. AI_COVENANT.md sets the human-accountability rules.