Skip to content

armgit / AiSOC

Public Imported from GitHub
0

Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.

docs: remove committed session scratch and a duplicate PR template (#1052)

Beenu Arora9316ae3f2e2c
diff --git a/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md b/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md
deleted file mode 100644
index 1e5b18deb..000000000
--- a/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md
+++ /dev/null
@@ -1,87 +0,0 @@
-## Summary
-
-<!-- Describe the changes introduced by this PR in 2-3 sentences. -->
-
-## Type of change
-
-- [ ] Bug fix (non-breaking change that fixes an issue)
-- [ ] New feature (non-breaking change that adds functionality)
-- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
-- [ ] Documentation update
-- [ ] Refactor / tech debt
-- [ ] CI / infra change
-
-## Related issues
-
-Closes #<!-- issue number -->
-
-## Changes
-
-<!-- List the key files / areas changed and why. -->
-
--
--
-
-## Testing
-
-<!-- Describe how you tested these changes. -->
-
-- [ ] Unit tests added / updated
-- [ ] Integration tests pass locally
-- [ ] Manually tested (describe steps below)
-
-<details>
-<summary>Manual test steps</summary>
-
-1.
-2.
-
-</details>
-
-## Screenshots (if UI changes)
-
-<!-- Before / after screenshots or screen recording. -->
-
-## Checklist
-
-- [ ] My code follows the style guidelines of this project (`ruff`, `eslint`, `gofmt`)
-- [ ] I have performed a self-review of my own code
-- [ ] I have added tests that prove my fix is effective or that my feature works
-- [ ] New and existing unit tests pass locally
-- [ ] I have updated documentation as needed (README, CHANGELOG, CONTRIBUTING)
-- [ ] My changes do not introduce new linter warnings
-- [ ] I have checked for sensitive data / credentials in my diff
-
-## Eval harness (required for substrate / playbook / detection changes)
-
-> **Required if this PR touches:** `services/agents/`, `services/api/app/orchestrator/`,
-> `playbooks/packs/`, `detections/`, `services/agents/tests/eval_data/`,
-> `scripts/generate_eval_incidents.py`, `scripts/run_evals.py`, or any prompt /
-> RAG corpus / response template under those trees.
->
-> Run `python3 scripts/run_evals.py --json --out /tmp/report.json` before and
-> after your change and paste both summary blocks below. Any axis that
-> regresses must be called out explicitly. Playbook-touching PRs must include
-> the `playbook_completion_rate` block — orphan playbooks / templates fail CI.
-
-<details>
-<summary><strong>Before</strong> (paste <code>scripts/run_evals.py</code> output on base branch)</summary>
-
-```text
-
-```
-
-</details>
-
-<details>
-<summary><strong>After</strong> (paste <code>scripts/run_evals.py</code> output on this branch)</summary>
-
-```text
-
-```
-
-</details>
-
-- [ ] Not applicable — this PR does not touch substrate, playbooks, detections, or eval inputs
-- [ ] No axis regressed
-- [ ] An axis regressed; rationale and follow-up are described in the Summary above
diff --git a/PHASE4_PROGRESS.md b/PHASE4_PROGRESS.md
deleted file mode 100644
index 7a907b0a4..000000000
--- a/PHASE4_PROGRESS.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# Phase 4 working notes (local, not committed)
-
-Worktree: /Users/beenu/Desktop/AiSOC-agenttools
-Branch base: feat/phase4-agent-tools off origin/main @ 1f56e324
-
-## Measured for 4.5 (done)
-
-Images pulled fresh from GHCR 2026-09-26:
-- ghcr.io/beenuar/aisoc-actions:latest 539 MB
-- ghcr.io/beenuar/aisoc-connectors:latest 586 MB
-
-Resident memory, measured on this machine (16.7 GB host):
-
-| | cold-start idle (45s) | under 100 reqs | 40h steady state |
-|---|---|---|---|
-| actions | 45.99 MiB | 46.3 MiB | 48.3 MiB |
-| connectors | 71.45 MiB | 71.98 MiB | 76.51 MiB |
-| total | 117.4 MiB | 118.3 MiB | 124.8 MiB |
-
-Reference on the same host, same method: litellm 471.1 MiB (ADR-0006 measured
-451 MiB), agents 223.7 MiB, api 213.9 MiB, web 86.2 MiB, fusion 58.1 MiB.
-
-Zero-config boot verified:
-- actions: /health 200, /api/v1/live-actions 200 listing the capability set
-- connectors: /api/v1/connectors 200 with all 84 connectors
-
-CORE today already points at both: api has CONNECTORS_SERVICE_URL=http://connectors:8003
-and AISOC_ACTIONS_BASE_URL=http://actions:8085, and AISOC_FEATURE_FED_SEARCH
-defaults True. Neither hostname resolves in CORE.
-
-## Plan
-
-- [x] worktree, read plan + tracker
-- [x] 4.5 measurement
-- [ ] PR1: ADR-0007 + compose + docs (4.5)
-- [ ] PR2: 4.2 new vendor read verbs in services/actions
-- [ ] PR3: 4.1 + 4.3 + 4.4 agent tool surface
-- [ ] tracker + claim matrix + changelog
-- [ ] eval re-grade deltas
diff --git a/PHASE8_PROGRESS.md b/PHASE8_PROGRESS.md
deleted file mode 100644
index b02c87f41..000000000
--- a/PHASE8_PROGRESS.md
+++ /dev/null
@@ -1,76 +0,0 @@
-# Phase 8 progress (local scratch, not committed)
-
-Worktree `/Users/beenu/Desktop/AiSOC-p8`. `main` was `ac218305` at start, moved to
-`c95d05fa` during the work (parallel agents merged #925, #926, #927).
-
-## Shipped as open PRs
-
-- **8.1 retro-hunts** — PR #928, branch `feat/phase8-retro-hunts`, rebased onto
- `c95d05fa`, `mergeable: MERGEABLE`. Consumer for `NEW_IOC`, migration 070,
- `check_ioc_lake_mapping.py`, live ClickHouse proof (19 tests).
-- **8.2 KEV exposure** — PR #931, branch `feat/phase8-kev-exposure`, **stacked on
- #928** (base is that branch, not main). 65 tests pass.
-- **8.4 hunt library** — PR #930, branch `feat/phase8-hunt-library`, based on
- `c95d05fa`. 68 hunts, `check_hunt_scenarios.py`, `run_hunt_evals.py`.
-
-## 8.3 hunting agent — WRITTEN, UNVERIFIED, UNCOMMITTED
-
-Branch `feat/phase8-hunting-agent` (checked out, off `c95d05fa`). The shell
-environment died before the test run, so **none of the following is verified
-beyond the two checks noted**. Do not open a PR without finishing the list.
-
-Files written:
-- `services/agents/app/hunt/plan.py` — closed field/operator vocabulary + schema
-- `services/agents/app/hunt/agent.py` — plan/execute/run, ledger, 2-attempt loop
-- `services/api/app/services/retro_hunt/hunt_plan_sql.py` — the compiler
-- `services/api/app/api/v1/endpoints/agent_tools.py` — `POST /agent-tools/hunt-plan/execute`
-- `services/agents/tests/test_hunt_agent.py` — 25-ish tests
-- `scripts/check_hunt_agent_boundary.py` — the gate
-- `infra/litellm/config.yaml`, `app/llm/model_pins.py`,
- `services/api/app/services/model_aliases.py` — `aisoc-hunt` role
-- `services/agents/app/llm/prompt_registry.py` + `prompts.lock.json` — `hunt.system`
-
-Verified before the shell died:
-- `check_hunt_agent_boundary.py` passes, and was proven to detect three injected
- faults (open enum, query-shaped property, ghost field).
-- `check_llm_model_routing.py` passes (needed `hunt` added to `ROLES` in
- `services/api/app/services/model_aliases.py`, a third declaration site).
-- `check_prompt_lock.py` passes after `--write`.
-- `check_route_auth.py` passes. Route uses `lake:query` (an existing permission;
- `hunts:read` does not exist and would have been a silent 403 everywhere).
-- Plan validator smoke-tested by hand: refuses `raw_payload`, `regex`,
- `contains` on a numeric field.
-
-NOT done for 8.3:
-- `pytest services/agents/tests/test_hunt_agent.py` never ran
-- ruff check/format not re-run after the last edit (one E501 in agent.py fixed by
- hand; `services/agents/app/hunt/plan.py` had 3 E501s outstanding)
-- `check_gate_contract` / `check_gate_coverage` / `check_test_discovery` not run
-- eval harness NOT re-graded (required: this PR touches agents, prompts, tools)
-- CHANGELOG, claim matrix, tracker, docs page NOT updated for 8.3
-- nothing committed or pushed on this branch
-
-## Resume checklist for 8.3
-
-1. `cd /Users/beenu/Desktop/AiSOC-p8 && git branch --show-current` (expect
- `feat/phase8-hunting-agent`)
-2. `/tmp/rufenv/bin/ruff format` + `check` the six files above
-3. `cd services/agents && /tmp/triageenv/bin/python -m pytest tests/test_hunt_agent.py -q`
-4. `scripts/check_hunt_agent_boundary.py --self-test`
-5. `python scripts/run_evals.py --suite all` before and after, deltas in the PR body
-6. CHANGELOG `[Unreleased]`, 3 claim-matrix rows, tracker 8.3 box,
- `apps/docs/docs/concepts/` page + `sidebars.ts`
-7. Wire the gate into `.github/workflows/ci.yml` beside `check_agent_read_tools`
-8. `git add -A && git reset PHASE8_PROGRESS.md && git commit -s`
-9. `gh pr create --body-file` (never `--body`)
-
-## Notes worth keeping
-
-- `main` moved twice during this work; rebase before pushing and resolve
- CHANGELOG / claim-matrix conflicts as a **union** (a regex union resolver
- worked: keep ours then theirs, then recount with
- `scripts/check_claim_gate_matrix.py`).
-- `[Unreleased]` already carries several `### Added` blocks from parallel
- agents. That is the house state, not something to consolidate.
-- Local ClickHouse container `p8-clickhouse` on port 9100 may still be running:
- `docker rm -f p8-clickhouse`.
diff --git a/PROGRESS-p4a.md b/PROGRESS-p4a.md
deleted file mode 100644
index 683f41e75..000000000
--- a/PROGRESS-p4a.md
+++ /dev/null
@@ -1,45 +0,0 @@
-# Phase 4a — read-only approval split + verification probes
-
-Worktree: `/Users/beenu/Desktop/AiSOC-p4a`, branch `fix/read-only-approval-and-probes` off `origin/main` (46b1ad74).
-
-## Item 1 — a pure read in the analyst queue
-
-- [x] Reproduced through the API: `POST /actions` with `search_siem` at the default tier returned
- `awaiting_approval`; `POST /live-actions/dispatch` executed the same verb.
-- [x] Root cause: `TIER_MAX_AUTOMATIC["L1"] = None`, contradicting `maturity.py`
- (`_AUTO_ALLOWED_AT_TIER[L1_NOTIFY] = {MINIMAL}`) and `_IMPACT_BLAST` (READ_ONLY <=> MINIMAL).
-- [x] Unified: new `approval_matrix.evaluate_contract()` is the single grading entry; the
- dispatcher's local READ_ONLY bypass deleted; `approval_gate` calls the same function.
-- [x] Two tests that *encoded* the defect rewritten to assert the correct behaviour (both halves).
-- [x] Second instance found by the sweep: `update_alert_disposition` had no `ACTION_BLAST_RADIUS`
- entry, and four call sites read that table with two different fallbacks (MEDIUM vs HIGH).
- Added the entry (LOW, per its own contract note); `blast_radius.py` now fails closed to HIGH.
-- [x] Cross-door sweep: 345 combinations. Baseline on origin/main: 5 disagreements. Now: 0.
-- [ ] Invariant test file committed.
-
-## Item 2 — eleven bridged response verbs with no probe
-
-Unprobed: block_ioc, create_notable_event, create_ticket, force_mfa, kill_process,
-quarantine_file, reset_password, revoke_session, run_av_scan, run_script, search_siem.
-Priority: kill_process, quarantine_file, run_script.
-
-- [ ] Classify each: real probe / honest unverified / demote.
-
-## Constraints in force
-
-- autospec'd signature tests for any new vendor arm
-- dry-run credential-strip list must match the client factory exactly (AST test re-derives it)
-- no fake success; `executed` is the only field meaning a vendor was touched
-- CHANGELOG under `[Unreleased]`, expect conflicts, resolve as union
-
-## Status at PR open
-
-PR: https://github.com/beenuar/AiSOC/pull/873 (4 commits)
-- ee99dae3 approval fix + invariant test
-- 960b2a38 probes
-- 010a1600 changelog
-- e5a4e8f8 claim-to-gate row (140 rows, 132 GATED / 8 PARTIAL / 0 NO GATE)
-
-Local verification: 737 actions tests pass (671 on main); mypy 24 findings = baseline;
-ruff clean; check_action_contract OK; check_claim_gate_matrix OK; attribution OK.
-Remaining: watch CI, resolve conflicts, merge without --delete-branch, confirm main moved.
diff --git a/apps/docs/docs/contributing/guidelines.md b/apps/docs/docs/contributing/guidelines.md
index d25ce5d03..24600f288 100644
--- a/apps/docs/docs/contributing/guidelines.md
+++ b/apps/docs/docs/contributing/guidelines.md
@@ -50,7 +50,7 @@ explicitly coordinating a stack of dependent PRs with a maintainer.
### PR Template
Every pull request uses the
-[default PR template](https://github.com/beenuar/AiSOC/blob/main/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md).
+[default PR template](https://github.com/beenuar/AiSOC/blob/main/.github/pull_request_template.md).
The required sections are:
- **Summary** — 2–3 sentences describing what changed and why.