Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,18 @@ Rego is a declarative policy language (Datalog-inspired), not imperative code:
- **Test coverage:** Every new rule needs tests in a corresponding `_test.rego` file. CI enforces
100% coverage.

## Security Documentation Maintenance

When a PR modifies trust-boundary code — specifically files in `policy/lib/tekton/`
that handle trusted task rules, data input paths, or merge/validation logic —
check whether `THREAT_MODEL.md` describes the affected architecture. If it does,
update the relevant sections in the same PR. Key sections to check:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[low] technical documentation accuracy

The new section references 'Section 3.3 (trusted task data flow and merge architecture)' but the actual THREAT_MODEL.md heading is '### 3.3 Trusted task data (data.trusted_tasks, data.trusted_task_rules)'. The phrase 'merge architecture' does not appear in THREAT_MODEL.md. Additionally, THREAT_MODEL.md section 3.3 is itself currently stale — it still references data.trusted_task_rules which was removed in PR #1806. The new guidance points authors to a section containing outdated information.

Suggested fix: Consider using the exact section number ('Section 3.3') without the paraphrase, and either fix the staleness in THREAT_MODEL.md section 3.3 in this PR or reference a follow-up issue to track that work.

- Section 3.3 (trusted task data flow and merge architecture)
- Threat entries DP-2 and LE-4 (injection and precedence threats)
- The security-critical rule data keys table
- Open questions and recommendations referencing the changed components

## PR Conventions

Conventional commits are encouraged. Run `make ci` before pushing. CI runs on every PR via
Expand Down
Loading