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.
Python agentic-aiai-securityalert-triageblue-teamcybersecuritydetection-engineeringincident-responselanggraphllm-agentsmcpmitre-attackmodel-context-protocolpurple-teamsecurity-operationsself-hostedsiemsoarsocthreat-detectionthreat-intelligence
Merge PR #1322: depth 4.2 — OTLP logs, Kafka input, TAXII 2.1 server
beenuar8dfa982b82fe
diff --cc .github/workflows/ci.ymlindex 2a1412089,73b4b53a1..860c2af12--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@@ -752,29 -714,21 +752,44 @@@ jobs- name: Memory recall scorerrun: python3 scripts/score_memory_recall.py+ # Depth 6.1. The AI estate is a stored value a console page reads, and+ # the failure that costs most here is not an absent feature but a+ # present one nothing writes: the page renders "no AI estate" to a+ # tenant that has one, which is the single most dangerous false+ # statement it could make. The WRITER rule is therefore the+ # load-bearing one — it requires the fusion consumer to call the+ # recorder on the raw-events branch *and* the service to construct it+ # at startup, because an unconstructed recorder is a None that every+ # call site skips in silence.+ - name: AI asset inventory gate — self-test+ run: python3 scripts/check_ai_asset_inventory.py --self-test+ - name: AI asset inventory gate+ run: python3 scripts/check_ai_asset_inventory.py+ # Depth 6.2. The endpoint half, and the rule that carries it is+ # NAMESPACE: the four endpoint connectors put their process fields in+ # the connector payload under `raw_data`, and the canonical OCSF+ # profile maps none of them — so a classifier reading `process.name`+ # finds None on every real source while its unit tests pass against+ # events built in the shape it expects.+ - name: AI endpoint discovery gate — self-test+ run: python3 scripts/check_ai_endpoint_discovery.py --self-test+ - name: AI endpoint discovery gate+ run: python3 scripts/check_ai_endpoint_discovery.py+ # The three standard inputs the syslog gate does not cover: OTLP+ # logs, a customer Kafka topic and a TAXII 2.1 server. All three are+ # things a third party points at, and all three fail the same three+ # ways — unwired, tenant taken from the payload, and (for the Kafka+ # consumer) a loop that cannot tell a permanent fault from a+ # transient one. Self-test first, on the same tree: it injects+ # nineteen violations, one per rule. Writing it found two real+ # defects — the OTLP template was not in ALLOWED_TEMPLATE_IDS, so no+ # operator could mint a token the receiver would accept, and the+ # media-type rule matched the error message that names JSON rather+ # than the case arm that accepts it.+ - name: Standard inputs gate — self-test+ run: python3 scripts/check_standard_inputs.py --self-test+ - name: Standard inputs gate+ run: python3 scripts/check_standard_inputs.py# One layer in from the name: the profile gate asks whether a connector# reaches a normalization path, this asks which OCSF class it reaches# when it gets there. The class uid divided by a thousand is thediff --cc .train_resolve.pyindex 8e4d91dda,000000000..cbbae0ecbmode 100644,000000..100644--- a/.train_resolve.py+++ b/.train_resolve.py@@@ -1,93 -1,0 +1,93 @@@+#!/usr/bin/env python3+"""Train conflict resolver for the recurring tracker shapes (session tool, not shipped).++Usage: python3 .train_resolve.py <file> <mode>+ modes:+ union -> ours + theirs for every hunk+ theirs -> theirs for every hunk+ roadmap -> theirs, deduping repeated 'claim-to-gate matrix stands at' paragraphs+Run from the worktree root. Refuses to leave markers behind.+"""+import re+import sys+import pathlib++CONFLICT = re.compile(+ r"^<<<<<<< [^\n]*\n(.*?)(?:^\|\|\|\|\|\|\| [^\n]*\n.*?)?^=======\n(.*?)^>>>>>>> [^\n]*\n",+ re.DOTALL | re.MULTILINE,+)+++def merge_checkboxes(ours: str, theirs: str) -> str:+ """Same line set modulo [x]/[ ]: checked wins per line. Falls back to union."""+ ol, tl = ours.splitlines(True), theirs.splitlines(True)+ norm = lambda s: s.replace("- [x]", "- [ ]", 1)+ if len(ol) == len(tl) and all(norm(a) == norm(b) for a, b in zip(ol, tl)):+ return "".join(a if "- [x]" in a else b for a, b in zip(ol, tl))+ return ours + theirs+++def merge_matrix(ours: str, theirs: str) -> str:+ """Union of table rows from both sides, then a single trailing non-row block+ (theirs'), for hunks spanning appended matrix rows + the Summary."""+ def split(block: str):+ rows, rest, in_rows = [], [], True+ for line in block.splitlines(True):+ if in_rows and line.startswith("|"):+ rows.append(line)+ else:+ in_rows = False+ rest.append(line)+ return rows, "".join(rest)++ orows, orest = split(ours)+ trows, trest = split(theirs)+ seen, rows = set(), []+ for r in orows + trows:+ if r not in seen:+ seen.add(r)+ rows.append(r)+ return "".join(rows) + (trest if trest.strip() else orest)+++def dedupe_matrix_paragraph(text: str) -> str:+ paras = [p for p in text.split("\n\n") if p.strip()]+ firsts = [p for p in paras if p.lstrip().startswith("The claim-to-gate matrix stands at")]+ if len(firsts) > 1:+ return firsts[0] + "\n\n"+ return text+++def main() -> None:+ path, mode = sys.argv[1], sys.argv[2]+ p = pathlib.Path(path)+ t = p.read_text()+ out, idx, n = [], 0, 0+ for m in CONFLICT.finditer(t):+ ours, theirs = m.group(1), m.group(2)+ if mode == "union":+ r = ours + theirs+ elif mode == "theirs":+ r = theirs+ elif mode == "roadmap":+ r = dedupe_matrix_paragraph(theirs)+ elif mode == "checkboxes":+ r = merge_checkboxes(ours, theirs)+ elif mode == "matrix":+ r = merge_matrix(ours, theirs)+ else:+ raise SystemExit(f"unknown mode {mode}")+ out.append(t[idx : m.start()])+ out.append(r)+ idx = m.end()+ n += 1+ out.append(t[idx:])+ res = "".join(out)- if "<<<<<<<" in res or ">>>>>>>" in res:++ if re.search(r"^(<<<<<<< |>>>>>>> |=======$)", res, re.MULTILINE):+ raise SystemExit(f"{path}: markers left behind")+ p.write_text(res)+ print(f"{path}: {n} hunks -> {mode}")+++if __name__ == "__main__":+ main()diff --cc DEPTH_PROGRESS.mdindex edfd2376b,c6934cd4d..54011a691--- a/DEPTH_PROGRESS.md+++ b/DEPTH_PROGRESS.md@@@ -77,24 -70,10 +77,28 @@@ is written. Next free at capture: migra| migration `113` | 8.1 — `113_entitlement_enforcement.sql` | claimed || ADR `0011` | 8.1 — truncating a hash-chained audit log | claimed |+| migration `104` | 5.4 stateful user/manager verification (verification requests, answers, tenant opt-in) | claimed |+| migration `105` | 5.6 plain-language playbook drafts (draft, preview, approval) | claimed |++Lane B claimed `102`/`103` and landed that claim on `main` first, so Lane C's+two moved to `104`/`105` and `102_playbook_verification.sql` was renamed with+it. Both lanes had claimed before writing, as the plan requires -- what the+rule cannot prevent is two lanes claiming the same free number before either+merges, so re-read `services/api/migrations/` **and** this table before+picking one.+| migration `110` | 6.1 — `110_ai_assets.sql` | claimed |+| migration `111` | 6.4 — `111_ai_agent_identities.sql` | claimed |+| ADR `0011` | 6.6 — AI containment arms off by default, and the rollback a kill-switch needs | claimed |+| — | 5.4 — `104_playbook_verification.sql` on `depth/5.4-5.6-lane-c`, and 7.1 — `104_phishing_campaigns.sql` on `depth/7.1-7.3-phishing` | **collision, unresolved here.** Both lanes wrote a `104` on a branch without a row in this table. Phase 9's `104` is the one with a claim, so these two need renumbering by their own lanes; recorded rather than renamed from outside, because renaming another lane's migration from here is how a branch comes back to a file that no longer exists |+| migration `110` | 7.1 — `110_phishing_campaigns.sql` | claimed |+| migration `111` | 7.2 — `111_phishing_message_analysis.sql` | claimed |+| ~~migration `110`~~ | ~~3.4 — `110_entity_baselines.sql`~~ | **released**, ADR-0011 put the baselines in the Redis fusion already runs, so there is no table |+| migration `111` | 3.7 — `111_detection_coverage.sql` | claimed |+| ADR `0011` | 3.4 — behavioural baselines in CORE | **landed**, `docs/decisions/0011-behavioural-baselines-in-core.md`, accepted |+ | migration `110` | 4.2 — `110_stream_inputs.sql` (Kafka customer topics, TAXII collections) | claimed |+ | migration `111` | 4.3 — `111_lake_query_jobs.sql` (cold-query cost estimate and progress state) | claimed |+ | migration `112` | 4.5 — `112_scheduler_leases.sql` (connector-scheduler leader election) | claimed |+ | ADR `0011` | 4.4 — partitioning fusion by entity rather than by alert | claimed |Highest migration on `main` at claim time was `101_audit_immutable_nullify.sql`,so `095`--`101` were taken by sibling lanes between the capture above and this@@@ -118,28 -92,12 +122,34 @@@ sub-items that need no schema — the cinternationalisation and accessibility — claim no number. The same releaserule applies: an unused number is struck, not silently skipped.+**Phase 6 moved `105`/`106` to `110`/`111` on 2026-10-11**, because Phase 9's+claim for `104`--`109` reached this table on `main` first and a claim table+nobody defers to is not a coordination mechanism. The lesson is the one this+section already states and that three lanes still fell to: the table is+authoritative only for lanes that write to it **before** the file, and four+branches now carry a `104` or a `105` that was never claimed here. Reading+`main` is not enough; read `git ls-tree` over every `origin/*` branch as+well, which is what found this.+Phase 7 claimed `104` and `105` on the same day and **lost the race**: Phase 9+merged to `main` first, so Phase 7 renumbered to `110` and `111` rather than+leaving two files with one number each. Both lanes re-read the directory+before claiming and both read `101`, which is the shape a claim table cannot+prevent on its own — the table is the tiebreak, and whoever lands second+moves. Recorded because the next lane will hit it too: re-read+`DEPTH_PROGRESS.md` on `origin/main`, not only the migrations directory, and+expect to renumber if a sibling merged between the claim and the pull+request.+Phase 3 re-read `services/api/migrations/` on 2026-10-11 before claiming:+`101_audit_immutable_nullify.sql` was still the highest on `main` and `102`+through `109` were already spoken for above, so Phase 3 takes `110` for the+3.4 baseline store and `111` for the 3.7 coverage store. ADR `0011` is the+next free number in `docs/decisions/` after 2.7 landed `0010`.+ Phase 4 (items 4.2--4.5) re-read the directory on 2026-10-11 immediately+ before claiming: `101_audit_immutable_nullify.sql` is still the highest file+ on `main`, `102`--`109` are spoken for above, so this lane takes `110`--`112`+ and ADR `0011`. The numbers are claimed before any file is written, because+ two lanes recently picked `102`/`103` within minutes of each other and one+ had to renumber. Unused numbers are struck at the end of the phase.## Phase 0: Kickoff@@@ -1282,10 -815,8 +1372,11 @@@ endpoint produces once triage falls thr| 2026-10-07 | 0.3 | `make up` and `make smoke` (10/10) pass. Injection suite and load-harness baselines committed. `make up-full` deferred (D2) and hosted model rows blocked (D3). Fixing D1 was a precondition for the load-harness baseline. || 2026-10-09 | 3.3 | Identity privilege (18 rules) and a per-tenant first-seen store (2) built; 5 rules were never unreachable (gate operator drift, D9); 18 retired with a reason (D10). `MAX_UNREACHABLE` 45 → 2, the two remaining both needing the 3.4 baseline. Two matcher operators three shipped rules already used were implemented. || 2026-10-09 | 3.2 | Ordered and unordered sequences in the windowed engine; all four translatable Sigma correlation types compile, seven refusal reasons recorded. No upstream correlation rule exists in this tree to import (D8), so the corpus is first-party and labelled as such. |+ | 2026-10-11 | 4.2 | Reproduced: `check_standard_inputs.py` against the pre-fix tree reported no OTLP package, no Kafka input and no TAXII server — the only TAXII-shaped route being a demo-gated sample list. Built all three, after moving the consumer-health classifier out of `graph_ws` into `streamhealth` so the new Kafka consumer shares the table rather than copying it. Negative controls recorded in the PR: a timestamp-only TAXII cursor loses an indicator in the single-row pagination walk (measured — 3 of 4), and nineteen gate injections each go red. Writing it found four defects, including an OTLP template nobody could mint a token for and a gate rule that read an error message instead of the behaviour. Ingest Go suite green; api projection suite 37; live TAXII suite 15. || 2026-10-09 | 4.1 | Reproduced: `check_cloud_native_collection.py` on the unmodified tree reported all three collection paths absent. Implemented `aws_cloudtrail_s3` (SQS-notified S3 objects; management events, data events and VPC flow logs; delete-after-emit), `gcp_pubsub` (REST pull on a log-sink subscription; ack-after-read) and `azure_event_hubs` (Capture blobs over the Data Lake Gen2 JSON API, with a focused Avro OCF reader). Negative controls recorded in the PR: deleting the SQS message before the object is read, acknowledging the Pub/Sub batch before it is built, ignoring the Avro union branch index, and ignoring the flow-log header line each fail a named test, and all were restored. Connectors suite 1014 -> 1098 passed. |+| 2026-10-11 | 5.4 | Reproduced: `check_stateful_verification.py` against `origin/main` reported eight problems — no `verification.py` at all, `verify_user` absent from the control-flow table, no resume path, no escalation, no `timed_out`, no sweep, no migration and no writer for the opt-in table. Built the stage machine on the existing pause row rather than a second table. Three negative controls recorded in the PR: reverting the run-loop break fails three tests including the `wait` regression (D11), removing `manager_ref=_extract_manager(body)` fails three SCIM tests, and removing `ENABLE ROW LEVEL SECURITY` from migration 102 fails the live tenancy test with "tenant B read tenant A's verification policy". Two pre-existing tests pinned the old shape and were widened rather than relaxed: the control-flow table's membership (still an equality, now of four) and the sweeper's return dict. Writing the gate found a hole in the gate: its first block extractor matched `\n\n\n`, which finds nothing for the *last* function in a module, so the ordering rule was skipped entirely over an injected violation. |+| 2026-10-11 | 6.2 | Reproduced: 13 of 16 new cases failed, driving the shapes the four endpoint connectors actually emit. Root cause was 6.1's endpoint branch reading `process.name` off OCSF, which the canonical profile never populates — it found `None` on every real source while its own tests passed. Fixed by reconstructing the connector namespace. Shipped the osquery pack (5 queries, packs 5 -> 6), the source-capability table, the operator doc and a 6-rule gate. Fusion suite 683 -> 700. Claim row is PARTIAL: no osquery agent runs in CI, and the EDR connectors return vendor detections rather than process telemetry, so the plan's "CrowdStrike, Defender, SentinelOne" wording is not satisfiable with these connectors. |+| 2026-10-11 | 6.1 | Reproduced: the new gate reported nine problems across five of eight rules on the unmodified tree. Built `aisoc_ai_assets` (migration 110), its routes behind a new `ai_estate:*` permission pair, the fusion recorder that writes it on the default profile, the `AIAsset` graph label with `OPERATES`/`HOSTS` edges, and the `/ai-estate` page. Two negative controls against a real PostgreSQL: reverting `NULLS NOT DISTINCT` turns one provider-key row into three, and a `USING (true)` policy leaks across tenants. Claim matrix 302 -> 303 rows, 300 GATED. Writing the gate found two blind spots in the gate itself. || 2026-10-09 | 3.1 | All 74 decided. 50 translated into `wd-*` rules derived from each original's own clauses and replayed through the real engine (162 assertions); 24 refused with a reason across five kinds. `MAX_UNREACHABLE` 119 → 45, published executable 2,603 → 2,529, windowed 18 → 68. Three findings recorded as D4–D6 below. || 2026-10-11 | 8.1 | parity 4.1's containerised-IdP leg **observed to pass**, both halves: `keycloak-oidc` verifies a real `id_token` against Keycloak's published JWKS with an audience-mismatch negative control, and `keycloak-saml` walks the whole SP-initiated flow to the real ACS and signs `[email protected]` in as `infosec`, with an untrusted-key control answering 400. Run `38124780886`, as `ENVIRONMENT=test` against the DML-only `aisoc_app` role. The SSO claim row moves PARTIAL → GATED on that evidence. Building it found two shipped defects no self-authored provider could expose: `resolve_saml_connection` bound `:i` untyped so `:i IS NULL` raised on asyncpg, and Keycloak's default role-list mapper emits one `<Attribute Name="Role">` per role, which python3-saml refuses. || 2026-10-11 | 8.1 | WebAuthn as a console second factor and MFA enforced per role. Fixing the branch's own gates found three `passkey_credentials` reads scoped by user id alone on a tenant-scoped table, and a permission-model violation where the MFA policy route imported `ROLE_PERMISSIONS` directly; the role *vocabulary* now has one owner in `role_grants.known_roles()`. 23 of 23 live cases pass against real Postgres, and deleting the login integration fails 14 of them — measured, where the workflow had said eight. |diff --cc apps/docs/docs/compliance/evidence-pack.mdindex c5c6fd122,0a6d99adb..349c2cec1--- a/apps/docs/docs/compliance/evidence-pack.md+++ b/apps/docs/docs/compliance/evidence-pack.md@@@ -33,10 -33,8 +33,10 @@@ and says so| Prompt-injection resistance | Three adversarial corpora: 32 payloads scanned in isolation and 71 incident pairs whose payloads are placed in attacker-controllable fields, both against a clean twin with a recall floor and a false-positive ceiling, plus 34 held-out pairs authored after the guard was frozen and carrying no floor at all, on which the guard measures 7.1% | `services/agents/tests/adversarial/` || Claim-to-gate traceability | Every product claim mapped to the CI job that fails when it stops being true | `docs/audit/CLAIM_TO_GATE_MATRIX.md` |- The last row is the one worth reading first. It is the honest index: 301 rows+ The last row is the one worth reading first. It is the honest index: 303 rows`GATED`, 2 `PARTIAL`, and a ratchet that refuses to let a row sit at++`GATED`, 3 `PARTIAL`, and a ratchet that refuses to let a row sit at`NO GATE`. Re-read the figure from the table rather than from here — a countcopied into prose goes stale in silence, which is why`scripts/readme_gates.py` cross-checks this sentence against the matrix.diff --cc docs/audit/CLAIM_TO_GATE_MATRIX.mdindex 1dc6b6ce1,edb525a5e..f18f73c4f--- a/docs/audit/CLAIM_TO_GATE_MATRIX.md+++ b/docs/audit/CLAIM_TO_GATE_MATRIX.md@@@ -14,8 -14,9 +14,11 @@@ Statuses: `GATED` (a CI job fails when| Connectors: schema-driven config + vault-encrypted secrets | README L168 | `ci.yml` connectors matrix (`test_schemas.py` + `test_conformance.py` — secret-shaped fields must be `type=secret`); vault tests + `test_live_vendor_smoke.py` (Phase D3 — mock-server drives each connector's real HTTP client + normalize) | core | GATED | - || Connectors: live Test connection | README L168 | `ci.yml` connectors matrix (`test_conformance.py` — every connector implements the async `test_connection` contract) + `connector_conformance.py --check` published matrix + `test_live_vendor_smoke.py` (Phase D3 — mock-server conformance: `test_connection()` + paginated `fetch_alerts()` HTTP path exercised against realistic vendor payloads) | core | GATED | - || Cloud telemetry is collected the way a real estate emits it: a CloudTrail organisation trail on S3 notified over SQS (management events, data events and VPC flow logs), a Pub/Sub subscription on a Cloud Logging sink, and an Event Hub's Capture output | `apps/docs/docs/connectors/{aws-cloudtrail-s3,gcp-pubsub,azure-event-hubs}.md`; depth plan 4.1 | `ci.yml :: python-lint` (`check_cloud_native_collection.py --self-test` then the gate: each of the three is registered in `_CONNECTOR_CLASSES`, declares a resumable cursor, declares a bounded `collection_budget` carrying the sentence that says where the overflow goes, and ships vendor-shaped fixtures, a setup guide and a marketplace manifest. The self-test injects one violation per rule into a copy of the real tree and requires each to be caught, and refuses both an absent and an empty tree) + `ci.yml` connectors matrix (`test_aws_cloudtrail_s3.py`, `test_gcp_pubsub.py`, `test_azure_event_hubs.py`, `test_avro_ocf.py` — 83 cases driving recorded vendor payloads through each connector: the SNS and raw S3 notification envelopes, a CloudTrail object carrying management and data events, an S3 flow-log object with its header line, a Pub/Sub pull response with base64 `LogEntry` payloads, and a binary Avro capture file. Acknowledgement ordering is pinned by failure injection rather than described, because an ack before the batch is in hand loses it permanently) | core | PARTIAL (no vendor account of any kind is reachable from CI, so every payload here is recorded or synthesised rather than live. Two consequences are stated rather than implied: the Azure capture fixture was built from the Avro specification rather than taken from a running Event Hub, so a decoder and a fixture that share an author share a misreading; and the Data Lake Gen2 listing path has never been exercised against a real storage account. Returns to GATED when a recorded capture from a live hub replaces the synthesised one) | a live-vendor fixture for Azure Capture |+| The AI estate AiSOC reports is one it observed, not one somebody typed in: AI apps, coding agents, MCP servers, IDE extensions, provider keys and OAuth grants, each with the person and device behind it | depth plan 6.1; `apps/web/src/components/ai-estate/AiEstateView.tsx` | `ci.yml :: python-lint` (`check_ai_asset_inventory.py --self-test` then the gate: eight rules, of which WRITER is the load-bearing one — the fusion consumer must call the recorder on the raw-events branch *and* the service must construct it at startup, because an unconstructed recorder is a `None` every call site skips in silence and the page would render "no AI estate" to a tenant that has one. The self-test injects one violation per rule into a copy of the real tree and requires each to be caught, and refuses an empty tree) + `ai-estate-live.yml` (a fixture estate of a coding agent, an MCP server and a provider key written by the real recorder into a real PostgreSQL with every migration applied, read back as the DML-only `aisoc_app` role so the RLS policy actually applies; two negative controls re-inject real defects — reverting `NULLS NOT DISTINCT` turns one provider-key row into three, and a policy of `USING (true)` lets one tenant read another's estate — and each must fail the suite) + `ci.yml :: python-test` (fusion `test_ai_asset_recorder.py`, 21 cases, including the negative control that an ordinary process is not an AI asset and the mirror tests comparing the fusion and API risk scorers on shared cases) + `ci.yml` ingest Go tests (`internal/graph/ai_estate_test.go`) | core | GATED | — |+| The AI estate is discovered on the endpoint with no new agent, and every source states what it cannot see | depth plan 6.2; `apps/docs/docs/concepts/ai-estate-discovery.md`; `packs/aisoc-ai-estate.yaml` | `ci.yml :: python-lint` (`check_ai_endpoint_discovery.py --self-test` then the gate: six rules, of which NAMESPACE is load-bearing — the four endpoint connectors put their process fields in the connector payload under `raw_data` and the canonical OCSF profile maps none of them, so a classifier reading `process.name` finds `None` on every real source while its own tests pass against events built in the shape it expects. CAPABILITIES requires every discovery source to declare a non-empty `cannot_see`, checked in both directions against `DISCOVERY_SOURCES`) + `ci.yml :: python-test` (fusion `test_ai_endpoint_discovery.py`, 16 cases driving the shapes `windows_event`, `auditd`, `fleetdm` and `osctrl` actually emit, read out of each connector's own `normalize()`; negative controls assert that an ordinary process, an unrelated IDE extension and an unrelated JSON file produce nothing, and that an endpoint asset never claims a model) | core | PARTIAL (no osquery agent runs in CI, so the pack is asserted to load through the real `pack_loader` and its queries are asserted to select the columns the recorder classifies on — but no test has ever watched a real osqueryd execute one of them against a real filesystem. The paths were taken from each MCP client's published configuration documentation rather than from a running install. Returns to GATED when a containerised osquery runs the pack and the rows reach the recorder) | an osquery container in CI running the pack end to end |+ | An OpenTelemetry Collector can export logs to AiSOC with no forwarder in between: `POST /v1/logs` reads ExportLogsServiceRequest in both the protobuf and the JSON encodings, and gzip bodies | `apps/docs/docs/connectors/otlp-logs.md`; depth plan 4.2 / parity 6.10 | `ci.yml :: python-lint` (`check_standard_inputs.py --self-test` then the gate: the content-type switch has a case arm for each encoding — matched against the arm rather than against any mention, because two error messages name both encodings when refusing a third and the first cut of the rule passed a receiver that had stopped accepting JSON entirely; gzip is decompressed; PartialSuccess is set; a publish failure answers 503 with Retry-After; the tenant comes from `tok.TenantID` and from no attribute; the receiver is routed at `/logs`, constructed in `main.go` and named in `/readyz`; the `otlp-logs` template ships and is in `ALLOWED_TEMPLATE_IDS`) + `ci.yml` ingest Go job (`internal/otlp`, 27 cases through the real route against protobuf and JSON bodies built with the OTLP protobuf types: both encodings land, the response uses the request's encoding, a gzipped body is accepted, resource and scope attributes reach the OCSF event, severity is derived from the number when the text is absent, a tenant in a resource attribute is ignored, a publish failure is 503 with Retry-After, a partly unprojectable batch reports rejected_log_records while the good record still lands, and an unknown JSON field does not refuse the batch) | core | GATED | Writing the suite found two defects: a well-formed empty batch answered 400, because an ExportLogsServiceRequest with no fields set encodes to zero protobuf bytes and the body reader called that unreadable; and the partial-success path had no reachable trigger, so the contract was a mechanism with no caller. **No live OpenTelemetry Collector has been exercised against this endpoint** — the bodies are built with the vendor's own protobuf types rather than captured from a running collector |+ | A customer's own Kafka topics can be consumed directly, and the consumer can tell a fault that will never clear from one that might | `apps/docs/docs/connectors/kafka-input.md`; depth plan 4.2 / parity 6.10 | `ci.yml :: python-lint` (`check_standard_inputs.py`: the input uses the shared `streamhealth` classifier rather than a second copy of the table, names all three failure classes, sets `ErrorLogger` on the reader — with a `GroupID` set that is where every dial, join and rebalance failure goes while the fetch stays blocked — splits the broker list on commas because `kafka.TCP` is variadic, takes the tenant from the resolved token, and is parsed, constructed, started and named per source in `/readyz`) + `ci.yml` ingest Go job (`internal/kafkainput`, 22 cases driving the real loop through a scripted reader: a record carrying a different tenant in its payload *and* a header still lands under the token's; a `RebalanceInProgress` is transient and the loop continues, because it happens on every deploy; a `TopicAuthorizationFailed` stops the loop with the operator action in the readiness detail; an empty record is poison, is counted, does not mark the subscription unhealthy and **is** committed, because a poison record that is not committed is re-read forever; a publish failure does **not** commit; and an idle subscription reports attached with 'nothing has arrived yet' rather than looking broken) | core | GATED | The permanent set is enumerated rather than derived from `kafka.Error.Temporary()`, which answers a different question: `RebalanceInProgress` is non-retriable in the protocol's sense and routine in practice. **No live broker has been exercised** — the loop is driven through a scripted reader, so what is proven is the failure handling rather than the wire protocol, which is kafka-go's |+ | Indicators can be published to a partner over TAXII 2.1, from this tenant's own store, without losing one to pagination | `apps/docs/docs/operations/taxii-server.md`; depth plan 4.2 / parity 6.10 | `taxii-live.yml :: TAXII pages every indicator exactly once, and only this tenant's` (real Postgres, every migration applied, 15 cases through the real route functions: another tenant's collection is not found by id or by alias, no other tenant's indicator appears in a page, a collection filter narrows what is published, the manifest pages by the same cursor as objects, a corrupt `next` is a 400 rather than a silent restart, and the walk that matters pages the collection one indicator at a time and requires all four back exactly once. The job asserts migration 110's paging index exists rather than assuming it, greps the run for a skip so the suite cannot pass by not running, and carries a negative control that replaces the `(updated_at, id)` row-value cursor with the bare timestamp comparison and requires the walk to go red — measured: it returns 3 of 4) + `ci.yml` api job (`test_taxii_projection.py`, 37 pure cases over the STIX projection: a quote in a value is escaped per the grammar and the backslash before it, timestamps carry a literal Z, the TLP marking is the id the specification fixes, the STIX id is derived from the row, an unknown filter key is refused rather than ignored) + `ci.yml :: python-lint` (`check_standard_inputs.py`: all six routes a client walks, `added_after`, the row-value cursor, tenant from the principal, `can_write` pinned false, RLS and the paging index in the migration) | core | GATED | Read-only by design: `can_write` is false on every collection and a write answers 403 naming the posture, because an inbound TAXII write is an outside party inserting indicators that drive this tenant's detections. `cve` is refused rather than published as a malformed pattern, with the reason served at `/taxii/unpublished-types` from the same table the projection uses. **No third-party TAXII client has been run against this server** — conformance is asserted against the specification's shapes, not against a client's behaviour || Investigation Ledger stores every step | README L61, L169 | `ci.yml :: Python — Lint & Type-check` (`check_ledger_replay_contract.py` — response model ↔ console type, client requests ↔ router decorators, and `seq` ordering/uniqueness, each in both directions) + `ci.yml :: Python — Tests` (`test_investigation_replay.py`, 37 cases over `/replay`, `/events`, `/explain`; removing `ORDER BY seq` fails five of them) | core | GATED | — || Public eval harness gates every PR | README L62, L77 | `ci.yml :: p1-eval` | core | GATED (but suites are self-consistency; see reality report) | Phase 4 || Alert-reduction is a real measurement | README / benchmark page | `ci.yml :: python-test` (fusion) runs `test_alert_reduction_real.py`, which groups a 1 000-alert stream with `RawAlert.correlation_key()` — the method `Correlator` actually calls — and bounds the ratio on both sides, because a floor alone is satisfied by a key that collapses everything into one incident | core | GATED | the legacy suite's 75.3% stays published for continuity and is labelled as not describing this product; the measurement is still a synthetic workload, as the benchmark page states |