Skip to content

Bound security-review evidence and clarify completion criteria - #11911

Merged
lpcox merged 8 commits into
mainfrom
copilot/aw-daily-security-review-fix
Nov 21, 2026
Merged

lpcox merged 8 commits into
mainfrom
copilot/aw-daily-security-review-fix

Conversation

@lpcox

@lpcox lpcox commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

Daily Security Review published its discussion but reported incomplete because exploratory output was truncated and no private disclosure tool was available. The prompt required a complete transcript without distinguishing these limitations from unrecoverable blockers.

  • Bounded evidence collection

    • Replace bulk file dumps with incremental, line-numbered reads and capped searches.
    • Recover truncation through narrower queries; follow facades to implementing modules.
    • Require relevant evidence excerpts, not a full exploratory transcript.
    nl -ba containers/agent/setup-iptables.sh | sed -n '1,80p'
  • Safe publication and completion

    • Withhold sensitive details from public outputs and cache memory; explicitly disclose coverage limitations.
    • Reserve report_incomplete for genuine blockers to analysis or discussion submission.
    • Treat unavailable dependency auditing as optional context, without expanding network access.
  • Regression coverage and generated metadata

    • Add oversized-input checks and completion-policy assertions.
    • Refresh only the lock’s prompt body hash; permissions, tools, credentials, and sandbox settings remain unchanged.

@lpcox lpcox changed the title [WIP] Fix incomplete results in daily security review and threat modeling Bound security-review evidence and clarify completion criteria Nov 21, 2026
@lpcox
lpcox marked this pull request as ready for review November 21, 2026 16:58
Copilot AI adaptive review requested due to automatic review settings November 21, 2026 16:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The regression test relies on unprovisioned ripgrep and fails when it is absent, while the review instructions reference nonexistent source and lack a byte-bounded fallback for oversized single lines.

3 open issues
What changed in this PR

This PR updates AWF’s daily security-review workflow to recover from truncated evidence and distinguish reporting limitations from genuine completion blockers, addressing #11895.

Changes:

  • Replace bulk evidence dumps with bounded searches and incremental, line-numbered reads.
  • Clarify safe public reporting, optional dependency auditing, and appropriate use of report_incomplete.
  • Add evidence-bound and completion-policy regression checks, and refresh the generated prompt hash.
File Description
scripts/​ci/​security-review-workflow.test.ts Adds oversized-input checks and reporting-policy assertions.
.github/​workflows/​security-review.md Defines bounded evidence collection and safe completion criteria.
.github/​workflows/​security-review.lock.yml Updates only the generated prompt-body hash.

Review effort: Max (adaptive)

Comment thread .github/workflows/security-review.md Resolved
Comment thread .github/workflows/security-review.md Resolved
Comment thread .github/workflows/security-review.md Resolved
Updated command for bounded discovery to use grep.

Co-authored-by: Copilot Autofix powered by AI <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

✅ Copilot review passed with no inline comments.

@lpcox Add the ready-for-aw label to this PR to trigger agentic CI smoke tests.

lpcox and others added 3 commits November 21, 2026 09:09
Updated instructions for handling truncated responses and file reading limits.

Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Coverage Regression Detected

This PR decreases test coverage. Please add tests to maintain coverage levels.

Overall Coverage

Metric Base PR Delta
Lines 94.40% 94.39% 📉 -0.01%
Statements 93.01% 93.01% ➡️ +0.00%
Functions 93.61% 93.61% ➡️ +0.00%
Branches 87.31% 87.31% ➡️ +0.00%
📁 Per-file Coverage Changes (2 files)
File Lines (Before → After) Statements (Before → After)
src/commands/main-action-cleanup.ts 97.9% → 96.9% (-1.03%) 98.0% → 97.0% (-0.99%)
src/enclave/host-executor-socket.ts 95.9% → 95.9% (+0.00%) 91.5% → 90.2% (-1.22%)

Coverage comparison generated by scripts/ci/compare-coverage.ts

@github-actions

Copy link
Copy Markdown
Contributor

✅ Coverage Check Passed

Overall Coverage

Metric Base PR Delta
Lines 94.39% 94.39% ➡️ +0.00%
Statements 93.01% 93.01% ➡️ +0.00%
Functions 93.61% 93.61% ➡️ +0.00%
Branches 87.31% 87.31% ➡️ +0.00%
📁 Per-file Coverage Changes (1 files)
File Lines (Before → After) Statements (Before → After)
src/enclave/host-executor-socket.ts 95.9% → 95.9% (+0.00%) 91.5% → 90.2% (-1.22%)

Coverage comparison generated by scripts/ci/compare-coverage.ts

@lpcox

lpcox commented Nov 21, 2026

Copy link
Copy Markdown
Collaborator Author

@copilot merge main, resolve conflicts, and address review feedback

lpcox and others added 2 commits November 21, 2026 17:45

Copilot AI commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

@copilot merge main, resolve conflicts, and address review feedback

Merged main as 2c34409 and addressed the regression-test feedback in 5cddff5. The test now checks extracted examples against a strict static allowlist without executing them, and covers the GNU grep command, Docker source references, and 930 KB single-line input in 4 KB chunks. Targeted Jest could not run because dependencies are not installed; the manual bounded-read and static checks pass.

@lpcox
lpcox merged commit df935a1 into main Nov 21, 2026
35 of 38 checks passed
@lpcox
lpcox deleted the copilot/aw-daily-security-review-fix branch November 21, 2026 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[aw] Daily Security Review and Threat Modeling: reported incomplete result

4 participants