Skip to content

Unify session model (closes KI-2, KI-5)#3

Merged
evkir merged 4 commits into
mainfrom
refactor/unify-session
May 21, 2026
Merged

Unify session model (closes KI-2, KI-5)#3
evkir merged 4 commits into
mainfrom
refactor/unify-session

Conversation

@evkir
Copy link
Copy Markdown
Owner

@evkir evkir commented May 21, 2026

No description provided.

evkir added 4 commits May 21, 2026 10:53
…vidence fields

Single source of truth for session-related models is now scan_session.py:
- Severity enum moved here from session.py
- Finding dataclass moved here, gained fields:
  * target: which host/URL/contract the finding pertains to
  * evidence: list of artifacts (nmap xml, HTTP responses, etc.)
  * cve_ids: list form, kept in sync with legacy single 'cve' field
- ScanSession gained findings list + add_finding() method
- summary() now reports severity_breakdown like PentestSession.summary() did

Fixes KI-5: agents (ReconAgent in particular) were already constructing
Finding(target=..., evidence=[...]) which raised TypeError because those
fields did not exist on the dataclass. They exist now.

session.py (legacy) will become a re-export shim in the next commit,
keeping all current import sites working without code changes.

Refs: STANDOFF.md day 3/30, closes KI-5 (partial: KI-2 in commit 2)
@evkir evkir merged commit 717299c into main May 21, 2026
4 checks passed
@evkir evkir deleted the refactor/unify-session branch May 21, 2026 08:03
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.

1 participant