Skip to content

fix(review): add finding consolidation, compound severity, and CI annotation ingestion - #229

Merged
jflowers merged 2 commits into
unbound-force:mainfrom
sonupreetam:opsx/review-finding-consolidation
Jun 11, 2026
Merged

jflowers merged 2 commits into
unbound-force:mainfrom
sonupreetam:opsx/review-finding-consolidation

Conversation

@sonupreetam

@sonupreetam sonupreetam commented May 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Adds dependency necessity check, content-integrity verification guidance, and CI bot corroboration to the Adversary persona checklist
  • Adds adversarial input enumeration as new Audit Checklist item 5 in divisor-adversary.md and as a substep in /review-pr Step 8b
  • Adds compound severity escalation rule to severity.md so individually-moderate findings sharing a root cause are correctly classified at the combined severity
  • Adds Steps 8e (CI Bot Annotation Cross-referencing), 8f (Finding Consolidation), and 8g (Severity Calibration) to /review-pr
  • Adds issue suggestion gap detection substep to /review-pr Step 8a
  • Adds cross-persona finding consolidation to /review-council at the collection step in both Code Review and Spec Review modes
  • Adds Constitution Principle V (Security by Default) covering supply chain integrity, input validation, least privilege, and dependency necessity
  • Includes full OpenSpec spec artifacts under openspec/changes/review-finding-consolidation/

Motivated by post-mortem of two reviews:

  1. complytime-collector-components#229 — Adversary persona split a single supply chain finding into three separate LOW/MEDIUM findings (finding fragmentation, Review infrastructure: finding consolidation, compound severity escalation, and CI annotation ingestion #228)
  2. complytime/org-infra#285 — Three HIGH findings were initially classified as MEDIUM due to anchoring bias (severity under-rating, fix: review-pr command under-rates severity and misses adversarial input analysis #233)

Files Changed

File Change
.opencode/agents/divisor-adversary.md Add necessity-before-integrity check, content-integrity verification, CI bot corroboration (item 2); add adversarial input enumeration (new item 5); renumber items 5→6, 6→7
.opencode/uf/packs/severity.md Add Compound Severity Escalation section with rule, examples table, and anti-consolidation guard
.opencode/commands/review-pr.md Add Steps 8e (CI bot cross-ref), 8f (consolidation), 8g (severity calibration); add adversarial input enumeration substep in 8b; add issue suggestion gap detection in 8a
.opencode/commands/review-council.md Add cross-persona finding consolidation at Step 3 (Code Review) and Step 2 (Spec Review)
.specify/memory/constitution.md Add Principle V (Security by Default); version 1.1.0 → 1.2.0; update Sync Impact Report and hero alignment notes
CHANGELOG.md Add Unreleased entries for all new features
openspec/changes/review-finding-consolidation/ Full OpenSpec artifacts: proposal, design, delta spec, tasks

Test plan

  • Check out this branch (gh pr checkout 229), then run /review-council to verify the new severity.md section is loaded and the consolidation pass runs
  • Run /review-pr on a PR with known CI bot annotations to verify Step 8e cross-referencing
  • Verify consolidation logic in /review-pr Step 8f and /review-council Step 3 produces a single finding for related issues
  • Verify severity calibration (Step 8g) quotes severity.md definitions for each finding
  • Verify adversarial input enumeration runs for PRs introducing new parameters
  • Review constitution Principle V for consistency with Principles I–IV

Website issue: unbound-force/website#142

Fixes #228
Fixes #233
Refer discussion: https://github.com/orgs/unbound-force/discussions/236

sonupreetam and others added 2 commits June 1, 2026 15:57
…otation ingestion

The review of complytime-collector-components#229 exposed gaps in
the review infrastructure. This commit addresses all of them:

- divisor-adversary.md: add dependency necessity check, checksum
  verification guidance, CI bot corroboration, and adversarial
  input enumeration (new checklist item 5)
- severity.md: add Compound Severity Escalation section with rule
  and examples for compound findings
- review-pr.md: add Steps 8a (issue suggestion gap detection),
  8b (input enumeration), 8e (CI Bot Annotation Cross-referencing),
  8f (Finding Consolidation), and 8g (Severity Calibration)
- review-council.md: add cross-persona finding consolidation at
  the collection step in both Code Review and Spec Review modes
- constitution.md: add Principle V (Security by Default) covering
  supply chain integrity, input validation, least privilege, and
  dependency necessity
- Recalibrate checksum severity from HIGH to contextual MEDIUM
- OpenSpec spec artifacts for the combined change

Fixes unbound-force#228
Fixes unbound-force#233

Co-authored-by: Cursor <[email protected]>
Signed-off-by: sonupreetam <[email protected]>
- Add Unreleased CHANGELOG entries for Principle V, compound
  severity escalation, severity calibration, adversarial input
  enumeration, finding consolidation, CI bot cross-referencing,
  and issue suggestion gap detection
- Sync modified source files to embedded scaffold asset
  counterparts to fix TestEmbeddedAssets_MatchSource drift
- Filed unbound-force/website#142 for documentation impact

Co-authored-by: Cursor <[email protected]>
Signed-off-by: sonupreetam <[email protected]>
@sonupreetam
sonupreetam force-pushed the opsx/review-finding-consolidation branch from 4db0512 to cadafff Compare June 1, 2026 13:57
@sonupreetam
sonupreetam marked this pull request as ready for review June 2, 2026 07:31
@sonupreetam

Copy link
Copy Markdown
Contributor Author

Research and architectural decisions behind this PR are documented in the org discussion: https://github.com/orgs/unbound-force/discussions/236

Covers industry analysis (MDASH, RevHive, Screvyn, TitanCA, etc.), Divisor persona gap analysis, and the decision to enhance orchestration rather than add a new persona.

@jflowers jflowers 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.

lgtm

@jflowers
jflowers merged commit 7f41497 into unbound-force:main Jun 11, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

2 participants