Skip to content

docs(#1808): add THREAT_MODEL.md to change checklist for trust-boundary mods - #1809

Open
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/1808-add-threat-model-checklist
Open

docs(#1808): add THREAT_MODEL.md to change checklist for trust-boundary mods#1809
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/1808-add-threat-model-checklist

Conversation

@fullsend-ai-coder

Copy link
Copy Markdown
Contributor

What:

Add a "Security Documentation Maintenance" section to AGENTS.md that guides PR authors to check and update THREAT_MODEL.md when modifying trust-boundary code.

Why:

PR #1806 made structural changes to trusted task rules (removing data.trusted_task_rules path) but left THREAT_MODEL.md stale in 9+ locations. The review agent caught it post-hoc, but there was no preventive guidance for PR authors. This adds an explicit checklist item so that future PRs modifying trust-boundary code in policy/lib/tekton/ include THREAT_MODEL.md updates when the document references the affected architecture.

Key THREAT_MODEL.md sections to check are listed:

  • 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

Tickets:


Closes #1808

Post-script verification

  • Branch is not main/master (agent/1808-add-threat-model-checklist)
  • Secret scan passed (gitleaks — 4b089513609ae33616c01509cb0a0ccc5db4fb11..HEAD)
  • PR body secret scan passed (gitleaks — no-git)

…ry mods

Add a "Security Documentation Maintenance" section to AGENTS.md that
instructs PR authors to check and update THREAT_MODEL.md when modifying
trust-boundary code in policy/lib/tekton/. Lists the key THREAT_MODEL.md
sections to verify: Section 3.3 (trusted task data flow), threat entries
DP-2 and LE-4, the security-critical rule data keys table, and open
questions referencing changed components.

Placed adjacent to the existing "Review Checklist for New Policy Rules"
section since both serve as pre-merge checklists.

Closes #1808
@fullsend-ai-review

fullsend-ai-review Bot commented Aug 13, 2026

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 1:53 PM UTC · Completed 2:06 PM UTC

Commit: 87c4a29 · View workflow run →

@codecov

codecov Bot commented Aug 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Flag Coverage Δ
unit-tests 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@fullsend-ai-review

Copy link
Copy Markdown

Review

Findings

Medium

Low

  • [technical documentation accuracy] AGENTS.md:109 — 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 feat(EC-2031): remove data.trusted_task_rules in favor of rule_data only #1806. The new guidance points authors to a section containing outdated information.

Labels: PR modifies documentation governance file (AGENTS.md) with process guidance content

@fullsend-ai-review fullsend-ai-review 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.

See the review comment for full details.

Comment thread AGENTS.md
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.

@fullsend-ai-review fullsend-ai-review Bot added requires-manual-review Review requires human judgment documentation Improvements or additions to documentation labels Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation requires-manual-review Review requires human judgment size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add THREAT_MODEL.md to change checklist for trust-boundary modifications in AGENTS.md

0 participants