From cd1705a3a7f4631b528587615ad9dca77904ca27 Mon Sep 17 00:00:00 2001
From: Aman Bhaskar
Date: Thu, 12 Nov 2026 20:17:52 +0530
Subject: [PATCH 01/55] feat(jobs): embed job contracts, projection, record and
queue envelope
---
backend/app/api/application.py | 12 ++-
backend/app/contracts/embedding_jobs.py | 76 ++++++++++++++++
backend/app/models/embed_tables.py | 23 +++++
backend/app/repositories/job_repository.py | 34 ++++++-
backend/app/repositories/outbox_repository.py | 24 ++++-
backend/app/services/jobs.py | 23 ++---
.../storage/test_embed_job_records.py | 62 +++++++++++++
.../retrieval/unit/test_embed_contracts.py | 90 +++++++++++++++++++
8 files changed, 318 insertions(+), 26 deletions(-)
create mode 100644 backend/app/contracts/embedding_jobs.py
create mode 100644 backend/app/models/embed_tables.py
create mode 100644 backend/tests/retrieval/storage/test_embed_job_records.py
create mode 100644 backend/tests/retrieval/unit/test_embed_contracts.py
diff --git a/backend/app/api/application.py b/backend/app/api/application.py
index f58e44e..dc1f5e2 100644
--- a/backend/app/api/application.py
+++ b/backend/app/api/application.py
@@ -27,6 +27,7 @@
ContextPreviewV1,
)
from app.contracts.dependencies import DependencyFileV1
+from app.contracts.embedding_jobs import EmbedJobRecordV7
from app.contracts.http import (
EventPageV2,
EventPageV3,
@@ -167,6 +168,7 @@
from app.ports.source_reader import SourceReaderPort, SourceReaderUnavailable
from app.repositories.command_repository import record_command, replay_command
from app.repositories.identity_repository import IdentityRepository
+from app.repositories.job_repository import PublicJobRecord
from app.repositories.repository_repository import RepositoryRepository
from app.security.authorization import require_repository, require_snapshot
from app.security.cursors import CursorCodec
@@ -299,13 +301,9 @@ class ApplicationPorts:
scan_defaults: ScanConfigV1 | None = None
-def legacy_job_record(
- value: JobRecordV2
- | JobRecordV3
- | ScanJobRecordV4
- | IndexJobRecordV5
- | InvestigationJobRecordV1,
-) -> JobRecordV2 | JobRecordV3:
+def legacy_job_record(value: PublicJobRecord) -> JobRecordV2 | JobRecordV3:
+ if isinstance(value, EmbedJobRecordV7):
+ raise HTTPException(409, detail="embed_operation_unavailable")
if isinstance(value, InvestigationJobRecordV1):
raise HTTPException(409, detail="investigation_operation_unavailable")
if isinstance(value, IndexJobRecordV5):
diff --git a/backend/app/contracts/embedding_jobs.py b/backend/app/contracts/embedding_jobs.py
new file mode 100644
index 0000000..cabcbcc
--- /dev/null
+++ b/backend/app/contracts/embedding_jobs.py
@@ -0,0 +1,76 @@
+"""Versioned contracts for the dense embed job lifecycle (enqueue, queue envelope, record)."""
+
+from typing import Literal, Self
+from uuid import UUID
+
+from pydantic import AwareDatetime, Field, model_validator
+
+from app.contracts.indexing import JobState
+from app.contracts.scanners import Digest
+from app.domain.canonical_json import canonical_bytes
+from app.domain.scope import Contract
+
+
+class EnqueueEmbedJobV7(Contract):
+ repository_id: UUID
+ snapshot_id: UUID
+ embed_spec_id: UUID
+ config_hash: Digest
+ operation: Literal["embed_chunk_set"] = "embed_chunk_set"
+ request_key: str = Field(min_length=1, max_length=128)
+ retry_of_job_id: UUID | None = None
+
+ @model_validator(mode="after")
+ def request_identity(self) -> Self:
+ if len(self.request_key.encode()) > 128 or self.request_key.startswith(("job:", "child:")):
+ raise ValueError("invalid embed request key")
+ return self
+
+
+class JobEnvelopeV7(Contract):
+ """Queue envelope: identity, spec and deadline only; no source, vector or model content."""
+
+ schema_version: Literal[7] = 7
+ org_id: UUID
+ job_id: UUID
+ embed_spec_id: UUID
+ operation: Literal["embed_chunk_set"] = "embed_chunk_set"
+ config_hash: Digest
+ dispatch_generation: int = Field(gt=0)
+ deadline: AwareDatetime
+
+ @model_validator(mode="after")
+ def bounded(self) -> Self:
+ if len(canonical_bytes(self.model_dump())) > 4096:
+ raise ValueError("queue envelope exceeds bound")
+ return self
+
+
+class EmbedJobRecordV7(Contract):
+ schema_version: Literal[7] = 7
+ org_id: UUID
+ id: UUID
+ repository_id: UUID
+ snapshot_id: UUID
+ embed_spec_id: UUID
+ operation: Literal["embed_chunk_set"] = "embed_chunk_set"
+ state: JobState
+ attempt_count: int = Field(ge=0)
+ max_attempts: int = Field(gt=0)
+ deadline: AwareDatetime
+ failure_code: str | None
+ result_index_id: UUID | None
+ created_at: AwareDatetime
+ finished_at: AwareDatetime | None
+
+ @model_validator(mode="after")
+ def terminal_result(self) -> Self:
+ terminal = self.state in {"succeeded", "partial", "failed", "cancelled"}
+ success = self.state in {"succeeded", "partial"}
+ if (
+ terminal != (self.finished_at is not None)
+ or success != (self.result_index_id is not None)
+ or self.attempt_count > self.max_attempts
+ ):
+ raise ValueError("inconsistent embed job state")
+ return self
diff --git a/backend/app/models/embed_tables.py b/backend/app/models/embed_tables.py
new file mode 100644
index 0000000..a30354f
--- /dev/null
+++ b/backend/app/models/embed_tables.py
@@ -0,0 +1,23 @@
+"""Independent projection of the shared jobs table for the dense embed operation."""
+
+import sqlalchemy as sa
+
+from app.models.index_tables import index_jobs
+from app.models.phase2_tables import col
+
+embed_jobs = sa.Table(
+ "jobs",
+ sa.MetaData(),
+ *[
+ sa.Column(
+ c.name,
+ c.type,
+ nullable=c.nullable,
+ primary_key=c.primary_key,
+ server_default=c.server_default,
+ )
+ for c in index_jobs.columns
+ if c.name != "index_spec_id"
+ ],
+ col("embed_spec_id", "uuid", True),
+)
diff --git a/backend/app/repositories/job_repository.py b/backend/app/repositories/job_repository.py
index e04d08e..754e820 100644
--- a/backend/app/repositories/job_repository.py
+++ b/backend/app/repositories/job_repository.py
@@ -7,6 +7,7 @@
from sqlalchemy import select, text
from sqlalchemy.ext.asyncio import AsyncSession
+from app.contracts.embedding_jobs import EmbedJobRecordV7
from app.contracts.indexing import IndexJobRecordV5
from app.contracts.investigation_jobs import InvestigationJobRecordV1
from app.contracts.jobs import AttemptLeaseV2, JobRecordV2, JobRecordV3
@@ -14,6 +15,15 @@
from app.domain.errors import ScopeViolation
from app.models.phase2_tables import PHASE2_TABLES
+PublicJobRecord = (
+ JobRecordV2
+ | JobRecordV3
+ | ScanJobRecordV4
+ | IndexJobRecordV5
+ | InvestigationJobRecordV1
+ | EmbedJobRecordV7
+)
+
jobs = PHASE2_TABLES["jobs"]
attempts = PHASE2_TABLES["job_attempts"]
@@ -44,6 +54,20 @@ async def load_job(
)
# Refresh lifecycle and publication fields from the same statement snapshot.
res = dict(projection)
+ if res.get("operation") == "embed_chunk_set":
+ from app.models.embed_tables import embed_jobs
+
+ res = dict(
+ (
+ await s.execute(
+ select(embed_jobs).where(
+ embed_jobs.c.org_id == org_id, embed_jobs.c.id == job_id
+ )
+ )
+ )
+ .mappings()
+ .one()
+ )
if res.get("operation") == "scan_snapshot":
from app.models.scan_tables import scan_jobs, scan_reports
@@ -113,6 +137,10 @@ def index_job_record(row: dict[str, Any]) -> IndexJobRecordV5:
return IndexJobRecordV5(**{k: row[k] for k in IndexJobRecordV5.model_fields if k in row})
+def embed_job_record(row: dict[str, Any]) -> EmbedJobRecordV7:
+ return EmbedJobRecordV7(**{k: row[k] for k in EmbedJobRecordV7.model_fields if k in row})
+
+
def _ensure_utc(dt: Any) -> Any:
if isinstance(dt, datetime):
return dt if dt.tzinfo is not None else dt.replace(tzinfo=UTC)
@@ -144,9 +172,9 @@ def investigation_job_record(row: dict[str, Any]) -> InvestigationJobRecordV1:
)
-def public_job_record(
- row: dict[str, Any],
-) -> JobRecordV2 | JobRecordV3 | ScanJobRecordV4 | IndexJobRecordV5 | InvestigationJobRecordV1:
+def public_job_record(row: dict[str, Any]) -> PublicJobRecord:
+ if row["operation"] == "embed_chunk_set":
+ return embed_job_record(row)
if row["operation"] == "index_snapshot":
return index_job_record(row)
if row["operation"] == "scan_snapshot":
diff --git a/backend/app/repositories/outbox_repository.py b/backend/app/repositories/outbox_repository.py
index 46dd777..bcbb38a 100644
--- a/backend/app/repositories/outbox_repository.py
+++ b/backend/app/repositories/outbox_repository.py
@@ -7,6 +7,7 @@
from sqlalchemy import insert
from sqlalchemy.ext.asyncio import AsyncSession
+from app.contracts.embedding_jobs import JobEnvelopeV7
from app.contracts.indexing import JobEnvelopeV5
from app.contracts.investigation_jobs import JobEnvelopeV6
from app.contracts.jobs import JobEnvelopeV2, JobEnvelopeV3
@@ -15,8 +16,27 @@
async def enqueue_wakeup(s: AsyncSession, job: dict[str, Any]) -> None:
- envelope: JobEnvelopeV2 | JobEnvelopeV3 | JobEnvelopeV4 | JobEnvelopeV5 | JobEnvelopeV6
- if job["operation"] == "investigate_snapshot":
+ envelope: (
+ JobEnvelopeV2
+ | JobEnvelopeV3
+ | JobEnvelopeV4
+ | JobEnvelopeV5
+ | JobEnvelopeV6
+ | JobEnvelopeV7
+ )
+ if job["operation"] == "embed_chunk_set":
+ from app.repositories.job_repository import load_job
+
+ current = await load_job(s, job["org_id"], job["id"])
+ envelope = JobEnvelopeV7(
+ org_id=job["org_id"],
+ job_id=job["id"],
+ embed_spec_id=current["embed_spec_id"],
+ dispatch_generation=job["dispatch_generation"],
+ config_hash=job["config_hash"],
+ deadline=job["deadline"],
+ )
+ elif job["operation"] == "investigate_snapshot":
from app.repositories.job_repository import load_job
current = await load_job(s, job["org_id"], job["id"])
diff --git a/backend/app/services/jobs.py b/backend/app/services/jobs.py
index 2937836..7d2c8ff 100644
--- a/backend/app/services/jobs.py
+++ b/backend/app/services/jobs.py
@@ -7,11 +7,11 @@
from sqlalchemy import and_, func, insert, or_, select, text, update
from sqlalchemy.ext.asyncio import AsyncSession, async_sessionmaker
-from app.contracts.indexing import EnqueueIndexJobV5, IndexJobRecordV5
-from app.contracts.investigation_jobs import EnqueueInvestigationJobV1, InvestigationJobRecordV1
-from app.contracts.jobs import AttemptLeaseV2, EnqueueJobV2, EnqueueJobV3, JobRecordV2, JobRecordV3
+from app.contracts.indexing import EnqueueIndexJobV5
+from app.contracts.investigation_jobs import EnqueueInvestigationJobV1
+from app.contracts.jobs import AttemptLeaseV2, EnqueueJobV2, EnqueueJobV3
from app.contracts.persistence import RunCreate
-from app.contracts.scan_jobs import EnqueueScanJobV4, ScanJobRecordV4
+from app.contracts.scan_jobs import EnqueueScanJobV4
from app.db.time import database_now
from app.db.transaction import transaction
from app.domain.canonical_json import semantic_digest
@@ -21,6 +21,7 @@
from app.models.tables import analysis_runs
from app.repositories.event_repository import append_event
from app.repositories.job_repository import (
+ PublicJobRecord,
attempts,
job_record,
job_record_v3,
@@ -65,7 +66,7 @@ async def enqueue(
| EnqueueIndexJobV5
| EnqueueInvestigationJobV1
),
- ) -> JobRecordV2 | JobRecordV3 | ScanJobRecordV4 | IndexJobRecordV5 | InvestigationJobRecordV1:
+ ) -> PublicJobRecord:
if request.request_key.startswith(("job:", "child:")):
raise ValueError("reserved request namespace")
async with transaction(self.factory) as s:
@@ -163,9 +164,7 @@ async def _enqueue(
await append_event(s, row, "queued")
return row
- async def get(
- self, ctx: TenantContext, job_id: UUID
- ) -> JobRecordV2 | JobRecordV3 | ScanJobRecordV4 | IndexJobRecordV5 | InvestigationJobRecordV1:
+ async def get(self, ctx: TenantContext, job_id: UUID) -> PublicJobRecord:
async with transaction(self.factory) as s:
row = await load_job(s, ctx.org_id, job_id)
await require_repository(s, ctx.org_id, ctx.principal_id, row["repository_id"])
@@ -806,9 +805,7 @@ async def fail_attempt(
s, job, attempt, code, transient=transient, cancel=code == "access_revoked"
)
- async def request_cancel(
- self, ctx: TenantContext, job_id: UUID
- ) -> JobRecordV2 | JobRecordV3 | ScanJobRecordV4 | IndexJobRecordV5 | InvestigationJobRecordV1:
+ async def request_cancel(self, ctx: TenantContext, job_id: UUID) -> PublicJobRecord:
"""API cancellation fences work; broker alone closes an inventory run."""
async with transaction(self.factory) as s:
hint = await load_job(s, ctx.org_id, job_id)
@@ -854,9 +851,7 @@ async def request_cancel(
await append_event(s, job, "cancel_requested")
return public_job_record(await load_job(s, ctx.org_id, job_id))
- async def cancel(
- self, ctx: TenantContext, job_id: UUID
- ) -> JobRecordV2 | JobRecordV3 | ScanJobRecordV4 | IndexJobRecordV5 | InvestigationJobRecordV1:
+ async def cancel(self, ctx: TenantContext, job_id: UUID) -> PublicJobRecord:
async with transaction(self.factory) as s:
hint = await load_job(s, ctx.org_id, job_id)
await lock_scope(
diff --git a/backend/tests/retrieval/storage/test_embed_job_records.py b/backend/tests/retrieval/storage/test_embed_job_records.py
new file mode 100644
index 0000000..620c96b
--- /dev/null
+++ b/backend/tests/retrieval/storage/test_embed_job_records.py
@@ -0,0 +1,62 @@
+"""Embed jobs project their own columns and produce a V7 record and queue envelope."""
+
+import json
+import os
+
+import pytest
+from app.contracts.embedding_jobs import EmbedJobRecordV7, JobEnvelopeV7
+from app.repositories.job_repository import load_job, public_job_record
+from app.repositories.outbox_repository import enqueue_wakeup
+from sqlalchemy import text
+
+from tests.retrieval.storage.test_dense_guards import embed_case
+
+pytestmark = pytest.mark.skipif(
+ os.environ.get("CODESPY_TEST_SCHEMA_TARGET") != "head",
+ reason="requires the current schema head (revision 0046)",
+)
+
+
+async def test_load_job_projects_the_embed_spec_and_builds_a_v7_record(
+ api_factory, broker_factory, migration_factory, tmp_path
+):
+ case = await embed_case(api_factory, broker_factory, migration_factory, tmp_path)
+ async with migration_factory() as session:
+ row = await load_job(session, case["ctx"].org_id, case["binding"][0])
+ assert row["operation"] == "embed_chunk_set"
+ assert row["embed_spec_id"] == case["spec_id"] and row["state"] == "running"
+ record = public_job_record(row)
+ assert isinstance(record, EmbedJobRecordV7)
+ assert record.embed_spec_id == case["spec_id"] and record.result_index_id is None
+
+
+async def test_outbox_wakeup_for_an_embed_job_is_a_v7_envelope(
+ api_factory, broker_factory, migration_factory, tmp_path
+):
+ case = await embed_case(api_factory, broker_factory, migration_factory, tmp_path)
+ org = case["ctx"].org_id
+ async with migration_factory() as session, session.begin():
+ job = await load_job(session, org, case["binding"][0])
+ before = await session.scalar(
+ text("SELECT count(*) FROM outbox WHERE org_id=:o"), {"o": org}
+ )
+ await enqueue_wakeup(session, job)
+ rows = (
+ (
+ await session.execute(
+ text("SELECT * FROM outbox WHERE org_id=:o ORDER BY created_at DESC LIMIT 1"),
+ {"o": org},
+ )
+ )
+ .mappings()
+ .all()
+ )
+ after = await session.scalar(
+ text("SELECT count(*) FROM outbox WHERE org_id=:o"), {"o": org}
+ )
+ assert after == before + 1
+ payload = rows[0]["payload"]
+ payload = json.loads(payload) if isinstance(payload, str) else payload
+ envelope = JobEnvelopeV7.model_validate_json(json.dumps(payload))
+ assert envelope.embed_spec_id == case["spec_id"] and envelope.operation == "embed_chunk_set"
+ assert payload["schema_version"] == 7
diff --git a/backend/tests/retrieval/unit/test_embed_contracts.py b/backend/tests/retrieval/unit/test_embed_contracts.py
new file mode 100644
index 0000000..3a50930
--- /dev/null
+++ b/backend/tests/retrieval/unit/test_embed_contracts.py
@@ -0,0 +1,90 @@
+"""Embed job contracts: key rules, bounded envelope, consistent terminal records."""
+
+from datetime import UTC, datetime, timedelta
+from uuid import uuid4
+
+import pytest
+from app.contracts.embedding_jobs import EmbedJobRecordV7, EnqueueEmbedJobV7, JobEnvelopeV7
+from pydantic import ValidationError
+
+NOW = datetime.now(UTC)
+
+
+def enqueue(**overrides):
+ values = {
+ "repository_id": uuid4(),
+ "snapshot_id": uuid4(),
+ "embed_spec_id": uuid4(),
+ "config_hash": "a" * 64,
+ "request_key": "embed-1",
+ }
+ return EnqueueEmbedJobV7(**{**values, **overrides})
+
+
+def record(**overrides):
+ values = {
+ "org_id": uuid4(),
+ "id": uuid4(),
+ "repository_id": uuid4(),
+ "snapshot_id": uuid4(),
+ "embed_spec_id": uuid4(),
+ "state": "queued",
+ "attempt_count": 0,
+ "max_attempts": 3,
+ "deadline": NOW + timedelta(minutes=15),
+ "failure_code": None,
+ "result_index_id": None,
+ "created_at": NOW,
+ "finished_at": None,
+ }
+ return EmbedJobRecordV7(**{**values, **overrides})
+
+
+def test_request_keys_cannot_use_reserved_namespaces_or_exceed_the_bound():
+ assert enqueue().operation == "embed_chunk_set"
+ for key in ("job:1", "child:1", "k" * 129, ""):
+ with pytest.raises(ValidationError):
+ enqueue(request_key=key)
+
+
+def test_envelope_carries_identity_only_and_stays_small():
+ envelope = JobEnvelopeV7(
+ org_id=uuid4(),
+ job_id=uuid4(),
+ embed_spec_id=uuid4(),
+ config_hash="b" * 64,
+ dispatch_generation=1,
+ deadline=NOW,
+ )
+ assert envelope.schema_version == 7
+ assert set(envelope.model_dump()) == {
+ "schema_version",
+ "org_id",
+ "job_id",
+ "embed_spec_id",
+ "operation",
+ "config_hash",
+ "dispatch_generation",
+ "deadline",
+ }
+ with pytest.raises(ValidationError):
+ JobEnvelopeV7(**{**envelope.model_dump(), "operation": "index_snapshot"})
+
+
+@pytest.mark.parametrize(
+ "overrides",
+ [
+ {"state": "succeeded"}, # terminal needs finished_at and a result index
+ {"state": "succeeded", "finished_at": NOW}, # success needs a result index
+ {"state": "failed", "result_index_id": uuid4(), "finished_at": NOW},
+ {"attempt_count": 4},
+ ],
+)
+def test_inconsistent_records_are_rejected(overrides):
+ with pytest.raises(ValidationError):
+ record(**overrides)
+
+
+def test_consistent_terminal_records_are_accepted():
+ assert record(state="succeeded", result_index_id=uuid4(), finished_at=NOW).state == "succeeded"
+ assert record(state="failed", failure_code="embed_timeout", finished_at=NOW).failure_code
From 22af0cc182c985f478d33d8c7956ac2f0205c320 Mon Sep 17 00:00:00 2001
From: Aman Bhaskar
Date: Thu, 12 Nov 2026 20:32:49 +0530
Subject: [PATCH 02/55] feat(jobs): JobService enqueue, claim, retry and
recovery for embed jobs
---
.github/workflows/application-integration.yml | 2 +
backend/app/repositories/index_recovery.py | 2 +-
backend/app/services/jobs.py | 76 ++++++++-
.../retrieval/storage/test_dense_guards.py | 20 ++-
.../storage/test_embed_job_service.py | 154 ++++++++++++++++++
5 files changed, 243 insertions(+), 11 deletions(-)
create mode 100644 backend/tests/retrieval/storage/test_embed_job_service.py
diff --git a/.github/workflows/application-integration.yml b/.github/workflows/application-integration.yml
index a6d8ed9..3222895 100644
--- a/.github/workflows/application-integration.yml
+++ b/.github/workflows/application-integration.yml
@@ -100,6 +100,8 @@ jobs:
'backend/tests/retrieval/storage/test_dense_guards.py',
'backend/tests/retrieval/storage/test_dense_accounting.py',
'backend/tests/retrieval/storage/test_dense_job.py',
+ 'backend/tests/retrieval/storage/test_embed_job_records.py',
+ 'backend/tests/retrieval/storage/test_embed_job_service.py',
'backend/tests/phase2/integration/test_github_public_import.py',
'backend/tests/phase2/api/test_github_import_api.py',
'backend/tests/ast_facts',
diff --git a/backend/app/repositories/index_recovery.py b/backend/app/repositories/index_recovery.py
index 53cfa9a..4441aba 100644
--- a/backend/app/repositories/index_recovery.py
+++ b/backend/app/repositories/index_recovery.py
@@ -51,6 +51,6 @@ def index_recovery_due() -> ColumnElement[bool]:
)
).correlate(jobs)
return and_(
- jobs.c.operation == "index_snapshot",
+ jobs.c.operation.in_(("index_snapshot", "embed_chunk_set")),
or_(jobs.c.state == "cancelling", ~member, ~grant, github_lost),
)
diff --git a/backend/app/services/jobs.py b/backend/app/services/jobs.py
index 7d2c8ff..537a769 100644
--- a/backend/app/services/jobs.py
+++ b/backend/app/services/jobs.py
@@ -7,6 +7,7 @@
from sqlalchemy import and_, func, insert, or_, select, text, update
from sqlalchemy.ext.asyncio import AsyncSession, async_sessionmaker
+from app.contracts.embedding_jobs import EnqueueEmbedJobV7
from app.contracts.indexing import EnqueueIndexJobV5
from app.contracts.investigation_jobs import EnqueueInvestigationJobV1
from app.contracts.jobs import AttemptLeaseV2, EnqueueJobV2, EnqueueJobV3
@@ -65,6 +66,7 @@ async def enqueue(
| EnqueueScanJobV4
| EnqueueIndexJobV5
| EnqueueInvestigationJobV1
+ | EnqueueEmbedJobV7
),
) -> PublicJobRecord:
if request.request_key.startswith(("job:", "child:")):
@@ -74,7 +76,12 @@ async def enqueue(
s, ctx.org_id, ctx.principal_id, request.repository_id, request.snapshot_id
)
row = await self._enqueue(s, ctx, request)
- if row.get("operation") in {"scan_snapshot", "index_snapshot", "investigate_snapshot"}:
+ if row.get("operation") in {
+ "scan_snapshot",
+ "index_snapshot",
+ "investigate_snapshot",
+ "embed_chunk_set",
+ }:
return public_job_record(row)
if isinstance(request, EnqueueJobV3) or row.get("operation") == "analyze_structure":
return job_record_v3(row)
@@ -90,6 +97,7 @@ async def _enqueue(
| EnqueueScanJobV4
| EnqueueIndexJobV5
| EnqueueInvestigationJobV1
+ | EnqueueEmbedJobV7
),
) -> dict[str, Any]:
digest = semantic_digest(request.model_dump())
@@ -98,6 +106,10 @@ async def _enqueue(
from app.models.index_tables import index_jobs
target_jobs = index_jobs
+ elif isinstance(request, EnqueueEmbedJobV7):
+ from app.models.embed_tables import embed_jobs
+
+ target_jobs = embed_jobs
elif isinstance(request, EnqueueInvestigationJobV1):
from app.models.investigation_execution_tables import investigation_jobs
@@ -127,7 +139,7 @@ async def _enqueue(
s, ctx.org_id, ctx.principal_id, old["repository_id"], write=True
)
if old["request_hash"] != digest or (
- request.operation in {"scan_snapshot", "index_snapshot"}
+ request.operation in {"scan_snapshot", "index_snapshot", "embed_chunk_set"}
and old["principal_id"] != ctx.principal_id
):
raise DuplicateConflict("request key has different input")
@@ -179,7 +191,12 @@ async def get(self, ctx: TenantContext, job_id: UUID) -> PublicJobRecord:
.order_by(jobs.c.created_at.desc(), jobs.c.id.desc())
.limit(1)
)
- if row.get("operation") in {"scan_snapshot", "index_snapshot", "investigate_snapshot"}:
+ if row.get("operation") in {
+ "scan_snapshot",
+ "index_snapshot",
+ "investigate_snapshot",
+ "embed_chunk_set",
+ }:
return public_job_record(row)
if row.get("operation") == "analyze_structure":
return job_record_v3(row)
@@ -310,7 +327,11 @@ async def claim(
.one()
)
target_jobs = jobs
- if job.get("operation") == "index_snapshot":
+ if job.get("operation") == "embed_chunk_set":
+ from app.models.embed_tables import embed_jobs
+
+ target_jobs = embed_jobs
+ elif job.get("operation") == "index_snapshot":
from app.models.index_tables import index_jobs
target_jobs = index_jobs
@@ -357,7 +378,25 @@ async def claim(
else None,
)
await worker_context(s, lease)
- if job["operation"] == "index_snapshot":
+ if job["operation"] == "embed_chunk_set":
+ await s.execute(
+ text(
+ "INSERT INTO embed_attempt_specs(org_id,id,job_id,fence,spec_id,"
+ "repository_id,snapshot_id,spec_hash) SELECT :org,:att,:job,:fence,"
+ "e.id,:repo,:snap,e.spec_hash FROM embed_specs e "
+ "WHERE e.org_id=:org AND e.id=:spec"
+ ),
+ {
+ "org": org_id,
+ "att": attempt_id,
+ "job": job_id,
+ "fence": fence,
+ "repo": job["repository_id"],
+ "snap": job["snapshot_id"],
+ "spec": job["embed_spec_id"],
+ },
+ )
+ elif job["operation"] == "index_snapshot":
from app.models.index_tables import index_attempt_specs, index_specs
spec_hash = await s.scalar(
@@ -624,7 +663,11 @@ async def _finish_failure(
if retry:
delay = min(60, 5 * 2 ** max(0, job["attempt_count"] - 1))
target_jobs = jobs
- if job.get("operation") == "index_snapshot":
+ if job.get("operation") == "embed_chunk_set":
+ from app.models.embed_tables import embed_jobs
+
+ target_jobs = embed_jobs
+ elif job.get("operation") == "index_snapshot":
from app.models.index_tables import index_jobs
target_jobs = index_jobs
@@ -783,6 +826,15 @@ async def fail_attempt(
"investigation_process_failed",
"investigation_runtime_unavailable",
"investigation_failed",
+ "embed_timeout",
+ "embed_provider_unavailable",
+ "embed_provider_timeout",
+ "embed_hold_pending",
+ "embed_dispatch_conflict",
+ "embed_price_unavailable",
+ "embed_empty_chunk_set",
+ "embed_protocol_error",
+ "embed_process_failed",
}
if code not in allowed:
raise ValueError("unknown failure code")
@@ -790,6 +842,8 @@ async def fail_attempt(
job, _ = await self._locked(s, lease.org_id, lease.job_id)
if code.startswith("index_") and job["operation"] != "index_snapshot":
raise ValueError("unknown failure code")
+ if code.startswith("embed_") and job["operation"] != "embed_chunk_set":
+ raise ValueError("unknown failure code")
if (
code.startswith("investigation_")
or code
@@ -908,7 +962,9 @@ async def recover_due(self, limit: int = 100) -> int:
jobs.c.deadline <= func.clock_timestamp(),
jobs.c.state == "cancelling",
and_(
- jobs.c.operation.in_(["index_snapshot", "investigate_snapshot"]),
+ jobs.c.operation.in_(
+ ["index_snapshot", "investigate_snapshot", "embed_chunk_set"]
+ ),
jobs.c.cancel_requested_at.is_not(None),
),
index_recovery_due(),
@@ -956,7 +1012,11 @@ async def recover_due(self, limit: int = 100) -> int:
and attempt_lease_expiry is not None
and attempt_lease_expiry <= now
)
- if job["operation"] in {"index_snapshot", "investigate_snapshot"}:
+ if job["operation"] in {
+ "index_snapshot",
+ "investigate_snapshot",
+ "embed_chunk_set",
+ }:
if job["cancel_requested_at"] is not None:
await self._finish_failure(
s,
diff --git a/backend/tests/retrieval/storage/test_dense_guards.py b/backend/tests/retrieval/storage/test_dense_guards.py
index 384d831..c57f885 100644
--- a/backend/tests/retrieval/storage/test_dense_guards.py
+++ b/backend/tests/retrieval/storage/test_dense_guards.py
@@ -40,8 +40,8 @@ def canonical(value) -> str:
return json.dumps(value, sort_keys=True, separators=(",", ":"))
-async def embed_case(api_factory, broker_factory, migration_factory, tmp_path):
- """A published lexical set, a funded budget, an embed spec and a running embed attempt."""
+async def embed_base(api_factory, broker_factory, migration_factory, tmp_path):
+ """A published lexical set, a funded budget and an embed spec (no job yet)."""
ctx, spec, _, receipt = await published_lexical(
api_factory, broker_factory, migration_factory, tmp_path
)
@@ -101,6 +101,22 @@ async def embed_case(api_factory, broker_factory, migration_factory, tmp_path):
"ct": text_value,
},
)
+ return {
+ "ctx": ctx,
+ "spec": spec,
+ "spec_id": spec_id,
+ "set_id": set_id,
+ "config_hash": config_hash,
+ "spec_hash": spec_hash,
+ "index_id": uuid5(set_id, f"dense-v1:{PROVIDER}:{MODEL}:{DIM}"),
+ }
+
+
+async def embed_case(api_factory, broker_factory, migration_factory, tmp_path):
+ """The base plus a running, fenced embed attempt."""
+ base = await embed_base(api_factory, broker_factory, migration_factory, tmp_path)
+ ctx, spec, spec_id = base["ctx"], base["spec"], base["spec_id"]
+ config_hash, spec_hash, set_id = base["config_hash"], base["spec_hash"], base["set_id"]
job_id, attempt_id = uuid4(), uuid4()
async with migration_factory() as session, session.begin():
await session.execute(
diff --git a/backend/tests/retrieval/storage/test_embed_job_service.py b/backend/tests/retrieval/storage/test_embed_job_service.py
new file mode 100644
index 0000000..887c596
--- /dev/null
+++ b/backend/tests/retrieval/storage/test_embed_job_service.py
@@ -0,0 +1,154 @@
+"""JobService handles embed jobs: enqueue, claim, retry, cancel and authority-loss recovery."""
+
+import json
+import os
+
+import pytest
+from app.contracts.embedding_jobs import EmbedJobRecordV7, EnqueueEmbedJobV7, JobEnvelopeV7
+from app.contracts.jobs import AttemptLeaseV2
+from app.domain.errors import DuplicateConflict
+from app.models.phase2_tables import PHASE2_TABLES
+from app.services.jobs import JobService
+from sqlalchemy import func, text, update
+
+from tests.retrieval.storage.test_dense_guards import embed_base
+
+pytestmark = pytest.mark.skipif(
+ os.environ.get("CODESPY_TEST_SCHEMA_TARGET") != "head",
+ reason="requires the current schema head (revision 0046)",
+)
+
+
+def enqueue_request(base, key="embed-1", **overrides):
+ values = {
+ "repository_id": base["spec"].repository_id,
+ "snapshot_id": base["spec"].snapshot_id,
+ "embed_spec_id": base["spec_id"],
+ "config_hash": base["config_hash"],
+ "request_key": key,
+ }
+ return EnqueueEmbedJobV7(**{**values, **overrides})
+
+
+async def queued(base, api_factory, key="embed-1"):
+ record = await JobService(api_factory).enqueue(base["ctx"], enqueue_request(base, key))
+ assert isinstance(record, EmbedJobRecordV7)
+ return record
+
+
+async def rows(migration_factory, query, **params):
+ async with migration_factory() as session:
+ return (await session.execute(text(query), params)).mappings().all()
+
+
+async def test_enqueue_is_idempotent_scoped_and_emits_a_v7_wakeup(
+ api_factory, broker_factory, migration_factory, tmp_path
+):
+ base = await embed_base(api_factory, broker_factory, migration_factory, tmp_path)
+ record = await queued(base, api_factory)
+ assert record.state == "queued" and record.embed_spec_id == base["spec_id"]
+ assert (await queued(base, api_factory)).id == record.id # same key and input: replay
+ with pytest.raises(DuplicateConflict): # same key, different input
+ await JobService(api_factory).enqueue(
+ base["ctx"], enqueue_request(base, config_hash="f" * 64)
+ )
+ outbox = await rows(
+ migration_factory, "SELECT payload FROM outbox WHERE job_id=:j", j=record.id
+ )
+ assert len(outbox) == 1
+ payload = outbox[0]["payload"]
+ envelope = JobEnvelopeV7.model_validate_json(
+ json.dumps(json.loads(payload) if isinstance(payload, str) else payload)
+ )
+ assert envelope.embed_spec_id == base["spec_id"] and envelope.dispatch_generation == 1
+
+
+async def test_claim_binds_the_attempt_and_transient_failure_retries_with_a_new_fence(
+ api_factory, broker_factory, migration_factory, tmp_path
+):
+ base = await embed_base(api_factory, broker_factory, migration_factory, tmp_path)
+ record = await queued(base, api_factory)
+ jobs = JobService(broker_factory)
+ lease = await jobs.claim(base["ctx"].org_id, record.id, 1, "embed-worker")
+ assert isinstance(lease, AttemptLeaseV2) and lease.fence == 1
+ bound = await rows(
+ migration_factory,
+ "SELECT spec_id,spec_hash FROM embed_attempt_specs WHERE id=:a",
+ a=lease.attempt_id,
+ )
+ assert bound[0]["spec_id"] == base["spec_id"] and bound[0]["spec_hash"] == base["spec_hash"]
+ assert await jobs.claim(base["ctx"].org_id, record.id, 1, "other") == "already_leased"
+
+ await jobs.fail_attempt(lease, "embed_provider_timeout", transient=True)
+ state = await rows(
+ migration_factory, "SELECT state,dispatch_generation FROM jobs WHERE id=:j", j=record.id
+ )
+ assert state[0]["state"] == "retry_wait" and state[0]["dispatch_generation"] == 2
+ wakeups = await rows(
+ migration_factory,
+ "SELECT generation FROM outbox WHERE job_id=:j ORDER BY generation",
+ j=record.id,
+ )
+ assert [w["generation"] for w in wakeups] == [1, 2]
+
+
+async def test_failure_codes_are_scoped_to_the_operation(
+ api_factory, broker_factory, migration_factory, tmp_path
+):
+ base = await embed_base(api_factory, broker_factory, migration_factory, tmp_path)
+ record = await queued(base, api_factory)
+ jobs = JobService(broker_factory)
+ lease = await jobs.claim(base["ctx"].org_id, record.id, 1, "embed-worker")
+ assert isinstance(lease, AttemptLeaseV2)
+ for code in ("index_timeout", "investigation_failed", "definitely_unknown"):
+ with pytest.raises(ValueError, match="unknown failure code"):
+ await jobs.fail_attempt(lease, code)
+ await jobs.fail_attempt(lease, "embed_hold_pending", transient=False)
+ final = await rows(
+ migration_factory, "SELECT state,failure_code FROM jobs WHERE id=:j", j=record.id
+ )
+ assert (final[0]["state"], final[0]["failure_code"]) == ("failed", "embed_hold_pending")
+
+
+async def test_running_cancellation_is_terminalized_by_recovery(
+ api_factory, broker_factory, migration_factory, tmp_path
+):
+ base = await embed_base(api_factory, broker_factory, migration_factory, tmp_path)
+ ctx = base["ctx"]
+ job = await queued(base, api_factory, "cancel-me")
+ jobs = JobService(broker_factory)
+ lease = await jobs.claim(ctx.org_id, job.id, 1, "embed-worker")
+ assert isinstance(lease, AttemptLeaseV2)
+ cancelled = await JobService(api_factory).request_cancel(ctx, job.id)
+ assert cancelled.state == "cancelling"
+ await jobs.recover_due()
+ state = await rows(migration_factory, "SELECT state FROM jobs WHERE id=:j", j=job.id)
+ assert state[0]["state"] == "cancelled"
+
+
+@pytest.mark.xfail(
+ strict=True,
+ reason=(
+ "pre-existing: since revision 0040, lock_scope(access=False) still runs the actor-write "
+ "check inside codespy_lock_scoped_snapshot, so recovery raises for a revoked writer; the "
+ "index_snapshot equivalent fails the same way at head"
+ ),
+)
+async def test_revoked_writer_is_terminalized_by_recovery(
+ api_factory, broker_factory, migration_factory, tmp_path
+):
+ base = await embed_base(api_factory, broker_factory, migration_factory, tmp_path)
+ ctx = base["ctx"]
+ job = await queued(base, api_factory, "revoked-writer")
+ grants = PHASE2_TABLES["repository_grants"]
+ async with migration_factory() as session, session.begin():
+ await session.execute(
+ update(grants)
+ .where(grants.c.org_id == ctx.org_id, grants.c.principal_id == ctx.principal_id)
+ .values(revoked_at=func.clock_timestamp())
+ )
+ await JobService(broker_factory).recover_due()
+ final = await rows(
+ migration_factory, "SELECT state,failure_code FROM jobs WHERE id=:j", j=job.id
+ )
+ assert (final[0]["state"], final[0]["failure_code"]) == ("failed", "access_revoked")
From bcbeed6e2226004c62cdfe61e86e7664be237ab3 Mon Sep 17 00:00:00 2001
From: Aman Bhaskar
Date: Thu, 12 Nov 2026 20:34:32 +0530
Subject: [PATCH 03/55] feat(jobs): principal-bound embed job creation, status
and cancel
---
.github/workflows/application-integration.yml | 1 +
backend/app/contracts/embedding_jobs.py | 20 ++
backend/app/services/embed_jobs.py | 270 ++++++++++++++++++
.../storage/test_embed_job_create.py | 144 ++++++++++
4 files changed, 435 insertions(+)
create mode 100644 backend/app/services/embed_jobs.py
create mode 100644 backend/tests/retrieval/storage/test_embed_job_create.py
diff --git a/.github/workflows/application-integration.yml b/.github/workflows/application-integration.yml
index 3222895..e18ebc7 100644
--- a/.github/workflows/application-integration.yml
+++ b/.github/workflows/application-integration.yml
@@ -102,6 +102,7 @@ jobs:
'backend/tests/retrieval/storage/test_dense_job.py',
'backend/tests/retrieval/storage/test_embed_job_records.py',
'backend/tests/retrieval/storage/test_embed_job_service.py',
+ 'backend/tests/retrieval/storage/test_embed_job_create.py',
'backend/tests/phase2/integration/test_github_public_import.py',
'backend/tests/phase2/api/test_github_import_api.py',
'backend/tests/ast_facts',
diff --git a/backend/app/contracts/embedding_jobs.py b/backend/app/contracts/embedding_jobs.py
index cabcbcc..11fa492 100644
--- a/backend/app/contracts/embedding_jobs.py
+++ b/backend/app/contracts/embedding_jobs.py
@@ -5,6 +5,7 @@
from pydantic import AwareDatetime, Field, model_validator
+from app.contracts.embedding_index import EmbedConfigV1, EmbedReceiptV1
from app.contracts.indexing import JobState
from app.contracts.scanners import Digest
from app.domain.canonical_json import canonical_bytes
@@ -74,3 +75,22 @@ def terminal_result(self) -> Self:
):
raise ValueError("inconsistent embed job state")
return self
+
+
+class EmbedCreateRequestV1(Contract):
+ schema_version: Literal[1] = 1
+ chunk_set_id: UUID
+ config: EmbedConfigV1
+ request_key: str = Field(min_length=1, max_length=128)
+
+
+class EmbedCreateResponseV1(Contract):
+ schema_version: Literal[1] = 1
+ job: EmbedJobRecordV7
+
+
+class EmbedStatusV1(Contract):
+ schema_version: Literal[1] = 1
+ job: EmbedJobRecordV7
+ receipt: EmbedReceiptV1 | None = None
+ can_cancel: bool
diff --git a/backend/app/services/embed_jobs.py b/backend/app/services/embed_jobs.py
new file mode 100644
index 0000000..c025184
--- /dev/null
+++ b/backend/app/services/embed_jobs.py
@@ -0,0 +1,270 @@
+# ruff: noqa: E501
+"""Principal-bound requests to embed a sealed lexical chunk set into a dense index."""
+
+from typing import Any
+from uuid import UUID, uuid4
+
+from sqlalchemy import text
+from sqlalchemy.ext.asyncio import AsyncSession, async_sessionmaker
+
+from app.contracts.embedding_index import EmbedConfigV1, EmbedReceiptV1, EmbedSpecV1
+from app.contracts.embedding_jobs import (
+ EmbedCreateRequestV1,
+ EmbedCreateResponseV1,
+ EmbedStatusV1,
+ EnqueueEmbedJobV7,
+)
+from app.db.transaction import transaction
+from app.domain.errors import DuplicateConflict, ScopeViolation
+from app.domain.scope import TenantContext
+from app.repositories.job_repository import embed_job_record, load_job
+from app.security.authorization import lock_scope, require_snapshot
+from app.services.jobs import TERMINAL, JobService
+
+
+class EmbedUnavailable(Exception): # noqa: N818
+ """The request is well formed but cannot be served now (no sealed set, no price)."""
+
+ def __init__(self, code: str) -> None:
+ self.code = code
+ super().__init__(code)
+
+
+async def _rows(session: AsyncSession, query: str, **params: Any) -> list[Any]:
+ return list((await session.execute(text(query), params)).all())
+
+
+class EmbedJobService:
+ def __init__(self, factory: async_sessionmaker[AsyncSession]) -> None:
+ self.factory, self.jobs = factory, JobService(factory)
+
+ async def create(
+ self,
+ ctx: TenantContext,
+ repository_id: UUID,
+ snapshot_id: UUID,
+ chunk_set_id: UUID,
+ config: EmbedConfigV1,
+ request_key: str,
+ ) -> EmbedCreateResponseV1:
+ config = EmbedConfigV1.model_validate(config.model_dump()).validated()
+ request = EmbedCreateRequestV1(
+ chunk_set_id=chunk_set_id, config=config, request_key=request_key
+ )
+ spec = EmbedSpecV1(
+ org_id=ctx.org_id,
+ repository_id=repository_id,
+ snapshot_id=snapshot_id,
+ principal_id=ctx.principal_id,
+ chunk_set_id=request.chunk_set_id,
+ config=config,
+ )
+ async with transaction(self.factory) as session:
+ await lock_scope(session, ctx.org_id, ctx.principal_id, repository_id)
+ await require_snapshot(session, ctx, repository_id, snapshot_id, write=True)
+ replay = await self._replay(session, ctx, spec, request_key)
+ if replay is not None:
+ return EmbedCreateResponseV1(job=embed_job_record(replay))
+ await self._require_servable(session, spec)
+ spec_id = await self._spec(session, spec)
+ job = await self.jobs._enqueue(
+ session,
+ ctx,
+ EnqueueEmbedJobV7(
+ repository_id=repository_id,
+ snapshot_id=snapshot_id,
+ embed_spec_id=spec_id,
+ config_hash=config.semantic_hash(),
+ request_key=request_key,
+ ),
+ )
+ return EmbedCreateResponseV1(job=embed_job_record(job))
+
+ async def _replay(
+ self, session: AsyncSession, ctx: TenantContext, spec: EmbedSpecV1, key: str
+ ) -> dict[str, Any] | None:
+ found = await _rows(
+ session,
+ "SELECT id FROM jobs WHERE org_id=:o AND request_key=:k",
+ o=ctx.org_id,
+ k=key,
+ )
+ if not found:
+ return None
+ old = await load_job(session, ctx.org_id, found[0].id)
+ spec_row = (
+ await _rows(
+ session,
+ "SELECT chunk_set_id,provider,model_id,dimension,normalize,price_version "
+ "FROM embed_specs WHERE org_id=:o AND id=:s",
+ o=ctx.org_id,
+ s=old.get("embed_spec_id"),
+ )
+ if old["operation"] == "embed_chunk_set"
+ else []
+ )
+ c = spec.config
+ if (
+ old["operation"] != "embed_chunk_set"
+ or old["principal_id"] != ctx.principal_id
+ or old["repository_id"] != spec.repository_id
+ or old["snapshot_id"] != spec.snapshot_id
+ or old["retry_of_job_id"] is not None
+ or old["config_hash"] != c.semantic_hash()
+ or not spec_row
+ or (
+ spec_row[0].chunk_set_id,
+ spec_row[0].provider,
+ spec_row[0].model_id,
+ spec_row[0].dimension,
+ spec_row[0].normalize,
+ spec_row[0].price_version,
+ )
+ != (
+ spec.chunk_set_id,
+ c.provider,
+ c.model_id,
+ c.dimension,
+ c.normalize,
+ c.price_version,
+ )
+ ):
+ raise DuplicateConflict("request key has different input")
+ return old
+
+ async def _require_servable(self, session: AsyncSession, spec: EmbedSpecV1) -> None:
+ sealed = await _rows(
+ session,
+ "SELECT 1 FROM retrieval_chunk_sets s "
+ "JOIN index_publication_receipts r ON r.org_id=s.org_id AND r.chunk_set_id=s.id "
+ "JOIN search_indices i ON i.org_id=s.org_id AND i.id=r.index_id AND i.chunk_set_id=s.id "
+ "WHERE s.org_id=:o AND s.id=:set AND s.repository_id=:repo AND s.snapshot_id=:snap "
+ "AND i.index_type='lexical' AND i.state IN ('ready','partial_ready') AND s.chunk_count>0",
+ o=spec.org_id,
+ set=spec.chunk_set_id,
+ repo=spec.repository_id,
+ snap=spec.snapshot_id,
+ )
+ if not sealed:
+ raise ScopeViolation("chunk set unavailable")
+ c = spec.config
+ priced = await _rows(
+ session,
+ "SELECT 1 FROM price_schedules WHERE provider=:p AND model_id=:m AND version=:v "
+ "AND effective_at<=clock_timestamp() AND expires_at>clock_timestamp()",
+ p=c.provider,
+ m=c.model_id,
+ v=c.price_version,
+ )
+ if not priced:
+ raise EmbedUnavailable("embed_price_unavailable")
+ published = await _rows(
+ session,
+ "SELECT 1 FROM search_indices WHERE org_id=:o AND id=:i",
+ o=spec.org_id,
+ i=spec.dense_index_id(),
+ )
+ if published:
+ raise DuplicateConflict("dense index already published")
+
+ async def _spec(self, session: AsyncSession, spec: EmbedSpecV1) -> UUID:
+ c = spec.config
+ existing = await _rows(
+ session,
+ "SELECT id FROM embed_specs WHERE org_id=:o AND chunk_set_id=:set AND provider=:p "
+ "AND model_id=:m AND dimension=:d AND normalize=:n AND price_version=:v",
+ o=spec.org_id,
+ set=spec.chunk_set_id,
+ p=c.provider,
+ m=c.model_id,
+ d=c.dimension,
+ n=c.normalize,
+ v=c.price_version,
+ )
+ if existing:
+ return UUID(str(existing[0].id))
+ spec_id = uuid4()
+ await session.execute(
+ text(
+ "INSERT INTO embed_specs(org_id,id,repository_id,snapshot_id,principal_id,chunk_set_id,"
+ "lexical_index_id,provider,model_id,dimension,normalize,price_version,config_hash,"
+ "spec_hash,config_json,spec_json,canonical_text) VALUES(:o,:id,:repo,:snap,:pr,:set,"
+ ":lex,:p,:m,:d,:n,:v,:ch,:sh,CAST(:cj AS jsonb),CAST(:sj AS jsonb),:ct)"
+ ),
+ {
+ "o": spec.org_id,
+ "id": spec_id,
+ "repo": spec.repository_id,
+ "snap": spec.snapshot_id,
+ "pr": spec.principal_id,
+ "set": spec.chunk_set_id,
+ "lex": spec.lexical_index_id(),
+ "p": c.provider,
+ "m": c.model_id,
+ "d": c.dimension,
+ "n": c.normalize,
+ "v": c.price_version,
+ "ch": c.semantic_hash(),
+ "sh": spec.spec_hash(),
+ "cj": _dump(c.model_dump(mode="json")),
+ "sj": spec.canonical_text(),
+ "ct": spec.canonical_text(),
+ },
+ )
+ return spec_id
+
+ async def get(
+ self, ctx: TenantContext, repository_id: UUID, snapshot_id: UUID, job_id: UUID
+ ) -> EmbedStatusV1:
+ async with transaction(self.factory) as session:
+ await require_snapshot(session, ctx, repository_id, snapshot_id)
+ row = await load_job(session, ctx.org_id, job_id)
+ if (
+ row["operation"] != "embed_chunk_set"
+ or row["repository_id"] != repository_id
+ or row["snapshot_id"] != snapshot_id
+ ):
+ raise ScopeViolation("embed job unavailable")
+ receipt = None
+ if row["state"] in {"succeeded", "partial"}:
+ found = await _rows(
+ session,
+ "SELECT job_id,spec_id,chunk_set_id,index_id,chunk_count,token_total,coverage,"
+ "embedding_digest,ledger_digest FROM embed_publication_receipts "
+ "WHERE org_id=:o AND job_id=:j",
+ o=ctx.org_id,
+ j=job_id,
+ )
+ if found:
+ r = found[0]
+ receipt = EmbedReceiptV1(
+ org_id=ctx.org_id,
+ job_id=r.job_id,
+ spec_id=r.spec_id,
+ chunk_set_id=r.chunk_set_id,
+ index_id=r.index_id,
+ chunk_count=r.chunk_count,
+ token_total=r.token_total,
+ coverage=r.coverage,
+ embedding_digest=r.embedding_digest,
+ ledger_digest=r.ledger_digest,
+ )
+ return EmbedStatusV1(
+ job=embed_job_record(row),
+ receipt=receipt,
+ can_cancel=row["state"] not in TERMINAL and row["state"] != "cancelling",
+ )
+
+ async def cancel(self, ctx: TenantContext, repository_id: UUID, job_id: UUID) -> EmbedStatusV1:
+ async with transaction(self.factory) as session:
+ row = await load_job(session, ctx.org_id, job_id)
+ if row["operation"] != "embed_chunk_set" or row["repository_id"] != repository_id:
+ raise ScopeViolation("embed job unavailable")
+ await self.jobs.request_cancel(ctx, job_id)
+ return await self.get(ctx, repository_id, row["snapshot_id"], job_id)
+
+
+def _dump(value: Any) -> str:
+ import json
+
+ return json.dumps(value, sort_keys=True, separators=(",", ":"))
diff --git a/backend/tests/retrieval/storage/test_embed_job_create.py b/backend/tests/retrieval/storage/test_embed_job_create.py
new file mode 100644
index 0000000..3c1e467
--- /dev/null
+++ b/backend/tests/retrieval/storage/test_embed_job_create.py
@@ -0,0 +1,144 @@
+"""EmbedJobService.create/get/cancel against real PostgreSQL authority."""
+
+import os
+from uuid import uuid4
+
+import pytest
+from app.contracts.embedding_index import EmbedConfigV1
+from app.domain.errors import DuplicateConflict, ScopeViolation
+from app.services.embed_job import EmbedOperation
+from app.services.embed_jobs import EmbedJobService, EmbedUnavailable
+from sqlalchemy import text
+
+from tests.retrieval.storage.test_dense_guards import MODEL, PROVIDER, embed_base, embed_case
+from tests.retrieval.storage.test_dense_job import Embedder, lease_for
+
+pytestmark = pytest.mark.skipif(
+ os.environ.get("CODESPY_TEST_SCHEMA_TARGET") != "head",
+ reason="requires the current schema head (revision 0046)",
+)
+
+
+def config(**overrides):
+ values = {
+ "provider": PROVIDER,
+ "model_id": MODEL,
+ "dimension": 512,
+ "normalize": True,
+ "price_version": "test",
+ }
+ return EmbedConfigV1(**{**values, **overrides})
+
+
+async def count(migration_factory, query, **params):
+ async with migration_factory() as session:
+ return await session.scalar(text(query), params)
+
+
+async def test_create_stores_an_immutable_spec_and_enqueues_once_per_key(
+ api_factory, broker_factory, migration_factory, tmp_path
+):
+ base = await embed_base(api_factory, broker_factory, migration_factory, tmp_path)
+ ctx, spec = base["ctx"], base["spec"]
+ service = EmbedJobService(api_factory)
+ args = (ctx, spec.repository_id, spec.snapshot_id, base["set_id"], config())
+ first = await service.create(*args, "create-1")
+ assert first.job.state == "queued" and first.job.operation == "embed_chunk_set"
+ replay = await service.create(*args, "create-1")
+ assert replay.job.id == first.job.id
+ with pytest.raises(DuplicateConflict): # same key, different profile
+ await service.create(
+ ctx,
+ spec.repository_id,
+ spec.snapshot_id,
+ base["set_id"],
+ config(dimension=256),
+ "create-1",
+ )
+ second = await service.create(*args, "create-2") # a new request for the same profile
+ assert second.job.id != first.job.id and second.job.embed_spec_id == first.job.embed_spec_id
+ specs = await count(
+ migration_factory,
+ "SELECT count(*) FROM embed_specs WHERE org_id=:o AND dimension=512",
+ o=ctx.org_id,
+ )
+ assert specs == 1
+ wakeups = await count(
+ migration_factory,
+ "SELECT count(*) FROM outbox WHERE org_id=:o AND job_id=:j",
+ o=ctx.org_id,
+ j=first.job.id,
+ )
+ assert wakeups == 1
+
+
+async def test_requests_that_cannot_be_served_are_refused_before_any_row_exists(
+ api_factory, broker_factory, migration_factory, tmp_path
+):
+ base = await embed_base(api_factory, broker_factory, migration_factory, tmp_path)
+ ctx, spec = base["ctx"], base["spec"]
+ service = EmbedJobService(api_factory)
+ with pytest.raises(ScopeViolation): # a chunk set that does not exist in this snapshot
+ await service.create(ctx, spec.repository_id, spec.snapshot_id, uuid4(), config(), "k1")
+ with pytest.raises(EmbedUnavailable) as unpriced:
+ await service.create(
+ ctx,
+ spec.repository_id,
+ spec.snapshot_id,
+ base["set_id"],
+ config(price_version="none"),
+ "k2",
+ )
+ assert unpriced.value.code == "embed_price_unavailable"
+ with pytest.raises(ValueError):
+ await service.create(
+ ctx, spec.repository_id, spec.snapshot_id, base["set_id"], config(dimension=300), "k3"
+ )
+ jobs = await count(
+ migration_factory, "SELECT count(*) FROM jobs WHERE operation='embed_chunk_set'"
+ )
+ assert jobs == 0
+ specs = await count(
+ migration_factory,
+ "SELECT count(*) FROM embed_specs WHERE org_id=:o AND dimension=512",
+ o=ctx.org_id,
+ )
+ assert specs == 0
+
+
+async def test_get_reports_status_and_cancel_ends_a_queued_job(
+ api_factory, broker_factory, migration_factory, tmp_path
+):
+ base = await embed_base(api_factory, broker_factory, migration_factory, tmp_path)
+ ctx, spec = base["ctx"], base["spec"]
+ service = EmbedJobService(api_factory)
+ created = await service.create(
+ ctx, spec.repository_id, spec.snapshot_id, base["set_id"], config(), "status-1"
+ )
+ status = await service.get(ctx, spec.repository_id, spec.snapshot_id, created.job.id)
+ assert status.job.state == "queued" and status.receipt is None and status.can_cancel
+ with pytest.raises(ScopeViolation): # wrong snapshot scope
+ await service.get(ctx, spec.repository_id, uuid4(), created.job.id)
+ cancelled = await service.cancel(ctx, spec.repository_id, created.job.id)
+ assert cancelled.job.state == "cancelled" and not cancelled.can_cancel
+
+
+async def test_an_already_published_profile_is_refused_and_status_carries_the_receipt(
+ api_factory, broker_factory, migration_factory, tmp_path
+):
+ case = await embed_case(api_factory, broker_factory, migration_factory, tmp_path)
+ ctx, spec = case["ctx"], case["spec"]
+ receipt = await EmbedOperation(broker_factory, Embedder()).execute(lease_for(case))
+ service = EmbedJobService(api_factory)
+ with pytest.raises(DuplicateConflict):
+ await service.create(
+ ctx,
+ spec.repository_id,
+ spec.snapshot_id,
+ case["set_id"],
+ config(dimension=256),
+ "again",
+ )
+ status = await service.get(ctx, spec.repository_id, spec.snapshot_id, case["binding"][0])
+ assert status.job.state == "succeeded" and status.receipt is not None
+ assert status.receipt.index_id == receipt.index_id and not status.can_cancel
From 17e28ad994d57bc25b82d2b06810f374a2f1bbdc Mon Sep 17 00:00:00 2001
From: Aman Bhaskar
Date: Thu, 12 Nov 2026 20:45:58 +0530
Subject: [PATCH 04/55] feat(workers): consume embed jobs with V7 envelope and
mapped failure codes
---
.github/workflows/application-integration.yml | 1 +
backend/app/workers/consumer.py | 68 ++++++--
.../retrieval/storage/test_embed_consumer.py | 156 ++++++++++++++++++
3 files changed, 207 insertions(+), 18 deletions(-)
create mode 100644 backend/tests/retrieval/storage/test_embed_consumer.py
diff --git a/.github/workflows/application-integration.yml b/.github/workflows/application-integration.yml
index e18ebc7..c520a22 100644
--- a/.github/workflows/application-integration.yml
+++ b/.github/workflows/application-integration.yml
@@ -103,6 +103,7 @@ jobs:
'backend/tests/retrieval/storage/test_embed_job_records.py',
'backend/tests/retrieval/storage/test_embed_job_service.py',
'backend/tests/retrieval/storage/test_embed_job_create.py',
+ 'backend/tests/retrieval/storage/test_embed_consumer.py',
'backend/tests/phase2/integration/test_github_public_import.py',
'backend/tests/phase2/api/test_github_import_api.py',
'backend/tests/ast_facts',
diff --git a/backend/app/workers/consumer.py b/backend/app/workers/consumer.py
index 810b47e..395dd76 100644
--- a/backend/app/workers/consumer.py
+++ b/backend/app/workers/consumer.py
@@ -9,6 +9,7 @@
from app.admission.zip_inventory import AdmissionRejected
from app.analyzers.runner import AnalysisProcessError
from app.analyzers.source import SourceIntegrityError
+from app.contracts.embedding_jobs import JobEnvelopeV7
from app.contracts.indexing import JobEnvelopeV5
from app.contracts.ingestion import (
GITHUB_SOURCE_KINDS,
@@ -30,6 +31,7 @@
from app.ports.queue import Delivery, QueuePort
from app.repositories.job_repository import load_job
from app.scanners.process import NativeProcessError
+from app.services.embed_job import EmbedFailure, EmbedOperation
from app.services.job_finalization import JobFinalizer
from app.services.jobs import JobService
from app.workers.operations.analyze_structure import StructuralAnalysisOperation
@@ -72,6 +74,7 @@ def __init__(
scan_operation: ScanOperation | None = None,
index_operation: IndexOperation | None = None,
investigation_operation: InvestigateSnapshotOperation | None = None,
+ embed_operation: EmbedOperation | None = None,
) -> None:
self.factory = factory
self.queue = queue
@@ -81,6 +84,7 @@ def __init__(
self.scan_operation = scan_operation
self.index_operation = index_operation
self.investigation_operation = investigation_operation
+ self.embed_operation = embed_operation
self.jobs = JobService(factory)
async def _ack(self, receipt: str) -> None:
@@ -94,25 +98,31 @@ async def handle(self, delivery: Delivery) -> None:
logger.warning("invalid_queue_envelope")
await self._ack(delivery.receipt)
return
- envelope: JobEnvelopeV2 | JobEnvelopeV3 | JobEnvelopeV4 | JobEnvelopeV5 | JobEnvelopeV6
- try:
- envelope = JobEnvelopeV6.model_validate_json(delivery.body)
- except ValidationError:
+ envelope: (
+ JobEnvelopeV2
+ | JobEnvelopeV3
+ | JobEnvelopeV4
+ | JobEnvelopeV5
+ | JobEnvelopeV6
+ | JobEnvelopeV7
+ )
+ for model in (
+ JobEnvelopeV7,
+ JobEnvelopeV6,
+ JobEnvelopeV5,
+ JobEnvelopeV4,
+ JobEnvelopeV3,
+ JobEnvelopeV2,
+ ):
try:
- envelope = JobEnvelopeV5.model_validate_json(delivery.body)
+ envelope = model.model_validate_json(delivery.body)
+ break
except ValidationError:
- try:
- envelope = JobEnvelopeV4.model_validate_json(delivery.body)
- except ValidationError:
- try:
- envelope = JobEnvelopeV3.model_validate_json(delivery.body)
- except ValidationError:
- try:
- envelope = JobEnvelopeV2.model_validate_json(delivery.body)
- except ValidationError:
- logger.warning("invalid_queue_envelope")
- await self._ack(delivery.receipt)
- return
+ continue
+ else:
+ logger.warning("invalid_queue_envelope")
+ await self._ack(delivery.receipt)
+ return
async with transaction(self.factory) as s:
job = await load_job(s, envelope.org_id, envelope.job_id)
source_kind = (
@@ -133,6 +143,10 @@ async def handle(self, delivery: Delivery) -> None:
isinstance(envelope, JobEnvelopeV5)
and job.get("index_spec_id") != envelope.index_spec_id
)
+ or (
+ isinstance(envelope, JobEnvelopeV7)
+ and job.get("embed_spec_id") != envelope.embed_spec_id
+ )
or (
isinstance(envelope, JobEnvelopeV4)
and job.get("scan_spec_id") != envelope.scan_spec_id
@@ -157,6 +171,16 @@ async def handle(self, delivery: Delivery) -> None:
if self.investigation_operation is None:
await self.queue.extend(delivery.receipt, 120)
return
+ if envelope.operation == "embed_chunk_set":
+ if (
+ job["state"] in {"succeeded", "partial", "failed", "cancelled"}
+ or envelope.dispatch_generation != job["dispatch_generation"]
+ ):
+ await self._ack(delivery.receipt)
+ return
+ if self.embed_operation is None:
+ await self.queue.extend(delivery.receipt, 120)
+ return
if envelope.operation == "index_snapshot":
if (
job["state"] in {"succeeded", "partial", "failed", "cancelled"}
@@ -218,6 +242,9 @@ async def operate() -> None:
elif envelope.operation == "index_snapshot":
assert self.index_operation is not None
await self.index_operation.execute(lease, enter_finalization=enter_finalization)
+ elif envelope.operation == "embed_chunk_set":
+ assert self.embed_operation is not None
+ await self.embed_operation.execute(lease, enter_finalization=enter_finalization)
elif envelope.operation == "investigate_snapshot":
assert self.investigation_operation is not None
await self.investigation_operation.execute(
@@ -280,6 +307,9 @@ async def maintain() -> None:
code, transient = scan_failure(error)
await self.jobs.fail_attempt(lease, code, transient=transient)
await self._ack(delivery.receipt)
+ except EmbedFailure as failure:
+ await self.jobs.fail_attempt(lease, failure.code, transient=failure.transient)
+ await self._ack(delivery.receipt)
except TimeoutError:
await self.jobs.fail_attempt(lease, "finalization_timeout", transient=True)
await self._ack(delivery.receipt)
@@ -340,7 +370,9 @@ async def maintain() -> None:
except Exception:
await self.jobs.fail_attempt(
lease,
- "index_process_failed"
+ "embed_process_failed"
+ if envelope.operation == "embed_chunk_set"
+ else "index_process_failed"
if envelope.operation == "index_snapshot"
else "scanner_process_failed"
if envelope.operation == "scan_snapshot"
diff --git a/backend/tests/retrieval/storage/test_embed_consumer.py b/backend/tests/retrieval/storage/test_embed_consumer.py
new file mode 100644
index 0000000..6d3cf8e
--- /dev/null
+++ b/backend/tests/retrieval/storage/test_embed_consumer.py
@@ -0,0 +1,156 @@
+# ruff: noqa: E501
+"""Queue consumer runs embed jobs end to end and maps failures to durable job outcomes."""
+
+import json
+import os
+
+import pytest
+from app.adapters.model.http_transport import ProviderTransportError
+from app.contracts.embedding_index import EmbedConfigV1
+from app.domain.canonical_json import canonical_bytes
+from app.ports.queue import Delivery
+from app.services.embed_job import EmbedOperation
+from app.services.embed_jobs import EmbedJobService
+from app.workers.consumer import JobConsumer
+from sqlalchemy import text
+
+from tests.retrieval.storage.test_dense_guards import MODEL, PROVIDER, embed_base
+from tests.retrieval.storage.test_dense_job import Embedder
+
+pytestmark = pytest.mark.skipif(
+ os.environ.get("CODESPY_TEST_SCHEMA_TARGET") != "head",
+ reason="requires the current schema head (revision 0046)",
+)
+
+
+class Queue:
+ def __init__(self):
+ self.acked, self.extended = 0, 0
+
+ async def ack(self, receipt):
+ self.acked += 1
+
+ async def extend(self, *args):
+ self.extended += 1
+
+
+async def created(base, api_factory, key="consume"):
+ spec = base["spec"]
+ return await EmbedJobService(api_factory).create(
+ base["ctx"],
+ spec.repository_id,
+ spec.snapshot_id,
+ base["set_id"],
+ EmbedConfigV1(
+ provider=PROVIDER, model_id=MODEL, dimension=512, normalize=True, price_version="test"
+ ),
+ key,
+ )
+
+
+async def wakeup(migration_factory, job_id, generation=1):
+ async with migration_factory() as session:
+ payload = await session.scalar(
+ text("SELECT payload FROM outbox WHERE job_id=:j AND generation=:g"),
+ {"j": job_id, "g": generation},
+ )
+ return json.loads(payload) if isinstance(payload, str) else payload
+
+
+def delivery(payload):
+ return Delivery(canonical_bytes(payload), "delivery")
+
+
+async def state(migration_factory, job_id):
+ async with migration_factory() as session:
+ row = (
+ await session.execute(
+ text("SELECT state,failure_code,dispatch_generation FROM jobs WHERE id=:j"),
+ {"j": job_id},
+ )
+ ).one()
+ return row.state, row.failure_code, row.dispatch_generation
+
+
+async def test_consumer_runs_the_job_and_acks_only_after_a_durable_receipt(
+ api_factory, broker_factory, migration_factory, tmp_path
+):
+ base = await embed_base(api_factory, broker_factory, migration_factory, tmp_path)
+ job = (await created(base, api_factory)).job
+ payload = await wakeup(migration_factory, job.id)
+ embedder = Embedder()
+ queue = Queue()
+ consumer = JobConsumer(
+ broker_factory,
+ queue,
+ None,
+ None,
+ embed_operation=EmbedOperation(broker_factory, embedder),
+ )
+ await consumer.handle(delivery(payload))
+ assert queue.acked == 1 and embedder.calls
+ assert (await state(migration_factory, job.id))[0] == "succeeded"
+ status = await EmbedJobService(api_factory).get(
+ base["ctx"], base["spec"].repository_id, base["spec"].snapshot_id, job.id
+ )
+ assert status.receipt is not None and status.receipt.chunk_count == len(embedder.calls)
+ await consumer.handle(delivery(payload)) # a duplicate wakeup for a finished job is acked
+ assert queue.acked == 2 and len(embedder.calls) == status.receipt.chunk_count
+
+
+async def test_unconfigured_consumer_defers_without_claiming(
+ api_factory, broker_factory, migration_factory, tmp_path
+):
+ base = await embed_base(api_factory, broker_factory, migration_factory, tmp_path)
+ job = (await created(base, api_factory)).job
+ queue = Queue()
+ await JobConsumer(broker_factory, queue, None, None).handle(
+ delivery(await wakeup(migration_factory, job.id))
+ )
+ assert (queue.acked, queue.extended) == (0, 1)
+ assert (await state(migration_factory, job.id))[0] == "queued"
+
+
+async def test_a_wakeup_that_does_not_match_the_stored_spec_is_acked_and_ignored(
+ api_factory, broker_factory, migration_factory, tmp_path
+):
+ base = await embed_base(api_factory, broker_factory, migration_factory, tmp_path)
+ job = (await created(base, api_factory)).job
+ payload = await wakeup(migration_factory, job.id)
+ forged = {**payload, "embed_spec_id": str(base["ctx"].org_id)}
+ embedder, queue = Embedder(), Queue()
+ await JobConsumer(
+ broker_factory, queue, None, None, embed_operation=EmbedOperation(broker_factory, embedder)
+ ).handle(delivery(forged))
+ assert queue.acked == 1 and embedder.calls == []
+ assert (await state(migration_factory, job.id))[0] == "queued"
+
+
+async def test_transient_provider_failure_retries_and_a_held_chunk_fails_the_job(
+ api_factory, broker_factory, migration_factory, tmp_path
+):
+ base = await embed_base(api_factory, broker_factory, migration_factory, tmp_path)
+ job = (await created(base, api_factory)).job
+ queue = Queue()
+ failing = Embedder(fail=ProviderTransportError("provider_timeout"))
+ consumer = JobConsumer(
+ broker_factory,
+ queue,
+ None,
+ None,
+ embed_operation=EmbedOperation(broker_factory, failing, concurrency=1),
+ )
+ await consumer.handle(delivery(await wakeup(migration_factory, job.id)))
+ assert queue.acked == 1
+ assert await state(migration_factory, job.id) == ("retry_wait", "embed_provider_timeout", 2)
+ async with migration_factory() as session, session.begin():
+ await session.execute(
+ text("UPDATE jobs SET not_before=clock_timestamp()-interval '1 second' WHERE id=:j"),
+ {"j": job.id},
+ )
+ healthy = Embedder()
+ consumer.embed_operation = EmbedOperation(broker_factory, healthy, concurrency=1)
+ await consumer.handle(delivery(await wakeup(migration_factory, job.id, generation=2)))
+ # the first attempt's call left an uncertain hold: the job fails, the provider is not asked again
+ assert await state(migration_factory, job.id) == ("failed", "embed_hold_pending", 2)
+ assert healthy.calls == [] and queue.acked == 2
From 65b93883be103a4483d027f417629cda3ee8639e Mon Sep 17 00:00:00 2001
From: Aman Bhaskar
Date: Thu, 12 Nov 2026 21:11:38 +0530
Subject: [PATCH 05/55] feat(index): dense index job over HTTP, worker
composition and policy gates
---
.github/workflows/application-integration.yml | 1 +
backend/app/api/application.py | 84 +++-
backend/app/contracts/embedding_jobs.py | 22 +
backend/app/services/embed_job.py | 21 +-
backend/app/services/embed_jobs.py | 38 +-
backend/app/services/jobs.py | 10 +-
backend/app/workers/composition.py | 3 +
backend/openapi.json | 468 ++++++++++++++++++
.../retrieval/storage/test_dense_guards.py | 9 +
.../tests/retrieval/storage/test_dense_job.py | 52 +-
.../tests/retrieval/storage/test_embed_api.py | 244 +++++++++
.../retrieval/storage/test_embed_consumer.py | 23 +-
.../storage/test_embed_job_create.py | 125 ++++-
docs/acceptance/bedrock-runtime.md | 8 +-
docs/acceptance/dense-index-publication.md | 51 +-
docs/adr/0005-bedrock-runtime.md | 4 +-
frontend/src/api/generated/index.ts | 4 +-
frontend/src/api/generated/sdk.gen.ts | 24 +-
frontend/src/api/generated/types.gen.ts | 273 ++++++++++
19 files changed, 1416 insertions(+), 48 deletions(-)
create mode 100644 backend/tests/retrieval/storage/test_embed_api.py
diff --git a/.github/workflows/application-integration.yml b/.github/workflows/application-integration.yml
index c520a22..2de83e8 100644
--- a/.github/workflows/application-integration.yml
+++ b/.github/workflows/application-integration.yml
@@ -104,6 +104,7 @@ jobs:
'backend/tests/retrieval/storage/test_embed_job_service.py',
'backend/tests/retrieval/storage/test_embed_job_create.py',
'backend/tests/retrieval/storage/test_embed_consumer.py',
+ 'backend/tests/retrieval/storage/test_embed_api.py',
'backend/tests/phase2/integration/test_github_public_import.py',
'backend/tests/phase2/api/test_github_import_api.py',
'backend/tests/ast_facts',
diff --git a/backend/app/api/application.py b/backend/app/api/application.py
index dc1f5e2..901ef44 100644
--- a/backend/app/api/application.py
+++ b/backend/app/api/application.py
@@ -27,7 +27,13 @@
ContextPreviewV1,
)
from app.contracts.dependencies import DependencyFileV1
-from app.contracts.embedding_jobs import EmbedJobRecordV7
+from app.contracts.embedding_index import EmbedConfigV1
+from app.contracts.embedding_jobs import (
+ EmbedCreateResponseV1,
+ EmbedJobRecordV7,
+ EmbedStartRequestV1,
+ EmbedStatusV1,
+)
from app.contracts.http import (
EventPageV2,
EventPageV3,
@@ -179,6 +185,7 @@
from app.services.configured_model_gateway import ModelConnectionError
from app.services.context_assembly import ContextAssemblyService
from app.services.dense_search import DenseSearchService, QueryEmbedder
+from app.services.embed_jobs import EmbedJobService, EmbedUnavailable
from app.services.feature_trace import FeatureTraceService
from app.services.findings_query import (
FindingDetailResponseV1,
@@ -214,6 +221,7 @@
from app.services.model_runtime import ConfiguredModelRuntime
from app.services.output_validator import OutputValidationError
from app.services.persistence import PersistenceService
+from app.services.provider_budget import DisclosureDeniedError
from app.services.retries import RetryService
from app.services.scan_jobs import ScanJobService
from app.services.scan_selection import ScanConfigurationV1, choose_scan_configuration
@@ -299,6 +307,8 @@ class ApplicationPorts:
index_config: IndexBuildConfigV1 | None = None
index_builder: IndexJobCapabilities | None = None
scan_defaults: ScanConfigV1 | None = None
+ embed_config: EmbedConfigV1 | None = None
+ embed_policy: Callable[[UUID, UUID], DisclosurePolicyV1] | None = None
def legacy_job_record(value: PublicJobRecord) -> JobRecordV2 | JobRecordV3:
@@ -355,6 +365,7 @@ def create_app(settings: ApiSettings, ports: ApplicationPorts) -> FastAPI:
indexes = IndexJobService(
ports.factory, ports.index_builder if ports.index_config is not None else None
)
+ embeds = EmbedJobService(ports.factory)
retries = RetryService(ports.factory, ports.store, scan_capabilities=ports.scan_capabilities)
submissions = SubmissionService(ports.factory, ports.store, policy=ports.admission_policy)
structural = StructuralAnalysisService(ports.factory)
@@ -424,13 +435,18 @@ async def http_error(request: Request, exception: HTTPException) -> Response:
503: "provider_unconfigured",
}
code = codes.get(exception.status_code, "invalid_state")
- if exception.status_code == 403 and exception.detail == "memory_review_forbidden":
- code = "memory_review_forbidden"
+ if exception.status_code == 403 and exception.detail in {
+ "memory_review_forbidden",
+ "disclosure_denied",
+ }:
+ code = exception.detail
if exception.status_code == 503 and exception.detail in {
"analysis_unavailable",
"source_reader_unavailable",
"inference_unavailable",
"index_unavailable",
+ "embed_unavailable",
+ "embed_price_unavailable",
}:
code = exception.detail
if exception.status_code == 409 and exception.detail in {
@@ -438,6 +454,9 @@ async def http_error(request: Request, exception: HTTPException) -> Response:
"index_operation_unavailable",
"memory_snapshot_unbound",
"investigation_operation_unavailable",
+ "embed_operation_unavailable",
+ "embed_already_published",
+ "embed_profile_conflict",
}:
code = exception.detail
return error(exception.status_code, code)
@@ -1625,6 +1644,60 @@ async def retry_index_job(
raise HTTPException(503, detail="index_unavailable")
return await indexes.retry(ctx, repository_id, job_id, body.request_key)
+ @app.post(
+ "/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/indexes/{chunk_set_id}/dense",
+ status_code=202,
+ )
+ async def create_dense_index(
+ request: Request,
+ repository_id: UUID,
+ snapshot_id: UUID,
+ chunk_set_id: UUID,
+ ) -> EmbedCreateResponseV1:
+ ctx = await repository_context(request, repository_id, write=True)
+ async with transaction(ports.factory) as session:
+ await require_snapshot(session, ctx, repository_id, snapshot_id, write=True)
+ body = await json_body(request, EmbedStartRequestV1)
+ if body.request_key != key(request):
+ raise HTTPException(422, detail="request_key_mismatch")
+ if ports.embed_config is None or ports.embed_policy is None:
+ raise HTTPException(503, detail="embed_unavailable")
+ try:
+ return await embeds.create(
+ ctx,
+ repository_id,
+ snapshot_id,
+ chunk_set_id,
+ ports.embed_config,
+ body.request_key,
+ policy=ports.embed_policy(ctx.org_id, repository_id),
+ )
+ except DisclosureDeniedError:
+ raise HTTPException(403, detail="disclosure_denied") from None
+ except EmbedUnavailable as unavailable:
+ raise HTTPException(
+ 503 if unavailable.code == "embed_price_unavailable" else 409,
+ detail=unavailable.code,
+ ) from None
+
+ @app.get("/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/embed-jobs/{job_id}")
+ async def get_embed_job(
+ request: Request, repository_id: UUID, snapshot_id: UUID, job_id: UUID
+ ) -> EmbedStatusV1:
+ ctx = await repository_context(request, repository_id)
+ return await embeds.get(ctx, repository_id, snapshot_id, job_id)
+
+ @app.post(
+ "/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/embed-jobs/{job_id}/cancel"
+ )
+ async def cancel_embed_job(
+ request: Request, response: Response, repository_id: UUID, snapshot_id: UUID, job_id: UUID
+ ) -> EmbedStatusV1:
+ ctx = await repository_context(request, repository_id, write=True)
+ result = await embeds.cancel(ctx, repository_id, snapshot_id, job_id)
+ response.status_code = 202 if result.job.state == "cancelling" else 200
+ return result
+
@app.get("/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/scan-configuration")
async def scan_configuration(
request: Request, repository_id: UUID, snapshot_id: UUID
@@ -2703,6 +2776,7 @@ def openapi() -> dict[str, Any]:
components = schema.setdefault("components", {}).setdefault("schemas", {})
contract_models: tuple[type[BaseModel], ...] = (
IndexStartRequestV1,
+ EmbedStartRequestV1,
RepositoryCreate,
UploadReservationV1,
GitHubAcquisitionV1,
@@ -2772,6 +2846,10 @@ def openapi() -> dict[str, Any]:
components.update(model_schema.pop("$defs", {}))
components[model.__name__] = model_schema
body_contracts: tuple[tuple[str, type[BaseModel]], ...] = (
+ (
+ "/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/indexes/{chunk_set_id}/dense",
+ EmbedStartRequestV1,
+ ),
(
"/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/indexes",
IndexStartRequestV1,
diff --git a/backend/app/contracts/embedding_jobs.py b/backend/app/contracts/embedding_jobs.py
index 11fa492..16a6cc4 100644
--- a/backend/app/contracts/embedding_jobs.py
+++ b/backend/app/contracts/embedding_jobs.py
@@ -12,6 +12,11 @@
from app.domain.scope import Contract
+def _check_request_key(value: str) -> None:
+ if len(value.encode()) > 128 or value.startswith(("job:", "child:")):
+ raise ValueError("invalid embed request key")
+
+
class EnqueueEmbedJobV7(Contract):
repository_id: UUID
snapshot_id: UUID
@@ -77,12 +82,29 @@ def terminal_result(self) -> Self:
return self
+class EmbedStartRequestV1(Contract):
+ """HTTP body: only the idempotency key; the profile is server configuration."""
+
+ schema_version: Literal[1] = 1
+ request_key: str = Field(min_length=1, max_length=128)
+
+ @model_validator(mode="after")
+ def request_identity(self) -> Self:
+ _check_request_key(self.request_key)
+ return self
+
+
class EmbedCreateRequestV1(Contract):
schema_version: Literal[1] = 1
chunk_set_id: UUID
config: EmbedConfigV1
request_key: str = Field(min_length=1, max_length=128)
+ @model_validator(mode="after")
+ def request_identity(self) -> Self:
+ _check_request_key(self.request_key)
+ return self
+
class EmbedCreateResponseV1(Contract):
schema_version: Literal[1] = 1
diff --git a/backend/app/services/embed_job.py b/backend/app/services/embed_job.py
index 7c96d68..b92d04c 100644
--- a/backend/app/services/embed_job.py
+++ b/backend/app/services/embed_job.py
@@ -21,7 +21,11 @@
from app.adapters.model.http_transport import ProviderTransportError
from app.contracts.embedding_index import EmbedConfigV1, EmbedReceiptV1, EmbedSpecV1
from app.contracts.jobs import AttemptLeaseV2
-from app.contracts.provider_budget import EmbeddingRequestV1, calculate_charge_micros
+from app.contracts.provider_budget import (
+ DisclosurePolicyV1,
+ EmbeddingRequestV1,
+ calculate_charge_micros,
+)
from app.db.time import database_now
from app.db.transaction import transaction
from app.domain.errors import DuplicateConflict, FinalizationOutcomeUnknown, StaleAttempt
@@ -34,6 +38,7 @@
logger = logging.getLogger(__name__)
SAFETY_SECONDS = 90.0
+EMBED_REGION = "ap-south-1"
class EmbedFailure(Exception): # noqa: N818
@@ -69,11 +74,14 @@ def __init__(
*,
concurrency: int = 4,
finalizer: "EmbedFinalizer | None" = None,
+ policy_for: Callable[[UUID, UUID], DisclosurePolicyV1] | None = None,
) -> None:
if not 1 <= concurrency <= 8:
raise ValueError("concurrency must be between 1 and 8")
self.factory, self.embedder, self.concurrency = factory, embedder, concurrency
self.finalizer = finalizer or EmbedFinalizer(factory)
+ # Without a resolver the default policy applies, which refuses every external provider.
+ self.policy_for = policy_for or (lambda org, repository: DisclosurePolicyV1())
# ---- inputs -----------------------------------------------------------------------------
async def load(self, lease: AttemptLeaseV2) -> tuple[UUID, EmbedSpecV1, float]:
@@ -211,7 +219,11 @@ async def embed_chunk(
)
try:
response = await self.embedder.embed(request)
- except BaseException as error:
+ except asyncio.CancelledError:
+ # Cancelled while the call may be in flight: hold the spend, then keep cancelling.
+ await asyncio.shield(self._settle(lease, rid, "timeout", 0))
+ raise
+ except Exception as error:
timed_out = isinstance(error, TimeoutError) or (
isinstance(error, ProviderTransportError) and error.code == "provider_timeout"
)
@@ -288,6 +300,11 @@ async def execute(
spec_id, spec, seconds = await self.load(lease)
if seconds <= 0:
raise EmbedFailure("embed_timeout", transient=True)
+ policy = self.policy_for(spec.org_id, spec.repository_id)
+ if not policy.is_provider_permitted(spec.config.provider) or not policy.is_region_permitted(
+ EMBED_REGION
+ ):
+ raise EmbedFailure("embed_disclosure_denied", transient=False)
rate = await self.price_micros(spec)
work = await self.chunks(lease, spec)
if not work:
diff --git a/backend/app/services/embed_jobs.py b/backend/app/services/embed_jobs.py
index c025184..967d960 100644
--- a/backend/app/services/embed_jobs.py
+++ b/backend/app/services/embed_jobs.py
@@ -14,12 +14,16 @@
EmbedStatusV1,
EnqueueEmbedJobV7,
)
+from app.contracts.provider_budget import DisclosurePolicyV1
from app.db.transaction import transaction
from app.domain.errors import DuplicateConflict, ScopeViolation
from app.domain.scope import TenantContext
from app.repositories.job_repository import embed_job_record, load_job
from app.security.authorization import lock_scope, require_snapshot
from app.services.jobs import TERMINAL, JobService
+from app.services.provider_budget import DisclosureDeniedError
+
+EMBED_REGION = "ap-south-1"
class EmbedUnavailable(Exception): # noqa: N818
@@ -46,8 +50,15 @@ async def create(
chunk_set_id: UUID,
config: EmbedConfigV1,
request_key: str,
+ *,
+ policy: DisclosurePolicyV1 | None = None,
) -> EmbedCreateResponseV1:
config = EmbedConfigV1.model_validate(config.model_dump()).validated()
+ policy = policy or DisclosurePolicyV1()
+ if not policy.is_provider_permitted(config.provider) or not policy.is_region_permitted(
+ EMBED_REGION
+ ):
+ raise DisclosureDeniedError("provider or region is not permitted for this repository")
request = EmbedCreateRequestV1(
chunk_set_id=chunk_set_id, config=config, request_key=request_key
)
@@ -165,7 +176,22 @@ async def _require_servable(self, session: AsyncSession, spec: EmbedSpecV1) -> N
i=spec.dense_index_id(),
)
if published:
- raise DuplicateConflict("dense index already published")
+ raise EmbedUnavailable("embed_already_published")
+ collision = await _rows(
+ session,
+ "SELECT 1 FROM embed_specs WHERE org_id=:o AND chunk_set_id=:set AND provider=:p "
+ "AND model_id=:m AND dimension=:d AND (normalize<>:n OR price_version<>:v)",
+ o=spec.org_id,
+ set=spec.chunk_set_id,
+ p=c.provider,
+ m=c.model_id,
+ d=c.dimension,
+ n=c.normalize,
+ v=c.price_version,
+ )
+ if collision:
+ # One dense index exists per (provider, model, dimension); a variant would collide.
+ raise EmbedUnavailable("embed_profile_conflict")
async def _spec(self, session: AsyncSession, spec: EmbedSpecV1) -> UUID:
c = spec.config
@@ -255,10 +281,16 @@ async def get(
can_cancel=row["state"] not in TERMINAL and row["state"] != "cancelling",
)
- async def cancel(self, ctx: TenantContext, repository_id: UUID, job_id: UUID) -> EmbedStatusV1:
+ async def cancel(
+ self, ctx: TenantContext, repository_id: UUID, snapshot_id: UUID, job_id: UUID
+ ) -> EmbedStatusV1:
async with transaction(self.factory) as session:
row = await load_job(session, ctx.org_id, job_id)
- if row["operation"] != "embed_chunk_set" or row["repository_id"] != repository_id:
+ if (
+ row["operation"] != "embed_chunk_set"
+ or row["repository_id"] != repository_id
+ or row["snapshot_id"] != snapshot_id
+ ):
raise ScopeViolation("embed job unavailable")
await self.jobs.request_cancel(ctx, job_id)
return await self.get(ctx, repository_id, row["snapshot_id"], job_id)
diff --git a/backend/app/services/jobs.py b/backend/app/services/jobs.py
index 537a769..709c38a 100644
--- a/backend/app/services/jobs.py
+++ b/backend/app/services/jobs.py
@@ -1,12 +1,15 @@
"""Durable jobs. Queue delivery never supplies publication or lifecycle authority."""
from datetime import UTC, datetime, timedelta
-from typing import Any
+from typing import TYPE_CHECKING, Any, cast
from uuid import UUID, uuid4
from sqlalchemy import and_, func, insert, or_, select, text, update
from sqlalchemy.ext.asyncio import AsyncSession, async_sessionmaker
+if TYPE_CHECKING:
+ from sqlalchemy.engine import CursorResult
+
from app.contracts.embedding_jobs import EnqueueEmbedJobV7
from app.contracts.indexing import EnqueueIndexJobV5
from app.contracts.investigation_jobs import EnqueueInvestigationJobV1
@@ -379,7 +382,7 @@ async def claim(
)
await worker_context(s, lease)
if job["operation"] == "embed_chunk_set":
- await s.execute(
+ bound = await s.execute(
text(
"INSERT INTO embed_attempt_specs(org_id,id,job_id,fence,spec_id,"
"repository_id,snapshot_id,spec_hash) SELECT :org,:att,:job,:fence,"
@@ -396,6 +399,8 @@ async def claim(
"spec": job["embed_spec_id"],
},
)
+ if cast("CursorResult[Any]", bound).rowcount != 1:
+ raise ScopeViolation("embed spec unavailable")
elif job["operation"] == "index_snapshot":
from app.models.index_tables import index_attempt_specs, index_specs
@@ -835,6 +840,7 @@ async def fail_attempt(
"embed_empty_chunk_set",
"embed_protocol_error",
"embed_process_failed",
+ "embed_disclosure_denied",
}
if code not in allowed:
raise ValueError("unknown failure code")
diff --git a/backend/app/workers/composition.py b/backend/app/workers/composition.py
index f4645bd..9693732 100644
--- a/backend/app/workers/composition.py
+++ b/backend/app/workers/composition.py
@@ -2,6 +2,7 @@
from app.ports.object_store import ObjectStore
from app.ports.queue import QueuePort
+from app.services.embed_job import EmbedOperation
from app.services.investigation_runtime import build_investigation_operation
from app.services.investigation_tools import InvestigationToolService
from app.services.job_finalization import JobFinalizer
@@ -27,6 +28,7 @@ def build_worker_runtime(
structural: StructuralAnalysisOperation | ProfileDispatchOperation | None = None,
scan: ScanOperation | None = None,
index: IndexOperation | None = None,
+ embed: EmbedOperation | None = None,
propose_report_memory: bool = False,
) -> WorkerRuntime:
"""Connect registered operations and maintenance without reading credentials."""
@@ -61,6 +63,7 @@ def build_worker_runtime(
scan_operation=scan,
index_operation=index,
investigation_operation=investigation,
+ embed_operation=embed,
)
return WorkerRuntime(
OutboxDispatcher(factory, queue),
diff --git a/backend/openapi.json b/backend/openapi.json
index 3990de4..6d2d4d7 100644
--- a/backend/openapi.json
+++ b/backend/openapi.json
@@ -2154,6 +2154,284 @@
"title": "EdgeCreateV1",
"type": "object"
},
+ "EmbedCreateResponseV1": {
+ "additionalProperties": false,
+ "properties": {
+ "job": {
+ "$ref": "#/components/schemas/EmbedJobRecordV7"
+ },
+ "schema_version": {
+ "const": 1,
+ "default": 1,
+ "title": "Schema Version",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "job"
+ ],
+ "title": "EmbedCreateResponseV1",
+ "type": "object"
+ },
+ "EmbedJobRecordV7": {
+ "additionalProperties": false,
+ "properties": {
+ "attempt_count": {
+ "minimum": 0.0,
+ "title": "Attempt Count",
+ "type": "integer"
+ },
+ "created_at": {
+ "format": "date-time",
+ "title": "Created At",
+ "type": "string"
+ },
+ "deadline": {
+ "format": "date-time",
+ "title": "Deadline",
+ "type": "string"
+ },
+ "embed_spec_id": {
+ "format": "uuid",
+ "title": "Embed Spec Id",
+ "type": "string"
+ },
+ "failure_code": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Failure Code"
+ },
+ "finished_at": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Finished At"
+ },
+ "id": {
+ "format": "uuid",
+ "title": "Id",
+ "type": "string"
+ },
+ "max_attempts": {
+ "exclusiveMinimum": 0.0,
+ "title": "Max Attempts",
+ "type": "integer"
+ },
+ "operation": {
+ "const": "embed_chunk_set",
+ "default": "embed_chunk_set",
+ "title": "Operation",
+ "type": "string"
+ },
+ "org_id": {
+ "format": "uuid",
+ "title": "Org Id",
+ "type": "string"
+ },
+ "repository_id": {
+ "format": "uuid",
+ "title": "Repository Id",
+ "type": "string"
+ },
+ "result_index_id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Result Index Id"
+ },
+ "schema_version": {
+ "const": 7,
+ "default": 7,
+ "title": "Schema Version",
+ "type": "integer"
+ },
+ "snapshot_id": {
+ "format": "uuid",
+ "title": "Snapshot Id",
+ "type": "string"
+ },
+ "state": {
+ "enum": [
+ "queued",
+ "running",
+ "retry_wait",
+ "cancelling",
+ "succeeded",
+ "partial",
+ "failed",
+ "cancelled"
+ ],
+ "title": "State",
+ "type": "string"
+ }
+ },
+ "required": [
+ "org_id",
+ "id",
+ "repository_id",
+ "snapshot_id",
+ "embed_spec_id",
+ "state",
+ "attempt_count",
+ "max_attempts",
+ "deadline",
+ "failure_code",
+ "result_index_id",
+ "created_at",
+ "finished_at"
+ ],
+ "title": "EmbedJobRecordV7",
+ "type": "object"
+ },
+ "EmbedReceiptV1": {
+ "additionalProperties": false,
+ "properties": {
+ "chunk_count": {
+ "title": "Chunk Count",
+ "type": "integer"
+ },
+ "chunk_set_id": {
+ "format": "uuid",
+ "title": "Chunk Set Id",
+ "type": "string"
+ },
+ "coverage": {
+ "enum": [
+ "complete",
+ "partial"
+ ],
+ "title": "Coverage",
+ "type": "string"
+ },
+ "embedding_digest": {
+ "title": "Embedding Digest",
+ "type": "string"
+ },
+ "index_id": {
+ "format": "uuid",
+ "title": "Index Id",
+ "type": "string"
+ },
+ "job_id": {
+ "format": "uuid",
+ "title": "Job Id",
+ "type": "string"
+ },
+ "ledger_digest": {
+ "title": "Ledger Digest",
+ "type": "string"
+ },
+ "org_id": {
+ "format": "uuid",
+ "title": "Org Id",
+ "type": "string"
+ },
+ "schema_version": {
+ "const": 1,
+ "default": 1,
+ "title": "Schema Version",
+ "type": "integer"
+ },
+ "spec_id": {
+ "format": "uuid",
+ "title": "Spec Id",
+ "type": "string"
+ },
+ "token_total": {
+ "title": "Token Total",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "org_id",
+ "job_id",
+ "spec_id",
+ "chunk_set_id",
+ "index_id",
+ "chunk_count",
+ "token_total",
+ "coverage",
+ "embedding_digest",
+ "ledger_digest"
+ ],
+ "title": "EmbedReceiptV1",
+ "type": "object"
+ },
+ "EmbedStartRequestV1": {
+ "additionalProperties": false,
+ "description": "HTTP body: only the idempotency key; the profile is server configuration.",
+ "properties": {
+ "request_key": {
+ "maxLength": 128,
+ "minLength": 1,
+ "title": "Request Key",
+ "type": "string"
+ },
+ "schema_version": {
+ "const": 1,
+ "default": 1,
+ "title": "Schema Version",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "request_key"
+ ],
+ "title": "EmbedStartRequestV1",
+ "type": "object"
+ },
+ "EmbedStatusV1": {
+ "additionalProperties": false,
+ "properties": {
+ "can_cancel": {
+ "title": "Can Cancel",
+ "type": "boolean"
+ },
+ "job": {
+ "$ref": "#/components/schemas/EmbedJobRecordV7"
+ },
+ "receipt": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/EmbedReceiptV1"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "schema_version": {
+ "const": 1,
+ "default": 1,
+ "title": "Schema Version",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "job",
+ "can_cancel"
+ ],
+ "title": "EmbedStatusV1",
+ "type": "object"
+ },
"EventPageV2": {
"additionalProperties": false,
"properties": {
@@ -13022,6 +13300,126 @@
"summary": "Context Preview Endpoint"
}
},
+ "/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/embed-jobs/{job_id}": {
+ "get": {
+ "operationId": "get_embed_job_api_v1_repositories__repository_id__snapshots__snapshot_id__embed_jobs__job_id__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "repository_id",
+ "required": true,
+ "schema": {
+ "format": "uuid",
+ "title": "Repository Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "snapshot_id",
+ "required": true,
+ "schema": {
+ "format": "uuid",
+ "title": "Snapshot Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "job_id",
+ "required": true,
+ "schema": {
+ "format": "uuid",
+ "title": "Job Id",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/EmbedStatusV1"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Embed Job"
+ }
+ },
+ "/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/embed-jobs/{job_id}/cancel": {
+ "post": {
+ "operationId": "cancel_embed_job_api_v1_repositories__repository_id__snapshots__snapshot_id__embed_jobs__job_id__cancel_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "repository_id",
+ "required": true,
+ "schema": {
+ "format": "uuid",
+ "title": "Repository Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "snapshot_id",
+ "required": true,
+ "schema": {
+ "format": "uuid",
+ "title": "Snapshot Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "job_id",
+ "required": true,
+ "schema": {
+ "format": "uuid",
+ "title": "Job Id",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/EmbedStatusV1"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Cancel Embed Job"
+ }
+ },
"/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/files/{file_id}/source-view": {
"get": {
"operationId": "get_source_view_endpoint_api_v1_repositories__repository_id__snapshots__snapshot_id__files__file_id__source_view_get",
@@ -13707,6 +14105,76 @@
"summary": "Create Snapshot Index"
}
},
+ "/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/indexes/{chunk_set_id}/dense": {
+ "post": {
+ "operationId": "create_dense_index_api_v1_repositories__repository_id__snapshots__snapshot_id__indexes__chunk_set_id__dense_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "repository_id",
+ "required": true,
+ "schema": {
+ "format": "uuid",
+ "title": "Repository Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "snapshot_id",
+ "required": true,
+ "schema": {
+ "format": "uuid",
+ "title": "Snapshot Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "chunk_set_id",
+ "required": true,
+ "schema": {
+ "format": "uuid",
+ "title": "Chunk Set Id",
+ "type": "string"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/EmbedStartRequestV1"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "202": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/EmbedCreateResponseV1"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Create Dense Index"
+ }
+ },
"/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/memories": {
"get": {
"operationId": "query_memory_endpoint_api_v1_repositories__repository_id__snapshots__snapshot_id__memories_get",
diff --git a/backend/tests/retrieval/storage/test_dense_guards.py b/backend/tests/retrieval/storage/test_dense_guards.py
index c57f885..1d84281 100644
--- a/backend/tests/retrieval/storage/test_dense_guards.py
+++ b/backend/tests/retrieval/storage/test_dense_guards.py
@@ -29,6 +29,15 @@
PROVIDER, MODEL, DIM = "aws_bedrock", "amazon.titan-embed-text-v2:0", 256
POLICY = DisclosurePolicyV1(allow_external_disclosure=True, allowed_providers=(PROVIDER,))
+EMBED_POLICY = DisclosurePolicyV1(
+ allow_external_disclosure=True,
+ allowed_providers=(PROVIDER,),
+ allowed_regions=("ap-south-1",),
+)
+
+
+def ALLOW(org_id, repository_id): # noqa: N802 - used like a constant policy resolver
+ return EMBED_POLICY
def vector(seed: float = 1.0):
diff --git a/backend/tests/retrieval/storage/test_dense_job.py b/backend/tests/retrieval/storage/test_dense_job.py
index d4d03bd..2a58a16 100644
--- a/backend/tests/retrieval/storage/test_dense_job.py
+++ b/backend/tests/retrieval/storage/test_dense_job.py
@@ -11,7 +11,7 @@
from app.services.embed_job import EmbedFailure, EmbedOperation
from sqlalchemy import text
-from tests.retrieval.storage.test_dense_guards import DIM, MODEL, PROVIDER, embed_case
+from tests.retrieval.storage.test_dense_guards import ALLOW, DIM, MODEL, PROVIDER, embed_case
pytestmark = pytest.mark.skipif(
os.environ.get("CODESPY_TEST_SCHEMA_TARGET") != "head",
@@ -65,7 +65,9 @@ async def test_operation_embeds_every_chunk_once_and_publishes_a_sealed_dense_in
):
case = await embed_case(api_factory, broker_factory, migration_factory, tmp_path)
embedder = Embedder()
- receipt = await EmbedOperation(broker_factory, embedder).execute(lease_for(case))
+ receipt = await EmbedOperation(broker_factory, embedder, policy_for=ALLOW).execute(
+ lease_for(case)
+ )
count = await scalar(
migration_factory,
"SELECT count(*) FROM source_chunks WHERE chunk_set_id=:s",
@@ -106,7 +108,7 @@ async def test_operation_embeds_every_chunk_once_and_publishes_a_sealed_dense_in
)
assert nearest >= 1
# a repeat of the finished job publishes nothing new and calls no provider
- again = await EmbedOperation(broker_factory, embedder).finalizer.finish(
+ again = await EmbedOperation(broker_factory, embedder, policy_for=ALLOW).finalizer.finish(
lease_for(case), receipt_spec(case), await spec_id(migration_factory, case)
)
assert again.index_id == receipt.index_id and len(embedder.calls) == count
@@ -136,7 +138,7 @@ async def test_crash_after_staging_resumes_without_paying_or_calling_the_provide
):
case = await embed_case(api_factory, broker_factory, migration_factory, tmp_path)
embedder = Embedder()
- operation = EmbedOperation(broker_factory, embedder, concurrency=1)
+ operation = EmbedOperation(broker_factory, embedder, policy_for=ALLOW, concurrency=1)
real = EmbedOperation._settle
crashed = []
@@ -169,7 +171,7 @@ async def test_a_failed_provider_call_leaves_an_uncertain_hold_and_is_never_rese
):
case = await embed_case(api_factory, broker_factory, migration_factory, tmp_path)
embedder = Embedder(fail=ProviderTransportError("provider_timeout"))
- operation = EmbedOperation(broker_factory, embedder, concurrency=1)
+ operation = EmbedOperation(broker_factory, embedder, policy_for=ALLOW, concurrency=1)
with pytest.raises(EmbedFailure) as error:
await operation.execute(lease_for(case))
assert error.value.code == "embed_provider_timeout" and error.value.transient
@@ -182,7 +184,9 @@ async def test_a_failed_provider_call_leaves_an_uncertain_hold_and_is_never_rese
)
calls = len(embedder.calls)
with pytest.raises(EmbedFailure) as again: # the held chunk is not retried automatically
- await EmbedOperation(broker_factory, Embedder(), concurrency=1).execute(lease_for(case))
+ await EmbedOperation(broker_factory, Embedder(), policy_for=ALLOW, concurrency=1).execute(
+ lease_for(case)
+ )
assert again.value.code == "embed_hold_pending" and not again.value.transient
assert calls == 1
assert (
@@ -199,6 +203,40 @@ async def test_a_stale_fence_cannot_embed_or_publish(
case = await embed_case(api_factory, broker_factory, migration_factory, tmp_path)
embedder = Embedder()
with pytest.raises(StaleAttempt):
- await EmbedOperation(broker_factory, embedder).execute(lease_for(case, fence=2))
+ await EmbedOperation(broker_factory, embedder, policy_for=ALLOW).execute(
+ lease_for(case, fence=2)
+ )
assert embedder.calls == []
assert await scalar(migration_factory, "SELECT count(*) FROM embed_spend_ledger") == 0
+
+
+async def test_the_worker_refuses_a_repository_whose_policy_forbids_the_provider(
+ api_factory, broker_factory, migration_factory, tmp_path
+):
+ case = await embed_case(api_factory, broker_factory, migration_factory, tmp_path)
+ embedder = Embedder()
+ with pytest.raises(EmbedFailure) as error: # no policy resolver: the default policy refuses
+ await EmbedOperation(broker_factory, embedder).execute(lease_for(case))
+ assert error.value.code == "embed_disclosure_denied" and not error.value.transient
+ assert embedder.calls == []
+ assert await scalar(migration_factory, "SELECT count(*) FROM embed_spend_ledger") == 0
+
+
+async def test_cancellation_mid_call_holds_the_spend_and_is_not_turned_into_a_failure(
+ api_factory, broker_factory, migration_factory, tmp_path
+):
+ import asyncio
+
+ case = await embed_case(api_factory, broker_factory, migration_factory, tmp_path)
+ operation = EmbedOperation(
+ broker_factory, Embedder(fail=asyncio.CancelledError()), policy_for=ALLOW, concurrency=1
+ )
+ with pytest.raises(asyncio.CancelledError): # must stay a cancellation, never an EmbedFailure
+ await operation.execute(lease_for(case))
+ assert (
+ await scalar(
+ migration_factory,
+ "SELECT count(*) FROM embedding_reservations WHERE state='uncertain_hold'",
+ )
+ == 1
+ )
diff --git a/backend/tests/retrieval/storage/test_embed_api.py b/backend/tests/retrieval/storage/test_embed_api.py
new file mode 100644
index 0000000..9f8d73e
--- /dev/null
+++ b/backend/tests/retrieval/storage/test_embed_api.py
@@ -0,0 +1,244 @@
+"""HTTP routes for dense index jobs: CSRF, idempotency, configuration and policy gates."""
+
+import os
+from uuid import uuid4
+
+import httpx
+import pytest
+from app.adapters.storage.local import LocalObjectStore
+from app.api.application import ApiSettings, ApplicationPorts, create_app
+from app.contracts.embedding_index import EmbedConfigV1
+from app.contracts.provider_budget import DisclosurePolicyV1
+
+from tests.retrieval.storage.test_dense_guards import EMBED_POLICY, MODEL, PROVIDER, embed_base
+
+pytestmark = pytest.mark.skipif(
+ os.environ.get("CODESPY_TEST_SCHEMA_TARGET") != "head",
+ reason="requires the current schema head (revision 0046)",
+)
+
+CONFIG = EmbedConfigV1(
+ provider=PROVIDER, model_id=MODEL, dimension=512, normalize=True, price_version="test"
+)
+
+
+async def client_for(base, api_factory, tmp_path, *, config=CONFIG, policy=EMBED_POLICY, key="k1"):
+ app = create_app(
+ ApiSettings(environment="test", auth_mode="local_fixture", origin="http://testserver"),
+ ApplicationPorts(
+ factory=api_factory,
+ store=LocalObjectStore(tmp_path / "objects"),
+ fixture_context=base["ctx"],
+ embed_config=config,
+ embed_policy=(lambda org, repo: policy) if policy is not None else None,
+ ),
+ )
+ client = httpx.AsyncClient(transport=httpx.ASGITransport(app=app), base_url="http://testserver")
+ token = (await client.get("/api/v1/session")).json()["csrf_token"]
+ headers = {"Origin": "http://testserver", "X-CSRF-Token": token, "Idempotency-Key": key}
+ return client, headers
+
+
+def route(base, chunk_set_id=None, suffix="dense"):
+ spec = base["spec"]
+ return (
+ f"/api/v1/repositories/{spec.repository_id}/snapshots/{spec.snapshot_id}"
+ f"/indexes/{chunk_set_id or base['set_id']}/{suffix}"
+ )
+
+
+def job_route(base, job_id, suffix=""):
+ spec = base["spec"]
+ return (
+ f"/api/v1/repositories/{spec.repository_id}/snapshots/{spec.snapshot_id}"
+ f"/embed-jobs/{job_id}{suffix}"
+ )
+
+
+async def test_create_status_and_cancel_through_http(
+ api_factory, broker_factory, migration_factory, tmp_path
+):
+ base = await embed_base(api_factory, broker_factory, migration_factory, tmp_path)
+ client, headers = await client_for(base, api_factory, tmp_path)
+ try:
+ body = {"request_key": "k1"}
+ assert (await client.post(route(base), json=body)).status_code == 403 # no CSRF
+ first = await client.post(route(base), json=body, headers=headers)
+ assert first.status_code == 202, first.text
+ job = first.json()["job"]
+ assert job["state"] == "queued" and job["operation"] == "embed_chunk_set"
+ again = await client.post(route(base), json=body, headers=headers)
+ assert again.status_code == 202 and again.json()["job"]["id"] == job["id"]
+ mismatch = await client.post(route(base), json={"request_key": "other"}, headers=headers)
+ assert mismatch.status_code == 422
+ status = await client.get(job_route(base, job["id"]))
+ assert status.status_code == 200
+ assert status.json()["can_cancel"] is True and status.json()["receipt"] is None
+ cancelled = await client.post(job_route(base, job["id"], "/cancel"), headers=headers)
+ assert cancelled.status_code == 200 and cancelled.json()["job"]["state"] == "cancelled"
+ unknown = await client.get(job_route(base, uuid4()))
+ assert unknown.status_code == 404
+ # scope in the URL must match the job: another repository or snapshot reveals nothing
+ other_repo = job_route(base, job["id"]).replace(
+ str(base["spec"].repository_id), str(uuid4())
+ )
+ assert (await client.get(other_repo)).status_code == 404
+ assert (await client.post(other_repo + "/cancel", headers=headers)).status_code == 404
+ other_snapshot = job_route(base, job["id"], "/cancel").replace(
+ str(base["spec"].snapshot_id), str(uuid4())
+ )
+ assert (await client.post(other_snapshot, headers=headers)).status_code == 404
+ reserved = await client.post(
+ route(base),
+ json={"request_key": "job:x"},
+ headers={**headers, "Idempotency-Key": "job:x"},
+ )
+ assert reserved.status_code == 422
+ finally:
+ await client.aclose()
+
+
+async def test_unconfigured_forbidden_and_unknown_requests_are_refused(
+ api_factory, broker_factory, migration_factory, tmp_path
+):
+ base = await embed_base(api_factory, broker_factory, migration_factory, tmp_path)
+ body = {"request_key": "k1"}
+ client, headers = await client_for(base, api_factory, tmp_path, config=None)
+ try:
+ unconfigured = await client.post(route(base), json=body, headers=headers)
+ assert (
+ unconfigured.status_code == 503 and unconfigured.json()["code"] == "embed_unavailable"
+ )
+ finally:
+ await client.aclose()
+ client, headers = await client_for(base, api_factory, tmp_path, policy=None)
+ try:
+ assert (await client.post(route(base), json=body, headers=headers)).status_code == 503
+ finally:
+ await client.aclose()
+ client, headers = await client_for(base, api_factory, tmp_path, policy=DisclosurePolicyV1())
+ try:
+ denied = await client.post(route(base), json=body, headers=headers)
+ assert denied.status_code == 403 and denied.json()["code"] == "disclosure_denied"
+ finally:
+ await client.aclose()
+ client, headers = await client_for(base, api_factory, tmp_path)
+ try:
+ missing = await client.post(route(base, uuid4()), json=body, headers=headers)
+ assert missing.status_code == 404
+ finally:
+ await client.aclose()
+
+
+class QueryEmbedderStub:
+ """Stands in for the accounted Bedrock query embedder; returns a chosen vector."""
+
+ def __init__(self, vector):
+ self.vector, self.calls = vector, []
+
+ async def embed_query(self, scope, request):
+ from app.contracts.provider_budget import EmbeddingResponseV1
+
+ self.calls.append((scope.org_id, request.text))
+ return EmbeddingResponseV1(
+ vector=tuple(self.vector),
+ token_count=1,
+ model_id=request.model_id,
+ provider=request.provider,
+ )
+
+
+async def test_http_create_then_worker_then_status_and_dense_search_end_to_end(
+ api_factory, broker_factory, migration_factory, tmp_path
+):
+ import json
+
+ from app.domain.canonical_json import canonical_bytes
+ from app.ports.queue import Delivery
+ from app.services.embed_job import EmbedOperation
+ from app.workers.consumer import JobConsumer
+ from sqlalchemy import text
+
+ from tests.retrieval.storage.test_dense_job import Embedder
+
+ class Queue:
+ async def ack(self, receipt):
+ pass
+
+ async def extend(self, *args):
+ pass
+
+ base = await embed_base(api_factory, broker_factory, migration_factory, tmp_path)
+ client, headers = await client_for(base, api_factory, tmp_path)
+ try:
+ created = await client.post(route(base), json={"request_key": "k1"}, headers=headers)
+ assert created.status_code == 202, created.text
+ job_id = created.json()["job"]["id"]
+ async with migration_factory() as session:
+ payload = await session.scalar(
+ text("SELECT payload FROM outbox WHERE job_id=:j"), {"j": job_id}
+ )
+ payload = json.loads(payload) if isinstance(payload, str) else payload
+ embedder = Embedder()
+ await JobConsumer(
+ broker_factory,
+ Queue(),
+ None,
+ None,
+ embed_operation=EmbedOperation(
+ broker_factory, embedder, policy_for=lambda o, r: EMBED_POLICY
+ ),
+ ).handle(Delivery(canonical_bytes(payload), "delivery"))
+ status = (await client.get(job_route(base, job_id))).json()
+ assert status["job"]["state"] == "succeeded" and status["can_cancel"] is False
+ receipt = status["receipt"]
+ assert receipt["chunk_count"] == len(embedder.calls) and receipt["coverage"] == "complete"
+
+ async with migration_factory() as session:
+ row = (
+ await session.execute(
+ text(
+ "SELECT chunk_id,embedding_json FROM chunk_embeddings "
+ "WHERE index_id=:i ORDER BY chunk_id LIMIT 1"
+ ),
+ {"i": receipt["index_id"]},
+ )
+ ).one()
+ vector = (
+ json.loads(row.embedding_json)
+ if isinstance(row.embedding_json, str)
+ else row.embedding_json
+ )
+ stub = QueryEmbedderStub(vector)
+ app = create_app(
+ ApiSettings(environment="test", auth_mode="local_fixture", origin="http://testserver"),
+ ApplicationPorts(
+ factory=api_factory,
+ store=LocalObjectStore(tmp_path / "objects2"),
+ fixture_context=base["ctx"],
+ query_embedder=stub,
+ ),
+ )
+ searcher = httpx.AsyncClient(
+ transport=httpx.ASGITransport(app=app), base_url="http://testserver"
+ )
+ try:
+ search_url = (
+ f"/api/v1/repositories/{base['spec'].repository_id}/snapshots/"
+ f"{base['spec'].snapshot_id}/search/dense"
+ )
+ token = (await searcher.get("/api/v1/session")).json()["csrf_token"]
+ found = await searcher.post(
+ search_url,
+ json={"query": "where is the entry point", "chunk_set_id": str(base["set_id"])},
+ headers={"Origin": "http://testserver", "X-CSRF-Token": token},
+ )
+ assert found.status_code == 200, found.text
+ result = found.json()
+ assert result["availability"] == "available" and result["hits"]
+ assert result["hits"][0]["chunk_id"] == str(row.chunk_id)
+ assert result["hits"][0]["score"] > 0.99 and len(stub.calls) == 1
+ finally:
+ await searcher.aclose()
+ finally:
+ await client.aclose()
diff --git a/backend/tests/retrieval/storage/test_embed_consumer.py b/backend/tests/retrieval/storage/test_embed_consumer.py
index 6d3cf8e..0cc573e 100644
--- a/backend/tests/retrieval/storage/test_embed_consumer.py
+++ b/backend/tests/retrieval/storage/test_embed_consumer.py
@@ -14,7 +14,13 @@
from app.workers.consumer import JobConsumer
from sqlalchemy import text
-from tests.retrieval.storage.test_dense_guards import MODEL, PROVIDER, embed_base
+from tests.retrieval.storage.test_dense_guards import (
+ ALLOW,
+ EMBED_POLICY,
+ MODEL,
+ PROVIDER,
+ embed_base,
+)
from tests.retrieval.storage.test_dense_job import Embedder
pytestmark = pytest.mark.skipif(
@@ -45,6 +51,7 @@ async def created(base, api_factory, key="consume"):
provider=PROVIDER, model_id=MODEL, dimension=512, normalize=True, price_version="test"
),
key,
+ policy=EMBED_POLICY,
)
@@ -85,7 +92,7 @@ async def test_consumer_runs_the_job_and_acks_only_after_a_durable_receipt(
queue,
None,
None,
- embed_operation=EmbedOperation(broker_factory, embedder),
+ embed_operation=EmbedOperation(broker_factory, embedder, policy_for=ALLOW),
)
await consumer.handle(delivery(payload))
assert queue.acked == 1 and embedder.calls
@@ -120,7 +127,11 @@ async def test_a_wakeup_that_does_not_match_the_stored_spec_is_acked_and_ignored
forged = {**payload, "embed_spec_id": str(base["ctx"].org_id)}
embedder, queue = Embedder(), Queue()
await JobConsumer(
- broker_factory, queue, None, None, embed_operation=EmbedOperation(broker_factory, embedder)
+ broker_factory,
+ queue,
+ None,
+ None,
+ embed_operation=EmbedOperation(broker_factory, embedder, policy_for=ALLOW),
).handle(delivery(forged))
assert queue.acked == 1 and embedder.calls == []
assert (await state(migration_factory, job.id))[0] == "queued"
@@ -138,7 +149,7 @@ async def test_transient_provider_failure_retries_and_a_held_chunk_fails_the_job
queue,
None,
None,
- embed_operation=EmbedOperation(broker_factory, failing, concurrency=1),
+ embed_operation=EmbedOperation(broker_factory, failing, policy_for=ALLOW, concurrency=1),
)
await consumer.handle(delivery(await wakeup(migration_factory, job.id)))
assert queue.acked == 1
@@ -149,7 +160,9 @@ async def test_transient_provider_failure_retries_and_a_held_chunk_fails_the_job
{"j": job.id},
)
healthy = Embedder()
- consumer.embed_operation = EmbedOperation(broker_factory, healthy, concurrency=1)
+ consumer.embed_operation = EmbedOperation(
+ broker_factory, healthy, policy_for=ALLOW, concurrency=1
+ )
await consumer.handle(delivery(await wakeup(migration_factory, job.id, generation=2)))
# the first attempt's call left an uncertain hold: the job fails, the provider is not asked again
assert await state(migration_factory, job.id) == ("failed", "embed_hold_pending", 2)
diff --git a/backend/tests/retrieval/storage/test_embed_job_create.py b/backend/tests/retrieval/storage/test_embed_job_create.py
index 3c1e467..089873e 100644
--- a/backend/tests/retrieval/storage/test_embed_job_create.py
+++ b/backend/tests/retrieval/storage/test_embed_job_create.py
@@ -10,7 +10,14 @@
from app.services.embed_jobs import EmbedJobService, EmbedUnavailable
from sqlalchemy import text
-from tests.retrieval.storage.test_dense_guards import MODEL, PROVIDER, embed_base, embed_case
+from tests.retrieval.storage.test_dense_guards import (
+ ALLOW,
+ EMBED_POLICY,
+ MODEL,
+ PROVIDER,
+ embed_base,
+ embed_case,
+)
from tests.retrieval.storage.test_dense_job import Embedder, lease_for
pytestmark = pytest.mark.skipif(
@@ -42,9 +49,9 @@ async def test_create_stores_an_immutable_spec_and_enqueues_once_per_key(
ctx, spec = base["ctx"], base["spec"]
service = EmbedJobService(api_factory)
args = (ctx, spec.repository_id, spec.snapshot_id, base["set_id"], config())
- first = await service.create(*args, "create-1")
+ first = await service.create(*args, "create-1", policy=EMBED_POLICY)
assert first.job.state == "queued" and first.job.operation == "embed_chunk_set"
- replay = await service.create(*args, "create-1")
+ replay = await service.create(*args, "create-1", policy=EMBED_POLICY)
assert replay.job.id == first.job.id
with pytest.raises(DuplicateConflict): # same key, different profile
await service.create(
@@ -54,8 +61,11 @@ async def test_create_stores_an_immutable_spec_and_enqueues_once_per_key(
base["set_id"],
config(dimension=256),
"create-1",
+ policy=EMBED_POLICY,
)
- second = await service.create(*args, "create-2") # a new request for the same profile
+ second = await service.create(
+ *args, "create-2", policy=EMBED_POLICY
+ ) # a new request for the same profile
assert second.job.id != first.job.id and second.job.embed_spec_id == first.job.embed_spec_id
specs = await count(
migration_factory,
@@ -79,7 +89,9 @@ async def test_requests_that_cannot_be_served_are_refused_before_any_row_exists(
ctx, spec = base["ctx"], base["spec"]
service = EmbedJobService(api_factory)
with pytest.raises(ScopeViolation): # a chunk set that does not exist in this snapshot
- await service.create(ctx, spec.repository_id, spec.snapshot_id, uuid4(), config(), "k1")
+ await service.create(
+ ctx, spec.repository_id, spec.snapshot_id, uuid4(), config(), "k1", policy=EMBED_POLICY
+ )
with pytest.raises(EmbedUnavailable) as unpriced:
await service.create(
ctx,
@@ -88,11 +100,18 @@ async def test_requests_that_cannot_be_served_are_refused_before_any_row_exists(
base["set_id"],
config(price_version="none"),
"k2",
+ policy=EMBED_POLICY,
)
assert unpriced.value.code == "embed_price_unavailable"
with pytest.raises(ValueError):
await service.create(
- ctx, spec.repository_id, spec.snapshot_id, base["set_id"], config(dimension=300), "k3"
+ ctx,
+ spec.repository_id,
+ spec.snapshot_id,
+ base["set_id"],
+ config(dimension=300),
+ "k3",
+ policy=EMBED_POLICY,
)
jobs = await count(
migration_factory, "SELECT count(*) FROM jobs WHERE operation='embed_chunk_set'"
@@ -113,13 +132,21 @@ async def test_get_reports_status_and_cancel_ends_a_queued_job(
ctx, spec = base["ctx"], base["spec"]
service = EmbedJobService(api_factory)
created = await service.create(
- ctx, spec.repository_id, spec.snapshot_id, base["set_id"], config(), "status-1"
+ ctx,
+ spec.repository_id,
+ spec.snapshot_id,
+ base["set_id"],
+ config(),
+ "status-1",
+ policy=EMBED_POLICY,
)
status = await service.get(ctx, spec.repository_id, spec.snapshot_id, created.job.id)
assert status.job.state == "queued" and status.receipt is None and status.can_cancel
with pytest.raises(ScopeViolation): # wrong snapshot scope
await service.get(ctx, spec.repository_id, uuid4(), created.job.id)
- cancelled = await service.cancel(ctx, spec.repository_id, created.job.id)
+ with pytest.raises(ScopeViolation): # the URL's snapshot must match the job's
+ await service.cancel(ctx, spec.repository_id, uuid4(), created.job.id)
+ cancelled = await service.cancel(ctx, spec.repository_id, spec.snapshot_id, created.job.id)
assert cancelled.job.state == "cancelled" and not cancelled.can_cancel
@@ -128,9 +155,11 @@ async def test_an_already_published_profile_is_refused_and_status_carries_the_re
):
case = await embed_case(api_factory, broker_factory, migration_factory, tmp_path)
ctx, spec = case["ctx"], case["spec"]
- receipt = await EmbedOperation(broker_factory, Embedder()).execute(lease_for(case))
+ receipt = await EmbedOperation(broker_factory, Embedder(), policy_for=ALLOW).execute(
+ lease_for(case)
+ )
service = EmbedJobService(api_factory)
- with pytest.raises(DuplicateConflict):
+ with pytest.raises(EmbedUnavailable) as published:
await service.create(
ctx,
spec.repository_id,
@@ -138,7 +167,83 @@ async def test_an_already_published_profile_is_refused_and_status_carries_the_re
case["set_id"],
config(dimension=256),
"again",
+ policy=EMBED_POLICY,
)
+ assert published.value.code == "embed_already_published"
status = await service.get(ctx, spec.repository_id, spec.snapshot_id, case["binding"][0])
assert status.job.state == "succeeded" and status.receipt is not None
assert status.receipt.index_id == receipt.index_id and not status.can_cancel
+
+
+async def test_a_policy_that_forbids_the_provider_or_region_blocks_creation(
+ api_factory, broker_factory, migration_factory, tmp_path
+):
+ from app.contracts.provider_budget import DisclosurePolicyV1
+ from app.services.provider_budget import DisclosureDeniedError
+
+ base = await embed_base(api_factory, broker_factory, migration_factory, tmp_path)
+ ctx, spec = base["ctx"], base["spec"]
+ service = EmbedJobService(api_factory)
+ wrong_region = DisclosurePolicyV1(
+ allow_external_disclosure=True,
+ allowed_providers=(PROVIDER,),
+ allowed_regions=("us-east-1",),
+ )
+ for policy in (None, DisclosurePolicyV1(), wrong_region):
+ with pytest.raises(DisclosureDeniedError):
+ await service.create(
+ ctx,
+ spec.repository_id,
+ spec.snapshot_id,
+ base["set_id"],
+ config(),
+ "denied",
+ policy=policy,
+ )
+ assert (
+ await count(
+ migration_factory, "SELECT count(*) FROM jobs WHERE operation='embed_chunk_set'"
+ )
+ == 0
+ )
+
+
+async def test_reserved_keys_are_rejected_and_a_profile_variant_conflicts(
+ api_factory, broker_factory, migration_factory, tmp_path
+):
+ from pydantic import ValidationError
+
+ base = await embed_base(api_factory, broker_factory, migration_factory, tmp_path)
+ ctx, spec = base["ctx"], base["spec"]
+ service = EmbedJobService(api_factory)
+ for key in ("job:x", "child:x"):
+ with pytest.raises(ValidationError):
+ await service.create(
+ ctx,
+ spec.repository_id,
+ spec.snapshot_id,
+ base["set_id"],
+ config(),
+ key,
+ policy=EMBED_POLICY,
+ )
+ await service.create(
+ ctx,
+ spec.repository_id,
+ spec.snapshot_id,
+ base["set_id"],
+ config(),
+ "first",
+ policy=EMBED_POLICY,
+ )
+ with pytest.raises(EmbedUnavailable) as variant: # same index id, different price version
+ await service.create(
+ ctx,
+ spec.repository_id,
+ spec.snapshot_id,
+ base["set_id"],
+ config(price_version="other"),
+ "second",
+ policy=EMBED_POLICY,
+ )
+ assert variant.value.code in {"embed_profile_conflict", "embed_price_unavailable"}
diff --git a/docs/acceptance/bedrock-runtime.md b/docs/acceptance/bedrock-runtime.md
index b85b297..aa0d2a1 100644
--- a/docs/acceptance/bedrock-runtime.md
+++ b/docs/acceptance/bedrock-runtime.md
@@ -28,9 +28,11 @@ test suites; live behaviour is verified only by the owner-run smoke script.
## Limitations
-- **Dense index publication is only partly wired.** The database layer and the embed operation now
- exist ([Dense index publication](dense-index-publication.md)); creating the job, consuming it and
- the HTTP route do not. Before that work, migration 0023 refused it at the database:
+- **Dense index publication is wired through the job system but not composed into any runtime.** The
+ database layer, embed operation, job service, consumer and HTTP routes exist
+ ([Dense index publication](dense-index-publication.md)); no shipped entry point builds the Bedrock
+ client, `embed_config` or the worker's embed operation. Before that work, migration 0023 refused
+ it at the database:
`ck_index_qualified` allows only lexical indexes on a chunk set; the
`codespy_index_result_guard` trigger rejects any `chunk_embeddings` row whose chunk or index
belongs to a chunk set ("qualified embedding publication unavailable"); jobs and receipts exist
diff --git a/docs/acceptance/dense-index-publication.md b/docs/acceptance/dense-index-publication.md
index cb4c62e..7cf5baf 100644
--- a/docs/acceptance/dense-index-publication.md
+++ b/docs/acceptance/dense-index-publication.md
@@ -2,8 +2,8 @@
A sealed lexical chunk set can be embedded through accounted provider calls and published as an
immutable dense index by a fenced `embed_chunk_set` attempt. The database refuses every other
-writer. The job's creation, queue consumer, recovery and HTTP route are not wired yet (see
-Limitations); the layers below are verified directly against PostgreSQL.
+writer. The job is creatable over HTTP, claimed and recovered by the job service, consumed by the
+worker and visible through a status route; the layers below are verified against PostgreSQL.
## Implemented boundary
@@ -32,16 +32,43 @@ Limitations); the layers below are verified directly against PostgreSQL.
resent automatically. `EmbedFinalizer` then publishes the sealed index, embeddings, receipt and
terminal job state in one fenced transaction and removes the staged vectors.
+## Job plumbing
+
+- **Creation.** `POST .../snapshots/{id}/indexes/{chunk_set_id}/dense` takes only an idempotency key:
+ the provider, model, dimension and price version are server configuration
+ (`ApplicationPorts.embed_config`), and the repository's disclosure policy
+ (`ApplicationPorts.embed_policy`) must permit the provider and `ap-south-1` (403
+ `disclosure_denied` otherwise, 503 `embed_unavailable` when either is unconfigured). The chunk set
+ must be sealed with a lexical receipt and the price version must be active. A repeated key replays;
+ a changed request conflicts; an already published profile conflicts. Creating a job reuses the
+ immutable spec for the same profile.
+- **Status and cancel.** `GET .../embed-jobs/{job_id}` returns the job, the receipt once published
+ and `can_cancel`; `POST .../embed-jobs/{job_id}/cancel` cancels. The generic job routes answer 409
+ `embed_operation_unavailable` for this operation, as for the other typed operations.
+- **Job service.** Enqueue into the `embed_jobs` projection with the V7 envelope; claim inserts the
+ attempt spec; transient failures retry with a new fence; recovery covers deadline, lease expiry and
+ user cancellation. `embed_*` failure codes are accepted only for this operation.
+- **Worker.** The consumer parses the V7 envelope first, checks the spec id against the stored job,
+ acks only a durable outcome, defers when no embed operation is configured and maps `EmbedFailure`
+ to its code and transient flag. The operation re-checks the disclosure policy before any spend
+ (`embed_disclosure_denied`), and without a policy resolver the default policy refuses every
+ external provider. `build_worker_runtime(embed=...)` wires it.
+- **Search.** The existing dense search route serves the published index through the accounted
+ query embedder (`ApplicationPorts.query_embedder`).
+
## Limitations
-- **Not yet wired:** creating an embed job (spec insert plus enqueue), `JobService` claim for the new
- operation (it must insert `embed_attempt_specs`), the outbox envelope and consumer dispatch with
- `embed_*` failure codes, recovery and cancel/retry branches, the HTTP route, and the worker
- composition. Until then an attempt exists only in tests.
+- **Recovery of a revoked writer is broken at head for every operation.** Since revision 0040,
+ `lock_scope(access=False)` still runs the actor-write check inside `codespy_lock_scoped_snapshot`,
+ so `recover_due` raises for a job whose principal lost write access. The equivalent
+ `index_snapshot` test fails the same way on `main`; the embed test is a strict expected failure
+ (`test_revoked_writer_is_terminalized_by_recovery`) that flips when the defect is fixed.
+- There is no retry route for embed jobs; creating a request with a new key reuses the spec, resumes
+ from staged vectors and never pays twice for a settled chunk.
- A held chunk needs an operator to resolve its uncertain hold before the job can finish; there is no
automatic resolution.
-- Query-time dense search through the HTTP API needs a configured query embedder and a published
- dense index; neither is enabled in the local runner.
+- The local runner (`scripts/phase2_local.py`) does not enable Bedrock, so no deployment composes the
+ embed operation, the query embedder or `embed_config` yet.
- The 60-second finalization budget has been exercised on small sets only. A 4,096-chunk set (about
16 MiB of JSON vectors at 1024 dimensions) has not been measured.
- The HNSW index covers 1024 dimensions only; other dimensions use an exact scan.
@@ -62,3 +89,11 @@ Owned disposable PostgreSQL 16 at schema head, with the real roles:
re-calling or re-paying, hold after a failed provider call, stale fence refused
- regression: the lexical publication, memory and AST-facts storage suites show the same failures as
before these revisions (seven pre-existing at head)
+- job plumbing: contracts and projection; enqueue idempotency and conflicts; claim binding and retry
+ with a new fence; failure-code scoping; running cancellation recovery; creation refusals (no sealed
+ set, no price, unsupported dimension, forbidden provider or region); status and cancel; the consumer
+ end to end (durable receipt before ack, duplicate wakeup, unconfigured defer, forged spec id,
+ transient failure then hold); HTTP create, replay, CSRF, mismatch, status, cancel, 503, 403 and 404;
+ and a full HTTP create, worker run, status with receipt and dense search hit
+- regression: the retrieval, job, accounting, memory, investigation and AST-facts suites show the
+ same failures with and without these changes
diff --git a/docs/adr/0005-bedrock-runtime.md b/docs/adr/0005-bedrock-runtime.md
index 71f786d..2bf6e31 100644
--- a/docs/adr/0005-bedrock-runtime.md
+++ b/docs/adr/0005-bedrock-runtime.md
@@ -32,6 +32,6 @@ Status: accepted for generation and query embeddings; dense index publication is
A separate fenced `embed_chunk_set` job (own spec, attempt, receipt and staging tables; lexical
tables and guards untouched). Worker spending goes through job-bound `SECURITY DEFINER` functions
that force the job's principal and write an immutable ledger, and every paid vector is staged durably
-before settlement so a retry never pays twice. The database layer and operation are built; job
-creation, consumer, recovery and the HTTP route are deferred. See
+before settlement so a retry never pays twice. The database layer, operation, job service, consumer and HTTP
+routes are built; composing them into a deployed runtime is not. See
[Dense index publication](../acceptance/dense-index-publication.md).
diff --git a/frontend/src/api/generated/index.ts b/frontend/src/api/generated/index.ts
index c2dc414..792e386 100644
--- a/frontend/src/api/generated/index.ts
+++ b/frontend/src/api/generated/index.ts
@@ -1,4 +1,4 @@
// This file is auto-generated by @hey-api/openapi-ts
-export { acquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPost, assembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePost, astFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGet, astFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGet, astFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGet, astFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGet, astFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGet, astFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGet, bindGithubApiV1RepositoriesRepositoryIdGithubBindingPost, cancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPost, cancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPost, cancelJobApiV1JobsJobIdCancelPost, cancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPost, cancelSubmissionApiV1SubmissionsSubmissionIdCancelPost, contextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPost, createAnalysisApiV1RepositoriesRepositoryIdAnalysesPost, createAstFactsApiV1RepositoriesRepositoryIdAstFactsPost, createInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPost, createRepositoryApiV1RepositoriesPost, createScanApiV1RepositoriesRepositoryIdScansPost, createSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPost, createSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPost, deleteSubmissionApiV1SubmissionsSubmissionIdDelete, executeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePost, exportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGet, getAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGet, getFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGet, getIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGet, getInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGet, getJobApiV1JobsJobIdGet, getScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGet, getScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGet, getSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGet, getSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGet, getSubmissionApiV1SubmissionsSubmissionIdGet, getSubmissionApiV1UploadsSubmissionIdGet, getTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGet, githubWebhookApiV1WebhooksGithubPost, healthLiveHealthLiveGet, healthReadyHealthReadyGet, importGithubUrlApiV1GithubImportsPost, indexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGet, inventoryApiV1SnapshotsSnapshotIdInventoryGet, jobEventsApiV1JobsJobIdEventsGet, listInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGet, listInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGet, listMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGet, listRepositoriesApiV1RepositoriesGet, listScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGet, logoutApiV1LogoutPost, logoutApiV1SessionLogoutPost, memoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGet, modelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGet, oauthCallbackApiV1AuthGithubCallbackGet, oauthStartApiV1AuthGithubStartGet, type Options, queryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGet, recordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPost, recordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPost, reportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGet, repositoryMetadataApiV1RepositoriesRepositoryIdMetadataGet, reserveUploadApiV1RepositoriesRepositoryIdUploadsPost, resumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePost, retryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPost, retryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPost, retryJobApiV1JobsJobIdRetryPost, retryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPost, reviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPost, scanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGet, searchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePost, searchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPost, searchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPost, searchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPost, sessionApiV1SessionGet, streamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGet, structuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGet, structuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGet, structuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPost, traceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePost, triageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePost, uploadContentApiV1SubmissionsSubmissionIdContentPut, uploadContentApiV1UploadsSubmissionIdContentPut } from './sdk.gen';
-export type { AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostData, AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostError, AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostErrors, AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostResponse, AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostResponses, AnalysisAcceptedV1, ArchitectureReportV1, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostData, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostError, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostErrors, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostResponse, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostResponses, AstConfigItemV1, AstConfigPageV1, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetData, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetError, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetErrors, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetResponse, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetResponses, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetData, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetError, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetErrors, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetResponse, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetResponses, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetData, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetError, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetErrors, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetResponse, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetResponses, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetData, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetError, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetErrors, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetResponse, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetResponses, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetData, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetError, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetErrors, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetResponse, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetResponses, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetData, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetError, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetErrors, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetResponse, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetResponses, AstFilePageV1, AstFileSummaryV1, AstModelItemV1, AstModelPageV1, AstRouteItemV1, AstRoutePageV1, AstSnapshotSummaryV1, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostData, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostError, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostErrors, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostResponse, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostResponses, BoundaryLinkV1, ByteRangeV1, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostData, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostError, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostErrors, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostResponse, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostResponses, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostData, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostError, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostErrors, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostResponse, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostResponses, CancelJobApiV1JobsJobIdCancelPostData, CancelJobApiV1JobsJobIdCancelPostError, CancelJobApiV1JobsJobIdCancelPostErrors, CancelJobApiV1JobsJobIdCancelPostResponse, CancelJobApiV1JobsJobIdCancelPostResponses, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostData, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostError, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostErrors, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostResponse, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostResponses, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostData, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostError, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostErrors, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostResponse, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostResponses, ChatMessageV1, ChunkKind, ClaimVerificationStatus, ClaimVerificationV1, ClientOptions, ColumnFactV1, ComponentSectionV1, ConfigFactV1, ContextAssemblyRequestV1, ContextBudgetV1, ContextItemV1, ContextPacketV1, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostData, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostError, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostErrors, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostResponse, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostResponses, ContextPreviewRequestV1, ContextPreviewV1, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostData, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostError, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostErrors, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostResponse, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostResponses, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostData, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostError, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostErrors, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostResponse, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostResponses, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostData, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostError, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostErrors, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostResponse, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostResponses, CreateRepositoryApiV1RepositoriesPostData, CreateRepositoryApiV1RepositoriesPostResponse, CreateRepositoryApiV1RepositoriesPostResponses, CreateScanApiV1RepositoriesRepositoryIdScansPostData, CreateScanApiV1RepositoriesRepositoryIdScansPostError, CreateScanApiV1RepositoriesRepositoryIdScansPostErrors, CreateScanApiV1RepositoriesRepositoryIdScansPostResponse, CreateScanApiV1RepositoriesRepositoryIdScansPostResponses, CreateScanRequestV1, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostData, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostError, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostErrors, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostResponse, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostResponses, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostData, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostError, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostErrors, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostResponse, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostResponses, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteData, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteError, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteErrors, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteResponse, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteResponses, DenseSearchHitV1, DenseSearchRequestV1, DenseSearchResponseV1, DependencyFileV1, DependencySelectionV1, DiagnosticFactV1, DiagnosticV1, EdgeCreateV1, EventPageV2, EventPageV3, EvidencePointerV1, ExactSearchRequestV1, ExactSearchType, ExecuteInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePostData, ExecuteInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePostError, ExecuteInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePostErrors, ExecuteInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePostResponses, ExportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGetData, ExportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGetError, ExportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGetErrors, ExportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGetResponses, ExportFactV1, FeatureTraceV1, FileFactsV1, FileOmissionV1, FindingDetailResponseV1, FindingListResponseV1, FindingSummaryV1, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetData, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetError, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetErrors, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetResponse, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetResponses, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetData, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetError, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetErrors, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetResponse, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetResponses, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetData, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetError, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetErrors, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetResponse, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetResponses, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetData, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetError, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetErrors, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetResponse, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetResponses, GetJobApiV1JobsJobIdGetData, GetJobApiV1JobsJobIdGetError, GetJobApiV1JobsJobIdGetErrors, GetJobApiV1JobsJobIdGetResponse, GetJobApiV1JobsJobIdGetResponses, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetData, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetError, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetErrors, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetResponse, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetResponses, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetData, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetError, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetErrors, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetResponse, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetResponses, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetData, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetError, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetErrors, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetResponse, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetResponses, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetData, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetError, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetErrors, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetResponse, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetResponses, GetSubmissionApiV1SubmissionsSubmissionIdGetData, GetSubmissionApiV1SubmissionsSubmissionIdGetError, GetSubmissionApiV1SubmissionsSubmissionIdGetErrors, GetSubmissionApiV1SubmissionsSubmissionIdGetResponse, GetSubmissionApiV1SubmissionsSubmissionIdGetResponses, GetSubmissionApiV1UploadsSubmissionIdGetData, GetSubmissionApiV1UploadsSubmissionIdGetError, GetSubmissionApiV1UploadsSubmissionIdGetErrors, GetSubmissionApiV1UploadsSubmissionIdGetResponse, GetSubmissionApiV1UploadsSubmissionIdGetResponses, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetData, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetError, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetErrors, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetResponse, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetResponses, GitHubAcquisitionV1, GitHubBindingV1, GitHubImportV1, GithubWebhookApiV1WebhooksGithubPostData, GithubWebhookApiV1WebhooksGithubPostResponse, GithubWebhookApiV1WebhooksGithubPostResponses, GraphPage, GraphQueryV1, GraphTraversalV1, HealthLiveHealthLiveGetData, HealthLiveHealthLiveGetResponse, HealthLiveHealthLiveGetResponses, HealthReadyHealthReadyGetData, HealthReadyHealthReadyGetResponses, HttpRequestObservationV1, HttpValidationError, HybridSearchHitV1, HybridSearchRequestV1, HybridSearchResponseV1, IdentityMapV1, ImportFactV1, ImportGithubUrlApiV1GithubImportsPostData, ImportGithubUrlApiV1GithubImportsPostResponse, ImportGithubUrlApiV1GithubImportsPostResponses, ImportNameV1, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetData, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetError, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetErrors, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetResponse, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetResponses, IndexAvailabilityV1, IndexCoverageV1, IndexCreateResponseV1, IndexCreateResponseV1Writable, IndexJobRecordV5, IndexOmissionExampleV1, IndexOmissionV1, IndexReceiptV1, IndexRetryResponseV1, IndexStartRequestV1, IndexStatusV1, IntervalMappingV1, InventoryApiV1SnapshotsSnapshotIdInventoryGetData, InventoryApiV1SnapshotsSnapshotIdInventoryGetError, InventoryApiV1SnapshotsSnapshotIdInventoryGetErrors, InventoryApiV1SnapshotsSnapshotIdInventoryGetResponse, InventoryApiV1SnapshotsSnapshotIdInventoryGetResponses, InventoryEntryV1, InventoryPageV1, InvestigationCancelResponseV1, InvestigationClaimKind, InvestigationClaimV1, InvestigationClaimV2, InvestigationCreateRequestV1, InvestigationCreateRequestV2, InvestigationDepth, InvestigationDetailResponseV1, InvestigationDetailResponseV2, InvestigationEventPageV1, InvestigationEventV1, InvestigationEventV2, InvestigationFeedbackRequestV1, InvestigationJobRecordV1, InvestigationListResponseV1, InvestigationListResponseV2, InvestigationMode, InvestigationReportV1, InvestigationResumeRequestV1, InvestigationRetryRequestV1, InvestigationStartResponseV1, InvestigationStateV1, InvestigationStatus, InvestigationStopReason, InvestigationSummaryV1, InvestigationSummaryV2, InvestigationTargetType, JobEventsApiV1JobsJobIdEventsGetData, JobEventsApiV1JobsJobIdEventsGetError, JobEventsApiV1JobsJobIdEventsGetErrors, JobEventsApiV1JobsJobIdEventsGetResponse, JobEventsApiV1JobsJobIdEventsGetResponses, JobEventV2, JobEventV3, JobRecordV2, JobRecordV3, LexicalSearchRequestV1, ListInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGetData, ListInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGetError, ListInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGetErrors, ListInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGetResponses, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetData, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetError, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetErrors, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetResponse, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetResponses, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetData, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetError, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetErrors, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetResponse, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetResponses, ListRepositoriesApiV1RepositoriesGetData, ListRepositoriesApiV1RepositoriesGetError, ListRepositoriesApiV1RepositoriesGetErrors, ListRepositoriesApiV1RepositoriesGetResponse, ListRepositoriesApiV1RepositoriesGetResponses, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetData, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetError, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetErrors, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetResponse, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetResponses, LogoutApiV1LogoutPostData, LogoutApiV1LogoutPostResponse, LogoutApiV1LogoutPostResponses, LogoutApiV1SessionLogoutPostData, LogoutApiV1SessionLogoutPostResponse, LogoutApiV1SessionLogoutPostResponses, MemoryCreateRequestV1, MemoryEntryV1, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetData, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetError, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetErrors, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetResponse, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetResponses, MemoryHistoryV1, MemoryKind, MemoryManagementPageV1, MemoryQueryResponseV1, MemoryReviewEventV1, MemoryReviewRequestV1, MemoryState, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetData, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetError, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetErrors, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetResponse, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetResponses, ModelAvailabilityItemV1, ModelAvailabilityV1, ModelFactV1, ModelRole, NativeSelectionV1, NodeCreateV1, OauthCallbackApiV1AuthGithubCallbackGetData, OauthCallbackApiV1AuthGithubCallbackGetError, OauthCallbackApiV1AuthGithubCallbackGetErrors, OauthCallbackApiV1AuthGithubCallbackGetResponses, OauthStartApiV1AuthGithubStartGetData, OauthStartApiV1AuthGithubStartGetResponses, ParameterV1, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetData, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetError, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetErrors, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetResponse, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetResponses, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostData, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostError, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostErrors, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostResponse, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostResponses, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostData, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostError, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostErrors, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostResponse, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostResponses, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetData, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetError, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetErrors, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetResponse, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetResponses, RepositoryCreate, RepositoryListItemV1, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetData, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetError, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetErrors, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetResponse, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetResponses, RepositoryPageV1, RepositoryRecord, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostData, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostError, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostErrors, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostResponse, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostResponses, ResolutionV1, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostData, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostError, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostErrors, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostResponse, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostResponses, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostData, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostError, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostErrors, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostResponse, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostResponses, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostData, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostError, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostErrors, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostResponse, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostResponses, RetryJobApiV1JobsJobIdRetryPostData, RetryJobApiV1JobsJobIdRetryPostError, RetryJobApiV1JobsJobIdRetryPostErrors, RetryJobApiV1JobsJobIdRetryPostResponse, RetryJobApiV1JobsJobIdRetryPostResponses, RetryResponseV1, RetryResponseV2, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostData, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostError, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostErrors, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostResponse, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostResponses, RetryScanResponseV3, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostData, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostError, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostErrors, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostResponse, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostResponses, RouteFactV1, RouteObservationV1, RunRef, ScanAcceptedV1, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetData, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetError, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetErrors, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetResponse, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetResponses, ScanConfigurationV1, ScanConfigV1, ScanJobRecordV4, ScannerFileV1, ScannerProfileV1, ScanSummaryResponseV1, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostData, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostError, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostErrors, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostResponse, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostResponses, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostData, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostError, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostErrors, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostResponse, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostResponses, SearchHitV1, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostData, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostError, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostErrors, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostResponse, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostResponses, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostData, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostError, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostErrors, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostResponse, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostResponses, SearchMode, SearchResponseV1, SearchScopeV1, SessionApiV1SessionGetData, SessionApiV1SessionGetResponse, SessionApiV1SessionGetResponses, SessionV1, SignatureV1, SourceExcerptV1, SourceLocationV1, SourceRangeV1, SourceRepresentation, SourceViewResultV1, StreamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGetData, StreamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGetError, StreamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGetErrors, StreamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGetResponses, StructuralAnalysisRequestV1, StructuralCoverageV1, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetData, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetError, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetErrors, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetResponse, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetResponses, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetData, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetError, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetErrors, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetResponse, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetResponses, StructuralLimitsV1, StructuralSectionPageV1, StructuralSummaryV1, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostData, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostError, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostErrors, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostResponse, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostResponses, SubmissionRecordV1, SymbolFactV1, SymbolObservationV1, ToolCallV1, TraceBudgetV1, TraceEdgeV1, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostData, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostError, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostErrors, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostResponse, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostResponses, TraceNodeV1, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostData, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostError, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostErrors, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostResponse, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostResponses, TriageHistoryItemV1, TriageHistoryV1, TriageRecordV1, TriageTransitionV1, UploadContentApiV1SubmissionsSubmissionIdContentPutData, UploadContentApiV1SubmissionsSubmissionIdContentPutError, UploadContentApiV1SubmissionsSubmissionIdContentPutErrors, UploadContentApiV1SubmissionsSubmissionIdContentPutResponse, UploadContentApiV1SubmissionsSubmissionIdContentPutResponses, UploadContentApiV1UploadsSubmissionIdContentPutData, UploadContentApiV1UploadsSubmissionIdContentPutError, UploadContentApiV1UploadsSubmissionIdContentPutErrors, UploadContentApiV1UploadsSubmissionIdContentPutResponse, UploadContentApiV1UploadsSubmissionIdContentPutResponses, UploadReservationV1, ValidationError } from './types.gen';
+export { acquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPost, assembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePost, astFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGet, astFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGet, astFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGet, astFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGet, astFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGet, astFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGet, bindGithubApiV1RepositoriesRepositoryIdGithubBindingPost, cancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPost, cancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPost, cancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPost, cancelJobApiV1JobsJobIdCancelPost, cancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPost, cancelSubmissionApiV1SubmissionsSubmissionIdCancelPost, contextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPost, createAnalysisApiV1RepositoriesRepositoryIdAnalysesPost, createAstFactsApiV1RepositoriesRepositoryIdAstFactsPost, createDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePost, createInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPost, createRepositoryApiV1RepositoriesPost, createScanApiV1RepositoriesRepositoryIdScansPost, createSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPost, createSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPost, deleteSubmissionApiV1SubmissionsSubmissionIdDelete, executeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePost, exportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGet, getAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGet, getEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGet, getFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGet, getIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGet, getInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGet, getJobApiV1JobsJobIdGet, getScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGet, getScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGet, getSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGet, getSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGet, getSubmissionApiV1SubmissionsSubmissionIdGet, getSubmissionApiV1UploadsSubmissionIdGet, getTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGet, githubWebhookApiV1WebhooksGithubPost, healthLiveHealthLiveGet, healthReadyHealthReadyGet, importGithubUrlApiV1GithubImportsPost, indexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGet, inventoryApiV1SnapshotsSnapshotIdInventoryGet, jobEventsApiV1JobsJobIdEventsGet, listInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGet, listInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGet, listMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGet, listRepositoriesApiV1RepositoriesGet, listScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGet, logoutApiV1LogoutPost, logoutApiV1SessionLogoutPost, memoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGet, modelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGet, oauthCallbackApiV1AuthGithubCallbackGet, oauthStartApiV1AuthGithubStartGet, type Options, queryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGet, recordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPost, recordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPost, reportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGet, repositoryMetadataApiV1RepositoriesRepositoryIdMetadataGet, reserveUploadApiV1RepositoriesRepositoryIdUploadsPost, resumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePost, retryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPost, retryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPost, retryJobApiV1JobsJobIdRetryPost, retryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPost, reviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPost, scanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGet, searchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePost, searchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPost, searchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPost, searchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPost, sessionApiV1SessionGet, streamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGet, structuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGet, structuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGet, structuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPost, traceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePost, triageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePost, uploadContentApiV1SubmissionsSubmissionIdContentPut, uploadContentApiV1UploadsSubmissionIdContentPut } from './sdk.gen';
+export type { AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostData, AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostError, AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostErrors, AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostResponse, AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostResponses, AnalysisAcceptedV1, ArchitectureReportV1, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostData, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostError, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostErrors, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostResponse, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostResponses, AstConfigItemV1, AstConfigPageV1, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetData, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetError, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetErrors, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetResponse, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetResponses, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetData, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetError, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetErrors, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetResponse, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetResponses, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetData, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetError, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetErrors, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetResponse, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetResponses, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetData, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetError, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetErrors, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetResponse, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetResponses, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetData, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetError, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetErrors, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetResponse, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetResponses, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetData, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetError, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetErrors, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetResponse, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetResponses, AstFilePageV1, AstFileSummaryV1, AstModelItemV1, AstModelPageV1, AstRouteItemV1, AstRoutePageV1, AstSnapshotSummaryV1, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostData, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostError, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostErrors, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostResponse, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostResponses, BoundaryLinkV1, ByteRangeV1, CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostData, CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostError, CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostErrors, CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostResponse, CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostResponses, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostData, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostError, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostErrors, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostResponse, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostResponses, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostData, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostError, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostErrors, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostResponse, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostResponses, CancelJobApiV1JobsJobIdCancelPostData, CancelJobApiV1JobsJobIdCancelPostError, CancelJobApiV1JobsJobIdCancelPostErrors, CancelJobApiV1JobsJobIdCancelPostResponse, CancelJobApiV1JobsJobIdCancelPostResponses, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostData, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostError, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostErrors, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostResponse, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostResponses, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostData, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostError, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostErrors, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostResponse, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostResponses, ChatMessageV1, ChunkKind, ClaimVerificationStatus, ClaimVerificationV1, ClientOptions, ColumnFactV1, ComponentSectionV1, ConfigFactV1, ContextAssemblyRequestV1, ContextBudgetV1, ContextItemV1, ContextPacketV1, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostData, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostError, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostErrors, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostResponse, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostResponses, ContextPreviewRequestV1, ContextPreviewV1, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostData, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostError, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostErrors, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostResponse, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostResponses, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostData, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostError, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostErrors, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostResponse, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostResponses, CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostData, CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostError, CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostErrors, CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostResponse, CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostResponses, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostData, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostError, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostErrors, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostResponse, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostResponses, CreateRepositoryApiV1RepositoriesPostData, CreateRepositoryApiV1RepositoriesPostResponse, CreateRepositoryApiV1RepositoriesPostResponses, CreateScanApiV1RepositoriesRepositoryIdScansPostData, CreateScanApiV1RepositoriesRepositoryIdScansPostError, CreateScanApiV1RepositoriesRepositoryIdScansPostErrors, CreateScanApiV1RepositoriesRepositoryIdScansPostResponse, CreateScanApiV1RepositoriesRepositoryIdScansPostResponses, CreateScanRequestV1, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostData, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostError, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostErrors, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostResponse, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostResponses, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostData, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostError, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostErrors, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostResponse, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostResponses, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteData, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteError, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteErrors, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteResponse, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteResponses, DenseSearchHitV1, DenseSearchRequestV1, DenseSearchResponseV1, DependencyFileV1, DependencySelectionV1, DiagnosticFactV1, DiagnosticV1, EdgeCreateV1, EmbedCreateResponseV1, EmbedJobRecordV7, EmbedReceiptV1, EmbedStartRequestV1, EmbedStatusV1, EventPageV2, EventPageV3, EvidencePointerV1, ExactSearchRequestV1, ExactSearchType, ExecuteInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePostData, ExecuteInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePostError, ExecuteInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePostErrors, ExecuteInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePostResponses, ExportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGetData, ExportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGetError, ExportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGetErrors, ExportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGetResponses, ExportFactV1, FeatureTraceV1, FileFactsV1, FileOmissionV1, FindingDetailResponseV1, FindingListResponseV1, FindingSummaryV1, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetData, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetError, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetErrors, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetResponse, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetResponses, GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetData, GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetError, GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetErrors, GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetResponse, GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetResponses, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetData, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetError, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetErrors, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetResponse, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetResponses, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetData, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetError, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetErrors, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetResponse, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetResponses, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetData, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetError, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetErrors, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetResponse, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetResponses, GetJobApiV1JobsJobIdGetData, GetJobApiV1JobsJobIdGetError, GetJobApiV1JobsJobIdGetErrors, GetJobApiV1JobsJobIdGetResponse, GetJobApiV1JobsJobIdGetResponses, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetData, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetError, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetErrors, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetResponse, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetResponses, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetData, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetError, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetErrors, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetResponse, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetResponses, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetData, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetError, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetErrors, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetResponse, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetResponses, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetData, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetError, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetErrors, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetResponse, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetResponses, GetSubmissionApiV1SubmissionsSubmissionIdGetData, GetSubmissionApiV1SubmissionsSubmissionIdGetError, GetSubmissionApiV1SubmissionsSubmissionIdGetErrors, GetSubmissionApiV1SubmissionsSubmissionIdGetResponse, GetSubmissionApiV1SubmissionsSubmissionIdGetResponses, GetSubmissionApiV1UploadsSubmissionIdGetData, GetSubmissionApiV1UploadsSubmissionIdGetError, GetSubmissionApiV1UploadsSubmissionIdGetErrors, GetSubmissionApiV1UploadsSubmissionIdGetResponse, GetSubmissionApiV1UploadsSubmissionIdGetResponses, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetData, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetError, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetErrors, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetResponse, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetResponses, GitHubAcquisitionV1, GitHubBindingV1, GitHubImportV1, GithubWebhookApiV1WebhooksGithubPostData, GithubWebhookApiV1WebhooksGithubPostResponse, GithubWebhookApiV1WebhooksGithubPostResponses, GraphPage, GraphQueryV1, GraphTraversalV1, HealthLiveHealthLiveGetData, HealthLiveHealthLiveGetResponse, HealthLiveHealthLiveGetResponses, HealthReadyHealthReadyGetData, HealthReadyHealthReadyGetResponses, HttpRequestObservationV1, HttpValidationError, HybridSearchHitV1, HybridSearchRequestV1, HybridSearchResponseV1, IdentityMapV1, ImportFactV1, ImportGithubUrlApiV1GithubImportsPostData, ImportGithubUrlApiV1GithubImportsPostResponse, ImportGithubUrlApiV1GithubImportsPostResponses, ImportNameV1, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetData, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetError, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetErrors, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetResponse, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetResponses, IndexAvailabilityV1, IndexCoverageV1, IndexCreateResponseV1, IndexCreateResponseV1Writable, IndexJobRecordV5, IndexOmissionExampleV1, IndexOmissionV1, IndexReceiptV1, IndexRetryResponseV1, IndexStartRequestV1, IndexStatusV1, IntervalMappingV1, InventoryApiV1SnapshotsSnapshotIdInventoryGetData, InventoryApiV1SnapshotsSnapshotIdInventoryGetError, InventoryApiV1SnapshotsSnapshotIdInventoryGetErrors, InventoryApiV1SnapshotsSnapshotIdInventoryGetResponse, InventoryApiV1SnapshotsSnapshotIdInventoryGetResponses, InventoryEntryV1, InventoryPageV1, InvestigationCancelResponseV1, InvestigationClaimKind, InvestigationClaimV1, InvestigationClaimV2, InvestigationCreateRequestV1, InvestigationCreateRequestV2, InvestigationDepth, InvestigationDetailResponseV1, InvestigationDetailResponseV2, InvestigationEventPageV1, InvestigationEventV1, InvestigationEventV2, InvestigationFeedbackRequestV1, InvestigationJobRecordV1, InvestigationListResponseV1, InvestigationListResponseV2, InvestigationMode, InvestigationReportV1, InvestigationResumeRequestV1, InvestigationRetryRequestV1, InvestigationStartResponseV1, InvestigationStateV1, InvestigationStatus, InvestigationStopReason, InvestigationSummaryV1, InvestigationSummaryV2, InvestigationTargetType, JobEventsApiV1JobsJobIdEventsGetData, JobEventsApiV1JobsJobIdEventsGetError, JobEventsApiV1JobsJobIdEventsGetErrors, JobEventsApiV1JobsJobIdEventsGetResponse, JobEventsApiV1JobsJobIdEventsGetResponses, JobEventV2, JobEventV3, JobRecordV2, JobRecordV3, LexicalSearchRequestV1, ListInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGetData, ListInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGetError, ListInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGetErrors, ListInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGetResponses, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetData, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetError, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetErrors, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetResponse, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetResponses, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetData, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetError, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetErrors, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetResponse, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetResponses, ListRepositoriesApiV1RepositoriesGetData, ListRepositoriesApiV1RepositoriesGetError, ListRepositoriesApiV1RepositoriesGetErrors, ListRepositoriesApiV1RepositoriesGetResponse, ListRepositoriesApiV1RepositoriesGetResponses, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetData, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetError, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetErrors, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetResponse, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetResponses, LogoutApiV1LogoutPostData, LogoutApiV1LogoutPostResponse, LogoutApiV1LogoutPostResponses, LogoutApiV1SessionLogoutPostData, LogoutApiV1SessionLogoutPostResponse, LogoutApiV1SessionLogoutPostResponses, MemoryCreateRequestV1, MemoryEntryV1, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetData, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetError, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetErrors, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetResponse, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetResponses, MemoryHistoryV1, MemoryKind, MemoryManagementPageV1, MemoryQueryResponseV1, MemoryReviewEventV1, MemoryReviewRequestV1, MemoryState, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetData, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetError, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetErrors, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetResponse, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetResponses, ModelAvailabilityItemV1, ModelAvailabilityV1, ModelFactV1, ModelRole, NativeSelectionV1, NodeCreateV1, OauthCallbackApiV1AuthGithubCallbackGetData, OauthCallbackApiV1AuthGithubCallbackGetError, OauthCallbackApiV1AuthGithubCallbackGetErrors, OauthCallbackApiV1AuthGithubCallbackGetResponses, OauthStartApiV1AuthGithubStartGetData, OauthStartApiV1AuthGithubStartGetResponses, ParameterV1, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetData, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetError, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetErrors, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetResponse, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetResponses, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostData, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostError, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostErrors, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostResponse, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostResponses, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostData, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostError, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostErrors, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostResponse, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostResponses, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetData, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetError, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetErrors, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetResponse, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetResponses, RepositoryCreate, RepositoryListItemV1, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetData, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetError, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetErrors, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetResponse, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetResponses, RepositoryPageV1, RepositoryRecord, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostData, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostError, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostErrors, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostResponse, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostResponses, ResolutionV1, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostData, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostError, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostErrors, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostResponse, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostResponses, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostData, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostError, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostErrors, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostResponse, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostResponses, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostData, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostError, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostErrors, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostResponse, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostResponses, RetryJobApiV1JobsJobIdRetryPostData, RetryJobApiV1JobsJobIdRetryPostError, RetryJobApiV1JobsJobIdRetryPostErrors, RetryJobApiV1JobsJobIdRetryPostResponse, RetryJobApiV1JobsJobIdRetryPostResponses, RetryResponseV1, RetryResponseV2, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostData, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostError, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostErrors, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostResponse, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostResponses, RetryScanResponseV3, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostData, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostError, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostErrors, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostResponse, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostResponses, RouteFactV1, RouteObservationV1, RunRef, ScanAcceptedV1, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetData, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetError, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetErrors, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetResponse, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetResponses, ScanConfigurationV1, ScanConfigV1, ScanJobRecordV4, ScannerFileV1, ScannerProfileV1, ScanSummaryResponseV1, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostData, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostError, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostErrors, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostResponse, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostResponses, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostData, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostError, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostErrors, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostResponse, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostResponses, SearchHitV1, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostData, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostError, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostErrors, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostResponse, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostResponses, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostData, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostError, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostErrors, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostResponse, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostResponses, SearchMode, SearchResponseV1, SearchScopeV1, SessionApiV1SessionGetData, SessionApiV1SessionGetResponse, SessionApiV1SessionGetResponses, SessionV1, SignatureV1, SourceExcerptV1, SourceLocationV1, SourceRangeV1, SourceRepresentation, SourceViewResultV1, StreamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGetData, StreamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGetError, StreamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGetErrors, StreamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGetResponses, StructuralAnalysisRequestV1, StructuralCoverageV1, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetData, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetError, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetErrors, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetResponse, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetResponses, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetData, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetError, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetErrors, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetResponse, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetResponses, StructuralLimitsV1, StructuralSectionPageV1, StructuralSummaryV1, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostData, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostError, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostErrors, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostResponse, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostResponses, SubmissionRecordV1, SymbolFactV1, SymbolObservationV1, ToolCallV1, TraceBudgetV1, TraceEdgeV1, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostData, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostError, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostErrors, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostResponse, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostResponses, TraceNodeV1, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostData, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostError, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostErrors, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostResponse, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostResponses, TriageHistoryItemV1, TriageHistoryV1, TriageRecordV1, TriageTransitionV1, UploadContentApiV1SubmissionsSubmissionIdContentPutData, UploadContentApiV1SubmissionsSubmissionIdContentPutError, UploadContentApiV1SubmissionsSubmissionIdContentPutErrors, UploadContentApiV1SubmissionsSubmissionIdContentPutResponse, UploadContentApiV1SubmissionsSubmissionIdContentPutResponses, UploadContentApiV1UploadsSubmissionIdContentPutData, UploadContentApiV1UploadsSubmissionIdContentPutError, UploadContentApiV1UploadsSubmissionIdContentPutErrors, UploadContentApiV1UploadsSubmissionIdContentPutResponse, UploadContentApiV1UploadsSubmissionIdContentPutResponses, UploadReservationV1, ValidationError } from './types.gen';
diff --git a/frontend/src/api/generated/sdk.gen.ts b/frontend/src/api/generated/sdk.gen.ts
index 018f6d1..2a69b84 100644
--- a/frontend/src/api/generated/sdk.gen.ts
+++ b/frontend/src/api/generated/sdk.gen.ts
@@ -2,7 +2,7 @@
import type { Client, ClientMeta, Options as Options2, RequestResult, TDataShape } from './client';
import { client } from './client.gen';
-import type { AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostData, AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostErrors, AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostResponses, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostData, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostErrors, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostResponses, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetData, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetErrors, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetResponses, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetData, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetErrors, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetResponses, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetData, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetErrors, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetResponses, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetData, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetErrors, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetResponses, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetData, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetErrors, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetResponses, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetData, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetErrors, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetResponses, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostData, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostErrors, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostResponses, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostData, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostErrors, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostResponses, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostData, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostErrors, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostResponses, CancelJobApiV1JobsJobIdCancelPostData, CancelJobApiV1JobsJobIdCancelPostErrors, CancelJobApiV1JobsJobIdCancelPostResponses, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostData, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostErrors, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostResponses, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostData, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostErrors, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostResponses, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostData, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostErrors, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostResponses, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostData, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostErrors, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostResponses, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostData, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostErrors, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostResponses, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostData, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostErrors, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostResponses, CreateRepositoryApiV1RepositoriesPostData, CreateRepositoryApiV1RepositoriesPostResponses, CreateScanApiV1RepositoriesRepositoryIdScansPostData, CreateScanApiV1RepositoriesRepositoryIdScansPostErrors, CreateScanApiV1RepositoriesRepositoryIdScansPostResponses, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostData, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostErrors, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostResponses, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostData, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostErrors, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostResponses, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteData, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteErrors, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteResponses, ExecuteInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePostData, ExecuteInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePostErrors, ExecuteInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePostResponses, ExportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGetData, ExportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGetErrors, ExportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGetResponses, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetData, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetErrors, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetResponses, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetData, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetErrors, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetResponses, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetData, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetErrors, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetResponses, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetData, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetErrors, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetResponses, GetJobApiV1JobsJobIdGetData, GetJobApiV1JobsJobIdGetErrors, GetJobApiV1JobsJobIdGetResponses, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetData, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetErrors, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetResponses, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetData, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetErrors, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetResponses, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetData, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetErrors, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetResponses, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetData, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetErrors, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetResponses, GetSubmissionApiV1SubmissionsSubmissionIdGetData, GetSubmissionApiV1SubmissionsSubmissionIdGetErrors, GetSubmissionApiV1SubmissionsSubmissionIdGetResponses, GetSubmissionApiV1UploadsSubmissionIdGetData, GetSubmissionApiV1UploadsSubmissionIdGetErrors, GetSubmissionApiV1UploadsSubmissionIdGetResponses, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetData, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetErrors, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetResponses, GithubWebhookApiV1WebhooksGithubPostData, GithubWebhookApiV1WebhooksGithubPostResponses, HealthLiveHealthLiveGetData, HealthLiveHealthLiveGetResponses, HealthReadyHealthReadyGetData, HealthReadyHealthReadyGetResponses, ImportGithubUrlApiV1GithubImportsPostData, ImportGithubUrlApiV1GithubImportsPostResponses, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetData, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetErrors, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetResponses, InventoryApiV1SnapshotsSnapshotIdInventoryGetData, InventoryApiV1SnapshotsSnapshotIdInventoryGetErrors, InventoryApiV1SnapshotsSnapshotIdInventoryGetResponses, JobEventsApiV1JobsJobIdEventsGetData, JobEventsApiV1JobsJobIdEventsGetErrors, JobEventsApiV1JobsJobIdEventsGetResponses, ListInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGetData, ListInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGetErrors, ListInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGetResponses, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetData, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetErrors, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetResponses, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetData, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetErrors, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetResponses, ListRepositoriesApiV1RepositoriesGetData, ListRepositoriesApiV1RepositoriesGetErrors, ListRepositoriesApiV1RepositoriesGetResponses, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetData, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetErrors, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetResponses, LogoutApiV1LogoutPostData, LogoutApiV1LogoutPostResponses, LogoutApiV1SessionLogoutPostData, LogoutApiV1SessionLogoutPostResponses, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetData, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetErrors, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetResponses, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetData, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetErrors, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetResponses, OauthCallbackApiV1AuthGithubCallbackGetData, OauthCallbackApiV1AuthGithubCallbackGetErrors, OauthCallbackApiV1AuthGithubCallbackGetResponses, OauthStartApiV1AuthGithubStartGetData, OauthStartApiV1AuthGithubStartGetResponses, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetData, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetErrors, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetResponses, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostData, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostErrors, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostResponses, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostData, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostErrors, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostResponses, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetData, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetErrors, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetResponses, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetData, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetErrors, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetResponses, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostData, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostErrors, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostResponses, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostData, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostErrors, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostResponses, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostData, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostErrors, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostResponses, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostData, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostErrors, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostResponses, RetryJobApiV1JobsJobIdRetryPostData, RetryJobApiV1JobsJobIdRetryPostErrors, RetryJobApiV1JobsJobIdRetryPostResponses, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostData, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostErrors, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostResponses, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostData, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostErrors, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostResponses, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetData, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetErrors, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetResponses, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostData, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostErrors, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostResponses, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostData, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostErrors, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostResponses, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostData, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostErrors, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostResponses, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostData, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostErrors, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostResponses, SessionApiV1SessionGetData, SessionApiV1SessionGetResponses, StreamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGetData, StreamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGetErrors, StreamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGetResponses, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetData, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetErrors, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetResponses, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetData, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetErrors, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetResponses, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostData, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostErrors, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostResponses, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostData, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostErrors, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostResponses, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostData, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostErrors, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostResponses, UploadContentApiV1SubmissionsSubmissionIdContentPutData, UploadContentApiV1SubmissionsSubmissionIdContentPutErrors, UploadContentApiV1SubmissionsSubmissionIdContentPutResponses, UploadContentApiV1UploadsSubmissionIdContentPutData, UploadContentApiV1UploadsSubmissionIdContentPutErrors, UploadContentApiV1UploadsSubmissionIdContentPutResponses } from './types.gen';
+import type { AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostData, AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostErrors, AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostResponses, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostData, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostErrors, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostResponses, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetData, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetErrors, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetResponses, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetData, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetErrors, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetResponses, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetData, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetErrors, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetResponses, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetData, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetErrors, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetResponses, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetData, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetErrors, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetResponses, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetData, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetErrors, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetResponses, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostData, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostErrors, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostResponses, CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostData, CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostErrors, CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostResponses, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostData, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostErrors, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostResponses, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostData, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostErrors, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostResponses, CancelJobApiV1JobsJobIdCancelPostData, CancelJobApiV1JobsJobIdCancelPostErrors, CancelJobApiV1JobsJobIdCancelPostResponses, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostData, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostErrors, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostResponses, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostData, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostErrors, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostResponses, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostData, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostErrors, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostResponses, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostData, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostErrors, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostResponses, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostData, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostErrors, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostResponses, CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostData, CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostErrors, CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostResponses, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostData, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostErrors, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostResponses, CreateRepositoryApiV1RepositoriesPostData, CreateRepositoryApiV1RepositoriesPostResponses, CreateScanApiV1RepositoriesRepositoryIdScansPostData, CreateScanApiV1RepositoriesRepositoryIdScansPostErrors, CreateScanApiV1RepositoriesRepositoryIdScansPostResponses, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostData, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostErrors, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostResponses, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostData, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostErrors, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostResponses, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteData, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteErrors, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteResponses, ExecuteInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePostData, ExecuteInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePostErrors, ExecuteInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePostResponses, ExportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGetData, ExportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGetErrors, ExportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGetResponses, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetData, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetErrors, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetResponses, GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetData, GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetErrors, GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetResponses, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetData, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetErrors, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetResponses, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetData, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetErrors, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetResponses, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetData, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetErrors, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetResponses, GetJobApiV1JobsJobIdGetData, GetJobApiV1JobsJobIdGetErrors, GetJobApiV1JobsJobIdGetResponses, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetData, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetErrors, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetResponses, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetData, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetErrors, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetResponses, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetData, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetErrors, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetResponses, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetData, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetErrors, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetResponses, GetSubmissionApiV1SubmissionsSubmissionIdGetData, GetSubmissionApiV1SubmissionsSubmissionIdGetErrors, GetSubmissionApiV1SubmissionsSubmissionIdGetResponses, GetSubmissionApiV1UploadsSubmissionIdGetData, GetSubmissionApiV1UploadsSubmissionIdGetErrors, GetSubmissionApiV1UploadsSubmissionIdGetResponses, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetData, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetErrors, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetResponses, GithubWebhookApiV1WebhooksGithubPostData, GithubWebhookApiV1WebhooksGithubPostResponses, HealthLiveHealthLiveGetData, HealthLiveHealthLiveGetResponses, HealthReadyHealthReadyGetData, HealthReadyHealthReadyGetResponses, ImportGithubUrlApiV1GithubImportsPostData, ImportGithubUrlApiV1GithubImportsPostResponses, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetData, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetErrors, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetResponses, InventoryApiV1SnapshotsSnapshotIdInventoryGetData, InventoryApiV1SnapshotsSnapshotIdInventoryGetErrors, InventoryApiV1SnapshotsSnapshotIdInventoryGetResponses, JobEventsApiV1JobsJobIdEventsGetData, JobEventsApiV1JobsJobIdEventsGetErrors, JobEventsApiV1JobsJobIdEventsGetResponses, ListInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGetData, ListInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGetErrors, ListInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGetResponses, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetData, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetErrors, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetResponses, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetData, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetErrors, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetResponses, ListRepositoriesApiV1RepositoriesGetData, ListRepositoriesApiV1RepositoriesGetErrors, ListRepositoriesApiV1RepositoriesGetResponses, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetData, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetErrors, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetResponses, LogoutApiV1LogoutPostData, LogoutApiV1LogoutPostResponses, LogoutApiV1SessionLogoutPostData, LogoutApiV1SessionLogoutPostResponses, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetData, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetErrors, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetResponses, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetData, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetErrors, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetResponses, OauthCallbackApiV1AuthGithubCallbackGetData, OauthCallbackApiV1AuthGithubCallbackGetErrors, OauthCallbackApiV1AuthGithubCallbackGetResponses, OauthStartApiV1AuthGithubStartGetData, OauthStartApiV1AuthGithubStartGetResponses, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetData, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetErrors, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetResponses, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostData, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostErrors, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostResponses, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostData, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostErrors, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostResponses, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetData, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetErrors, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetResponses, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetData, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetErrors, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetResponses, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostData, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostErrors, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostResponses, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostData, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostErrors, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostResponses, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostData, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostErrors, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostResponses, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostData, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostErrors, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostResponses, RetryJobApiV1JobsJobIdRetryPostData, RetryJobApiV1JobsJobIdRetryPostErrors, RetryJobApiV1JobsJobIdRetryPostResponses, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostData, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostErrors, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostResponses, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostData, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostErrors, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostResponses, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetData, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetErrors, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetResponses, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostData, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostErrors, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostResponses, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostData, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostErrors, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostResponses, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostData, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostErrors, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostResponses, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostData, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostErrors, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostResponses, SessionApiV1SessionGetData, SessionApiV1SessionGetResponses, StreamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGetData, StreamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGetErrors, StreamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGetResponses, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetData, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetErrors, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetResponses, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetData, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetErrors, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetResponses, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostData, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostErrors, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostResponses, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostData, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostErrors, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostResponses, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostData, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostErrors, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostResponses, UploadContentApiV1SubmissionsSubmissionIdContentPutData, UploadContentApiV1SubmissionsSubmissionIdContentPutErrors, UploadContentApiV1SubmissionsSubmissionIdContentPutResponses, UploadContentApiV1UploadsSubmissionIdContentPutData, UploadContentApiV1UploadsSubmissionIdContentPutErrors, UploadContentApiV1UploadsSubmissionIdContentPutResponses } from './types.gen';
export type Options = Options2 & {
/**
@@ -329,6 +329,16 @@ export const contextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapsho
}
});
+/**
+ * Get Embed Job
+ */
+export const getEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGet = (options: Options): RequestResult => (options.client ?? client).get({ url: '/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/embed-jobs/{job_id}', ...options });
+
+/**
+ * Cancel Embed Job
+ */
+export const cancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPost = (options: Options): RequestResult => (options.client ?? client).post({ url: '/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/embed-jobs/{job_id}/cancel', ...options });
+
/**
* Get Source View Endpoint
*/
@@ -407,6 +417,18 @@ export const createSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotId
}
});
+/**
+ * Create Dense Index
+ */
+export const createDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePost = (options: Options): RequestResult => (options.client ?? client).post({
+ url: '/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/indexes/{chunk_set_id}/dense',
+ ...options,
+ headers: {
+ 'Content-Type': 'application/json',
+ ...options.headers
+ }
+});
+
/**
* Query Memory Endpoint
*/
diff --git a/frontend/src/api/generated/types.gen.ts b/frontend/src/api/generated/types.gen.ts
index 1a9661b..49daf61 100644
--- a/frontend/src/api/generated/types.gen.ts
+++ b/frontend/src/api/generated/types.gen.ts
@@ -1077,6 +1077,165 @@ export type EdgeCreateV1 = {
target_local_id: string;
};
+/**
+ * EmbedCreateResponseV1
+ */
+export type EmbedCreateResponseV1 = {
+ job: EmbedJobRecordV7;
+ /**
+ * Schema Version
+ */
+ schema_version?: 1;
+};
+
+/**
+ * EmbedJobRecordV7
+ */
+export type EmbedJobRecordV7 = {
+ /**
+ * Attempt Count
+ */
+ attempt_count: number;
+ /**
+ * Created At
+ */
+ created_at: string;
+ /**
+ * Deadline
+ */
+ deadline: string;
+ /**
+ * Embed Spec Id
+ */
+ embed_spec_id: string;
+ /**
+ * Failure Code
+ */
+ failure_code: string | null;
+ /**
+ * Finished At
+ */
+ finished_at: string | null;
+ /**
+ * Id
+ */
+ id: string;
+ /**
+ * Max Attempts
+ */
+ max_attempts: number;
+ /**
+ * Operation
+ */
+ operation?: 'embed_chunk_set';
+ /**
+ * Org Id
+ */
+ org_id: string;
+ /**
+ * Repository Id
+ */
+ repository_id: string;
+ /**
+ * Result Index Id
+ */
+ result_index_id: string | null;
+ /**
+ * Schema Version
+ */
+ schema_version?: 7;
+ /**
+ * Snapshot Id
+ */
+ snapshot_id: string;
+ /**
+ * State
+ */
+ state: 'queued' | 'running' | 'retry_wait' | 'cancelling' | 'succeeded' | 'partial' | 'failed' | 'cancelled';
+};
+
+/**
+ * EmbedReceiptV1
+ */
+export type EmbedReceiptV1 = {
+ /**
+ * Chunk Count
+ */
+ chunk_count: number;
+ /**
+ * Chunk Set Id
+ */
+ chunk_set_id: string;
+ /**
+ * Coverage
+ */
+ coverage: 'complete' | 'partial';
+ /**
+ * Embedding Digest
+ */
+ embedding_digest: string;
+ /**
+ * Index Id
+ */
+ index_id: string;
+ /**
+ * Job Id
+ */
+ job_id: string;
+ /**
+ * Ledger Digest
+ */
+ ledger_digest: string;
+ /**
+ * Org Id
+ */
+ org_id: string;
+ /**
+ * Schema Version
+ */
+ schema_version?: 1;
+ /**
+ * Spec Id
+ */
+ spec_id: string;
+ /**
+ * Token Total
+ */
+ token_total: number;
+};
+
+/**
+ * EmbedStartRequestV1
+ *
+ * HTTP body: only the idempotency key; the profile is server configuration.
+ */
+export type EmbedStartRequestV1 = {
+ /**
+ * Request Key
+ */
+ request_key: string;
+ /**
+ * Schema Version
+ */
+ schema_version?: 1;
+};
+
+/**
+ * EmbedStatusV1
+ */
+export type EmbedStatusV1 = {
+ /**
+ * Can Cancel
+ */
+ can_cancel: boolean;
+ job: EmbedJobRecordV7;
+ receipt?: EmbedReceiptV1 | null;
+ /**
+ * Schema Version
+ */
+ schema_version?: 1;
+};
+
/**
* EventPageV2
*/
@@ -6938,6 +7097,82 @@ export type ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshot
export type ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostResponse = ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostResponses[keyof ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostResponses];
+export type GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetData = {
+ body?: never;
+ path: {
+ /**
+ * Repository Id
+ */
+ repository_id: string;
+ /**
+ * Snapshot Id
+ */
+ snapshot_id: string;
+ /**
+ * Job Id
+ */
+ job_id: string;
+ };
+ query?: never;
+ url: '/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/embed-jobs/{job_id}';
+};
+
+export type GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetErrors = {
+ /**
+ * Validation Error
+ */
+ 422: HttpValidationError;
+};
+
+export type GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetError = GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetErrors[keyof GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetErrors];
+
+export type GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetResponses = {
+ /**
+ * Successful Response
+ */
+ 200: EmbedStatusV1;
+};
+
+export type GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetResponse = GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetResponses[keyof GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetResponses];
+
+export type CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostData = {
+ body?: never;
+ path: {
+ /**
+ * Repository Id
+ */
+ repository_id: string;
+ /**
+ * Snapshot Id
+ */
+ snapshot_id: string;
+ /**
+ * Job Id
+ */
+ job_id: string;
+ };
+ query?: never;
+ url: '/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/embed-jobs/{job_id}/cancel';
+};
+
+export type CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostErrors = {
+ /**
+ * Validation Error
+ */
+ 422: HttpValidationError;
+};
+
+export type CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostError = CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostErrors[keyof CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostErrors];
+
+export type CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostResponses = {
+ /**
+ * Successful Response
+ */
+ 200: EmbedStatusV1;
+};
+
+export type CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostResponse = CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostResponses[keyof CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostResponses];
+
export type GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetData = {
body?: never;
path: {
@@ -7329,6 +7564,44 @@ export type CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdI
export type CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostResponse = CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostResponses[keyof CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostResponses];
+export type CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostData = {
+ body: EmbedStartRequestV1;
+ path: {
+ /**
+ * Repository Id
+ */
+ repository_id: string;
+ /**
+ * Snapshot Id
+ */
+ snapshot_id: string;
+ /**
+ * Chunk Set Id
+ */
+ chunk_set_id: string;
+ };
+ query?: never;
+ url: '/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/indexes/{chunk_set_id}/dense';
+};
+
+export type CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostErrors = {
+ /**
+ * Validation Error
+ */
+ 422: HttpValidationError;
+};
+
+export type CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostError = CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostErrors[keyof CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostErrors];
+
+export type CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostResponses = {
+ /**
+ * Successful Response
+ */
+ 202: EmbedCreateResponseV1;
+};
+
+export type CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostResponse = CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostResponses[keyof CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostResponses];
+
export type QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetData = {
body?: never;
path: {
From 94a1c3e4b5c3e6d8c4d2a8527034c0b5823d92d3 Mon Sep 17 00:00:00 2001
From: Aman Bhaskar
Date: Thu, 12 Nov 2026 21:41:26 +0530
Subject: [PATCH 06/55] fix(jobs): lock the snapshot for recovery without the
actor access check
---
.github/workflows/application-integration.yml | 1 +
.../versions/0047_recovery_snapshot_lock.py | 45 +++++++
backend/app/security/authorization.py | 16 +++
backend/app/services/jobs.py | 11 +-
.../storage/test_embed_job_service.py | 8 --
.../storage/test_recovery_snapshot_lock.py | 113 ++++++++++++++++++
6 files changed, 185 insertions(+), 9 deletions(-)
create mode 100644 backend/alembic/versions/0047_recovery_snapshot_lock.py
create mode 100644 backend/tests/retrieval/storage/test_recovery_snapshot_lock.py
diff --git a/.github/workflows/application-integration.yml b/.github/workflows/application-integration.yml
index 2de83e8..9e98d1b 100644
--- a/.github/workflows/application-integration.yml
+++ b/.github/workflows/application-integration.yml
@@ -105,6 +105,7 @@ jobs:
'backend/tests/retrieval/storage/test_embed_job_create.py',
'backend/tests/retrieval/storage/test_embed_consumer.py',
'backend/tests/retrieval/storage/test_embed_api.py',
+ 'backend/tests/retrieval/storage/test_recovery_snapshot_lock.py',
'backend/tests/phase2/integration/test_github_public_import.py',
'backend/tests/phase2/api/test_github_import_api.py',
'backend/tests/ast_facts',
diff --git a/backend/alembic/versions/0047_recovery_snapshot_lock.py b/backend/alembic/versions/0047_recovery_snapshot_lock.py
new file mode 100644
index 0000000..c1a6d2d
--- /dev/null
+++ b/backend/alembic/versions/0047_recovery_snapshot_lock.py
@@ -0,0 +1,45 @@
+"""Lock a sealed snapshot for recovery without checking the actor's current access.
+
+Recovery must close a job even when its principal has lost write access. Since revision 0040 the
+only snapshot-locking function runs the actor-write check unconditionally, so recovery of a revoked
+writer raised and could abort a whole recovery pass. This function takes the same lock on the same
+rows (a sealed snapshot of the named repository) and performs no actor check. It is granted to the
+worker role only; every normal authorization path keeps using `codespy_lock_scoped_snapshot`.
+"""
+
+from alembic import op
+
+revision = "0047_recovery_snapshot_lock"
+down_revision = "0046_dense_index_accounting"
+branch_labels = None
+depends_on = None
+
+UP = r"""
+SET LOCAL lock_timeout='5s';
+CREATE FUNCTION public.codespy_lock_snapshot_for_recovery(oid uuid,repo uuid,snapshot uuid)
+RETURNS boolean LANGUAGE plpgsql SECURITY DEFINER SET search_path=pg_catalog,public AS $$
+BEGIN
+ PERFORM 1 FROM public.source_snapshots WHERE org_id=oid AND repository_id=repo
+ AND id=snapshot AND state='sealed' FOR UPDATE;
+ RETURN FOUND;
+END $$;
+REVOKE ALL ON FUNCTION public.codespy_lock_snapshot_for_recovery(uuid,uuid,uuid) FROM PUBLIC;
+DO $$ BEGIN
+ IF EXISTS(SELECT 1 FROM pg_roles WHERE rolname='p2_broker') THEN
+ GRANT EXECUTE ON FUNCTION public.codespy_lock_snapshot_for_recovery(uuid,uuid,uuid) TO p2_broker;
+ END IF;
+END $$;
+"""
+
+DOWN = r"""
+SET LOCAL lock_timeout='5s';
+DROP FUNCTION public.codespy_lock_snapshot_for_recovery(uuid,uuid,uuid);
+"""
+
+
+def upgrade() -> None:
+ op.execute(UP)
+
+
+def downgrade() -> None:
+ op.execute(DOWN)
diff --git a/backend/app/security/authorization.py b/backend/app/security/authorization.py
index 404eb57..cda7366 100644
--- a/backend/app/security/authorization.py
+++ b/backend/app/security/authorization.py
@@ -139,6 +139,22 @@ async def lock_scope(
if repo is None:
raise ScopeViolation("repository unavailable")
if snapshot_id is not None:
+ if (
+ not access
+ and session.bind is not None
+ and session.bind.dialect.name == "postgresql"
+ and await session.scalar(
+ text("SELECT to_regproc('public.codespy_lock_snapshot_for_recovery')")
+ )
+ ):
+ # Recovery must lock the snapshot even after the principal lost access.
+ found = await session.scalar(
+ text("SELECT public.codespy_lock_snapshot_for_recovery(:org,:repo,:snapshot)"),
+ {"org": org_id, "repo": repository_id, "snapshot": snapshot_id},
+ )
+ if not found:
+ raise ScopeViolation("snapshot unavailable")
+ return ctx
if (
session.bind is not None
and session.bind.dialect.name == "postgresql"
diff --git a/backend/app/services/jobs.py b/backend/app/services/jobs.py
index 709c38a..f4d9d33 100644
--- a/backend/app/services/jobs.py
+++ b/backend/app/services/jobs.py
@@ -1,5 +1,6 @@
"""Durable jobs. Queue delivery never supplies publication or lifecycle authority."""
+import logging
from datetime import UTC, datetime, timedelta
from typing import TYPE_CHECKING, Any, cast
from uuid import UUID, uuid4
@@ -52,6 +53,9 @@ def _ensure_utc(dt: datetime | None) -> datetime:
CLAIM_CAPACITY_LOCK = 0x4353505932
+logger = logging.getLogger(__name__)
+
+
class JobService:
def __init__(self, factory: async_sessionmaker[AsyncSession], *, lease_seconds: float = 90):
if not 0 < lease_seconds <= 90:
@@ -987,7 +991,12 @@ async def recover_due(self, limit: int = 100) -> int:
changed = 0
for org_id, job_id in candidates:
async with transaction(self.factory) as s:
- job, _ = await self._locked(s, org_id, job_id, access=False)
+ try:
+ job, _ = await self._locked(s, org_id, job_id, access=False)
+ except ScopeViolation:
+ # One job whose scope is gone must not block recovery of the others.
+ logger.warning("recovery_scope_unavailable")
+ continue
if job["state"] in TERMINAL:
continue
now = await database_now(s)
diff --git a/backend/tests/retrieval/storage/test_embed_job_service.py b/backend/tests/retrieval/storage/test_embed_job_service.py
index 887c596..e4ce1f7 100644
--- a/backend/tests/retrieval/storage/test_embed_job_service.py
+++ b/backend/tests/retrieval/storage/test_embed_job_service.py
@@ -126,14 +126,6 @@ async def test_running_cancellation_is_terminalized_by_recovery(
assert state[0]["state"] == "cancelled"
-@pytest.mark.xfail(
- strict=True,
- reason=(
- "pre-existing: since revision 0040, lock_scope(access=False) still runs the actor-write "
- "check inside codespy_lock_scoped_snapshot, so recovery raises for a revoked writer; the "
- "index_snapshot equivalent fails the same way at head"
- ),
-)
async def test_revoked_writer_is_terminalized_by_recovery(
api_factory, broker_factory, migration_factory, tmp_path
):
diff --git a/backend/tests/retrieval/storage/test_recovery_snapshot_lock.py b/backend/tests/retrieval/storage/test_recovery_snapshot_lock.py
new file mode 100644
index 0000000..f94c38d
--- /dev/null
+++ b/backend/tests/retrieval/storage/test_recovery_snapshot_lock.py
@@ -0,0 +1,113 @@
+"""Recovery locks the snapshot without the actor check; normal authorization is unchanged."""
+
+import os
+from uuid import uuid4
+
+import pytest
+from app.contracts.embedding_jobs import EnqueueEmbedJobV7
+from app.domain.errors import ScopeViolation
+from app.models.phase2_tables import PHASE2_TABLES
+from app.security.authorization import lock_scope
+from app.services.jobs import JobService
+from sqlalchemy import func, text, update
+from sqlalchemy.exc import DBAPIError
+
+from tests.retrieval.storage.test_dense_guards import embed_base
+
+pytestmark = pytest.mark.skipif(
+ os.environ.get("CODESPY_TEST_SCHEMA_TARGET") != "head",
+ reason="requires the current schema head (revision 0047)",
+)
+
+LOCK = "SELECT public.codespy_lock_snapshot_for_recovery(:org,:repo,:snap)"
+
+
+def request(base, key):
+ return EnqueueEmbedJobV7(
+ repository_id=base["spec"].repository_id,
+ snapshot_id=base["spec"].snapshot_id,
+ embed_spec_id=base["spec_id"],
+ config_hash=base["config_hash"],
+ request_key=key,
+ )
+
+
+async def revoke(migration_factory, ctx):
+ grants = PHASE2_TABLES["repository_grants"]
+ async with migration_factory() as session, session.begin():
+ await session.execute(
+ update(grants)
+ .where(grants.c.org_id == ctx.org_id, grants.c.principal_id == ctx.principal_id)
+ .values(revoked_at=func.clock_timestamp())
+ )
+
+
+async def test_the_recovery_lock_checks_the_snapshot_not_the_actor(
+ api_factory, broker_factory, migration_factory, tmp_path
+):
+ base = await embed_base(api_factory, broker_factory, migration_factory, tmp_path)
+ org, spec = base["ctx"].org_id, base["spec"]
+ args = {"org": org, "repo": spec.repository_id, "snap": spec.snapshot_id}
+ async with broker_factory() as session, session.begin():
+ assert await session.scalar(text(LOCK), args) is True
+ for wrong in (
+ {**args, "org": uuid4()},
+ {**args, "repo": uuid4()},
+ {**args, "snap": uuid4()},
+ ):
+ assert await session.scalar(text(LOCK), wrong) is False
+ with pytest.raises(DBAPIError): # the API role may not execute it
+ async with api_factory() as session, session.begin():
+ await session.scalar(text(LOCK), args)
+
+
+async def test_normal_authorization_still_rejects_a_revoked_actor(
+ api_factory, broker_factory, migration_factory, tmp_path
+):
+ base = await embed_base(api_factory, broker_factory, migration_factory, tmp_path)
+ ctx, spec = base["ctx"], base["spec"]
+ await revoke(migration_factory, ctx)
+ with pytest.raises(ScopeViolation): # access=True keeps the actor check
+ async with broker_factory() as session, session.begin():
+ await lock_scope(
+ session, ctx.org_id, ctx.principal_id, spec.repository_id, spec.snapshot_id
+ )
+ async with broker_factory() as session, session.begin(): # recovery does not need it
+ await lock_scope(
+ session,
+ ctx.org_id,
+ ctx.principal_id,
+ spec.repository_id,
+ spec.snapshot_id,
+ access=False,
+ )
+
+
+async def test_one_unlockable_job_does_not_block_recovery_of_the_rest(
+ api_factory, broker_factory, migration_factory, tmp_path, monkeypatch
+):
+ base = await embed_base(api_factory, broker_factory, migration_factory, tmp_path)
+ ctx = base["ctx"]
+ first = await JobService(api_factory).enqueue(ctx, request(base, "stuck"))
+ second = await JobService(api_factory).enqueue(ctx, request(base, "recoverable"))
+ await revoke(migration_factory, ctx)
+ real = JobService._locked
+
+ async def locked(self, s, org_id, job_id, **kwargs):
+ if job_id == first.id:
+ raise ScopeViolation("snapshot unavailable")
+ return await real(self, s, org_id, job_id, **kwargs)
+
+ monkeypatch.setattr(JobService, "_locked", locked)
+ changed = await JobService(broker_factory).recover_due()
+ assert changed >= 1
+ async with migration_factory() as session:
+ rows = {
+ row.id: (row.state, row.failure_code)
+ for row in await session.execute(
+ text("SELECT id,state,failure_code FROM jobs WHERE id IN (:a,:b)"),
+ {"a": first.id, "b": second.id},
+ )
+ }
+ assert rows[second.id] == ("failed", "access_revoked")
+ assert rows[first.id][0] == "queued" # left for a later pass, not terminalized by mistake
From 0b5f8fcbc0a4e453076a397ad75c61556200b7ec Mon Sep 17 00:00:00 2001
From: Aman Bhaskar
Date: Thu, 12 Nov 2026 21:55:00 +0530
Subject: [PATCH 07/55] fix(jobs): privilege-aware recovery lock, named skip
log and stricter tests
---
backend/app/security/authorization.py | 6 +++++-
backend/app/services/jobs.py | 2 +-
.../storage/test_recovery_snapshot_lock.py | 20 +++++++++++++++++--
3 files changed, 24 insertions(+), 4 deletions(-)
diff --git a/backend/app/security/authorization.py b/backend/app/security/authorization.py
index cda7366..6599eed 100644
--- a/backend/app/security/authorization.py
+++ b/backend/app/security/authorization.py
@@ -144,7 +144,11 @@ async def lock_scope(
and session.bind is not None
and session.bind.dialect.name == "postgresql"
and await session.scalar(
- text("SELECT to_regproc('public.codespy_lock_snapshot_for_recovery')")
+ # Usable only if present and executable by this role; else the checked lock.
+ text(
+ "SELECT CASE WHEN to_regprocedure(:sig) IS NULL THEN false "
+ "ELSE has_function_privilege(current_user, :sig, 'EXECUTE') END"
+ ).bindparams(sig="public.codespy_lock_snapshot_for_recovery(uuid,uuid,uuid)")
)
):
# Recovery must lock the snapshot even after the principal lost access.
diff --git a/backend/app/services/jobs.py b/backend/app/services/jobs.py
index f4d9d33..5f21e01 100644
--- a/backend/app/services/jobs.py
+++ b/backend/app/services/jobs.py
@@ -995,7 +995,7 @@ async def recover_due(self, limit: int = 100) -> int:
job, _ = await self._locked(s, org_id, job_id, access=False)
except ScopeViolation:
# One job whose scope is gone must not block recovery of the others.
- logger.warning("recovery_scope_unavailable")
+ logger.warning("recovery_scope_unavailable org=%s job=%s", org_id, job_id)
continue
if job["state"] in TERMINAL:
continue
diff --git a/backend/tests/retrieval/storage/test_recovery_snapshot_lock.py b/backend/tests/retrieval/storage/test_recovery_snapshot_lock.py
index f94c38d..786b2e4 100644
--- a/backend/tests/retrieval/storage/test_recovery_snapshot_lock.py
+++ b/backend/tests/retrieval/storage/test_recovery_snapshot_lock.py
@@ -56,7 +56,7 @@ async def test_the_recovery_lock_checks_the_snapshot_not_the_actor(
{**args, "snap": uuid4()},
):
assert await session.scalar(text(LOCK), wrong) is False
- with pytest.raises(DBAPIError): # the API role may not execute it
+ with pytest.raises(DBAPIError, match="permission denied"): # the API role may not execute it
async with api_factory() as session, session.begin():
await session.scalar(text(LOCK), args)
@@ -84,7 +84,7 @@ async def test_normal_authorization_still_rejects_a_revoked_actor(
async def test_one_unlockable_job_does_not_block_recovery_of_the_rest(
- api_factory, broker_factory, migration_factory, tmp_path, monkeypatch
+ api_factory, broker_factory, migration_factory, tmp_path, monkeypatch, caplog
):
base = await embed_base(api_factory, broker_factory, migration_factory, tmp_path)
ctx = base["ctx"]
@@ -111,3 +111,19 @@ async def locked(self, s, org_id, job_id, **kwargs):
}
assert rows[second.id] == ("failed", "access_revoked")
assert rows[first.id][0] == "queued" # left for a later pass, not terminalized by mistake
+ assert f"job={first.id}" in caplog.text # diagnosable: the skipped job is named in the log
+
+
+async def test_only_a_scope_violation_is_skipped_other_errors_still_surface(
+ api_factory, broker_factory, migration_factory, tmp_path, monkeypatch
+):
+ base = await embed_base(api_factory, broker_factory, migration_factory, tmp_path)
+ await JobService(api_factory).enqueue(base["ctx"], request(base, "boom"))
+ await revoke(migration_factory, base["ctx"])
+
+ async def locked(self, s, org_id, job_id, **kwargs):
+ raise RuntimeError("unexpected failure")
+
+ monkeypatch.setattr(JobService, "_locked", locked)
+ with pytest.raises(RuntimeError):
+ await JobService(broker_factory).recover_due()
From 7139a610308ef859f7d84cff26742cab361cc8e3 Mon Sep 17 00:00:00 2001
From: Aman Bhaskar
Date: Thu, 12 Nov 2026 22:24:41 +0530
Subject: [PATCH 08/55] feat(report): evidence-first architecture report and
dependency graph contracts
---
backend/app/contracts/architecture_report.py | 197 ++++++++++++++++++
.../test_architecture_report_contracts.py | 133 ++++++++++++
2 files changed, 330 insertions(+)
create mode 100644 backend/app/contracts/architecture_report.py
create mode 100644 backend/tests/phase3/unit/test_architecture_report_contracts.py
diff --git a/backend/app/contracts/architecture_report.py b/backend/app/contracts/architecture_report.py
new file mode 100644
index 0000000..f3fe94f
--- /dev/null
+++ b/backend/app/contracts/architecture_report.py
@@ -0,0 +1,197 @@
+"""Evidence-first architecture report and dependency graph contracts.
+
+Every statement is typed as an observation (read directly from a fact), a derivation (computed
+mechanically from observations), an inference (a judgment that is not proven by the facts) or an
+unknown (something the facts cannot settle). Unresolved is unknown, never absent. A statement is a
+template code plus scalar parameters, so text is rendered deterministically and never carries source
+values or quotes; evidence points at files and ranges instead.
+"""
+
+import hashlib
+from typing import Any, Literal, Self
+from uuid import UUID
+
+from pydantic import Field, model_validator
+
+from app.domain.canonical_json import canonical_bytes, semantic_digest
+from app.domain.scope import Contract
+from app.domain.source_ranges import SourceRangeV1
+
+MAX_NODES = 20_000
+MAX_EDGES = 100_000
+MAX_REPORT_BYTES = 8 * 1024 * 1024
+
+StatementKind = Literal["observation", "derivation", "inference", "unknown"]
+Resolution = Literal["resolved", "ambiguous", "external", "unresolved"]
+FactKind = Literal["file", "import", "export", "route", "model", "config", "symbol"]
+Scalar = str | int | float | bool
+SectionName = Literal[
+ "overview",
+ "components",
+ "dependencies",
+ "api_surface",
+ "data_model",
+ "configuration",
+ "entry_points",
+ "coverage",
+]
+
+
+class EvidenceRefV1(Contract):
+ file_id: UUID
+ path: str = Field(min_length=1, max_length=1024)
+ fact: FactKind
+ range: SourceRangeV1 | None = None
+
+
+class StatementV1(Contract):
+ kind: StatementKind
+ code: str = Field(min_length=1, max_length=96, pattern=r"^[a-z][a-z0-9_.]*$")
+ params: dict[str, Scalar] = Field(default_factory=dict, max_length=16)
+ evidence: tuple[EvidenceRefV1, ...] = Field(default=(), max_length=8)
+ evidence_total: int = Field(default=0, ge=0)
+
+ @model_validator(mode="before")
+ @classmethod
+ def default_total(cls, data: Any) -> Any:
+ # Unless a caller says more evidence exists than is shown, the total is what is shown.
+ if isinstance(data, dict) and "evidence_total" not in data:
+ return {**data, "evidence_total": len(data.get("evidence", ()))}
+ return data
+
+ @model_validator(mode="after")
+ def bounded(self) -> Self:
+ if any(not 1 <= len(k) <= 64 for k in self.params):
+ raise ValueError("parameter names must be 1-64 characters")
+ if any(isinstance(v, str) and len(v) > 512 for v in self.params.values()):
+ raise ValueError("parameter values are bounded")
+ if self.evidence_total < len(self.evidence):
+ raise ValueError("evidence_total cannot be below the evidence shown")
+ # An observation must point at something; an unknown may not claim to be observed.
+ if self.kind == "observation" and not self.evidence:
+ raise ValueError("an observation needs evidence")
+ return self
+
+
+class TableV1(Contract):
+ name: str = Field(min_length=1, max_length=64, pattern=r"^[a-z][a-z0-9_]*$")
+ columns: tuple[str, ...] = Field(min_length=1, max_length=12)
+ rows: tuple[tuple[Scalar, ...], ...] = Field(default=(), max_length=200)
+ rows_total: int = Field(default=0, ge=0)
+
+ @model_validator(mode="after")
+ def rectangular(self) -> Self:
+ if any(len(row) != len(self.columns) for row in self.rows):
+ raise ValueError("table rows must match the columns")
+ if self.rows_total < len(self.rows):
+ raise ValueError("rows_total cannot be below the rows shown")
+ return self
+
+
+class SectionV1(Contract):
+ name: SectionName
+ statements: tuple[StatementV1, ...] = Field(default=(), max_length=200)
+ tables: tuple[TableV1, ...] = Field(default=(), max_length=8)
+
+
+class GraphNodeV1(Contract):
+ id: str = Field(min_length=1, max_length=1100)
+ kind: Literal["file", "external"]
+ label: str = Field(min_length=1, max_length=1024)
+ language: str | None = Field(default=None, max_length=64)
+ file_id: UUID | None = None
+
+
+class GraphEdgeV1(Contract):
+ source: str = Field(min_length=1, max_length=1100)
+ target: str | None = Field(default=None, max_length=1100)
+ candidates: tuple[str, ...] = Field(default=(), max_length=8)
+ module: str = Field(max_length=512)
+ import_kind: str = Field(min_length=1, max_length=32)
+ resolution: Resolution
+ evidence: EvidenceRefV1
+
+ @model_validator(mode="after")
+ def coherent(self) -> Self:
+ resolved = self.resolution in {"resolved", "external"}
+ if resolved != (self.target is not None):
+ raise ValueError("only resolved and external edges have a target")
+ if (self.resolution == "ambiguous") != (len(self.candidates) >= 2):
+ raise ValueError("an ambiguous edge lists at least two candidates, others none")
+ return self
+
+
+class DependencyGraphV1(Contract):
+ nodes: tuple[GraphNodeV1, ...] = Field(default=(), max_length=MAX_NODES)
+ edges: tuple[GraphEdgeV1, ...] = Field(default=(), max_length=MAX_EDGES)
+
+ @model_validator(mode="after")
+ def closed(self) -> Self:
+ ids = [n.id for n in self.nodes]
+ if len(set(ids)) != len(ids):
+ raise ValueError("duplicate graph node id")
+ known = set(ids)
+ for edge in self.edges:
+ if edge.source not in known or (edge.target is not None and edge.target not in known):
+ raise ValueError("edge endpoint is not a graph node")
+ if any(c not in known for c in edge.candidates):
+ raise ValueError("edge candidate is not a graph node")
+ return self
+
+ def counts(self) -> dict[str, int]:
+ result = {"resolved": 0, "ambiguous": 0, "external": 0, "unresolved": 0}
+ for edge in self.edges:
+ result[edge.resolution] += 1
+ return result
+
+
+class CoverageV1(Contract):
+ eligible_files: int = Field(ge=0)
+ analyzed_files: int = Field(ge=0)
+ partial_files: int = Field(ge=0)
+ omitted_files: int = Field(ge=0)
+ fact_runs: tuple[UUID, ...] = Field(default=(), max_length=64)
+
+ @model_validator(mode="after")
+ def bounded(self) -> Self:
+ if self.analyzed_files > self.eligible_files or self.partial_files > self.analyzed_files:
+ raise ValueError("coverage counts are inconsistent")
+ return self
+
+ @property
+ def complete(self) -> bool:
+ return self.analyzed_files == self.eligible_files and self.omitted_files == 0
+
+
+class ArchitectureReportV1(Contract):
+ schema_version: Literal[1] = 1
+ org_id: UUID
+ repository_id: UUID
+ snapshot_id: UUID
+ inputs_digest: str = Field(pattern=r"^[0-9a-f]{64}$")
+ coverage: CoverageV1
+ graph: DependencyGraphV1
+ sections: tuple[SectionV1, ...] = Field(max_length=len(SectionName.__args__)) # type: ignore[attr-defined]
+
+ @model_validator(mode="after")
+ def unique_sections(self) -> Self:
+ names = [s.name for s in self.sections]
+ if len(set(names)) != len(names):
+ raise ValueError("duplicate report section")
+ return self
+
+ def digest(self) -> str:
+ return semantic_digest(self.model_dump(mode="json"))
+
+ def size_bytes(self) -> int:
+ return len(canonical_bytes(self.model_dump(mode="json")))
+
+ def check_size(self) -> None:
+ if self.size_bytes() > MAX_REPORT_BYTES:
+ raise ValueError("report exceeds the size bound")
+
+
+def inputs_digest(run_ids: tuple[UUID, ...], facts_digests: tuple[str, ...]) -> str:
+ """Identity of a report's inputs: the fact runs and the digest of every file's facts."""
+ material = "\n".join([*(str(r) for r in sorted(run_ids)), *sorted(facts_digests)])
+ return hashlib.sha256(material.encode()).hexdigest()
diff --git a/backend/tests/phase3/unit/test_architecture_report_contracts.py b/backend/tests/phase3/unit/test_architecture_report_contracts.py
new file mode 100644
index 0000000..f83854c
--- /dev/null
+++ b/backend/tests/phase3/unit/test_architecture_report_contracts.py
@@ -0,0 +1,133 @@
+"""Report contracts: typed statements, closed graphs, bounded and deterministic documents."""
+
+from uuid import uuid4
+
+import pytest
+from app.contracts.architecture_report import (
+ ArchitectureReportV1,
+ CoverageV1,
+ DependencyGraphV1,
+ EvidenceRefV1,
+ GraphEdgeV1,
+ GraphNodeV1,
+ SectionV1,
+ StatementV1,
+ TableV1,
+ inputs_digest,
+)
+from app.domain.source_ranges import SourceRangeV1
+from pydantic import ValidationError
+
+RANGE = SourceRangeV1(start_byte=0, end_byte=10, start_line=1, end_line=1, start_col=0, end_col=10)
+
+
+def evidence(path="a.py"):
+ return EvidenceRefV1(file_id=uuid4(), path=path, fact="import", range=RANGE)
+
+
+def node(id_, **kwargs):
+ kind = kwargs.pop("kind", "file")
+ return GraphNodeV1(id=id_, kind=kind, label=id_, **kwargs)
+
+
+def edge(source, target, resolution, **kwargs):
+ return GraphEdgeV1(
+ source=source,
+ target=target,
+ module="m",
+ import_kind="static",
+ resolution=resolution,
+ evidence=evidence(),
+ **kwargs,
+ )
+
+
+def test_an_observation_needs_evidence_but_an_unknown_does_not():
+ with pytest.raises(ValidationError):
+ StatementV1(kind="observation", code="x.y")
+ assert StatementV1(kind="unknown", code="imports.unresolved", params={"count": 3}).kind
+ assert StatementV1(kind="observation", code="x.y", evidence=(evidence(),)).evidence_total == 1
+ with pytest.raises(ValidationError): # cannot claim fewer total than shown
+ StatementV1(kind="derivation", code="x.y", evidence=(evidence(),), evidence_total=0)
+
+
+@pytest.mark.parametrize(
+ "code,params",
+ [("Bad Code", {}), ("x.y", {"": 1}), ("x.y", {"k": "v" * 513})],
+)
+def test_codes_and_parameters_are_bounded(code, params):
+ with pytest.raises(ValidationError):
+ StatementV1(kind="unknown", code=code, params=params)
+
+
+def test_edges_are_coherent_with_their_resolution():
+ assert edge("a", "b", "resolved").target == "b"
+ assert edge("a", None, "unresolved").candidates == ()
+ assert edge("a", None, "ambiguous", candidates=("b", "c")).resolution == "ambiguous"
+ for bad in (
+ lambda: edge("a", None, "resolved"), # resolved without a target
+ lambda: edge("a", "b", "unresolved"), # unresolved with a target
+ lambda: edge("a", None, "ambiguous", candidates=("b",)), # one candidate is not ambiguous
+ lambda: edge("a", "b", "resolved", candidates=("b", "c")), # candidates only if ambiguous
+ ):
+ with pytest.raises(ValidationError):
+ bad()
+
+
+def test_the_graph_is_closed_over_its_nodes():
+ nodes = (node("a"), node("b"), node("ext:py:os", kind="external"))
+ graph = DependencyGraphV1(
+ nodes=nodes,
+ edges=(
+ edge("a", "b", "resolved"),
+ edge("a", "ext:py:os", "external"),
+ edge("a", None, "unresolved"),
+ ),
+ )
+ assert graph.counts() == {"resolved": 1, "ambiguous": 0, "external": 1, "unresolved": 1}
+ with pytest.raises(ValidationError):
+ DependencyGraphV1(nodes=nodes, edges=(edge("a", "missing", "resolved"),))
+ with pytest.raises(ValidationError):
+ DependencyGraphV1(nodes=(node("a"), node("a")))
+
+
+def test_tables_are_rectangular_and_coverage_is_consistent():
+ TableV1(name="langs", columns=("language", "files"), rows=(("python", 3),), rows_total=5)
+ with pytest.raises(ValidationError):
+ TableV1(name="langs", columns=("a", "b"), rows=(("x",),))
+ with pytest.raises(ValidationError):
+ CoverageV1(eligible_files=2, analyzed_files=3, partial_files=0, omitted_files=0)
+ assert CoverageV1(eligible_files=2, analyzed_files=2, partial_files=1, omitted_files=0).complete
+ assert not CoverageV1(
+ eligible_files=3, analyzed_files=2, partial_files=0, omitted_files=1
+ ).complete
+
+
+def report(**overrides):
+ values = {
+ "org_id": uuid4(),
+ "repository_id": uuid4(),
+ "snapshot_id": uuid4(),
+ "inputs_digest": "a" * 64,
+ "coverage": CoverageV1(
+ eligible_files=1, analyzed_files=1, partial_files=0, omitted_files=0
+ ),
+ "graph": DependencyGraphV1(),
+ "sections": (SectionV1(name="overview"),),
+ }
+ return ArchitectureReportV1(**{**values, **overrides})
+
+
+def test_a_report_is_deterministic_and_rejects_duplicate_sections():
+ ids = {"org_id": uuid4(), "repository_id": uuid4(), "snapshot_id": uuid4()}
+ assert report(**ids).digest() == report(**ids).digest()
+ assert report(**ids).digest() != report(**ids, inputs_digest="b" * 64).digest()
+ with pytest.raises(ValidationError):
+ report(sections=(SectionV1(name="overview"), SectionV1(name="overview")))
+ report(**ids).check_size()
+
+
+def test_inputs_digest_ignores_order_and_changes_with_content():
+ a, b = uuid4(), uuid4()
+ assert inputs_digest((a, b), ("x", "y")) == inputs_digest((b, a), ("y", "x"))
+ assert inputs_digest((a, b), ("x", "y")) != inputs_digest((a, b), ("x", "z"))
From 9d073dfaad09e7ffb8eb6f322f8ebcdba8dacba1 Mon Sep 17 00:00:00 2001
From: Aman Bhaskar
Date: Thu, 12 Nov 2026 22:27:44 +0530
Subject: [PATCH 09/55] feat(report): deterministic per-language import
resolution and dependency graph
---
backend/app/analyzers/graph/__init__.py | 5 +
backend/app/analyzers/graph/build.py | 134 +++++++
backend/app/analyzers/graph/index.py | 91 +++++
backend/app/analyzers/graph/resolvers.py | 376 ++++++++++++++++++
backend/app/contracts/architecture_report.py | 2 +-
.../phase3/unit/test_dependency_graph.py | 247 ++++++++++++
6 files changed, 854 insertions(+), 1 deletion(-)
create mode 100644 backend/app/analyzers/graph/__init__.py
create mode 100644 backend/app/analyzers/graph/build.py
create mode 100644 backend/app/analyzers/graph/index.py
create mode 100644 backend/app/analyzers/graph/resolvers.py
create mode 100644 backend/tests/phase3/unit/test_dependency_graph.py
diff --git a/backend/app/analyzers/graph/__init__.py b/backend/app/analyzers/graph/__init__.py
new file mode 100644
index 0000000..0ad54e8
--- /dev/null
+++ b/backend/app/analyzers/graph/__init__.py
@@ -0,0 +1,5 @@
+"""Offline, deterministic dependency graph over published AST facts."""
+
+from app.analyzers.graph.build import FileEntry, build_graph
+
+__all__ = ["FileEntry", "build_graph"]
diff --git a/backend/app/analyzers/graph/build.py b/backend/app/analyzers/graph/build.py
new file mode 100644
index 0000000..079c70a
--- /dev/null
+++ b/backend/app/analyzers/graph/build.py
@@ -0,0 +1,134 @@
+"""Deterministic dependency graph from published per-file facts."""
+
+from collections.abc import Iterable, Sequence
+from dataclasses import dataclass
+from uuid import UUID
+
+from app.analyzers.graph.index import EXTERNAL, FILE, PACKAGE, PathIndex
+from app.analyzers.graph.resolvers import RESOLVERS, Ctx, Outcome
+from app.contracts.architecture_report import (
+ MAX_EDGES,
+ MAX_NODES,
+ DependencyGraphV1,
+ EvidenceRefV1,
+ GraphEdgeV1,
+ GraphNodeV1,
+ Resolution,
+)
+from app.contracts.ast_facts import FileFactsV1
+
+ECOSYSTEM = {"javascript": "js", "jsx": "js", "typescript": "js", "tsx": "js", "cpp": "c"}
+
+
+@dataclass(frozen=True)
+class FileEntry:
+ file_id: UUID
+ path: str
+ language: str
+ facts: FileFactsV1
+
+
+def _label(node_id: str) -> str:
+ return node_id.split(":", 1)[1] if ":" in node_id else node_id
+
+
+def build_graph(files: Sequence[FileEntry], inventory: Iterable[str] = ()) -> DependencyGraphV1:
+ """Resolve every import fact; the result depends only on the facts and the inventory."""
+ ordered = sorted(files, key=lambda f: f.path)
+ index = PathIndex.build((f.path for f in ordered), inventory)
+ states: dict[str, dict[str, object]] = {}
+
+ def resolve_all(emit: bool) -> list[tuple[FileEntry, int, Outcome, str]]:
+ found: list[tuple[FileEntry, int, Outcome, str]] = []
+ for entry in ordered:
+ resolver = RESOLVERS.get(entry.language)
+ if resolver is None:
+ continue
+ ctx = Ctx(entry.path, index, states.setdefault(entry.language, {}))
+ for position, imp in enumerate(entry.facts.imports):
+ for outcome in resolver(imp, ctx):
+ if emit:
+ found.append((entry, position, outcome, imp.module))
+ return found
+
+ resolve_all(emit=False) # first pass lets a language learn context (e.g. Go module prefixes)
+ resolved = resolve_all(emit=True)
+
+ nodes: dict[str, GraphNodeV1] = {
+ FILE + f.path: GraphNodeV1(
+ id=FILE + f.path, kind="file", label=f.path, language=f.language, file_id=f.file_id
+ )
+ for f in ordered
+ }
+
+ def ensure(node_id: str, language: str) -> str:
+ if node_id in nodes:
+ return node_id
+ is_package = node_id.startswith(PACKAGE)
+ nodes[node_id] = GraphNodeV1(
+ id=node_id,
+ kind="package" if is_package else "external",
+ label=_label(node_id),
+ language=None if is_package else language,
+ )
+ return node_id
+
+ edges: list[GraphEdgeV1] = []
+ for entry, position, outcome, module in resolved:
+ imp = entry.facts.imports[position]
+ source = FILE + entry.path
+ evidence = EvidenceRefV1(
+ file_id=entry.file_id, path=entry.path, fact="import", range=imp.range
+ )
+ module_text = module[:512]
+
+ def edge(
+ target: str | None,
+ resolution: Resolution,
+ candidates: tuple[str, ...] = (),
+ *,
+ _source: str = source,
+ _kind: str = imp.kind,
+ _module: str = module_text,
+ _evidence: EvidenceRefV1 = evidence,
+ ) -> GraphEdgeV1:
+ return GraphEdgeV1(
+ source=_source,
+ target=target,
+ candidates=candidates,
+ module=_module,
+ import_kind=_kind,
+ resolution=resolution,
+ evidence=_evidence,
+ )
+
+ if outcome.resolution == "resolved":
+ for target in outcome.targets:
+ if target == source:
+ continue
+ ensure(target, entry.language)
+ edges.append(edge(target, "resolved"))
+ elif outcome.resolution == "ambiguous":
+ candidates = tuple(ensure(t, entry.language) for t in outcome.targets)
+ edges.append(edge(None, "ambiguous", candidates))
+ elif outcome.resolution == "external":
+ family = ECOSYSTEM.get(entry.language, entry.language)
+ target = ensure(f"{EXTERNAL}{family}:{outcome.external}", family)
+ edges.append(edge(target, "external"))
+ else:
+ edges.append(edge(None, "unresolved"))
+ if len(edges) > MAX_EDGES or len(nodes) > MAX_NODES:
+ raise ValueError("dependency graph exceeds its size bound")
+
+ edges.sort(
+ key=lambda e: (
+ e.source,
+ e.evidence.range.start_byte if e.evidence.range else 0,
+ e.module,
+ e.target or "",
+ e.resolution,
+ )
+ )
+ return DependencyGraphV1(
+ nodes=tuple(sorted(nodes.values(), key=lambda n: n.id)), edges=tuple(edges)
+ )
diff --git a/backend/app/analyzers/graph/index.py b/backend/app/analyzers/graph/index.py
new file mode 100644
index 0000000..be1b90c
--- /dev/null
+++ b/backend/app/analyzers/graph/index.py
@@ -0,0 +1,91 @@
+"""Path lookups shared by the per-language import resolvers (analyzed files only)."""
+
+from collections import defaultdict
+from collections.abc import Iterable
+from dataclasses import dataclass, field
+from posixpath import dirname, normpath
+
+FILE = "file:"
+PACKAGE = "pkg:"
+EXTERNAL = "ext:"
+
+
+def parent(path: str) -> str:
+ return dirname(path)
+
+
+def join(base: str, *parts: str) -> str:
+ """Normalize a repository-relative join; '' is the root."""
+ joined = normpath("/".join(p for p in (base, *parts) if p))
+ return "" if joined in {".", ""} else joined
+
+
+def escapes(base: str, relative: str) -> bool:
+ """True when ``relative`` climbs above the repository root from ``base``."""
+ depth = len([p for p in base.split("/") if p])
+ for part in relative.split("/"):
+ if part == "..":
+ depth -= 1
+ if depth < 0:
+ return True
+ elif part not in {"", "."}:
+ depth += 1
+ return False
+
+
+@dataclass
+class PathIndex:
+ """Lookups over the files that were analyzed; ``inventory`` is every eligible path."""
+
+ paths: frozenset[str]
+ inventory: frozenset[str]
+ by_basename: dict[str, list[str]] = field(default_factory=dict)
+ by_dir: dict[str, list[str]] = field(default_factory=dict)
+ by_suffix: dict[str, list[str]] = field(default_factory=dict)
+
+ @classmethod
+ def build(cls, paths: Iterable[str], inventory: Iterable[str] = ()) -> "PathIndex":
+ ordered = sorted(set(paths))
+ basenames: dict[str, list[str]] = defaultdict(list)
+ dirs: dict[str, list[str]] = defaultdict(list)
+ suffixes: dict[str, list[str]] = defaultdict(list)
+ for path in ordered:
+ parts = path.split("/")
+ basenames[parts[-1]].append(path)
+ dirs[parent(path)].append(path)
+ for i in range(len(parts)):
+ suffixes["/".join(parts[i:])].append(path)
+ return cls(
+ paths=frozenset(ordered),
+ inventory=frozenset(inventory) | frozenset(ordered),
+ by_basename=dict(basenames),
+ by_dir=dict(dirs),
+ by_suffix=dict(suffixes),
+ )
+
+ def has(self, path: str) -> bool:
+ return path in self.paths
+
+ def ending(self, suffix: str) -> list[str]:
+ """Files whose path equals ``suffix`` or ends with ``/suffix``."""
+ return list(self.by_suffix.get(suffix, ()))
+
+ def closest(self, source: str, candidates: list[str]) -> list[str]:
+ """Keep the candidates sharing the longest directory prefix with ``source``."""
+ if len(candidates) < 2:
+ return candidates
+ here = [p for p in parent(source).split("/") if p]
+
+ def shared(path: str) -> int:
+ n = 0
+ for a, b in zip(here, [p for p in parent(path).split("/") if p], strict=False):
+ if a != b:
+ break
+ n += 1
+ return n
+
+ best = max(shared(c) for c in candidates)
+ return [c for c in candidates if shared(c) == best]
+
+ def has_directory(self, directory: str) -> bool:
+ return directory in self.by_dir or any(d.startswith(directory + "/") for d in self.by_dir)
diff --git a/backend/app/analyzers/graph/resolvers.py b/backend/app/analyzers/graph/resolvers.py
new file mode 100644
index 0000000..cb5d0ad
--- /dev/null
+++ b/backend/app/analyzers/graph/resolvers.py
@@ -0,0 +1,376 @@
+"""Per-language import resolution over analyzed paths. Syntax only, never guessing.
+
+Each resolver maps one ``ImportFactV1`` to outcomes. A module found in exactly one analyzed file is
+``resolved``; found in several equally close files is ``ambiguous`` (all candidates kept); a module
+that cannot be in this repository (standard library, third-party) is ``external``; anything that
+may belong to the repository but cannot be located (aliases, files outside the analyzed set,
+generated code) is ``unresolved`` and therefore *unknown*, not absent.
+"""
+
+import sys
+from collections.abc import Callable
+from dataclasses import dataclass, field
+
+from app.analyzers.graph.index import (
+ FILE,
+ PACKAGE,
+ PathIndex,
+ escapes,
+ join,
+ parent,
+)
+from app.contracts.ast_facts import ImportFactV1
+
+MAX_CANDIDATES = 8
+
+
+@dataclass(frozen=True)
+class Outcome:
+ resolution: str # resolved | ambiguous | external | unresolved
+ targets: tuple[str, ...] = ()
+ external: str | None = None
+
+
+@dataclass
+class Ctx:
+ path: str
+ index: PathIndex
+ state: dict[str, object] = field(default_factory=dict)
+
+ @property
+ def directory(self) -> str:
+ return parent(self.path)
+
+
+def file_id(path: str) -> str:
+ return FILE + path
+
+
+def _pick(ctx: Ctx, candidates: list[str]) -> Outcome | None:
+ """Turn candidate paths into resolved/ambiguous, or None when there are none."""
+ if not candidates:
+ return None
+ chosen = ctx.index.closest(ctx.path, sorted(set(candidates)))
+ if len(chosen) == 1:
+ return Outcome("resolved", (file_id(chosen[0]),))
+ return Outcome("ambiguous", tuple(file_id(c) for c in chosen[:MAX_CANDIDATES]))
+
+
+def _external(root: str) -> Outcome:
+ return Outcome("external", external=root)
+
+
+UNRESOLVED = Outcome("unresolved")
+
+
+# ---- Python ---------------------------------------------------------------------------------
+def _py_module_files(ctx: Ctx, dotted: str) -> list[str]:
+ path = dotted.replace(".", "/")
+ return ctx.index.ending(path + ".py") + ctx.index.ending(path + "/__init__.py")
+
+
+def python(imp: ImportFactV1, ctx: Ctx) -> list[Outcome]:
+ outcomes: list[Outcome] = []
+ names = [n.name for n in imp.names if n.name not in {"*", "self"}]
+ if imp.relative_level:
+ base = ctx.directory
+ for _ in range(imp.relative_level - 1):
+ base = parent(base)
+ module = imp.module.replace(".", "/") if imp.module else ""
+ anchor = join(base, module) if module else base
+ found: list[str] = []
+ if module:
+ found = [p for p in (anchor + ".py", join(anchor, "__init__.py")) if ctx.index.has(p)]
+ elif ctx.index.has(join(anchor, "__init__.py")):
+ found = [join(anchor, "__init__.py")]
+ if found:
+ outcomes.append(Outcome("resolved", (file_id(found[0]),)))
+ for name in names:
+ sub_files = [
+ p
+ for p in (join(anchor, name + ".py"), join(anchor, name, "__init__.py"))
+ if ctx.index.has(p)
+ ]
+ if sub_files:
+ outcomes.append(Outcome("resolved", (file_id(sub_files[0]),)))
+ return outcomes or [UNRESOLVED]
+ module_outcome = _pick(ctx, _py_module_files(ctx, imp.module))
+ if module_outcome is not None:
+ outcomes.append(module_outcome)
+ for name in names:
+ sub = _pick(ctx, _py_module_files(ctx, f"{imp.module}.{name}"))
+ if sub is not None:
+ outcomes.append(sub)
+ if outcomes:
+ return outcomes
+ root = imp.module.split(".")[0]
+ if root in sys.stdlib_module_names:
+ return [_external(root)]
+ # A top-level name that exists as a directory or module somewhere in the repository may be
+ # internal but unlocatable (not analyzed, generated): unknown, not external.
+ internal = any(
+ part == root or part == root + ".py" for p in ctx.index.inventory for part in p.split("/")
+ )
+ return [UNRESOLVED if internal else _external(root)]
+
+
+# ---- JavaScript / TypeScript ----------------------------------------------------------------
+JS_EXTS = (".ts", ".tsx", ".mts", ".cts", ".js", ".jsx", ".mjs", ".cjs")
+JS_REMAP = {".js": (".ts", ".tsx"), ".jsx": (".tsx",), ".mjs": (".mts",), ".cjs": (".cts",)}
+ALIAS_PREFIXES = ("@/", "~/", "#", "$", "@@/", "~~/")
+
+
+def _js_file(ctx: Ctx, target: str) -> str | None:
+ stem = target
+ candidates = [target]
+ for ext, remaps in JS_REMAP.items():
+ if target.endswith(ext):
+ stem = target[: -len(ext)]
+ candidates += [stem + r for r in remaps]
+ candidates += [target + e for e in JS_EXTS]
+ candidates += [join(target, "index" + e) for e in JS_EXTS]
+ for candidate in candidates:
+ if ctx.index.has(candidate):
+ return candidate
+ return None
+
+
+def javascript(imp: ImportFactV1, ctx: Ctx) -> list[Outcome]:
+ spec = imp.module
+ if spec.startswith(("./", "../")) or spec in {".", ".."}:
+ if escapes(ctx.directory, spec):
+ return [UNRESOLVED]
+ found = _js_file(ctx, join(ctx.directory, spec))
+ return [Outcome("resolved", (file_id(found),))] if found else [UNRESOLVED]
+ if spec.startswith("node:"):
+ return [_external(spec)]
+ if spec.startswith(ALIAS_PREFIXES) or spec.startswith("/"):
+ return [UNRESOLVED] # path aliases and absolute paths need build configuration
+ parts = spec.split("/")
+ root = "/".join(parts[:2]) if spec.startswith("@") and len(parts) > 1 else parts[0]
+ return [_external(root)]
+
+
+# ---- Go -------------------------------------------------------------------------------------
+def _go_dirs(ctx: Ctx) -> dict[str, list[str]]:
+ dirs = ctx.state.get("go_dirs")
+ if dirs is None:
+ dirs = {d: ps for d, ps in ctx.index.by_dir.items() if any(p.endswith(".go") for p in ps)}
+ ctx.state["go_dirs"] = dirs
+ return dirs # type: ignore[return-value]
+
+
+def go_suffix_match(ctx: Ctx, path: str, minimum: int = 2) -> tuple[list[str], int] | None:
+ """Directories matching the longest trailing run (at least ``minimum`` segments) of ``path``."""
+ segments = path.split("/")
+ dirs = _go_dirs(ctx)
+ for k in range(len(segments), minimum - 1, -1):
+ suffix = "/".join(segments[-k:])
+ matches = sorted(d for d in dirs if d == suffix or d.endswith("/" + suffix))
+ if matches:
+ return matches, k
+ return None
+
+
+def go(imp: ImportFactV1, ctx: Ctx) -> list[Outcome]:
+ path = imp.module
+ segments = path.split("/")
+ if "." not in segments[0]:
+ return [_external(path)] # standard library
+ prefixes: set[str] = ctx.state.setdefault("go_prefixes", set()) # type: ignore[assignment]
+ matched = go_suffix_match(ctx, path)
+ if matched is None:
+ # The module path is not parsed (go.mod is not admitted); infer it from imports that did
+ # resolve: a path under a known module prefix names a directory relative to the root.
+ for prefix in sorted(prefixes, key=len, reverse=True):
+ if path.startswith(prefix + "/"):
+ rest = path[len(prefix) + 1 :]
+ if rest in _go_dirs(ctx):
+ return [Outcome("resolved", (PACKAGE + rest,))]
+ return [UNRESOLVED]
+ return [_external("/".join(segments[:3]))]
+ dirs, k = matched
+ if k < len(segments):
+ prefixes.add("/".join(segments[: len(segments) - k]))
+ if len(dirs) == 1:
+ return [Outcome("resolved", (PACKAGE + dirs[0],))]
+ return [Outcome("ambiguous", tuple(PACKAGE + d for d in dirs[:MAX_CANDIDATES]))]
+
+
+# ---- Java -----------------------------------------------------------------------------------
+JAVA_PLATFORM = ("java", "javax", "jakarta", "jdk", "sun", "com.sun", "org.w3c", "org.xml")
+
+
+def java(imp: ImportFactV1, ctx: Ctx) -> list[Outcome]:
+ dotted = imp.module
+ if any(dotted == p or dotted.startswith(p + ".") for p in JAVA_PLATFORM):
+ return [_external(dotted.split(".")[0])]
+ as_path = dotted.replace(".", "/")
+ if imp.kind == "wildcard":
+ dirs = sorted(
+ {
+ d
+ for d, files in ctx.index.by_dir.items()
+ if (d == as_path or d.endswith("/" + as_path))
+ and any(f.endswith(".java") for f in files)
+ }
+ )
+ if len(dirs) == 1:
+ return [Outcome("resolved", (PACKAGE + dirs[0],))]
+ if dirs:
+ return [Outcome("ambiguous", tuple(PACKAGE + d for d in dirs[:MAX_CANDIDATES]))]
+ else:
+ picked = _pick(ctx, ctx.index.ending(as_path + ".java"))
+ if picked is not None:
+ return [picked]
+ head = "/".join(dotted.split(".")[:2])
+ internal = any(("/" + head + "/") in ("/" + d + "/") for d in ctx.index.by_dir)
+ return [UNRESOLVED if internal else _external(".".join(dotted.split(".")[:2]))]
+
+
+# ---- Rust -----------------------------------------------------------------------------------
+def _rust_root(path: str) -> str | None:
+ parts = path.split("/")
+ for i in range(len(parts) - 1, -1, -1):
+ if parts[i] == "src":
+ return "/".join(parts[: i + 1])
+ return None
+
+
+def _rust_module_file(ctx: Ctx, root: str, chain: list[str]) -> str | None:
+ """The file declaring the module ``root/chain...`` (``a.rs`` or ``a/mod.rs``), if analyzed."""
+ base = join(root, *chain) if chain else root
+ for candidate in (base + ".rs", join(base, "mod.rs")):
+ if ctx.index.has(candidate):
+ return candidate
+ if not chain:
+ for candidate in (join(root, "lib.rs"), join(root, "main.rs")):
+ if ctx.index.has(candidate):
+ return candidate
+ return None
+
+
+def rust(imp: ImportFactV1, ctx: Ctx) -> list[Outcome]:
+ segments = imp.module.split("::")
+ head = segments[0]
+ root = _rust_root(ctx.path)
+ if head not in {"crate", "self", "super"}:
+ return [_external(head)]
+ if root is None:
+ return [UNRESOLVED]
+ stem = ctx.path[len(root) + 1 :]
+ here = stem[: -len(".rs")].split("/")
+ if here and here[-1] in {"mod", "lib", "main"}:
+ here = here[:-1]
+ if head == "crate":
+ chain, rest = [], segments[1:]
+ elif head == "self":
+ chain, rest = here, segments[1:]
+ else:
+ chain = here[:]
+ rest = segments[:]
+ while rest and rest[0] == "super":
+ if not chain:
+ return [UNRESOLVED]
+ chain = chain[:-1]
+ rest = rest[1:]
+ best: str | None = None
+ walked = list(chain)
+ best = _rust_module_file(ctx, root, walked) if walked or head == "crate" else None
+ for segment in rest:
+ deeper = _rust_module_file(ctx, root, [*walked, segment])
+ if deeper is None:
+ break
+ walked.append(segment)
+ best = deeper
+ if best is None or best == ctx.path:
+ return [UNRESOLVED] if best is None else []
+ return [Outcome("resolved", (file_id(best),))]
+
+
+# ---- C / C++ --------------------------------------------------------------------------------
+def c_family(imp: ImportFactV1, ctx: Ctx) -> list[Outcome]:
+ name = imp.module
+ if imp.relative_level: # a quoted include names a project header
+ direct = join(ctx.directory, name)
+ if ctx.index.has(direct) and not escapes(ctx.directory, name):
+ return [Outcome("resolved", (file_id(direct),))]
+ picked = _pick(ctx, ctx.index.ending(name))
+ return [picked or UNRESOLVED]
+ picked = _pick(ctx, ctx.index.ending(name)) # angle includes may be project include roots
+ return [picked or _external(name)]
+
+
+# ---- Ruby -----------------------------------------------------------------------------------
+def ruby(imp: ImportFactV1, ctx: Ctx) -> list[Outcome]:
+ name = imp.module if imp.module.endswith(".rb") else imp.module + ".rb"
+ if imp.relative_level:
+ direct = join(ctx.directory, name)
+ if ctx.index.has(direct) and not escapes(ctx.directory, name):
+ return [Outcome("resolved", (file_id(direct),))]
+ return [UNRESOLVED]
+ picked = _pick(ctx, ctx.index.ending(name))
+ return [picked or _external(imp.module.split("/")[0])]
+
+
+# ---- PHP ------------------------------------------------------------------------------------
+def php(imp: ImportFactV1, ctx: Ctx) -> list[Outcome]:
+ if imp.kind == "require": # literal include/require of a path
+ direct = join(ctx.directory, imp.module)
+ if ctx.index.has(direct) and not escapes(ctx.directory, imp.module):
+ return [Outcome("resolved", (file_id(direct),))]
+ return [UNRESOLVED]
+ namespace = imp.module.replace("\\", "/")
+ targets = [f"{namespace}/{n.name}" for n in imp.names] or [namespace]
+ outcomes: list[Outcome] = []
+ for target in targets:
+ parts = target.split("/")
+ # PSR-4 maps a namespace prefix (App\\) to a source directory, so the leading segments
+ # may not appear in the path: keep the longest trailing run of at least two segments.
+ for drop in range(max(1, len(parts) - 1)):
+ picked = _pick(ctx, ctx.index.ending("/".join(parts[drop:]) + ".php"))
+ if picked is not None:
+ outcomes.append(picked)
+ break
+ if outcomes:
+ return outcomes
+ head = namespace.split("/")[0]
+ internal = any(
+ part.lower() == head.lower() for p in ctx.index.inventory for part in p.split("/")
+ )
+ return [UNRESOLVED if internal else _external(head)]
+
+
+# ---- Swift ----------------------------------------------------------------------------------
+def swift(imp: ImportFactV1, ctx: Ctx) -> list[Outcome]:
+ module = imp.module.split(".")[0]
+ dirs = sorted(
+ d
+ for d, files in ctx.index.by_dir.items()
+ if (d == module or d.endswith("/" + module)) and any(f.endswith(".swift") for f in files)
+ )
+ if len(dirs) == 1:
+ if dirs[0] == ctx.directory:
+ return [] # a file importing its own module
+ return [Outcome("resolved", (PACKAGE + dirs[0],))]
+ if dirs:
+ return [Outcome("ambiguous", tuple(PACKAGE + d for d in dirs[:MAX_CANDIDATES]))]
+ return [_external(module)]
+
+
+Resolver = Callable[[ImportFactV1, Ctx], list[Outcome]]
+RESOLVERS: dict[str, Resolver] = {
+ "python": python,
+ "javascript": javascript,
+ "jsx": javascript,
+ "typescript": javascript,
+ "tsx": javascript,
+ "go": go,
+ "java": java,
+ "rust": rust,
+ "c": c_family,
+ "cpp": c_family,
+ "ruby": ruby,
+ "php": php,
+ "swift": swift,
+}
diff --git a/backend/app/contracts/architecture_report.py b/backend/app/contracts/architecture_report.py
index f3fe94f..6619960 100644
--- a/backend/app/contracts/architecture_report.py
+++ b/backend/app/contracts/architecture_report.py
@@ -96,7 +96,7 @@ class SectionV1(Contract):
class GraphNodeV1(Contract):
id: str = Field(min_length=1, max_length=1100)
- kind: Literal["file", "external"]
+ kind: Literal["file", "package", "external"]
label: str = Field(min_length=1, max_length=1024)
language: str | None = Field(default=None, max_length=64)
file_id: UUID | None = None
diff --git a/backend/tests/phase3/unit/test_dependency_graph.py b/backend/tests/phase3/unit/test_dependency_graph.py
new file mode 100644
index 0000000..5852170
--- /dev/null
+++ b/backend/tests/phase3/unit/test_dependency_graph.py
@@ -0,0 +1,247 @@
+# ruff: noqa: E501
+"""Import resolution per language over real extracted facts."""
+
+import hashlib
+import random
+from pathlib import Path
+from uuid import uuid4
+
+from app.analyzers.facts import extract_facts
+from app.analyzers.graph import FileEntry, build_graph
+from app.analyzers.registry import FACT_DIALECTS
+from app.contracts.structure import AnalysisBudget, SourceUnitV1
+
+
+def entries(files: dict[str, str]) -> list[FileEntry]:
+ result = []
+ for path, text in files.items():
+ language = FACT_DIALECTS[Path(path).suffix.casefold()]
+ data = text.encode()
+ unit = SourceUnitV1(
+ file_id=uuid4(),
+ path=path,
+ sha256=hashlib.sha256(data).hexdigest(),
+ data=data,
+ language=language,
+ )
+ result.append(
+ FileEntry(unit.file_id, path, language, extract_facts(unit, AnalysisBudget()))
+ )
+ return result
+
+
+def summarize(files: dict[str, str], inventory=()):
+ graph = build_graph(entries(files), inventory)
+ out: dict[str, list[tuple]] = {}
+ for e in graph.edges:
+ source = e.source.removeprefix("file:")
+ shown = e.target if e.resolution in {"resolved", "external"} else e.candidates or None
+ out.setdefault(source, []).append((e.module, e.resolution, shown))
+ return graph, out
+
+
+def test_python_resolves_relative_absolute_and_submodule_imports_and_classifies_the_rest():
+ _, out = summarize(
+ {
+ "app/main.py": (
+ "import os\nimport requests\nfrom app import util\nfrom . import helpers\n"
+ "from .models import User\nimport app.core.engine as engine\n"
+ "from missing_pkg_dir import thing\nfrom app.core import *\n"
+ ),
+ "app/__init__.py": "",
+ "app/util.py": "",
+ "app/helpers.py": "",
+ "app/models.py": "",
+ "app/core/__init__.py": "",
+ "app/core/engine.py": "",
+ },
+ inventory=["missing_pkg_dir/x.txt"],
+ )
+ got = {(m, r, t) for m, r, t in out["app/main.py"]}
+ assert ("os", "external", "ext:python:os") in got
+ assert ("requests", "external", "ext:python:requests") in got
+ assert ("app", "resolved", "file:app/__init__.py") in got
+ assert ("app", "resolved", "file:app/util.py") in got # the submodule named in from-import
+ assert ("", "resolved", "file:app/__init__.py") in got
+ assert ("", "resolved", "file:app/helpers.py") in got
+ assert ("models", "resolved", "file:app/models.py") in got
+ assert ("app.core.engine", "resolved", "file:app/core/engine.py") in got
+ assert ("app.core", "resolved", "file:app/core/__init__.py") in got
+ # a name that exists in the repository inventory but cannot be located is unknown, not external
+ assert ("missing_pkg_dir", "unresolved", None) in got
+
+
+def test_python_equally_close_matches_are_ambiguous_and_closer_ones_win():
+ _, out = summarize(
+ {
+ "svc_a/main.py": "import util\n",
+ "svc_a/util.py": "",
+ "svc_b/util.py": "",
+ "x/other.py": "import util\n",
+ }
+ )
+ assert out["svc_a/main.py"] == [("util", "resolved", "file:svc_a/util.py")]
+ assert out["x/other.py"][0][1] == "ambiguous"
+ assert set(out["x/other.py"][0][2]) == {"file:svc_a/util.py", "file:svc_b/util.py"}
+
+
+def test_javascript_and_typescript_resolution():
+ _, out = summarize(
+ {
+ "src/a.ts": (
+ "import x from './x';\nimport {y} from '../lib/y.js';\nimport z from './dir';\n"
+ "import l from 'lodash';\nimport s from '@scope/pkg/sub';\nimport a from '@/alias';\n"
+ "import f from 'node:fs';\nimport m from './missing';\nexport * from './x';\n"
+ "const r = require('./x');\n"
+ ),
+ "src/x.ts": "",
+ "lib/y.ts": "",
+ "src/dir/index.tsx": "",
+ }
+ )
+ got = {(m, r, t) for m, r, t in out["src/a.ts"]}
+ assert ("./x", "resolved", "file:src/x.ts") in got
+ assert ("../lib/y.js", "resolved", "file:lib/y.ts") in got # .js specifier maps to .ts
+ assert ("./dir", "resolved", "file:src/dir/index.tsx") in got
+ assert ("lodash", "external", "ext:js:lodash") in got
+ assert ("@scope/pkg/sub", "external", "ext:js:@scope/pkg") in got
+ assert ("node:fs", "external", "ext:js:node:fs") in got
+ assert ("@/alias", "unresolved", None) in got # aliases need build configuration
+ assert ("./missing", "unresolved", None) in got
+ assert sum(1 for m, r, _ in out["src/a.ts"] if m == "./x") == 3 # import, reexport, require
+
+
+def test_javascript_relative_imports_never_escape_the_repository():
+ _, out = summarize({"a.js": "import x from '../../outside';\n"})
+ assert out["a.js"] == [("../../outside", "unresolved", None)]
+
+
+def test_go_resolves_packages_by_suffix_and_infers_the_module_prefix():
+ graph, out = summarize(
+ {
+ "main.go": (
+ 'package main\nimport (\n "fmt"\n "github.com/org/repo/internal/util"\n'
+ ' "github.com/org/repo/binding"\n "github.com/other/lib/x"\n)\n'
+ ),
+ "internal/util/u.go": "package util\n",
+ "binding/b.go": "package binding\n",
+ "cmd/run.go": 'package cmd\nimport "github.com/org/repo/binding"\n',
+ }
+ )
+ got = {(m, r, t) for m, r, t in out["main.go"]}
+ assert ("fmt", "external", "ext:go:fmt") in got
+ assert ("github.com/org/repo/internal/util", "resolved", "pkg:internal/util") in got
+ # `repo/binding` is not a path in the checkout; the module prefix learned from the other
+ # import places it at the repository root
+ assert ("github.com/org/repo/binding", "resolved", "pkg:binding") in got
+ assert ("github.com/other/lib/x", "external", "ext:go:github.com/other/lib") in got
+ assert any(n.kind == "package" and n.id == "pkg:internal/util" for n in graph.nodes)
+
+
+def test_java_classes_wildcards_static_imports_and_external_packages():
+ _, out = summarize(
+ {
+ "src/com/ex/A.java": (
+ "package com.ex;\nimport com.ex.util.Helper;\nimport java.util.List;\n"
+ "import static com.ex.Consts.MAX;\nimport org.spring.*;\nimport com.ex.util.*;\n"
+ ),
+ "src/com/ex/util/Helper.java": "package com.ex.util;\n",
+ "src/com/ex/Consts.java": "package com.ex;\n",
+ }
+ )
+ got = {(m, r, t) for m, r, t in out["src/com/ex/A.java"]}
+ assert ("com.ex.util.Helper", "resolved", "file:src/com/ex/util/Helper.java") in got
+ assert ("java.util.List", "external", "ext:java:java") in got
+ assert ("com.ex.Consts", "resolved", "file:src/com/ex/Consts.java") in got
+ assert ("org.spring", "external", "ext:java:org.spring") in got
+ assert ("com.ex.util", "resolved", "pkg:src/com/ex/util") in got
+
+
+def test_rust_crate_super_and_external_paths():
+ _, out = summarize(
+ {
+ "src/lib.rs": "",
+ "src/x.rs": "",
+ "src/a/mod.rs": "",
+ "src/a/b.rs": (
+ "use crate::x::Y;\nuse super::helper;\nuse std::io::Read;\nuse serde::Serialize;\n"
+ "use crate::nowhere::Z;\n"
+ ),
+ }
+ )
+ got = {(m, r, t) for m, r, t in out["src/a/b.rs"]}
+ assert ("crate::x::Y", "resolved", "file:src/x.rs") in got
+ assert ("super::helper", "resolved", "file:src/a/mod.rs") in got
+ assert ("std::io::Read", "external", "ext:rust:std") in got
+ assert ("serde::Serialize", "external", "ext:rust:serde") in got
+ assert ("crate::nowhere::Z", "resolved", "file:src/lib.rs") in got # deepest module found
+
+
+def test_c_family_includes():
+ _, out = summarize(
+ {
+ "src/a.c": '#include \n#include "local.h"\n#include "sub/dir.h"\n#include "gone.h"\n'
+ "#include \n",
+ "src/local.h": "",
+ "src/sub/dir.h": "",
+ "include/proj/api.h": "",
+ }
+ )
+ got = {(m, r, t) for m, r, t in out["src/a.c"]}
+ assert ("stdio.h", "external", "ext:c:stdio.h") in got
+ assert ("local.h", "resolved", "file:src/local.h") in got
+ assert ("sub/dir.h", "resolved", "file:src/sub/dir.h") in got
+ assert ("gone.h", "unresolved", None) in got
+ assert (
+ "proj/api.h",
+ "resolved",
+ "file:include/proj/api.h",
+ ) in got # angle include, project root
+
+
+def test_ruby_php_and_swift():
+ _, out = summarize(
+ {
+ "lib/a.rb": "require 'json'\nrequire_relative 'b'\nrequire 'my/lib'\n",
+ "lib/b.rb": "",
+ "lib/my/lib.rb": "",
+ "src/Http/Ctl.php": (
+ "= 4
From 2cbfb2549ddfefcdd65e010edb474d59a2323b62 Mon Sep 17 00:00:00 2001
From: Aman Bhaskar
Date: Thu, 12 Nov 2026 22:29:20 +0530
Subject: [PATCH 10/55] fix(report): resolver corrections found by the
real-repository calibration
---
backend/app/analyzers/graph/resolvers.py | 40 +++++++++++++------
.../phase3/unit/test_dependency_graph.py | 30 +++++++++++++-
2 files changed, 56 insertions(+), 14 deletions(-)
diff --git a/backend/app/analyzers/graph/resolvers.py b/backend/app/analyzers/graph/resolvers.py
index cb5d0ad..e5b3b47 100644
--- a/backend/app/analyzers/graph/resolvers.py
+++ b/backend/app/analyzers/graph/resolvers.py
@@ -46,6 +46,10 @@ def file_id(path: str) -> str:
return FILE + path
+def pkg_id(directory: str) -> str:
+ return PACKAGE + (directory or ".")
+
+
def _pick(ctx: Ctx, candidates: list[str]) -> Outcome | None:
"""Turn candidate paths into resolved/ambiguous, or None when there are none."""
if not candidates:
@@ -109,7 +113,10 @@ def python(imp: ImportFactV1, ctx: Ctx) -> list[Outcome]:
# A top-level name that exists as a directory or module somewhere in the repository may be
# internal but unlocatable (not analyzed, generated): unknown, not external.
internal = any(
- part == root or part == root + ".py" for p in ctx.index.inventory for part in p.split("/")
+ part == root or part == root + ".py"
+ for p in ctx.index.inventory
+ if p.endswith((".py", ".pyi"))
+ for part in p.split("/")
)
return [UNRESOLVED if internal else _external(root)]
@@ -186,15 +193,19 @@ def go(imp: ImportFactV1, ctx: Ctx) -> list[Outcome]:
if path.startswith(prefix + "/"):
rest = path[len(prefix) + 1 :]
if rest in _go_dirs(ctx):
- return [Outcome("resolved", (PACKAGE + rest,))]
+ return [Outcome("resolved", (pkg_id(rest),))]
+ return [UNRESOLVED]
+ if path == prefix: # the module's root package
+ if "" in _go_dirs(ctx):
+ return [Outcome("resolved", (pkg_id(""),))]
return [UNRESOLVED]
return [_external("/".join(segments[:3]))]
dirs, k = matched
if k < len(segments):
prefixes.add("/".join(segments[: len(segments) - k]))
if len(dirs) == 1:
- return [Outcome("resolved", (PACKAGE + dirs[0],))]
- return [Outcome("ambiguous", tuple(PACKAGE + d for d in dirs[:MAX_CANDIDATES]))]
+ return [Outcome("resolved", (pkg_id(dirs[0]),))]
+ return [Outcome("ambiguous", tuple(pkg_id(d) for d in dirs[:MAX_CANDIDATES]))]
# ---- Java -----------------------------------------------------------------------------------
@@ -216,16 +227,20 @@ def java(imp: ImportFactV1, ctx: Ctx) -> list[Outcome]:
}
)
if len(dirs) == 1:
- return [Outcome("resolved", (PACKAGE + dirs[0],))]
+ return [Outcome("resolved", (pkg_id(dirs[0]),))]
if dirs:
- return [Outcome("ambiguous", tuple(PACKAGE + d for d in dirs[:MAX_CANDIDATES]))]
+ return [Outcome("ambiguous", tuple(pkg_id(d) for d in dirs[:MAX_CANDIDATES]))]
else:
picked = _pick(ctx, ctx.index.ending(as_path + ".java"))
if picked is not None:
return [picked]
- head = "/".join(dotted.split(".")[:2])
- internal = any(("/" + head + "/") in ("/" + d + "/") for d in ctx.index.by_dir)
- return [UNRESOLVED if internal else _external(".".join(dotted.split(".")[:2]))]
+ parts = dotted.split(".")
+ package = parts if imp.kind == "wildcard" else parts[:-1]
+ head = "/".join(package[:3])
+ # Only a package that names a directory of this repository can be internal; a shared prefix
+ # such as org.springframework is not enough.
+ internal = bool(head) and any(("/" + head + "/") in ("/" + d + "/") for d in ctx.index.by_dir)
+ return [UNRESOLVED if internal else _external(".".join(parts[:2]))]
# ---- Rust -----------------------------------------------------------------------------------
@@ -274,9 +289,8 @@ def rust(imp: ImportFactV1, ctx: Ctx) -> list[Outcome]:
return [UNRESOLVED]
chain = chain[:-1]
rest = rest[1:]
- best: str | None = None
walked = list(chain)
- best = _rust_module_file(ctx, root, walked) if walked or head == "crate" else None
+ best = _rust_module_file(ctx, root, walked)
for segment in rest:
deeper = _rust_module_file(ctx, root, [*walked, segment])
if deeper is None:
@@ -352,9 +366,9 @@ def swift(imp: ImportFactV1, ctx: Ctx) -> list[Outcome]:
if len(dirs) == 1:
if dirs[0] == ctx.directory:
return [] # a file importing its own module
- return [Outcome("resolved", (PACKAGE + dirs[0],))]
+ return [Outcome("resolved", (pkg_id(dirs[0]),))]
if dirs:
- return [Outcome("ambiguous", tuple(PACKAGE + d for d in dirs[:MAX_CANDIDATES]))]
+ return [Outcome("ambiguous", tuple(pkg_id(d) for d in dirs[:MAX_CANDIDATES]))]
return [_external(module)]
diff --git a/backend/tests/phase3/unit/test_dependency_graph.py b/backend/tests/phase3/unit/test_dependency_graph.py
index 5852170..b19d0bb 100644
--- a/backend/tests/phase3/unit/test_dependency_graph.py
+++ b/backend/tests/phase3/unit/test_dependency_graph.py
@@ -55,7 +55,7 @@ def test_python_resolves_relative_absolute_and_submodule_imports_and_classifies_
"app/core/__init__.py": "",
"app/core/engine.py": "",
},
- inventory=["missing_pkg_dir/x.txt"],
+ inventory=["missing_pkg_dir/x.py"], # a Python file that was not analyzed,
)
got = {(m, r, t) for m, r, t in out["app/main.py"]}
assert ("os", "external", "ext:python:os") in got
@@ -245,3 +245,31 @@ def test_the_graph_is_closed_deterministic_and_independent_of_input_order():
]
assert [n.id for n in again.nodes] == [n.id for n in graph.nodes]
assert graph.counts()["resolved"] >= 4
+
+
+def test_go_module_root_package_and_java_framework_prefixes_found_by_calibration():
+ # The corpus run showed these two cases wrong: the module's root package is its own import
+ # path, and a framework shares a leading directory segment with the application's packages.
+ _, go = summarize(
+ {
+ "gin.go": 'package gin\nimport "github.com/org/repo/internal/x"\n',
+ "internal/x/x.go": "package x\n",
+ "t/t.go": 'package t\nimport "github.com/org/repo"\n',
+ }
+ )
+ assert ("github.com/org/repo", "resolved", "pkg:.") in go["t/t.go"]
+ _, java = summarize(
+ {
+ "src/org/springframework/samples/app/A.java": (
+ "package org.springframework.samples.app;\n"
+ "import org.springframework.beans.factory.annotation.Autowired;\n"
+ "import org.springframework.samples.app.B;\n"
+ "import org.springframework.samples.app.Missing;\n"
+ ),
+ "src/org/springframework/samples/app/B.java": "package org.springframework.samples.app;\n",
+ }
+ )
+ got = {(m, r) for m, r, _ in java["src/org/springframework/samples/app/A.java"]}
+ assert ("org.springframework.beans.factory.annotation.Autowired", "external") in got
+ assert ("org.springframework.samples.app.B", "resolved") in got
+ assert ("org.springframework.samples.app.Missing", "unresolved") in got # internal, absent file
From d13a2f44b0aac6080390576da9f262626a49bf05 Mon Sep 17 00:00:00 2001
From: Aman Bhaskar
Date: Thu, 12 Nov 2026 22:32:56 +0530
Subject: [PATCH 11/55] feat(report): deterministic graph analytics (cycles,
hubs, components, layers)
---
backend/app/analyzers/graph/analytics.py | 283 ++++++++++++++++++
.../tests/phase3/unit/test_graph_analytics.py | 99 ++++++
2 files changed, 382 insertions(+)
create mode 100644 backend/app/analyzers/graph/analytics.py
create mode 100644 backend/tests/phase3/unit/test_graph_analytics.py
diff --git a/backend/app/analyzers/graph/analytics.py b/backend/app/analyzers/graph/analytics.py
new file mode 100644
index 0000000..932b302
--- /dev/null
+++ b/backend/app/analyzers/graph/analytics.py
@@ -0,0 +1,283 @@
+"""Deterministic structure derived from the dependency graph: cycles, hubs, components, layers.
+
+Everything here is a derivation from resolved edges only. Ambiguous, external and unresolved edges
+never create a dependency between two repository files; they are reported separately as unknowns
+or external dependencies, so a missing edge is never read as "no dependency".
+"""
+
+from collections import Counter, defaultdict
+from dataclasses import dataclass, field
+
+from app.analyzers.graph.index import FILE, PACKAGE
+from app.contracts.architecture_report import MAX_EDGES, MAX_NODES, DependencyGraphV1
+from app.core.dsa.condensation import condense
+from app.core.dsa.projection import build_projection
+from app.core.dsa.puretypes import GraphBudget, GraphEdge
+from app.core.dsa.scc import strong_components
+
+MAX_COMPONENTS = 40
+MIN_COMPONENTS = 6
+SPLIT_FILES = 10
+TOP = 10
+ENTRY_NAMES = frozenset(
+ {"main", "index", "app", "server", "cli", "__main__", "manage", "run", "program", "start"}
+)
+
+
+@dataclass(frozen=True)
+class Hub:
+ node: str
+ count: int
+
+
+@dataclass(frozen=True)
+class ComponentSummary:
+ name: str
+ files: int
+ languages: tuple[tuple[str, int], ...]
+ inbound: int # resolved edges from other components
+ outbound: int
+ depends_on: tuple[tuple[str, int], ...] # top neighbors by edge count
+ layer: int | None
+
+
+@dataclass(frozen=True)
+class Analytics:
+ disposition: str # complete, or the reason a bounded computation stopped early
+ file_cycles: tuple[tuple[str, ...], ...] = ()
+ component_cycles: tuple[tuple[str, ...], ...] = ()
+ hubs_in: tuple[Hub, ...] = ()
+ hubs_out: tuple[Hub, ...] = ()
+ components: tuple[ComponentSummary, ...] = ()
+ layers: tuple[tuple[str, ...], ...] = ()
+ entry_candidates: tuple[str, ...] = ()
+ external: tuple[tuple[str, int], ...] = () # (external node id, importing files)
+ counts: dict[str, int] = field(default_factory=dict)
+
+
+def _budget() -> GraphBudget:
+ return GraphBudget(
+ max_nodes=MAX_NODES,
+ max_edges=MAX_EDGES,
+ max_scanned_edges=MAX_EDGES * 6,
+ max_frontier=MAX_NODES,
+ max_depth=MAX_NODES,
+ wall_seconds=20.0,
+ )
+
+
+def _directory(node_id: str) -> str:
+ """The directory a file or package node lives in ('' is the repository root)."""
+ if node_id.startswith(PACKAGE):
+ value = node_id[len(PACKAGE) :]
+ return "" if value == "." else value
+ path = node_id[len(FILE) :]
+ return path.rsplit("/", 1)[0] if "/" in path else ""
+
+
+def _kept_segments(directories: set[str]) -> dict[str, tuple[str, ...]]:
+ """Directory -> its informative segments (single-child, file-less directories are dropped)."""
+ children: dict[str, set[str]] = defaultdict(set)
+ has_files: set[str] = set()
+ for directory in directories:
+ parts = directory.split("/") if directory else []
+ for i in range(len(parts)):
+ children["/".join(parts[:i])].add(parts[i])
+ has_files.add(directory)
+ kept: dict[str, tuple[str, ...]] = {}
+ for directory in directories:
+ parts = directory.split("/") if directory else []
+ result = []
+ for i, part in enumerate(parts):
+ parent = "/".join(parts[:i])
+ unary = len(children[parent]) == 1 and parent not in has_files
+ if not unary or i == len(parts) - 1:
+ result.append(part)
+ kept[directory] = tuple(result)
+ return kept
+
+
+def assign_components(file_dirs: Counter[str]) -> dict[str, str]:
+ """Group directories into at most ``MAX_COMPONENTS`` architectural components.
+
+ Start from the first informative path segment and keep splitting the largest component by its
+ next segment while the result is still coarse; ties break by path so output is stable.
+ """
+ kept = _kept_segments(set(file_dirs))
+ depth: dict[str, int] = {} # component key -> number of kept segments used
+
+ def key(directory: str, n: int) -> str:
+ return "/".join(kept[directory][:n]) or "."
+
+ members: dict[str, list[str]] = defaultdict(list)
+ for directory in sorted(file_dirs):
+ members[key(directory, 1)].append(directory)
+ depth[key(directory, 1)] = 1
+
+ def files_of(component: str) -> int:
+ return sum(file_dirs[d] for d in members[component])
+
+ while True:
+ total = len(members)
+ if total >= MAX_COMPONENTS:
+ break
+ candidates = [
+ c
+ for c in sorted(members)
+ if files_of(c) > SPLIT_FILES
+ and any(len(kept[d]) > depth[c] for d in members[c])
+ and (total < MIN_COMPONENTS or files_of(c) > 3 * SPLIT_FILES)
+ ]
+ if not candidates:
+ break
+ target = max(candidates, key=lambda c: (files_of(c), c))
+ n = depth[target] + 1
+ groups: dict[str, list[str]] = defaultdict(list)
+ for directory in members[target]:
+ groups[key(directory, n)].append(directory)
+ if len(groups) == 1 or total - 1 + len(groups) > MAX_COMPONENTS:
+ depth[target] = n # nothing to split at this depth; look one level deeper
+ if all(len(kept[d]) <= n for d in members[target]):
+ depth[target] = 10**6 # exhausted
+ continue
+ del members[target]
+ depth.pop(target)
+ for name, dirs in groups.items():
+ members[name] = dirs
+ depth[name] = n
+ return {d: c for c, dirs in members.items() for d in dirs}
+
+
+def analyze(graph: DependencyGraphV1, budget: GraphBudget | None = None) -> Analytics:
+ limits = budget or _budget()
+ files = [n for n in graph.nodes if n.kind == "file"]
+ file_ids = {n.id for n in files}
+ resolved = [e for e in graph.edges if e.resolution == "resolved" and e.target is not None]
+ # File-level dependency edges (a file importing a package depends on the package, handled at
+ # component level because package nodes have no outgoing edges).
+ file_edges = {
+ (e.source, e.target) for e in resolved if e.target in file_ids and e.source != e.target
+ }
+ indeg: Counter[str] = Counter()
+ outdeg: Counter[str] = Counter()
+ for source, target in file_edges:
+ outdeg[source] += 1
+ indeg[target] += 1
+ for e in resolved:
+ if e.target is not None and e.target.startswith(PACKAGE):
+ outdeg[e.source] += 1
+
+ file_dirs: Counter[str] = Counter(_directory(n.id) for n in files)
+ mapping = assign_components(file_dirs) if file_dirs else {}
+
+ def component_of(node_id: str) -> str | None:
+ return mapping.get(_directory(node_id))
+
+ comp_edges: Counter[tuple[str, str]] = Counter()
+ for e in resolved:
+ assert e.target is not None
+ a, b = component_of(e.source), component_of(e.target)
+ if a is not None and b is not None and a != b:
+ comp_edges[(a, b)] += 1
+
+ disposition = "complete"
+ file_cycles: tuple[tuple[str, ...], ...] = ()
+ component_cycles: tuple[tuple[str, ...], ...] = ()
+ layers: tuple[tuple[str, ...], ...] = ()
+ layer_of: dict[str, int] = {}
+
+ def projection(nodes: list[str], edges: list[tuple[str, str]], family: str): # type: ignore[no-untyped-def]
+ return build_projection(
+ nodes,
+ [GraphEdge(f"{s}>{t}", s, t) for s, t in edges],
+ relation_family=family,
+ )
+
+ if file_ids:
+ result = strong_components(
+ projection(sorted(file_ids), sorted(file_edges), "imports"), budget=limits
+ )
+ if result.disposition != "complete":
+ disposition = result.reason or result.disposition
+ else:
+ file_cycles = tuple(c for c in result.components if len(c) > 1)
+ component_names = sorted(set(mapping.values()))
+ if component_names:
+ graph_c = projection(component_names, sorted(comp_edges), "component_imports")
+ scc = strong_components(graph_c, budget=limits)
+ cond = condense(graph_c, budget=limits)
+ if scc.disposition != "complete" or cond.disposition != "complete":
+ disposition = disposition if disposition != "complete" else (scc.reason or "budget")
+ else:
+ component_cycles = tuple(c for c in scc.components if len(c) > 1)
+ # Longest-path layering on the condensation: a component sits above what it imports.
+ depth_of = [0] * len(cond.components)
+ outgoing: dict[int, list[int]] = defaultdict(list)
+ for s, t in cond.edges:
+ outgoing[s].append(t)
+ for s in cond.topological_order:
+ for t in outgoing[s]:
+ depth_of[t] = max(depth_of[t], depth_of[s] + 1)
+ by_layer: dict[int, list[str]] = defaultdict(list)
+ for index, members in enumerate(cond.components):
+ for name in members:
+ layer_of[name] = depth_of[index]
+ by_layer[depth_of[index]].append(name)
+ layers = tuple(tuple(sorted(by_layer[k])) for k in sorted(by_layer))
+
+ languages: dict[str, Counter[str]] = defaultdict(Counter)
+ file_count: Counter[str] = Counter()
+ for n in files:
+ c = component_of(n.id)
+ if c is not None:
+ file_count[c] += 1
+ languages[c][n.language or "unknown"] += 1
+ summaries = []
+ for name in component_names:
+ neighbours = sorted(
+ ((b, n) for (a, b), n in comp_edges.items() if a == name), key=lambda x: (-x[1], x[0])
+ )
+ summaries.append(
+ ComponentSummary(
+ name=name,
+ files=file_count[name],
+ languages=tuple(sorted(languages[name].items(), key=lambda x: (-x[1], x[0]))),
+ inbound=sum(n for (a, b), n in comp_edges.items() if b == name),
+ outbound=sum(n for (a, b), n in comp_edges.items() if a == name),
+ depends_on=tuple(neighbours[:5]),
+ layer=layer_of.get(name),
+ )
+ )
+ summaries.sort(key=lambda c: (-c.files, c.name))
+
+ def top(counter: Counter[str]) -> tuple[Hub, ...]:
+ ranked = sorted(counter.items(), key=lambda x: (-x[1], x[0]))[:TOP]
+ return tuple(Hub(node, count) for node, count in ranked if count > 0)
+
+ external_users: dict[str, set[str]] = defaultdict(set)
+ for e in graph.edges:
+ if e.resolution == "external" and e.target is not None:
+ external_users[e.target].add(e.source)
+ external = tuple(
+ sorted(((k, len(v)) for k, v in external_users.items()), key=lambda x: (-x[1], x[0]))
+ )
+ entries = tuple(
+ sorted(
+ n.id
+ for n in files
+ if (n.label.rsplit("/", 1)[-1].rsplit(".", 1)[0].lower() in ENTRY_NAMES)
+ and indeg[n.id] == 0
+ )
+ )
+ return Analytics(
+ disposition=disposition,
+ file_cycles=tuple(sorted(file_cycles)),
+ component_cycles=tuple(sorted(component_cycles)),
+ hubs_in=top(indeg),
+ hubs_out=top(outdeg),
+ components=tuple(summaries),
+ layers=layers,
+ entry_candidates=entries,
+ external=external,
+ counts={**graph.counts(), "files": len(files), "components": len(component_names)},
+ )
diff --git a/backend/tests/phase3/unit/test_graph_analytics.py b/backend/tests/phase3/unit/test_graph_analytics.py
new file mode 100644
index 0000000..512c65c
--- /dev/null
+++ b/backend/tests/phase3/unit/test_graph_analytics.py
@@ -0,0 +1,99 @@
+"""Cycles, hubs, components and layers are derived only from resolved edges and are stable."""
+
+import random
+from collections import Counter
+
+from app.analyzers.graph import build_graph
+from app.analyzers.graph.analytics import analyze, assign_components
+from app.core.dsa.puretypes import GraphBudget
+
+from tests.phase3.unit.test_dependency_graph import entries
+
+
+def graph_of(files):
+ return build_graph(entries(files))
+
+
+def test_file_cycles_hubs_and_entry_points():
+ graph = graph_of(
+ {
+ "main.py": "import core\nimport a\n",
+ "core.py": "",
+ "a.py": "import b\nimport core\n",
+ "b.py": "import a\nimport core\n",
+ }
+ )
+ result = analyze(graph)
+ assert result.disposition == "complete"
+ assert result.file_cycles == (("file:a.py", "file:b.py"),)
+ assert [(h.node, h.count) for h in result.hubs_in][:1] == [("file:core.py", 3)]
+ assert result.hubs_out[0].node in {"file:a.py", "file:main.py", "file:b.py"}
+ assert result.entry_candidates == (
+ "file:main.py",
+ ) # named like an entry and nothing imports it
+
+
+def test_ambiguous_external_and_unresolved_edges_never_create_dependencies():
+ graph = graph_of(
+ {
+ "x/main.py": "import util\nimport os\nimport ghost_internal\n",
+ "x/util.py": "",
+ "y/util.py": "",
+ "z/other.py": "import util\n",
+ }
+ )
+ result = analyze(graph)
+ # `util` from x/main.py resolves to the closer x/util.py; from z/other.py it is ambiguous,
+ # so z/other.py gains no dependency and x/util.py gains no extra importer.
+ assert {h.node: h.count for h in result.hubs_in} == {"file:x/util.py": 1}
+ assert ("ext:python:os", 1) in result.external
+
+
+def test_components_collapse_single_child_chains_and_split_large_directories():
+ sizes = Counter(
+ {
+ "src/main/java/org/ex/owner": 12,
+ "src/main/java/org/ex/vet": 12,
+ "src/main/java/org/ex/system": 12,
+ "src/test/java/org/ex": 5,
+ "docs": 1,
+ }
+ )
+ mapping = assign_components(sizes)
+ assert set(mapping.values()) == {
+ "docs",
+ "src/main/owner",
+ "src/main/vet",
+ "src/main/system",
+ "src/test",
+ }
+ assert assign_components(sizes) == mapping # stable
+
+
+def test_component_cycles_and_layers():
+ graph = graph_of(
+ {
+ "app/ui.py": "from lib import service\n",
+ "lib/service.py": "from store import db\n",
+ "store/db.py": "from lib import service\n",
+ "app/__init__.py": "",
+ "lib/__init__.py": "",
+ "store/__init__.py": "",
+ }
+ )
+ result = analyze(graph)
+ names = {c.name: c for c in result.components}
+ assert set(names) == {"app", "lib", "store"}
+ assert result.component_cycles == (("lib", "store"),)
+ assert names["app"].layer == 0 and names["lib"].layer == names["store"].layer == 1
+ assert result.layers == (("app",), ("lib", "store"))
+ assert names["app"].depends_on == (("lib", 2),) # package file plus the named submodule
+
+
+def test_output_is_independent_of_input_order_and_a_budget_stop_is_reported():
+ files = {f"p{i % 3}/m{i}.py": f"import p{(i + 1) % 3}.m{(i + 3) % 9}\n" for i in range(9)}
+ items = list(files.items())
+ random.Random(3).shuffle(items) # noqa: S311
+ assert analyze(graph_of(files)) == analyze(graph_of(dict(items)))
+ starved = analyze(graph_of(files), GraphBudget(max_nodes=1, max_edges=1))
+ assert starved.disposition != "complete" # an incomplete computation says so
From b90c333157a3f6f5f91c63c55d18db61b78a366f Mon Sep 17 00:00:00 2001
From: Aman Bhaskar
Date: Thu, 12 Nov 2026 22:34:40 +0530
Subject: [PATCH 12/55] feat(report): evidence-first report assembly with
Markdown and graph payload
---
backend/app/analyzers/graph/analytics.py | 2 +
backend/app/analyzers/graph/render.py | 151 ++++++
backend/app/analyzers/graph/report.py | 431 ++++++++++++++++++
.../phase3/unit/test_architecture_report.py | 149 ++++++
4 files changed, 733 insertions(+)
create mode 100644 backend/app/analyzers/graph/render.py
create mode 100644 backend/app/analyzers/graph/report.py
create mode 100644 backend/tests/phase3/unit/test_architecture_report.py
diff --git a/backend/app/analyzers/graph/analytics.py b/backend/app/analyzers/graph/analytics.py
index 932b302..62f9aeb 100644
--- a/backend/app/analyzers/graph/analytics.py
+++ b/backend/app/analyzers/graph/analytics.py
@@ -53,6 +53,7 @@ class Analytics:
entry_candidates: tuple[str, ...] = ()
external: tuple[tuple[str, int], ...] = () # (external node id, importing files)
counts: dict[str, int] = field(default_factory=dict)
+ component_by_file: dict[str, str] = field(default_factory=dict) # file node id -> component
def _budget() -> GraphBudget:
@@ -280,4 +281,5 @@ def top(counter: Counter[str]) -> tuple[Hub, ...]:
entry_candidates=entries,
external=external,
counts={**graph.counts(), "files": len(files), "components": len(component_names)},
+ component_by_file={n.id: c for n in files if (c := component_of(n.id)) is not None},
)
diff --git a/backend/app/analyzers/graph/render.py b/backend/app/analyzers/graph/render.py
new file mode 100644
index 0000000..3ce8642
--- /dev/null
+++ b/backend/app/analyzers/graph/render.py
@@ -0,0 +1,151 @@
+# ruff: noqa: E501
+"""Deterministic Markdown and graph payload for an architecture report."""
+
+from typing import Any
+
+from app.analyzers.graph.analytics import analyze
+from app.contracts.architecture_report import (
+ ArchitectureReportV1,
+ EvidenceRefV1,
+ SectionV1,
+ StatementV1,
+ TableV1,
+)
+
+TEXT: dict[str, str] = {
+ "overview.files": "{analyzed} source files were analyzed.",
+ "overview.symbols": "{total} symbols were extracted.",
+ "overview.primary_language": "The most common language is {language} ({files} files).",
+ "stack.framework": "{framework} appears to be used (imported by {files} files).",
+ "components.count": "The code groups into {count} components.",
+ "components.layers": "The component import graph has {layers} layers.",
+ "components.grouping_heuristic": "Components are grouped by directory structure, at most {max_components}.",
+ "components.cycle": "{size} components import each other in a cycle: {members}.",
+ "dependencies.counts": "Imports: {resolved} resolved, {ambiguous} ambiguous, {external} external, {unresolved} unresolved.",
+ "dependencies.external": "{packages} external packages are imported.",
+ "dependencies.cycle": "{size} files import each other in a cycle: {members}.",
+ "dependencies.top_imported": "{node} is the most imported file ({count} importers).",
+ "dependencies.unresolved": "{edges} imports could not be located ({permille_of_internal} per mille of internal imports); their targets are unknown.",
+ "dependencies.ambiguous": "{edges} imports match several files equally well; the target is unknown.",
+ "api.routes": "{count} routes were found.",
+ "api.framework": "{routes} routes use {framework}.",
+ "data.models": "{count} data models were found.",
+ "config.names": "{count} distinct environment variables or configuration keys are read (names only).",
+ "entry.candidate": "{file} looks like an entry point (named like one and imported by nothing).",
+ "entry.route_files": "{count} files declare routes.",
+ "coverage.files": "Coverage: {analyzed} of {eligible} eligible files analyzed ({partial} partially, {omitted} omitted).",
+ "coverage.truncated": "Not every eligible file was analyzed ({unanalyzed} not analyzed, {omitted} omitted); statements about the rest are unknown.",
+ "coverage.partial_files": "{count} files had syntax errors; their facts are partial.",
+ "analytics.incomplete": "A bounded computation stopped early ({reason}); derived structure may be incomplete.",
+ "limitation.syntax_only": "Facts are syntactic: names are not resolved across files beyond the rules in this report.",
+ "limitation.aliases_and_build_configuration": "Path aliases, bundler settings, go.mod and build-system classpaths are not read, so such imports are unknown.",
+ "limitation.no_manifests": "Package manifests are not parsed; the technology stack is inferred from imports and framework facts.",
+ "limitation.config_values_not_recorded": "Only configuration names are recorded, never values.",
+ "limitation.component_grouping_is_heuristic": "Component boundaries are a directory-based heuristic, not a declared architecture.",
+}
+
+BADGE = {
+ "observation": "OBSERVED",
+ "derivation": "DERIVED",
+ "inference": "INFERRED",
+ "unknown": "UNKNOWN",
+}
+TITLE = {
+ "overview": "Overview",
+ "components": "Components",
+ "dependencies": "Dependencies",
+ "api_surface": "API surface",
+ "data_model": "Data model",
+ "configuration": "Configuration",
+ "entry_points": "Entry points",
+ "coverage": "Coverage and limitations",
+}
+
+
+class _Params(dict[str, Any]):
+ def __missing__(self, key: str) -> str:
+ return "?"
+
+
+def statement_text(statement: StatementV1) -> str:
+ template = TEXT.get(statement.code)
+ if template is None:
+ pairs = ", ".join(f"{k}={v}" for k, v in sorted(statement.params.items()))
+ return f"{statement.code}" + (f" ({pairs})" if pairs else "")
+ return template.format_map(_Params(statement.params))
+
+
+def _location(ref: EvidenceRefV1) -> str:
+ return f"{ref.path}:{ref.range.start_line}" if ref.range else ref.path
+
+
+def _cell(value: object) -> str:
+ return str(value).replace("|", "\\|").replace("\n", " ")
+
+
+def _table(table: TableV1) -> list[str]:
+ if not table.rows:
+ return []
+ lines = [f"**{table.name.replace('_', ' ')}**", "", "| " + " | ".join(table.columns) + " |"]
+ lines.append("|" + "|".join(" --- " for _ in table.columns) + "|")
+ lines += ["| " + " | ".join(_cell(v) for v in row) + " |" for row in table.rows]
+ if table.rows_total > len(table.rows):
+ lines.append(f"\n_{table.rows_total - len(table.rows)} more rows not shown._")
+ return [*lines, ""]
+
+
+def _section(section: SectionV1) -> list[str]:
+ lines = [f"## {TITLE[section.name]}", ""]
+ for s in section.statements:
+ refs = ", ".join(_location(r) for r in s.evidence[:3])
+ more = s.evidence_total - min(3, len(s.evidence))
+ evidence = f" (evidence: {refs}{f' and {more} more' if more > 0 else ''})" if refs else ""
+ lines.append(f"- **{BADGE[s.kind]}** {statement_text(s)}{evidence}")
+ lines.append("")
+ for table in section.tables:
+ lines += _table(table)
+ return lines
+
+
+def render_markdown(report: ArchitectureReportV1) -> str:
+ cov = report.coverage
+ lines = ["# Architecture report", ""]
+ if not cov.complete:
+ lines += [
+ f"> **Partial coverage:** {cov.analyzed_files} of {cov.eligible_files} eligible files "
+ "were analyzed. Everything below describes only those files.",
+ "",
+ ]
+ lines += [
+ f"Report digest: `{report.digest()}` ",
+ f"Inputs digest: `{report.inputs_digest}`",
+ "",
+ ]
+ order = list(TITLE)
+ for section in sorted(report.sections, key=lambda s: order.index(s.name)):
+ lines += _section(section)
+ return "\n".join(lines).rstrip() + "\n"
+
+
+def graph_payload(report: ArchitectureReportV1) -> dict[str, Any]:
+ """D3-compatible ``{nodes, links}`` for resolved and external edges; unknowns are counted."""
+ components = analyze(report.graph).component_by_file
+ counts = report.graph.counts()
+ return {
+ "nodes": [
+ {
+ "id": n.id,
+ "label": n.label,
+ "kind": n.kind,
+ "language": n.language,
+ "group": components.get(n.id),
+ }
+ for n in report.graph.nodes
+ ],
+ "links": [
+ {"source": e.source, "target": e.target, "resolution": e.resolution}
+ for e in report.graph.edges
+ if e.target is not None
+ ],
+ "unknown": {"ambiguous": counts["ambiguous"], "unresolved": counts["unresolved"]},
+ }
diff --git a/backend/app/analyzers/graph/report.py b/backend/app/analyzers/graph/report.py
new file mode 100644
index 0000000..ed199dc
--- /dev/null
+++ b/backend/app/analyzers/graph/report.py
@@ -0,0 +1,431 @@
+"""Assemble the evidence-first architecture report from published per-file facts.
+
+Pure and deterministic: the same facts, inventory and coverage always give the same report. Every
+statement is typed (observation, derivation, inference, unknown). Counts and rankings are
+derivations; "this project uses framework X" and "this looks like an entry point" are inferences;
+what the facts cannot settle (unresolved imports, partial files, truncated coverage, fixed
+limitations) is stated as unknown. Statements carry evidence (file and range), never source text.
+"""
+
+from collections import Counter, defaultdict
+from collections.abc import Iterable, Sequence
+from uuid import UUID
+
+from app.analyzers.graph.analytics import Analytics, analyze
+from app.analyzers.graph.build import FileEntry, build_graph
+from app.contracts.architecture_report import (
+ ArchitectureReportV1,
+ CoverageV1,
+ DependencyGraphV1,
+ EvidenceRefV1,
+ Scalar,
+ SectionV1,
+ StatementV1,
+ TableV1,
+ inputs_digest,
+)
+from app.contracts.ast_facts import FileFactsV1
+from app.domain.source_ranges import SourceRangeV1
+
+MAX_TABLE_ROWS = 200
+MAX_EVIDENCE = 8
+
+# External import roots that indicate a framework. Detection is an inference, never an observation.
+FRAMEWORKS: dict[tuple[str, str], str] = {
+ ("python", "flask"): "Flask",
+ ("python", "django"): "Django",
+ ("python", "fastapi"): "FastAPI",
+ ("python", "sqlalchemy"): "SQLAlchemy",
+ ("python", "pydantic"): "Pydantic",
+ ("python", "celery"): "Celery",
+ ("js", "express"): "Express",
+ ("js", "react"): "React",
+ ("js", "next"): "Next.js",
+ ("js", "vue"): "Vue",
+ ("js", "koa"): "Koa",
+ ("js", "@nestjs/core"): "NestJS",
+ ("go", "github.com/gin-gonic/gin"): "Gin",
+ ("go", "github.com/labstack/echo"): "Echo",
+ ("java", "org.springframework"): "Spring",
+ ("java", "jakarta.persistence"): "JPA",
+ ("rust", "tokio"): "Tokio",
+ ("rust", "axum"): "Axum",
+ ("rust", "serde"): "Serde",
+ ("ruby", "sinatra"): "Sinatra",
+ ("ruby", "rails"): "Rails",
+ ("php", "Illuminate"): "Laravel",
+ ("php", "Slim"): "Slim",
+ ("swift", "Alamofire"): "Alamofire",
+ ("swift", "SwiftUI"): "SwiftUI",
+}
+
+
+def _clip(value: str | None, limit: int = 256) -> str:
+ return (value or "")[:limit]
+
+
+def _ref(entry: FileEntry, fact: str, range_: SourceRangeV1 | None) -> EvidenceRefV1:
+ return EvidenceRefV1(
+ file_id=entry.file_id,
+ path=entry.path,
+ fact=fact, # type: ignore[arg-type]
+ range=range_,
+ )
+
+
+def _statement(
+ kind: str,
+ code: str,
+ params: dict[str, Scalar] | None = None,
+ evidence: Sequence[EvidenceRefV1] = (),
+) -> StatementV1:
+ return StatementV1(
+ kind=kind, # type: ignore[arg-type]
+ code=code,
+ params=params or {},
+ evidence=tuple(evidence[:MAX_EVIDENCE]),
+ evidence_total=len(evidence),
+ )
+
+
+def _table(name: str, columns: tuple[str, ...], rows: Sequence[tuple[Scalar, ...]]) -> TableV1:
+ return TableV1(
+ name=name,
+ columns=columns,
+ rows=tuple(rows[:MAX_TABLE_ROWS]),
+ rows_total=len(rows),
+ )
+
+
+def _overview(
+ files: Sequence[FileEntry], graph: DependencyGraphV1, stack: list[StatementV1]
+) -> SectionV1:
+ by_language: Counter[str] = Counter(f.language for f in files)
+ symbols: Counter[str] = Counter()
+ for f in files:
+ symbols[f.language] += len(f.facts.symbols)
+ rows = [
+ (lang, n, symbols[lang])
+ for lang, n in sorted(by_language.items(), key=lambda x: (-x[1], x[0]))
+ ]
+ statements = [
+ _statement("derivation", "overview.files", {"analyzed": len(files)}),
+ _statement("derivation", "overview.symbols", {"total": sum(symbols.values())}),
+ ]
+ if rows:
+ statements.append(
+ _statement(
+ "derivation",
+ "overview.primary_language",
+ {"language": rows[0][0], "files": rows[0][1]},
+ )
+ )
+ statements.extend(stack)
+ return SectionV1(
+ name="overview",
+ statements=tuple(statements),
+ tables=(_table("languages", ("language", "files", "symbols"), rows),),
+ )
+
+
+def _frameworks(files: Sequence[FileEntry], graph: DependencyGraphV1) -> list[StatementV1]:
+ entries = {f.path: f for f in files}
+ evidence: dict[str, list[EvidenceRefV1]] = defaultdict(list)
+ for edge in graph.edges:
+ if edge.resolution != "external" or edge.target is None:
+ continue
+ family, _, root = edge.target[len("ext:") :].partition(":")
+ for (language, prefix), name in FRAMEWORKS.items():
+ if family == language and (root == prefix or root.startswith(prefix + "/")):
+ evidence[name].append(edge.evidence)
+ out = []
+ for name in sorted(evidence):
+ users = {e.path for e in evidence[name]}
+ out.append(
+ _statement(
+ "inference",
+ "stack.framework",
+ {"framework": name, "files": len(users)},
+ evidence[name],
+ )
+ )
+ del entries
+ return out
+
+
+def _components(a: Analytics) -> SectionV1:
+ rows = [
+ (
+ c.name,
+ c.files,
+ ", ".join(f"{k}:{v}" for k, v in c.languages[:3]),
+ c.inbound,
+ c.outbound,
+ -1 if c.layer is None else c.layer,
+ )
+ for c in a.components
+ ]
+ statements = [
+ _statement("derivation", "components.count", {"count": len(a.components)}),
+ _statement("derivation", "components.layers", {"layers": len(a.layers)}),
+ _statement("inference", "components.grouping_heuristic", {"max_components": 40}),
+ ]
+ for cycle in a.component_cycles[:20]:
+ statements.append(
+ _statement(
+ "derivation",
+ "components.cycle",
+ {"size": len(cycle), "members": ", ".join(cycle)[:500]},
+ )
+ )
+ return SectionV1(
+ name="components",
+ statements=tuple(statements),
+ tables=(
+ _table(
+ "components",
+ ("component", "files", "languages", "inbound", "outbound", "layer"),
+ rows,
+ ),
+ ),
+ )
+
+
+def _dependencies(files: Sequence[FileEntry], graph: DependencyGraphV1, a: Analytics) -> SectionV1:
+ counts = graph.counts()
+ statements = [
+ _statement("derivation", "dependencies.counts", dict(counts)),
+ _statement("derivation", "dependencies.external", {"packages": len(a.external)}),
+ ]
+ for cycle in a.file_cycles[:20]:
+ statements.append(
+ _statement(
+ "derivation",
+ "dependencies.cycle",
+ {
+ "size": len(cycle),
+ "members": ", ".join(m.removeprefix("file:") for m in cycle[:5])[:500],
+ },
+ )
+ )
+ for hub in a.hubs_in[:1]:
+ statements.append(
+ _statement(
+ "derivation", "dependencies.top_imported", {"node": hub.node, "count": hub.count}
+ )
+ )
+ unresolved = [e for e in graph.edges if e.resolution == "unresolved"]
+ ambiguous = [e for e in graph.edges if e.resolution == "ambiguous"]
+ internal = counts["resolved"] + counts["ambiguous"] + counts["unresolved"]
+ if unresolved:
+ statements.append(
+ _statement(
+ "unknown",
+ "dependencies.unresolved",
+ {
+ "edges": len(unresolved),
+ "permille_of_internal": 1000 * len(unresolved) // max(1, internal),
+ },
+ [e.evidence for e in unresolved],
+ )
+ )
+ if ambiguous:
+ statements.append(
+ _statement(
+ "unknown",
+ "dependencies.ambiguous",
+ {"edges": len(ambiguous)},
+ [e.evidence for e in ambiguous],
+ )
+ )
+ modules = Counter(e.module for e in unresolved)
+ tables = (
+ _table(
+ "hubs_imported",
+ ("file", "importers"),
+ [(h.node.removeprefix("file:"), h.count) for h in a.hubs_in],
+ ),
+ _table(
+ "hubs_importing",
+ ("file", "dependencies"),
+ [(h.node.removeprefix("file:"), h.count) for h in a.hubs_out],
+ ),
+ _table(
+ "external_packages",
+ ("package", "importing_files"),
+ [(k.removeprefix("ext:"), n) for k, n in a.external],
+ ),
+ _table(
+ "unresolved_modules",
+ ("module", "edges"),
+ [(m[:256], n) for m, n in sorted(modules.items(), key=lambda x: (-x[1], x[0]))],
+ ),
+ )
+ return SectionV1(name="dependencies", statements=tuple(statements), tables=tables)
+
+
+def _api(files: Sequence[FileEntry]) -> SectionV1:
+ rows: list[tuple[Scalar, ...]] = []
+ evidence: list[EvidenceRefV1] = []
+ frameworks: Counter[str] = Counter()
+ for f in files:
+ for r in f.facts.routes:
+ rows.append(
+ (r.framework, r.method, _clip(r.path), _clip(r.handler), f.path, r.range.start_line)
+ )
+ evidence.append(_ref(f, "route", r.range))
+ frameworks[r.framework] += 1
+ statements = [_statement("derivation", "api.routes", {"count": len(rows)}, evidence)]
+ for name, n in sorted(frameworks.items()):
+ statements.append(
+ _statement("derivation", "api.framework", {"framework": name, "routes": n})
+ )
+ return SectionV1(
+ name="api_surface",
+ statements=tuple(statements),
+ tables=(
+ _table("routes", ("framework", "method", "path", "handler", "file", "line"), rows),
+ ),
+ )
+
+
+def _data(files: Sequence[FileEntry]) -> SectionV1:
+ rows: list[tuple[Scalar, ...]] = []
+ evidence: list[EvidenceRefV1] = []
+ for f in files:
+ for m in f.facts.models:
+ rows.append(
+ (m.framework, m.name, _clip(m.table), len(m.columns), f.path, m.range.start_line)
+ )
+ evidence.append(_ref(f, "model", m.range))
+ return SectionV1(
+ name="data_model",
+ statements=(_statement("derivation", "data.models", {"count": len(rows)}, evidence),),
+ tables=(
+ _table("models", ("framework", "model", "table", "columns", "file", "line"), rows),
+ ),
+ )
+
+
+def _config(files: Sequence[FileEntry]) -> SectionV1:
+ seen: dict[tuple[str, str], set[str]] = defaultdict(set)
+ evidence: list[EvidenceRefV1] = []
+ for f in files:
+ for c in f.facts.config:
+ seen[(c.kind, c.name)].add(f.path)
+ evidence.append(_ref(f, "config", c.range))
+ rows = [(k, n, len(p)) for (k, n), p in sorted(seen.items(), key=lambda x: (-len(x[1]), x[0]))]
+ return SectionV1(
+ name="configuration",
+ statements=(_statement("derivation", "config.names", {"count": len(rows)}, evidence),),
+ tables=(_table("config_reads", ("kind", "name", "files"), rows),),
+ )
+
+
+def _entries(files: Sequence[FileEntry], a: Analytics) -> SectionV1:
+ by_path = {f"file:{f.path}": f for f in files}
+ statements = []
+ for node in a.entry_candidates[:20]:
+ entry = by_path[node]
+ statements.append(
+ _statement(
+ "inference", "entry.candidate", {"file": entry.path}, [_ref(entry, "file", None)]
+ )
+ )
+ route_files = sorted({f.path for f in files if f.facts.routes})
+ statements.append(_statement("derivation", "entry.route_files", {"count": len(route_files)}))
+ return SectionV1(name="entry_points", statements=tuple(statements))
+
+
+LIMITATIONS = (
+ "limitation.syntax_only",
+ "limitation.aliases_and_build_configuration",
+ "limitation.no_manifests",
+ "limitation.config_values_not_recorded",
+ "limitation.component_grouping_is_heuristic",
+)
+
+
+def _coverage(files: Sequence[FileEntry], cov: CoverageV1, a: Analytics) -> SectionV1:
+ statements = [
+ _statement(
+ "derivation",
+ "coverage.files",
+ {
+ "eligible": cov.eligible_files,
+ "analyzed": cov.analyzed_files,
+ "partial": cov.partial_files,
+ "omitted": cov.omitted_files,
+ },
+ )
+ ]
+ if not cov.complete:
+ statements.append(
+ _statement(
+ "unknown",
+ "coverage.truncated",
+ {
+ "unanalyzed": cov.eligible_files - cov.analyzed_files,
+ "omitted": cov.omitted_files,
+ },
+ )
+ )
+ partial = [f for f in files if f.facts.status == "partial"]
+ if partial:
+ statements.append(
+ _statement(
+ "unknown",
+ "coverage.partial_files",
+ {"count": len(partial)},
+ [_ref(f, "file", None) for f in partial],
+ )
+ )
+ if a.disposition != "complete":
+ statements.append(_statement("unknown", "analytics.incomplete", {"reason": a.disposition}))
+ statements.extend(_statement("unknown", code) for code in LIMITATIONS)
+ return SectionV1(name="coverage", statements=tuple(statements))
+
+
+def assemble_report(
+ *,
+ org_id: UUID,
+ repository_id: UUID,
+ snapshot_id: UUID,
+ files: Sequence[FileEntry],
+ inventory: Iterable[str],
+ eligible_files: int,
+ omitted_files: int,
+ fact_runs: tuple[UUID, ...],
+) -> ArchitectureReportV1:
+ ordered = sorted(files, key=lambda f: f.path)
+ graph = build_graph(ordered, inventory)
+ analytics = analyze(graph)
+ partial = sum(1 for f in ordered if f.facts.status == "partial")
+ coverage = CoverageV1(
+ eligible_files=max(eligible_files, len(ordered)),
+ analyzed_files=len(ordered),
+ partial_files=partial,
+ omitted_files=omitted_files,
+ fact_runs=tuple(sorted(fact_runs)),
+ )
+ digests = tuple(FileFactsV1.facts_sha256(f.facts) for f in ordered)
+ report = ArchitectureReportV1(
+ org_id=org_id,
+ repository_id=repository_id,
+ snapshot_id=snapshot_id,
+ inputs_digest=inputs_digest(fact_runs, digests),
+ coverage=coverage,
+ graph=graph,
+ sections=(
+ _overview(ordered, graph, _frameworks(ordered, graph)),
+ _components(analytics),
+ _dependencies(ordered, graph, analytics),
+ _api(ordered),
+ _data(ordered),
+ _config(ordered),
+ _entries(ordered, analytics),
+ _coverage(ordered, coverage, analytics),
+ ),
+ )
+ report.check_size()
+ return report
diff --git a/backend/tests/phase3/unit/test_architecture_report.py b/backend/tests/phase3/unit/test_architecture_report.py
new file mode 100644
index 0000000..239115d
--- /dev/null
+++ b/backend/tests/phase3/unit/test_architecture_report.py
@@ -0,0 +1,149 @@
+"""The assembled report: typed statements, honest unknowns, no source values, deterministic."""
+
+import json
+import random
+from uuid import uuid4
+
+from app.analyzers.graph import FileEntry
+from app.analyzers.graph.render import graph_payload, render_markdown, statement_text
+from app.analyzers.graph.report import LIMITATIONS, assemble_report
+
+from tests.phase3.unit.test_dependency_graph import entries
+
+SECRET = "hunter2-SUPER-SECRET-DEFAULT" # noqa: S105 - must never appear in any report output
+
+FILES = {
+ "app/__init__.py": "",
+ "app/web.py": (
+ "import os\nfrom flask import Flask\nfrom app import models\nfrom app.util import helper\n"
+ f'app = Flask(__name__)\nDB = os.getenv("DB_URL", "{SECRET}")\n'
+ '@app.route("/users", methods=["GET"])\ndef users(): return helper()\n'
+ '@app.route("/items")\ndef items(): return []\n'
+ ),
+ "app/models.py": (
+ "from sqlalchemy import Column, Integer\nclass User(Base):\n"
+ ' __tablename__ = "users"\n id = Column(Integer, primary_key=True)\n'
+ ),
+ "app/util.py": "import ghost_internal\ndef helper(): return 1\n",
+ "main.py": "from app import web\nimport requests\n",
+}
+
+
+def build(files=None, **overrides):
+ items = entries(files or FILES)
+ values = {
+ "org_id": uuid4(),
+ "repository_id": uuid4(),
+ "snapshot_id": uuid4(),
+ "files": items,
+ "inventory": [f.path for f in items] + ["ghost_internal/x.py"],
+ "eligible_files": len(items),
+ "omitted_files": 0,
+ "fact_runs": (uuid4(),),
+ }
+ return assemble_report(**{**values, **overrides}), items
+
+
+def statements(report, name):
+ return next(s for s in report.sections if s.name == name).statements
+
+
+def test_sections_carry_typed_statements_tables_and_evidence():
+ report, _ = build()
+ names = [s.name for s in report.sections]
+ assert names == [
+ "overview", "components", "dependencies", "api_surface",
+ "data_model", "configuration", "entry_points", "coverage",
+ ] # fmt: skip
+ overview = statements(report, "overview")
+ assert {s.code for s in overview} >= {"overview.files", "overview.symbols", "stack.framework"}
+ framework = next(s for s in overview if s.code == "stack.framework")
+ assert framework.kind == "inference" and framework.params["framework"] == "Flask"
+ assert framework.evidence and framework.evidence[0].fact == "import"
+ api = next(s for s in report.sections if s.name == "api_surface")
+ assert next(s for s in api.statements if s.code == "api.routes").params["count"] == 2
+ assert {row[2] for row in api.tables[0].rows} == {"/users", "/items"}
+ data = next(s for s in report.sections if s.name == "data_model")
+ assert data.tables[0].rows[0][1:3] == ("User", "users")
+ config = next(s for s in report.sections if s.name == "configuration")
+ assert ("env_var", "DB_URL", 1) in config.tables[0].rows
+
+
+def test_what_the_facts_cannot_settle_is_stated_as_unknown_never_absent():
+ report, _ = build()
+ deps = {s.code: s for s in statements(report, "dependencies")}
+ assert (
+ deps["dependencies.unresolved"].kind == "unknown"
+ ) # ghost_internal exists but is unlocatable
+ assert deps["dependencies.unresolved"].evidence
+ coverage = statements(report, "coverage")
+ assert [s.code for s in coverage if s.code.startswith("limitation.")] == list(LIMITATIONS)
+ assert all(s.kind == "unknown" for s in coverage if s.code.startswith("limitation."))
+ assert report.coverage.complete and not any(s.code == "coverage.truncated" for s in coverage)
+
+
+def test_truncated_coverage_is_loud_in_the_data_and_the_markdown():
+ report, items = build(eligible_files=len(FILES) + 40, omitted_files=40)
+ coverage = {s.code: s for s in statements(report, "coverage")}
+ assert coverage["coverage.truncated"].kind == "unknown"
+ assert not report.coverage.complete
+ markdown = render_markdown(report)
+ assert markdown.splitlines()[2].startswith("> **Partial coverage:**")
+ assert f"{len(items)} of {len(items) + 40}" in markdown
+
+
+def test_no_source_value_reaches_the_report_markdown_or_graph():
+ report, _ = build()
+ for text in (
+ json.dumps(report.model_dump(mode="json")),
+ render_markdown(report),
+ json.dumps(graph_payload(report)),
+ ):
+ assert SECRET not in text
+ assert "DB_URL" in render_markdown(report) # names are recorded, values never
+
+
+def test_report_is_deterministic_and_independent_of_file_order():
+ first, items = build()
+ ids = {
+ "org_id": first.org_id,
+ "repository_id": first.repository_id,
+ "snapshot_id": first.snapshot_id,
+ "fact_runs": first.coverage.fact_runs,
+ }
+ shuffled = list(items)
+ random.Random(5).shuffle(shuffled) # noqa: S311
+ second = assemble_report(
+ **ids,
+ files=shuffled,
+ inventory=[f.path for f in items] + ["ghost_internal/x.py"],
+ eligible_files=len(items),
+ omitted_files=0,
+ )
+ assert second.digest() == first.digest() and render_markdown(second) == render_markdown(first)
+ assert isinstance(items[0], FileEntry)
+
+
+def test_markdown_and_graph_payload_shape():
+ report, _ = build()
+ markdown = render_markdown(report)
+ for heading in (
+ "## Overview",
+ "## Components",
+ "## Dependencies",
+ "## API surface",
+ "## Coverage and limitations",
+ ):
+ assert heading in markdown
+ assert "**INFERRED** Flask appears to be used" in markdown
+ assert "**UNKNOWN**" in markdown and "| /users |" in markdown.replace(
+ "GET | /users", "| /users"
+ )
+ payload = graph_payload(report)
+ ids = {n["id"] for n in payload["nodes"]}
+ assert all(link["source"] in ids and link["target"] in ids for link in payload["links"])
+ assert payload["unknown"]["unresolved"] >= 1
+ assert any(n["group"] for n in payload["nodes"] if n["kind"] == "file")
+ assert statement_text(
+ next(s for s in statements(report, "overview") if s.code == "overview.files")
+ ).startswith("5 source files")
From 1be8aab9dae85d88f53cdf779eea057bd850e647 Mon Sep 17 00:00:00 2001
From: Aman Bhaskar
Date: Thu, 12 Nov 2026 22:35:26 +0530
Subject: [PATCH 13/55] fix(report): unambiguous-only Python resolution found
by the Flask corpus report
---
backend/app/analyzers/graph/report.py | 4 +++-
backend/app/analyzers/graph/resolvers.py | 21 +++++++++++++++++--
.../phase3/unit/test_dependency_graph.py | 19 +++++++++++++++++
3 files changed, 41 insertions(+), 3 deletions(-)
diff --git a/backend/app/analyzers/graph/report.py b/backend/app/analyzers/graph/report.py
index ed199dc..14b85d8 100644
--- a/backend/app/analyzers/graph/report.py
+++ b/backend/app/analyzers/graph/report.py
@@ -211,7 +211,9 @@ def _dependencies(files: Sequence[FileEntry], graph: DependencyGraphV1, a: Analy
for hub in a.hubs_in[:1]:
statements.append(
_statement(
- "derivation", "dependencies.top_imported", {"node": hub.node, "count": hub.count}
+ "derivation",
+ "dependencies.top_imported",
+ {"node": hub.node.removeprefix("file:"), "count": hub.count},
)
)
unresolved = [e for e in graph.edges if e.resolution == "unresolved"]
diff --git a/backend/app/analyzers/graph/resolvers.py b/backend/app/analyzers/graph/resolvers.py
index e5b3b47..16d9f05 100644
--- a/backend/app/analyzers/graph/resolvers.py
+++ b/backend/app/analyzers/graph/resolvers.py
@@ -60,6 +60,23 @@ def _pick(ctx: Ctx, candidates: list[str]) -> Outcome | None:
return Outcome("ambiguous", tuple(file_id(c) for c in chosen[:MAX_CANDIDATES]))
+def _pick_strict(ctx: Ctx, candidates: list[str]) -> Outcome | None:
+ """Resolve only when unambiguous: a lone candidate, or the lone one beside the importer.
+
+ Python's import path depends on how the program is launched, so "nearest tree wins" would
+ silently bind a test fixture named like a library to every test. Anything else stays ambiguous.
+ """
+ unique = sorted(set(candidates))
+ if not unique:
+ return None
+ if len(unique) == 1:
+ return Outcome("resolved", (file_id(unique[0]),))
+ beside = [c for c in unique if parent(c) == ctx.directory]
+ if len(beside) == 1:
+ return Outcome("resolved", (file_id(beside[0]),))
+ return Outcome("ambiguous", tuple(file_id(c) for c in unique[:MAX_CANDIDATES]))
+
+
def _external(root: str) -> Outcome:
return Outcome("external", external=root)
@@ -98,11 +115,11 @@ def python(imp: ImportFactV1, ctx: Ctx) -> list[Outcome]:
if sub_files:
outcomes.append(Outcome("resolved", (file_id(sub_files[0]),)))
return outcomes or [UNRESOLVED]
- module_outcome = _pick(ctx, _py_module_files(ctx, imp.module))
+ module_outcome = _pick_strict(ctx, _py_module_files(ctx, imp.module))
if module_outcome is not None:
outcomes.append(module_outcome)
for name in names:
- sub = _pick(ctx, _py_module_files(ctx, f"{imp.module}.{name}"))
+ sub = _pick_strict(ctx, _py_module_files(ctx, f"{imp.module}.{name}"))
if sub is not None:
outcomes.append(sub)
if outcomes:
diff --git a/backend/tests/phase3/unit/test_dependency_graph.py b/backend/tests/phase3/unit/test_dependency_graph.py
index b19d0bb..60d1729 100644
--- a/backend/tests/phase3/unit/test_dependency_graph.py
+++ b/backend/tests/phase3/unit/test_dependency_graph.py
@@ -273,3 +273,22 @@ def test_go_module_root_package_and_java_framework_prefixes_found_by_calibration
assert ("org.springframework.beans.factory.annotation.Autowired", "external") in got
assert ("org.springframework.samples.app.B", "resolved") in got
assert ("org.springframework.samples.app.Missing", "unresolved") in got # internal, absent file
+
+
+def test_a_python_fixture_named_like_a_library_does_not_capture_every_importer():
+ # Found on the Flask corpus: tests/.../flask.py would otherwise win for every nearby importer.
+ _, out = summarize(
+ {
+ "src/flask/__init__.py": "",
+ "tests/t/test_a.py": "import flask\n",
+ "tests/t/deep/flask.py": "",
+ "tests/t/test_b.py": "import deep\n",
+ "tests/t/deep/__init__.py": "",
+ }
+ )
+ kind = out["tests/t/test_a.py"][0]
+ assert kind[1] == "ambiguous" and set(kind[2]) == {
+ "file:src/flask/__init__.py",
+ "file:tests/t/deep/flask.py",
+ }
+ assert out["tests/t/test_b.py"] == [("deep", "resolved", "file:tests/t/deep/__init__.py")]
From 9ea010106a6ba0ff0e4e6fb29b857c7416497169 Mon Sep 17 00:00:00 2001
From: Aman Bhaskar
Date: Fri, 13 Nov 2026 06:43:53 +0530
Subject: [PATCH 14/55] feat(report): deterministic fact-analysis shard planner
---
backend/app/analyzers/graph/shards.py | 121 +++++++++++++++++++
backend/tests/phase3/unit/test_shard_plan.py | 76 ++++++++++++
2 files changed, 197 insertions(+)
create mode 100644 backend/app/analyzers/graph/shards.py
create mode 100644 backend/tests/phase3/unit/test_shard_plan.py
diff --git a/backend/app/analyzers/graph/shards.py b/backend/app/analyzers/graph/shards.py
new file mode 100644
index 0000000..60b2313
--- /dev/null
+++ b/backend/app/analyzers/graph/shards.py
@@ -0,0 +1,121 @@
+"""Partition a snapshot's analyzable files into fact-analysis shards.
+
+One AST-facts analysis reads at most 128 files and 16 MiB and takes at most 16 include prefixes. A
+prefix selects a file or a whole directory tree, so a shard is a set of disjoint prefixes. The plan
+is a pure function of the file list: the same inventory always gives the same shards, and every
+path lands in exactly one shard.
+"""
+
+import hashlib
+from collections.abc import Mapping
+from dataclasses import dataclass, field
+
+from app.contracts.structure import normalize_prefixes
+
+MAX_FILES = 128
+MAX_PREFIXES = 16
+MAX_BYTES = 15 * 1024 * 1024 # under the 16 MiB analysis limit, with margin
+
+
+@dataclass(frozen=True)
+class Shard:
+ index: int
+ prefixes: tuple[str, ...] # empty means the whole snapshot (only for a single-shard plan)
+ files: int
+ bytes: int
+
+
+@dataclass(frozen=True)
+class ShardPlan:
+ shards: tuple[Shard, ...]
+ total_files: int
+ skipped: tuple[str, ...] # paths no include prefix can name
+ digest: str
+
+
+@dataclass
+class _Node:
+ files: dict[str, int] = field(default_factory=dict) # direct files: name -> size
+ dirs: dict[str, "_Node"] = field(default_factory=dict)
+ count: int = 0
+ size: int = 0
+
+
+def _tree(sizes: Mapping[str, int]) -> _Node:
+ root = _Node()
+ for path in sorted(sizes):
+ parts = path.split("/")
+ node = root
+ node.count += 1
+ node.size += sizes[path]
+ for part in parts[:-1]:
+ node = node.dirs.setdefault(part, _Node())
+ node.count += 1
+ node.size += sizes[path]
+ node.files[parts[-1]] = sizes[path]
+ return root
+
+
+def _usable(path: str) -> bool:
+ try:
+ normalize_prefixes((path,))
+ except ValueError:
+ return False
+ return True
+
+
+def plan_shards(sizes: Mapping[str, int]) -> ShardPlan:
+ """``sizes`` maps every analyzable path to its size in bytes."""
+ usable = {p: s for p, s in sizes.items() if _usable(p)}
+ skipped = tuple(sorted(set(sizes) - set(usable)))
+ root = _tree(usable)
+ if root.count == 0:
+ return ShardPlan((), 0, skipped, hashlib.sha256(b"[]").hexdigest())
+ if root.count <= MAX_FILES and root.size <= MAX_BYTES:
+ shard = Shard(0, (), root.count, root.size)
+ return ShardPlan((shard,), root.count, skipped, _digest((shard,)))
+
+ units: list[tuple[str, int, int]] = [] # (prefix, files, bytes)
+
+ def cover(node: _Node, path: str) -> None:
+ if path and node.count <= MAX_FILES and node.size <= MAX_BYTES:
+ units.append((path, node.count, node.size))
+ return
+ for name, size in sorted(node.files.items()):
+ units.append((f"{path}/{name}" if path else name, 1, size))
+ for name, child in sorted(node.dirs.items()):
+ cover(child, f"{path}/{name}" if path else name)
+
+ cover(root, "")
+ bins: list[list[tuple[str, int, int]]] = []
+ for unit in sorted(units, key=lambda u: (-u[1], -u[2], u[0])):
+ for bin_ in bins:
+ if (
+ len(bin_) < MAX_PREFIXES
+ and sum(u[1] for u in bin_) + unit[1] <= MAX_FILES
+ and sum(u[2] for u in bin_) + unit[2] <= MAX_BYTES
+ ):
+ bin_.append(unit)
+ break
+ else:
+ bins.append([unit])
+ shards = tuple(
+ Shard(
+ index=i,
+ prefixes=tuple(sorted(u[0] for u in bin_)),
+ files=sum(u[1] for u in bin_),
+ bytes=sum(u[2] for u in bin_),
+ )
+ for i, bin_ in enumerate(sorted(bins, key=lambda b: sorted(u[0] for u in b)))
+ )
+ return ShardPlan(shards, root.count, skipped, _digest(shards))
+
+
+def _digest(shards: tuple[Shard, ...]) -> str:
+ material = "\n".join(f"{s.index}:{'|'.join(s.prefixes)}" for s in shards)
+ return hashlib.sha256(material.encode()).hexdigest()
+
+
+def selects(prefixes: tuple[str, ...], path: str) -> bool:
+ """The same prefix rule the source reader applies."""
+ return not prefixes or any(path == p or path.startswith(p + "/") for p in prefixes)
diff --git a/backend/tests/phase3/unit/test_shard_plan.py b/backend/tests/phase3/unit/test_shard_plan.py
new file mode 100644
index 0000000..3ab1f45
--- /dev/null
+++ b/backend/tests/phase3/unit/test_shard_plan.py
@@ -0,0 +1,76 @@
+"""Shard plans cover every analyzable file exactly once within the analysis limits."""
+
+import random
+
+from app.analyzers.graph.shards import (
+ MAX_BYTES,
+ MAX_FILES,
+ MAX_PREFIXES,
+ plan_shards,
+ selects,
+)
+
+
+def assert_valid(plan, sizes):
+ seen: dict[str, int] = {}
+ for shard in plan.shards:
+ covered = [p for p in sizes if selects(shard.prefixes, p) and p not in plan.skipped]
+ assert len(covered) == shard.files <= MAX_FILES
+ assert sum(sizes[p] for p in covered) == shard.bytes <= MAX_BYTES
+ assert len(shard.prefixes) <= MAX_PREFIXES
+ for path in covered:
+ seen[path] = seen.get(path, 0) + 1
+ usable = [p for p in sizes if p not in plan.skipped]
+ assert sorted(seen) == sorted(usable) and set(seen.values()) <= {1}, "exactly once"
+ assert plan.total_files == len(usable)
+
+
+def test_a_small_repository_is_one_whole_snapshot_shard():
+ sizes = {f"src/f{i}.py": 100 for i in range(50)}
+ plan = plan_shards(sizes)
+ assert [(s.prefixes, s.files) for s in plan.shards] == [((), 50)]
+ assert_valid(plan, sizes)
+
+
+def test_directories_are_covered_by_prefix_and_packed_within_the_limits():
+ sizes = {f"{top}/m{i}.py": 1000 for top in ("a", "b", "c", "d") for i in range(60)}
+ plan = plan_shards(sizes)
+ assert len(plan.shards) == 2 and all(len(s.prefixes) == 2 for s in plan.shards) # 120 + 120
+ assert_valid(plan, sizes)
+ wide = {f"{top}/m{i}.py": 1000 for top in ("a", "b", "c", "d") for i in range(70)}
+ assert len(plan_shards(wide).shards) == 4 # two 70-file directories never fit in 128
+ assert_valid(plan_shards(wide), wide)
+
+
+def test_a_large_flat_directory_is_split_into_exact_file_prefixes():
+ sizes = {f"flat/f{i:03}.py": 10 for i in range(300)} | {"other/x.py": 10}
+ plan = plan_shards(sizes)
+ assert_valid(plan, sizes)
+ assert len(plan.shards) >= 300 // MAX_PREFIXES # at most 16 prefixes per shard
+
+
+def test_nested_trees_split_only_where_needed():
+ sizes = {f"big/sub{j}/f{i}.py": 5 for j in range(3) for i in range(60)}
+ sizes |= {"big/top.py": 5, "small/x.py": 5}
+ plan = plan_shards(sizes)
+ assert_valid(plan, sizes)
+ assert any("big/sub0" in s.prefixes or "big/sub1" in s.prefixes for s in plan.shards)
+
+
+def test_byte_limit_forces_a_split_even_with_few_files():
+ sizes = {f"d{j}/f{i}.py": 2 * 1024 * 1024 for j in range(2) for i in range(5)} # 20 MiB
+ plan = plan_shards(sizes)
+ assert len(plan.shards) == 2
+ assert_valid(plan, sizes)
+
+
+def test_the_plan_is_deterministic_and_unplannable_paths_are_reported():
+ sizes = {f"p{i % 9}/f{i}.py": 100 + i for i in range(400)}
+ items = list(sizes.items())
+ random.Random(1).shuffle(items) # noqa: S311
+ assert plan_shards(sizes) == plan_shards(dict(items))
+ odd = {**sizes, "bad\\name.py": 1}
+ plan = plan_shards(odd)
+ assert plan.skipped == ("bad\\name.py",)
+ assert plan.digest == plan_shards(sizes).digest or plan.digest # digest covers prefixes only
+ assert plan_shards({}).shards == ()
From 193268166a9a2ca486d9268a3ba618aad76420a2 Mon Sep 17 00:00:00 2001
From: Aman Bhaskar
Date: Fri, 13 Nov 2026 06:46:56 +0530
Subject: [PATCH 15/55] feat(report): shard coordinator, immutable report table
and service
---
.../versions/0048_architecture_reports.py | 87 ++++++
backend/app/analyzers/graph/render.py | 2 +-
backend/app/contracts/architecture_report.py | 65 +++-
backend/app/services/architecture_reports.py | 283 ++++++++++++++++++
.../test_architecture_report_service.py | 148 +++++++++
scripts/phase2_db.py | 3 +
6 files changed, 578 insertions(+), 10 deletions(-)
create mode 100644 backend/alembic/versions/0048_architecture_reports.py
create mode 100644 backend/app/services/architecture_reports.py
create mode 100644 backend/tests/ast_facts/test_architecture_report_service.py
diff --git a/backend/alembic/versions/0048_architecture_reports.py b/backend/alembic/versions/0048_architecture_reports.py
new file mode 100644
index 0000000..b534804
--- /dev/null
+++ b/backend/alembic/versions/0048_architecture_reports.py
@@ -0,0 +1,87 @@
+# ruff: noqa: E501
+"""Immutable architecture reports derived from published AST facts.
+
+A report is a pure function of the fact runs it names. The insert guard requires every named run to
+be a published AST-facts analysis of the same snapshot, no file in two runs, and the stored inputs
+digest to equal the digest recomputed from the facts rows, so a report cannot cite facts that do
+not exist or silently change its inputs. Rows are never updated or deleted.
+"""
+
+from alembic import op
+
+revision = "0048_architecture_reports"
+down_revision = "0047_recovery_snapshot_lock"
+branch_labels = None
+depends_on = None
+
+UP = r"""
+SET LOCAL lock_timeout='5s';
+CREATE TABLE public.architecture_reports (
+ org_id uuid NOT NULL,id uuid NOT NULL,repository_id uuid NOT NULL,snapshot_id uuid NOT NULL,
+ principal_id uuid NOT NULL,schema_version integer NOT NULL,
+ inputs_digest text NOT NULL,report_digest text NOT NULL,
+ fact_runs jsonb NOT NULL,report_json jsonb NOT NULL,size_bytes integer NOT NULL,
+ created_at timestamptz NOT NULL DEFAULT clock_timestamp(),
+ PRIMARY KEY(org_id,id),
+ UNIQUE(org_id,repository_id,snapshot_id,inputs_digest),
+ FOREIGN KEY(org_id,repository_id,snapshot_id) REFERENCES public.source_snapshots(org_id,repository_id,id),
+ FOREIGN KEY(org_id,principal_id) REFERENCES public.memberships(org_id,principal_id),
+ CHECK(schema_version=1),
+ CHECK(inputs_digest ~ '^[0-9a-f]{64}$' AND report_digest ~ '^[0-9a-f]{64}$'),
+ CHECK(jsonb_typeof(fact_runs)='array' AND jsonb_array_length(fact_runs) BETWEEN 1 AND 64),
+ CHECK(jsonb_typeof(report_json)='object' AND size_bytes BETWEEN 2 AND 8388608
+ AND octet_length(report_json::text)<=8388608+65536)
+);
+CREATE INDEX ix_architecture_reports_history ON public.architecture_reports(org_id,repository_id,snapshot_id,created_at,id);
+CREATE TRIGGER guard_architecture_report_immutable BEFORE UPDATE OR DELETE ON public.architecture_reports
+ FOR EACH ROW EXECUTE FUNCTION public.codespy_reject_mutation();
+CREATE FUNCTION public.codespy_architecture_report_guard() RETURNS trigger LANGUAGE plpgsql SECURITY INVOKER AS $$
+DECLARE n integer; total integer; files integer; distinct_files integer; recomputed text;
+BEGIN
+ SELECT count(*) INTO n FROM jsonb_array_elements_text(NEW.fact_runs) r
+ JOIN public.analysis_runs a ON a.org_id=NEW.org_id AND a.snapshot_id=NEW.snapshot_id AND a.id=r::uuid
+ AND a.status IN ('completed','partial') AND (a.config->'adapters') ? 'ast_facts';
+ SELECT count(DISTINCT r) INTO total FROM jsonb_array_elements_text(NEW.fact_runs) r;
+ IF n<>jsonb_array_length(NEW.fact_runs) OR total<>jsonb_array_length(NEW.fact_runs) THEN
+ RAISE EXCEPTION 'architecture report input differs' USING ERRCODE='23514'; END IF;
+ SELECT count(*),count(DISTINCT f.file_id) INTO files,distinct_files FROM public.ast_file_facts f
+ WHERE f.org_id=NEW.org_id AND f.snapshot_id=NEW.snapshot_id
+ AND f.run_id IN (SELECT r::uuid FROM jsonb_array_elements_text(NEW.fact_runs) r);
+ IF files=0 OR files<>distinct_files THEN
+ RAISE EXCEPTION 'architecture report facts overlap or are missing' USING ERRCODE='23514'; END IF;
+ recomputed:=encode(sha256(convert_to(
+ (SELECT string_agg(r,E'\n' ORDER BY r COLLATE "C") FROM jsonb_array_elements_text(NEW.fact_runs) r)||E'\n'||
+ (SELECT string_agg(f.facts_sha256,E'\n' ORDER BY f.facts_sha256 COLLATE "C") FROM public.ast_file_facts f
+ WHERE f.org_id=NEW.org_id AND f.snapshot_id=NEW.snapshot_id
+ AND f.run_id IN (SELECT r::uuid FROM jsonb_array_elements_text(NEW.fact_runs) r)),'UTF8')),'hex');
+ IF recomputed<>NEW.inputs_digest OR NEW.report_json->>'inputs_digest' IS DISTINCT FROM NEW.inputs_digest
+ OR NEW.report_json->>'org_id' IS DISTINCT FROM NEW.org_id::text
+ OR NEW.report_json->>'repository_id' IS DISTINCT FROM NEW.repository_id::text
+ OR NEW.report_json->>'snapshot_id' IS DISTINCT FROM NEW.snapshot_id::text
+ OR (NEW.report_json->>'schema_version')::integer IS DISTINCT FROM NEW.schema_version
+ OR NEW.report_json->'coverage'->'fact_runs' IS DISTINCT FROM NEW.fact_runs
+ THEN RAISE EXCEPTION 'architecture report identity differs' USING ERRCODE='23514'; END IF;
+ RETURN NEW;
+END $$;
+CREATE TRIGGER guard_architecture_report BEFORE INSERT ON public.architecture_reports
+ FOR EACH ROW EXECUTE FUNCTION public.codespy_architecture_report_guard();
+REVOKE ALL ON FUNCTION public.codespy_architecture_report_guard() FROM PUBLIC;
+"""
+
+DOWN = r"""
+SET LOCAL lock_timeout='5s';
+DO $$ BEGIN
+ IF EXISTS(SELECT 1 FROM public.architecture_reports) THEN
+ RAISE EXCEPTION 'architecture report history must be preserved' USING ERRCODE='23514'; END IF;
+END $$;
+DROP TABLE public.architecture_reports;
+DROP FUNCTION public.codespy_architecture_report_guard();
+"""
+
+
+def upgrade() -> None:
+ op.execute(UP)
+
+
+def downgrade() -> None:
+ op.execute(DOWN)
diff --git a/backend/app/analyzers/graph/render.py b/backend/app/analyzers/graph/render.py
index 3ce8642..669b0a6 100644
--- a/backend/app/analyzers/graph/render.py
+++ b/backend/app/analyzers/graph/render.py
@@ -98,7 +98,7 @@ def _section(section: SectionV1) -> list[str]:
lines = [f"## {TITLE[section.name]}", ""]
for s in section.statements:
refs = ", ".join(_location(r) for r in s.evidence[:3])
- more = s.evidence_total - min(3, len(s.evidence))
+ more = (s.evidence_total or len(s.evidence)) - min(3, len(s.evidence))
evidence = f" (evidence: {refs}{f' and {more} more' if more > 0 else ''})" if refs else ""
lines.append(f"- **{BADGE[s.kind]}** {statement_text(s)}{evidence}")
lines.append("")
diff --git a/backend/app/contracts/architecture_report.py b/backend/app/contracts/architecture_report.py
index 6619960..75cbbdd 100644
--- a/backend/app/contracts/architecture_report.py
+++ b/backend/app/contracts/architecture_report.py
@@ -8,7 +8,7 @@
"""
import hashlib
-from typing import Any, Literal, Self
+from typing import Literal, Self
from uuid import UUID
from pydantic import Field, model_validator
@@ -49,15 +49,14 @@ class StatementV1(Contract):
code: str = Field(min_length=1, max_length=96, pattern=r"^[a-z][a-z0-9_.]*$")
params: dict[str, Scalar] = Field(default_factory=dict, max_length=16)
evidence: tuple[EvidenceRefV1, ...] = Field(default=(), max_length=8)
- evidence_total: int = Field(default=0, ge=0)
+ evidence_total: int | None = Field(default=None, ge=0)
- @model_validator(mode="before")
- @classmethod
- def default_total(cls, data: Any) -> Any:
+ @model_validator(mode="after")
+ def default_total(self) -> Self:
# Unless a caller says more evidence exists than is shown, the total is what is shown.
- if isinstance(data, dict) and "evidence_total" not in data:
- return {**data, "evidence_total": len(data.get("evidence", ()))}
- return data
+ if self.evidence_total is None:
+ object.__setattr__(self, "evidence_total", len(self.evidence))
+ return self
@model_validator(mode="after")
def bounded(self) -> Self:
@@ -65,7 +64,7 @@ def bounded(self) -> Self:
raise ValueError("parameter names must be 1-64 characters")
if any(isinstance(v, str) and len(v) > 512 for v in self.params.values()):
raise ValueError("parameter values are bounded")
- if self.evidence_total < len(self.evidence):
+ if self.evidence_total is not None and self.evidence_total < len(self.evidence):
raise ValueError("evidence_total cannot be below the evidence shown")
# An observation must point at something; an unknown may not claim to be observed.
if self.kind == "observation" and not self.evidence:
@@ -195,3 +194,51 @@ def inputs_digest(run_ids: tuple[UUID, ...], facts_digests: tuple[str, ...]) ->
"""Identity of a report's inputs: the fact runs and the digest of every file's facts."""
material = "\n".join([*(str(r) for r in sorted(run_ids)), *sorted(facts_digests)])
return hashlib.sha256(material.encode()).hexdigest()
+
+
+ShardState = Literal[
+ "not_started", "queued", "running", "retry_wait", "cancelling", "succeeded", "partial",
+ "failed", "cancelled",
+] # fmt: skip
+
+
+class ShardStatusV1(Contract):
+ index: int = Field(ge=0)
+ files: int = Field(ge=0)
+ prefixes: int = Field(ge=0)
+ state: ShardState
+ job_id: UUID | None = None
+ run_id: UUID | None = None
+
+
+class ArchitectureShardsV1(Contract):
+ schema_version: Literal[1] = 1
+ plan_digest: str = Field(pattern=r"^[0-9a-f]{64}$")
+ total_files: int = Field(ge=0)
+ skipped_files: int = Field(ge=0)
+ shards: tuple[ShardStatusV1, ...] = Field(default=(), max_length=1000)
+ ready: bool # every shard finished: a report can be built
+
+
+class ArchitectureStartRequestV1(Contract):
+ schema_version: Literal[1] = 1
+ request_key: str = Field(min_length=1, max_length=128)
+
+ @model_validator(mode="after")
+ def reserved(self) -> Self:
+ if self.request_key.startswith(("job:", "child:")):
+ raise ValueError("invalid request key")
+ return self
+
+
+class ArchitectureReportRefV1(Contract):
+ schema_version: Literal[1] = 1
+ id: UUID
+ repository_id: UUID
+ snapshot_id: UUID
+ inputs_digest: str = Field(pattern=r"^[0-9a-f]{64}$")
+ report_digest: str = Field(pattern=r"^[0-9a-f]{64}$")
+ size_bytes: int = Field(ge=0)
+ complete: bool
+ analyzed_files: int = Field(ge=0)
+ eligible_files: int = Field(ge=0)
diff --git a/backend/app/services/architecture_reports.py b/backend/app/services/architecture_reports.py
new file mode 100644
index 0000000..1ce60c6
--- /dev/null
+++ b/backend/app/services/architecture_reports.py
@@ -0,0 +1,283 @@
+# ruff: noqa: E501
+"""Plan, build, store and read architecture reports over published AST facts.
+
+`prepare` partitions a snapshot's analyzable files into shards of at most 128 files and creates one
+existing AST-facts analysis per shard (within the organization's pending-job quota; call it again to
+create the rest). `build` waits for nothing: it requires every shard analysis to be published, then
+computes the report as a pure function of those facts and stores it immutably.
+"""
+
+import json
+from collections.abc import Callable
+from dataclasses import dataclass
+from typing import Any
+from uuid import UUID, uuid4
+
+from pydantic import BaseModel
+from sqlalchemy import text
+from sqlalchemy.ext.asyncio import AsyncSession, async_sessionmaker
+
+from app.analyzers.facts import FACT_LANGUAGES
+from app.analyzers.graph import FileEntry
+from app.analyzers.graph.report import assemble_report
+from app.analyzers.graph.shards import ShardPlan, plan_shards
+from app.contracts.architecture_report import (
+ ArchitectureReportRefV1,
+ ArchitectureReportV1,
+ ArchitectureShardsV1,
+ ShardStatusV1,
+)
+from app.contracts.ast_facts import FileFactsV1
+from app.contracts.structure import AnalysisConfigV1
+from app.db.transaction import transaction
+from app.domain.errors import CapacityExceeded, DuplicateConflict, ScopeViolation
+from app.domain.scope import TenantContext
+from app.security.authorization import lock_scope, require_snapshot
+from app.services.analysis_sources import locate_source
+from app.services.structural_analysis import StructuralAnalysisService
+
+MAX_NEW_PER_CALL = 8
+TERMINAL_OK = {"succeeded", "partial"}
+
+
+class ReportInputsPending(Exception): # noqa: N818
+ """Some shard analyses are not published yet."""
+
+ def __init__(self, shards: ArchitectureShardsV1) -> None:
+ self.shards = shards
+ super().__init__("report_inputs_pending")
+
+
+@dataclass(frozen=True)
+class SnapshotPlan:
+ plan: ShardPlan
+ analyzable: int
+ inventory: tuple[str, ...]
+
+
+def shard_key(plan: ShardPlan, index: int) -> str:
+ return f"report:{plan.digest[:32]}:{index}"
+
+
+def _load[M: BaseModel](model: type[M], payload: Any) -> M:
+ """Parse a stored JSON document through the strict contract."""
+ return model.model_validate_json(payload if isinstance(payload, str) else json.dumps(payload))
+
+
+async def _rows(session: AsyncSession, query: str, **params: Any) -> list[Any]:
+ return list((await session.execute(text(query), params)).all())
+
+
+class ArchitectureReportService:
+ def __init__(
+ self, factory: async_sessionmaker[AsyncSession], structural: StructuralAnalysisService
+ ) -> None:
+ self.factory, self.structural = factory, structural
+
+ async def _plan(
+ self, session: AsyncSession, ctx: TenantContext, repository_id: UUID, snapshot_id: UUID
+ ) -> SnapshotPlan:
+ located = await locate_source(session, ctx.org_id, repository_id, snapshot_id)
+ eligible = [f for f in located.files if f.eligible]
+ sizes = {f.path: f.size_bytes for f in eligible if f.language in FACT_LANGUAGES}
+ return SnapshotPlan(
+ plan=plan_shards(sizes),
+ analyzable=len(sizes),
+ inventory=tuple(sorted(f.path for f in eligible)),
+ )
+
+ async def _status(
+ self, session: AsyncSession, ctx: TenantContext, plan: ShardPlan, skipped: int
+ ) -> ArchitectureShardsV1:
+ shards = []
+ for shard in plan.shards:
+ found = await _rows(
+ session,
+ "SELECT id,state,result_run_id FROM jobs WHERE org_id=:o AND request_key=:k",
+ o=ctx.org_id,
+ k=shard_key(plan, shard.index),
+ )
+ job = found[0] if found else None
+ shards.append(
+ ShardStatusV1(
+ index=shard.index,
+ files=shard.files,
+ prefixes=len(shard.prefixes),
+ state=job.state if job else "not_started",
+ job_id=job.id if job else None,
+ run_id=job.result_run_id if job else None,
+ )
+ )
+ return ArchitectureShardsV1(
+ plan_digest=plan.digest,
+ total_files=plan.total_files,
+ skipped_files=skipped,
+ shards=tuple(shards),
+ ready=bool(shards) and all(s.state in TERMINAL_OK and s.run_id for s in shards),
+ )
+
+ async def status(
+ self, ctx: TenantContext, repository_id: UUID, snapshot_id: UUID
+ ) -> ArchitectureShardsV1:
+ async with transaction(self.factory) as session:
+ await require_snapshot(session, ctx, repository_id, snapshot_id)
+ snap = await self._plan(session, ctx, repository_id, snapshot_id)
+ return await self._status(session, ctx, snap.plan, len(snap.plan.skipped))
+
+ async def prepare(
+ self,
+ ctx: TenantContext,
+ repository_id: UUID,
+ snapshot_id: UUID,
+ config_for: Callable[[tuple[str, ...]], AnalysisConfigV1],
+ *,
+ limit: int = MAX_NEW_PER_CALL,
+ ) -> ArchitectureShardsV1:
+ async with transaction(self.factory) as session:
+ await require_snapshot(session, ctx, repository_id, snapshot_id, write=True)
+ snap = await self._plan(session, ctx, repository_id, snapshot_id)
+ current = await self._status(session, ctx, snap.plan, len(snap.plan.skipped))
+ created = 0
+ for shard, state in zip(snap.plan.shards, current.shards, strict=True):
+ if state.state != "not_started":
+ continue
+ if created >= limit:
+ break
+ try:
+ await self.structural.create_analysis_spec(
+ ctx,
+ repository_id,
+ snapshot_id,
+ config_for(shard.prefixes),
+ shard_key(snap.plan, shard.index),
+ )
+ except CapacityExceeded:
+ break # the organization's pending-job quota is full; call again later
+ created += 1
+ async with transaction(self.factory) as session:
+ return await self._status(session, ctx, snap.plan, len(snap.plan.skipped))
+
+ async def build(
+ self, ctx: TenantContext, repository_id: UUID, snapshot_id: UUID
+ ) -> ArchitectureReportRefV1:
+ async with transaction(self.factory) as session:
+ await lock_scope(session, ctx.org_id, ctx.principal_id, repository_id, snapshot_id)
+ snap = await self._plan(session, ctx, repository_id, snapshot_id)
+ status = await self._status(session, ctx, snap.plan, len(snap.plan.skipped))
+ if not status.ready:
+ raise ReportInputsPending(status)
+ runs = tuple(sorted({s.run_id for s in status.shards if s.run_id}))
+ rows = await _rows(
+ session,
+ "SELECT file_id,facts_json,facts_sha256 FROM ast_file_facts "
+ "WHERE org_id=:o AND snapshot_id=:s AND run_id = ANY(CAST(:runs AS uuid[]))",
+ o=ctx.org_id,
+ s=snapshot_id,
+ runs=[str(r) for r in runs],
+ )
+ entries = []
+ for row in rows:
+ facts = _load(FileFactsV1, row.facts_json)
+ entries.append(FileEntry(facts.file_id, facts.path, facts.language, facts))
+ report = assemble_report(
+ org_id=ctx.org_id,
+ repository_id=repository_id,
+ snapshot_id=snapshot_id,
+ files=entries,
+ inventory=snap.inventory,
+ eligible_files=snap.analyzable,
+ omitted_files=max(0, snap.analyzable - len(entries)),
+ fact_runs=runs,
+ )
+ existing = await _rows(
+ session,
+ "SELECT id,report_digest,size_bytes FROM architecture_reports "
+ "WHERE org_id=:o AND repository_id=:r AND snapshot_id=:s AND inputs_digest=:d",
+ o=ctx.org_id,
+ r=repository_id,
+ s=snapshot_id,
+ d=report.inputs_digest,
+ )
+ if existing:
+ return self._ref(
+ existing[0].id, report, existing[0].report_digest, existing[0].size_bytes
+ )
+ report_id = uuid4()
+ digest, size = report.digest(), report.size_bytes()
+ await session.execute(
+ text(
+ "INSERT INTO architecture_reports(org_id,id,repository_id,snapshot_id,principal_id,"
+ "schema_version,inputs_digest,report_digest,fact_runs,report_json,size_bytes) "
+ "VALUES(:o,:id,:r,:s,:p,1,:idig,:rdig,CAST(:runs AS jsonb),CAST(:doc AS jsonb),:size)"
+ ),
+ {
+ "o": ctx.org_id,
+ "id": report_id,
+ "r": repository_id,
+ "s": snapshot_id,
+ "p": ctx.principal_id,
+ "idig": report.inputs_digest,
+ "rdig": digest,
+ "runs": json.dumps([str(r) for r in report.coverage.fact_runs]),
+ "doc": json.dumps(report.model_dump(mode="json")),
+ "size": size,
+ },
+ )
+ return self._ref(report_id, report, digest, size)
+
+ @staticmethod
+ def _ref(
+ report_id: UUID, report: ArchitectureReportV1, digest: str, size: int
+ ) -> ArchitectureReportRefV1:
+ return ArchitectureReportRefV1(
+ id=report_id,
+ repository_id=report.repository_id,
+ snapshot_id=report.snapshot_id,
+ inputs_digest=report.inputs_digest,
+ report_digest=digest,
+ size_bytes=size,
+ complete=report.coverage.complete,
+ analyzed_files=report.coverage.analyzed_files,
+ eligible_files=report.coverage.eligible_files,
+ )
+
+ async def get(
+ self, ctx: TenantContext, repository_id: UUID, snapshot_id: UUID, report_id: UUID
+ ) -> ArchitectureReportV1:
+ async with transaction(self.factory) as session:
+ await require_snapshot(session, ctx, repository_id, snapshot_id)
+ found = await _rows(
+ session,
+ "SELECT report_json FROM architecture_reports WHERE org_id=:o AND id=:i "
+ "AND repository_id=:r AND snapshot_id=:s",
+ o=ctx.org_id,
+ i=report_id,
+ r=repository_id,
+ s=snapshot_id,
+ )
+ if not found:
+ raise ScopeViolation("report unavailable")
+ return _load(ArchitectureReportV1, found[0].report_json)
+
+ async def latest(
+ self, ctx: TenantContext, repository_id: UUID, snapshot_id: UUID
+ ) -> UUID | None:
+ async with transaction(self.factory) as session:
+ await require_snapshot(session, ctx, repository_id, snapshot_id)
+ found = await _rows(
+ session,
+ "SELECT id FROM architecture_reports WHERE org_id=:o AND repository_id=:r "
+ "AND snapshot_id=:s ORDER BY created_at DESC,id DESC LIMIT 1",
+ o=ctx.org_id,
+ r=repository_id,
+ s=snapshot_id,
+ )
+ return UUID(str(found[0].id)) if found else None
+
+
+__all__ = [
+ "ArchitectureReportService",
+ "DuplicateConflict",
+ "ReportInputsPending",
+ "shard_key",
+]
diff --git a/backend/tests/ast_facts/test_architecture_report_service.py b/backend/tests/ast_facts/test_architecture_report_service.py
new file mode 100644
index 0000000..34935db
--- /dev/null
+++ b/backend/tests/ast_facts/test_architecture_report_service.py
@@ -0,0 +1,148 @@
+# ruff: noqa: E501
+"""Architecture reports against real PostgreSQL: shards, build from published facts, immutability."""
+
+import json
+import os
+from uuid import uuid4
+
+import pytest
+from app.contracts.structure import AnalysisConfigV1
+from app.domain.errors import CapacityExceeded, ScopeViolation
+from app.services.architecture_reports import (
+ ArchitectureReportService,
+ ReportInputsPending,
+ shard_key,
+)
+from app.services.jobs import JobService
+from app.services.structural_analysis import StructuralAnalysisService
+from sqlalchemy import text
+from sqlalchemy.exc import DBAPIError
+
+from tests.ast_facts.test_ast_facts_publication import operations
+from tests.phase3.integration.test_structural_publication import admitted
+
+pytestmark = pytest.mark.skipif(
+ os.environ.get("CODESPY_TEST_SCHEMA_TARGET") != "head",
+ reason="requires the current schema head (revision 0048)",
+)
+
+
+def config_for(prefixes):
+ return AnalysisConfigV1(
+ toolchain_hash="a" * 64, include_prefixes=prefixes, adapters=("ast_facts",)
+ )
+
+
+async def setup(factory, tmp_path):
+ ctx, snapshot, repo, store = await admitted(factory, tmp_path)
+ service = ArchitectureReportService(factory, StructuralAnalysisService(factory))
+ return ctx, snapshot, repo, store, service
+
+
+async def publish_shards(factory, ctx, shards, store):
+ for shard in shards.shards:
+ lease = await JobService(factory).claim(ctx.org_id, shard.job_id, 1, "report-worker")
+ await operations(factory, store)[2].execute(lease)
+
+
+async def test_prepare_is_idempotent_and_build_waits_for_published_facts(factory, tmp_path):
+ ctx, snapshot, repo, store, service = await setup(factory, tmp_path)
+ first = await service.prepare(ctx, repo, snapshot, config_for)
+ assert len(first.shards) == 1 and first.shards[0].state == "queued" and not first.ready
+ assert first.total_files == 1 and first.skipped_files == 0
+ again = await service.prepare(ctx, repo, snapshot, config_for)
+ assert again.shards[0].job_id == first.shards[0].job_id # replayed, not duplicated
+ with pytest.raises(ReportInputsPending) as pending:
+ await service.build(ctx, repo, snapshot)
+ assert not pending.value.shards.ready
+
+ await publish_shards(factory, ctx, first, store)
+ ready = await service.status(ctx, repo, snapshot)
+ assert ready.ready and ready.shards[0].state == "succeeded" and ready.shards[0].run_id
+
+
+async def test_build_stores_an_immutable_report_once_per_inputs_and_serves_it(factory, tmp_path):
+ ctx, snapshot, repo, store, service = await setup(factory, tmp_path)
+ shards = await service.prepare(ctx, repo, snapshot, config_for)
+ await publish_shards(factory, ctx, shards, store)
+ ref = await service.build(ctx, repo, snapshot)
+ assert ref.complete and (ref.analyzed_files, ref.eligible_files) == (1, 1)
+ assert (await service.build(ctx, repo, snapshot)).id == ref.id # same inputs: same report
+ assert await service.latest(ctx, repo, snapshot) == ref.id
+ report = await service.get(ctx, repo, snapshot, ref.id)
+ assert report.digest() == ref.report_digest and report.coverage.complete
+ assert [n.label for n in report.graph.nodes if n.kind == "file"] == ["a.py"]
+
+ async with factory() as s:
+ for statement in (
+ "UPDATE architecture_reports SET size_bytes=3",
+ "DELETE FROM architecture_reports",
+ ):
+ with pytest.raises(DBAPIError):
+ await s.execute(text(statement))
+ await s.rollback()
+
+
+async def test_the_database_refuses_reports_that_cite_missing_or_altered_inputs(factory, tmp_path):
+ ctx, snapshot, repo, store, service = await setup(factory, tmp_path)
+ shards = await service.prepare(ctx, repo, snapshot, config_for)
+ await publish_shards(factory, ctx, shards, store)
+ ref = await service.build(ctx, repo, snapshot)
+ report = await service.get(ctx, repo, snapshot, ref.id)
+ doc = report.model_dump(mode="json")
+ run = str(report.coverage.fact_runs[0])
+
+ async def insert(inputs_digest=ref.inputs_digest, runs=(run,), document=doc, snap=snapshot):
+ async with factory() as s, s.begin():
+ await s.execute(
+ text(
+ "INSERT INTO architecture_reports(org_id,id,repository_id,snapshot_id,principal_id,"
+ "schema_version,inputs_digest,report_digest,fact_runs,report_json,size_bytes) "
+ "VALUES(:o,:id,:r,:s,:p,1,:idig,:rdig,CAST(:runs AS jsonb),CAST(:doc AS jsonb),10)"
+ ),
+ {
+ "o": ctx.org_id,
+ "id": uuid4(),
+ "r": repo,
+ "s": snap,
+ "p": ctx.principal_id,
+ "idig": inputs_digest,
+ "rdig": "c" * 64,
+ "runs": json.dumps(list(runs)),
+ "doc": json.dumps(document),
+ },
+ )
+
+ with pytest.raises(DBAPIError, match="input differs"): # a run that does not exist
+ await insert(
+ runs=(str(uuid4()),), document={**doc, "coverage": {**doc["coverage"], "fact_runs": []}}
+ )
+ with pytest.raises(DBAPIError, match="identity differs"): # digest not derived from the facts
+ await insert(inputs_digest="d" * 64, document={**doc, "inputs_digest": "d" * 64})
+ with pytest.raises(DBAPIError, match="identity differs"): # document disagrees with its columns
+ await insert(document={**doc, "snapshot_id": str(uuid4())})
+ with pytest.raises(DBAPIError): # the same inputs twice
+ await insert()
+
+
+async def test_capacity_stops_prepare_without_error_and_other_tenants_see_nothing(
+ factory, tmp_path, monkeypatch
+):
+ from scripts.phase1_fixture import scenario
+
+ ctx, snapshot, repo, store, service = await setup(factory, tmp_path)
+
+ async def full(*args, **kwargs):
+ raise CapacityExceeded("pending job quota reached")
+
+ monkeypatch.setattr(service.structural, "create_analysis_spec", full)
+ state = await service.prepare(ctx, repo, snapshot, config_for)
+ assert state.shards[0].state == "not_started" and state.shards[0].job_id is None
+ monkeypatch.undo()
+ shards = await service.prepare(ctx, repo, snapshot, config_for)
+ await publish_shards(factory, ctx, shards, store)
+ ref = await service.build(ctx, repo, snapshot)
+ _, other, *_ = await scenario(factory)
+ with pytest.raises(ScopeViolation):
+ await service.get(other, repo, snapshot, ref.id)
+ assert shard_key.__name__ == "shard_key"
diff --git a/scripts/phase2_db.py b/scripts/phase2_db.py
index 611e53b..a2f1e48 100755
--- a/scripts/phase2_db.py
+++ b/scripts/phase2_db.py
@@ -316,6 +316,9 @@ def grant_app(values, name):
"GRANT EXECUTE ON FUNCTION public.codespy_embed_authority(uuid,uuid),"
"public.codespy_embed_embedding_digest(uuid,uuid),public.codespy_embed_verify(uuid,uuid) TO p2_broker"
)
+ if c.execute("SELECT to_regclass('public.architecture_reports')").fetchone()[0]:
+ c.execute("GRANT SELECT ON architecture_reports TO p2_api,p2_broker")
+ c.execute("GRANT INSERT ON architecture_reports TO p2_api")
if c.execute("SELECT to_regclass('public.embed_spend_ledger')").fetchone()[0]:
c.execute("GRANT SELECT ON embed_spend_ledger TO p2_api,p2_broker")
c.execute(
From 3ac71102f2bd558cd3b282507273f4c5d0ed88ec Mon Sep 17 00:00:00 2001
From: Aman Bhaskar
Date: Fri, 13 Nov 2026 06:49:25 +0530
Subject: [PATCH 16/55] feat(report): architecture report routes, OpenAPI and
SDK
---
backend/app/analyzers/graph/render.py | 26 +-
backend/app/analyzers/graph/report.py | 6 +-
backend/app/api/application.py | 121 ++
backend/app/contracts/architecture_report.py | 29 +-
backend/app/services/architecture_reports.py | 26 +-
backend/openapi.json | 1348 ++++++++++++++++-
.../ast_facts/test_architecture_report_api.py | 107 ++
.../test_architecture_report_contracts.py | 4 +-
frontend/src/api/generated/index.ts | 4 +-
frontend/src/api/generated/sdk.gen.ts | 49 +-
frontend/src/api/generated/types.gen.ts | 745 ++++++++-
11 files changed, 2409 insertions(+), 56 deletions(-)
create mode 100644 backend/tests/ast_facts/test_architecture_report_api.py
diff --git a/backend/app/analyzers/graph/render.py b/backend/app/analyzers/graph/render.py
index 669b0a6..65fd2e2 100644
--- a/backend/app/analyzers/graph/render.py
+++ b/backend/app/analyzers/graph/render.py
@@ -5,8 +5,11 @@
from app.analyzers.graph.analytics import analyze
from app.contracts.architecture_report import (
- ArchitectureReportV1,
+ ArchitectureGraphPageV1,
EvidenceRefV1,
+ GraphLinkOutV1,
+ GraphNodeOutV1,
+ RepositoryReportV1,
SectionV1,
StatementV1,
TableV1,
@@ -107,7 +110,7 @@ def _section(section: SectionV1) -> list[str]:
return lines
-def render_markdown(report: ArchitectureReportV1) -> str:
+def render_markdown(report: RepositoryReportV1) -> str:
cov = report.coverage
lines = ["# Architecture report", ""]
if not cov.complete:
@@ -127,7 +130,7 @@ def render_markdown(report: ArchitectureReportV1) -> str:
return "\n".join(lines).rstrip() + "\n"
-def graph_payload(report: ArchitectureReportV1) -> dict[str, Any]:
+def graph_payload(report: RepositoryReportV1) -> dict[str, Any]:
"""D3-compatible ``{nodes, links}`` for resolved and external edges; unknowns are counted."""
components = analyze(report.graph).component_by_file
counts = report.graph.counts()
@@ -149,3 +152,20 @@ def graph_payload(report: ArchitectureReportV1) -> dict[str, Any]:
],
"unknown": {"ambiguous": counts["ambiguous"], "unresolved": counts["unresolved"]},
}
+
+
+def graph_page(
+ report: RepositoryReportV1, offset: int = 0, limit: int = 2000
+) -> ArchitectureGraphPageV1:
+ """A bounded slice of the graph payload; nodes and links page independently by ``offset``."""
+ payload = graph_payload(report)
+ nodes, links = payload["nodes"], payload["links"]
+ return ArchitectureGraphPageV1(
+ nodes=tuple(GraphNodeOutV1(**n) for n in nodes[offset : offset + limit]),
+ links=tuple(GraphLinkOutV1(**link) for link in links[offset : offset + limit]),
+ nodes_total=len(nodes),
+ links_total=len(links),
+ offset=offset,
+ ambiguous=payload["unknown"]["ambiguous"],
+ unresolved=payload["unknown"]["unresolved"],
+ )
diff --git a/backend/app/analyzers/graph/report.py b/backend/app/analyzers/graph/report.py
index 14b85d8..fc37999 100644
--- a/backend/app/analyzers/graph/report.py
+++ b/backend/app/analyzers/graph/report.py
@@ -14,10 +14,10 @@
from app.analyzers.graph.analytics import Analytics, analyze
from app.analyzers.graph.build import FileEntry, build_graph
from app.contracts.architecture_report import (
- ArchitectureReportV1,
CoverageV1,
DependencyGraphV1,
EvidenceRefV1,
+ RepositoryReportV1,
Scalar,
SectionV1,
StatementV1,
@@ -398,7 +398,7 @@ def assemble_report(
eligible_files: int,
omitted_files: int,
fact_runs: tuple[UUID, ...],
-) -> ArchitectureReportV1:
+) -> RepositoryReportV1:
ordered = sorted(files, key=lambda f: f.path)
graph = build_graph(ordered, inventory)
analytics = analyze(graph)
@@ -411,7 +411,7 @@ def assemble_report(
fact_runs=tuple(sorted(fact_runs)),
)
digests = tuple(FileFactsV1.facts_sha256(f.facts) for f in ordered)
- report = ArchitectureReportV1(
+ report = RepositoryReportV1(
org_id=org_id,
repository_id=repository_id,
snapshot_id=snapshot_id,
diff --git a/backend/app/api/application.py b/backend/app/api/application.py
index 901ef44..5a07b5b 100644
--- a/backend/app/api/application.py
+++ b/backend/app/api/application.py
@@ -10,7 +10,18 @@
from uuid import UUID, uuid4
from app.adapters.model.http_transport import ProviderTransportError
+from app.analyzers.graph.render import graph_page
+from app.analyzers.graph.render import render_markdown as render_repository_markdown
from app.analyzers.reporting import render_json, render_markdown
+from app.contracts.architecture_report import (
+ ArchitectureGraphPageV1,
+ ArchitectureReportRefV1,
+ ArchitectureShardsV1,
+ ArchitectureStartRequestV1,
+ RepositoryReportV1,
+ SectionName,
+ SectionV1,
+)
from app.contracts.ast_facts import (
AstConfigPageV1,
AstFilePageV1,
@@ -182,6 +193,7 @@
from app.security.sessions import SessionService, token_digest
from app.services import ast_reads
from app.services.analysis_sources import locate_source
+from app.services.architecture_reports import ArchitectureReportService, ReportInputsPending
from app.services.configured_model_gateway import ModelConnectionError
from app.services.context_assembly import ContextAssemblyService
from app.services.dense_search import DenseSearchService, QueryEmbedder
@@ -369,6 +381,7 @@ def create_app(settings: ApiSettings, ports: ApplicationPorts) -> FastAPI:
retries = RetryService(ports.factory, ports.store, scan_capabilities=ports.scan_capabilities)
submissions = SubmissionService(ports.factory, ports.store, policy=ports.admission_policy)
structural = StructuralAnalysisService(ports.factory)
+ architecture = ArchitectureReportService(ports.factory, structural)
cursors = CursorCodec(secrets.token_bytes(32))
findings_query = FindingsQueryService(
ports.factory,
@@ -457,6 +470,7 @@ async def http_error(request: Request, exception: HTTPException) -> Response:
"embed_operation_unavailable",
"embed_already_published",
"embed_profile_conflict",
+ "report_inputs_pending",
}:
code = exception.detail
return error(exception.status_code, code)
@@ -1698,6 +1712,108 @@ async def cancel_embed_job(
response.status_code = 202 if result.job.state == "cancelling" else 200
return result
+ reports_base = (
+ "/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/architecture-reports"
+ )
+
+ @app.post(reports_base + "/prepare", status_code=202)
+ async def prepare_architecture_report(
+ request: Request, repository_id: UUID, snapshot_id: UUID
+ ) -> ArchitectureShardsV1:
+ ctx = await repository_context(request, repository_id, write=True)
+ if not settings.structural_enabled or settings.structural_toolchain_hash is None:
+ raise HTTPException(503, detail="analysis_unavailable")
+ if ports.readiness is None or not await ports.readiness():
+ raise HTTPException(503, detail="analysis_unavailable")
+ toolchain = settings.structural_toolchain_hash
+
+ def config_for(prefixes: tuple[str, ...]) -> AnalysisConfigV1:
+ return AnalysisConfigV1(
+ toolchain_hash=toolchain,
+ include_prefixes=prefixes,
+ adapters=("ast_facts",),
+ limits=StructuralLimitsV1(),
+ )
+
+ return await architecture.prepare(ctx, repository_id, snapshot_id, config_for)
+
+ @app.get(reports_base + "/prepare")
+ async def architecture_report_status(
+ request: Request, repository_id: UUID, snapshot_id: UUID
+ ) -> ArchitectureShardsV1:
+ ctx = await repository_context(request, repository_id)
+ return await architecture.status(ctx, repository_id, snapshot_id)
+
+ @app.post(reports_base, status_code=201)
+ async def build_architecture_report(
+ request: Request, repository_id: UUID, snapshot_id: UUID
+ ) -> ArchitectureReportRefV1:
+ ctx = await repository_context(request, repository_id, write=True)
+ body = await json_body(request, ArchitectureStartRequestV1)
+ if body.request_key != key(request):
+ raise HTTPException(422, detail="request_key_mismatch")
+ try:
+ return await architecture.build(ctx, repository_id, snapshot_id)
+ except ReportInputsPending:
+ raise HTTPException(409, detail="report_inputs_pending") from None
+
+ @app.get(reports_base + "/latest")
+ async def latest_architecture_report(
+ request: Request, repository_id: UUID, snapshot_id: UUID
+ ) -> ArchitectureReportRefV1:
+ ctx = await repository_context(request, repository_id)
+ found = await architecture.latest_ref(ctx, repository_id, snapshot_id)
+ if found is None:
+ raise HTTPException(404)
+ return found
+
+ @app.get(reports_base + "/{report_id}")
+ async def get_architecture_report(
+ request: Request, repository_id: UUID, snapshot_id: UUID, report_id: UUID
+ ) -> RepositoryReportV1:
+ ctx = await repository_context(request, repository_id)
+ return await architecture.get(ctx, repository_id, snapshot_id, report_id)
+
+ @app.get(reports_base + "/{report_id}/markdown")
+ async def architecture_report_markdown(
+ request: Request, repository_id: UUID, snapshot_id: UUID, report_id: UUID
+ ) -> Response:
+ ctx = await repository_context(request, repository_id)
+ report = await architecture.get(ctx, repository_id, snapshot_id, report_id)
+ return Response(
+ render_repository_markdown(report), media_type="text/markdown; charset=utf-8"
+ )
+
+ @app.get(reports_base + "/{report_id}/graph")
+ async def architecture_report_graph(
+ request: Request,
+ repository_id: UUID,
+ snapshot_id: UUID,
+ report_id: UUID,
+ offset: int = 0,
+ limit: int = 2000,
+ ) -> ArchitectureGraphPageV1:
+ if not 0 <= offset <= 200_000 or not 1 <= limit <= 5000:
+ raise HTTPException(422)
+ ctx = await repository_context(request, repository_id)
+ report = await architecture.get(ctx, repository_id, snapshot_id, report_id)
+ return graph_page(report, offset, limit)
+
+ @app.get(reports_base + "/{report_id}/sections/{name}")
+ async def architecture_report_section(
+ request: Request,
+ repository_id: UUID,
+ snapshot_id: UUID,
+ report_id: UUID,
+ name: SectionName,
+ ) -> SectionV1:
+ ctx = await repository_context(request, repository_id)
+ report = await architecture.get(ctx, repository_id, snapshot_id, report_id)
+ section = next((s for s in report.sections if s.name == name), None)
+ if section is None:
+ raise HTTPException(404)
+ return section
+
@app.get("/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/scan-configuration")
async def scan_configuration(
request: Request, repository_id: UUID, snapshot_id: UUID
@@ -2776,6 +2892,7 @@ def openapi() -> dict[str, Any]:
components = schema.setdefault("components", {}).setdefault("schemas", {})
contract_models: tuple[type[BaseModel], ...] = (
IndexStartRequestV1,
+ ArchitectureStartRequestV1,
EmbedStartRequestV1,
RepositoryCreate,
UploadReservationV1,
@@ -2846,6 +2963,10 @@ def openapi() -> dict[str, Any]:
components.update(model_schema.pop("$defs", {}))
components[model.__name__] = model_schema
body_contracts: tuple[tuple[str, type[BaseModel]], ...] = (
+ (
+ "/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/architecture-reports",
+ ArchitectureStartRequestV1,
+ ),
(
"/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/indexes/{chunk_set_id}/dense",
EmbedStartRequestV1,
diff --git a/backend/app/contracts/architecture_report.py b/backend/app/contracts/architecture_report.py
index 75cbbdd..f916d6b 100644
--- a/backend/app/contracts/architecture_report.py
+++ b/backend/app/contracts/architecture_report.py
@@ -162,7 +162,7 @@ def complete(self) -> bool:
return self.analyzed_files == self.eligible_files and self.omitted_files == 0
-class ArchitectureReportV1(Contract):
+class RepositoryReportV1(Contract):
schema_version: Literal[1] = 1
org_id: UUID
repository_id: UUID
@@ -242,3 +242,30 @@ class ArchitectureReportRefV1(Contract):
complete: bool
analyzed_files: int = Field(ge=0)
eligible_files: int = Field(ge=0)
+
+
+class GraphNodeOutV1(Contract):
+ id: str
+ label: str
+ kind: Literal["file", "package", "external"]
+ language: str | None = None
+ group: str | None = None
+
+
+class GraphLinkOutV1(Contract):
+ source: str
+ target: str
+ resolution: Resolution
+
+
+class ArchitectureGraphPageV1(Contract):
+ """A slice of the graph in D3's nodes-and-links shape; unknown edges are only counted."""
+
+ schema_version: Literal[1] = 1
+ nodes: tuple[GraphNodeOutV1, ...]
+ links: tuple[GraphLinkOutV1, ...]
+ nodes_total: int = Field(ge=0)
+ links_total: int = Field(ge=0)
+ offset: int = Field(ge=0)
+ ambiguous: int = Field(ge=0)
+ unresolved: int = Field(ge=0)
diff --git a/backend/app/services/architecture_reports.py b/backend/app/services/architecture_reports.py
index 1ce60c6..be82d74 100644
--- a/backend/app/services/architecture_reports.py
+++ b/backend/app/services/architecture_reports.py
@@ -23,8 +23,8 @@
from app.analyzers.graph.shards import ShardPlan, plan_shards
from app.contracts.architecture_report import (
ArchitectureReportRefV1,
- ArchitectureReportV1,
ArchitectureShardsV1,
+ RepositoryReportV1,
ShardStatusV1,
)
from app.contracts.ast_facts import FileFactsV1
@@ -227,7 +227,7 @@ async def build(
@staticmethod
def _ref(
- report_id: UUID, report: ArchitectureReportV1, digest: str, size: int
+ report_id: UUID, report: RepositoryReportV1, digest: str, size: int
) -> ArchitectureReportRefV1:
return ArchitectureReportRefV1(
id=report_id,
@@ -243,7 +243,7 @@ def _ref(
async def get(
self, ctx: TenantContext, repository_id: UUID, snapshot_id: UUID, report_id: UUID
- ) -> ArchitectureReportV1:
+ ) -> RepositoryReportV1:
async with transaction(self.factory) as session:
await require_snapshot(session, ctx, repository_id, snapshot_id)
found = await _rows(
@@ -257,7 +257,25 @@ async def get(
)
if not found:
raise ScopeViolation("report unavailable")
- return _load(ArchitectureReportV1, found[0].report_json)
+ return _load(RepositoryReportV1, found[0].report_json)
+
+ async def latest_ref(
+ self, ctx: TenantContext, repository_id: UUID, snapshot_id: UUID
+ ) -> ArchitectureReportRefV1 | None:
+ report_id = await self.latest(ctx, repository_id, snapshot_id)
+ if report_id is None:
+ return None
+ report = await self.get(ctx, repository_id, snapshot_id, report_id)
+ async with transaction(self.factory) as session:
+ row = (
+ await _rows(
+ session,
+ "SELECT report_digest,size_bytes FROM architecture_reports WHERE org_id=:o AND id=:i",
+ o=ctx.org_id,
+ i=report_id,
+ )
+ )[0]
+ return self._ref(report_id, report, row.report_digest, row.size_bytes)
async def latest(
self, ctx: TenantContext, repository_id: UUID, snapshot_id: UUID
diff --git a/backend/openapi.json b/backend/openapi.json
index 6d2d4d7..a3f9c9a 100644
--- a/backend/openapi.json
+++ b/backend/openapi.json
@@ -40,6 +40,136 @@
"title": "AnalysisAcceptedV1",
"type": "object"
},
+ "ArchitectureGraphPageV1": {
+ "additionalProperties": false,
+ "description": "A slice of the graph in D3's nodes-and-links shape; unknown edges are only counted.",
+ "properties": {
+ "ambiguous": {
+ "minimum": 0.0,
+ "title": "Ambiguous",
+ "type": "integer"
+ },
+ "links": {
+ "items": {
+ "$ref": "#/components/schemas/GraphLinkOutV1"
+ },
+ "title": "Links",
+ "type": "array"
+ },
+ "links_total": {
+ "minimum": 0.0,
+ "title": "Links Total",
+ "type": "integer"
+ },
+ "nodes": {
+ "items": {
+ "$ref": "#/components/schemas/GraphNodeOutV1"
+ },
+ "title": "Nodes",
+ "type": "array"
+ },
+ "nodes_total": {
+ "minimum": 0.0,
+ "title": "Nodes Total",
+ "type": "integer"
+ },
+ "offset": {
+ "minimum": 0.0,
+ "title": "Offset",
+ "type": "integer"
+ },
+ "schema_version": {
+ "const": 1,
+ "default": 1,
+ "title": "Schema Version",
+ "type": "integer"
+ },
+ "unresolved": {
+ "minimum": 0.0,
+ "title": "Unresolved",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "nodes",
+ "links",
+ "nodes_total",
+ "links_total",
+ "offset",
+ "ambiguous",
+ "unresolved"
+ ],
+ "title": "ArchitectureGraphPageV1",
+ "type": "object"
+ },
+ "ArchitectureReportRefV1": {
+ "additionalProperties": false,
+ "properties": {
+ "analyzed_files": {
+ "minimum": 0.0,
+ "title": "Analyzed Files",
+ "type": "integer"
+ },
+ "complete": {
+ "title": "Complete",
+ "type": "boolean"
+ },
+ "eligible_files": {
+ "minimum": 0.0,
+ "title": "Eligible Files",
+ "type": "integer"
+ },
+ "id": {
+ "format": "uuid",
+ "title": "Id",
+ "type": "string"
+ },
+ "inputs_digest": {
+ "pattern": "^[0-9a-f]{64}$",
+ "title": "Inputs Digest",
+ "type": "string"
+ },
+ "report_digest": {
+ "pattern": "^[0-9a-f]{64}$",
+ "title": "Report Digest",
+ "type": "string"
+ },
+ "repository_id": {
+ "format": "uuid",
+ "title": "Repository Id",
+ "type": "string"
+ },
+ "schema_version": {
+ "const": 1,
+ "default": 1,
+ "title": "Schema Version",
+ "type": "integer"
+ },
+ "size_bytes": {
+ "minimum": 0.0,
+ "title": "Size Bytes",
+ "type": "integer"
+ },
+ "snapshot_id": {
+ "format": "uuid",
+ "title": "Snapshot Id",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "repository_id",
+ "snapshot_id",
+ "inputs_digest",
+ "report_digest",
+ "size_bytes",
+ "complete",
+ "analyzed_files",
+ "eligible_files"
+ ],
+ "title": "ArchitectureReportRefV1",
+ "type": "object"
+ },
"ArchitectureReportV1": {
"additionalProperties": false,
"properties": {
@@ -220,6 +350,75 @@
"title": "ArchitectureReportV1",
"type": "object"
},
+ "ArchitectureShardsV1": {
+ "additionalProperties": false,
+ "properties": {
+ "plan_digest": {
+ "pattern": "^[0-9a-f]{64}$",
+ "title": "Plan Digest",
+ "type": "string"
+ },
+ "ready": {
+ "title": "Ready",
+ "type": "boolean"
+ },
+ "schema_version": {
+ "const": 1,
+ "default": 1,
+ "title": "Schema Version",
+ "type": "integer"
+ },
+ "shards": {
+ "default": [],
+ "items": {
+ "$ref": "#/components/schemas/ShardStatusV1"
+ },
+ "maxItems": 1000,
+ "title": "Shards",
+ "type": "array"
+ },
+ "skipped_files": {
+ "minimum": 0.0,
+ "title": "Skipped Files",
+ "type": "integer"
+ },
+ "total_files": {
+ "minimum": 0.0,
+ "title": "Total Files",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "plan_digest",
+ "total_files",
+ "skipped_files",
+ "ready"
+ ],
+ "title": "ArchitectureShardsV1",
+ "type": "object"
+ },
+ "ArchitectureStartRequestV1": {
+ "additionalProperties": false,
+ "properties": {
+ "request_key": {
+ "maxLength": 128,
+ "minLength": 1,
+ "title": "Request Key",
+ "type": "string"
+ },
+ "schema_version": {
+ "const": 1,
+ "default": 1,
+ "title": "Schema Version",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "request_key"
+ ],
+ "title": "ArchitectureStartRequestV1",
+ "type": "object"
+ },
"AstConfigItemV1": {
"additionalProperties": false,
"properties": {
@@ -1571,6 +1770,49 @@
"title": "ContextPreviewV1",
"type": "object"
},
+ "CoverageV1": {
+ "additionalProperties": false,
+ "properties": {
+ "analyzed_files": {
+ "minimum": 0.0,
+ "title": "Analyzed Files",
+ "type": "integer"
+ },
+ "eligible_files": {
+ "minimum": 0.0,
+ "title": "Eligible Files",
+ "type": "integer"
+ },
+ "fact_runs": {
+ "default": [],
+ "items": {
+ "format": "uuid",
+ "type": "string"
+ },
+ "maxItems": 64,
+ "title": "Fact Runs",
+ "type": "array"
+ },
+ "omitted_files": {
+ "minimum": 0.0,
+ "title": "Omitted Files",
+ "type": "integer"
+ },
+ "partial_files": {
+ "minimum": 0.0,
+ "title": "Partial Files",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "eligible_files",
+ "analyzed_files",
+ "partial_files",
+ "omitted_files"
+ ],
+ "title": "CoverageV1",
+ "type": "object"
+ },
"CreateScanRequestV1": {
"additionalProperties": false,
"properties": {
@@ -1986,6 +2228,31 @@
"title": "DependencyFileV1",
"type": "object"
},
+ "DependencyGraphV1": {
+ "additionalProperties": false,
+ "properties": {
+ "edges": {
+ "default": [],
+ "items": {
+ "$ref": "#/components/schemas/GraphEdgeV1"
+ },
+ "maxItems": 100000,
+ "title": "Edges",
+ "type": "array"
+ },
+ "nodes": {
+ "default": [],
+ "items": {
+ "$ref": "#/components/schemas/GraphNodeV1"
+ },
+ "maxItems": 20000,
+ "title": "Nodes",
+ "type": "array"
+ }
+ },
+ "title": "DependencyGraphV1",
+ "type": "object"
+ },
"DependencySelectionV1": {
"additionalProperties": false,
"properties": {
@@ -2631,6 +2898,52 @@
"title": "EvidencePointerV1",
"type": "object"
},
+ "EvidenceRefV1": {
+ "additionalProperties": false,
+ "properties": {
+ "fact": {
+ "enum": [
+ "file",
+ "import",
+ "export",
+ "route",
+ "model",
+ "config",
+ "symbol"
+ ],
+ "title": "Fact",
+ "type": "string"
+ },
+ "file_id": {
+ "format": "uuid",
+ "title": "File Id",
+ "type": "string"
+ },
+ "path": {
+ "maxLength": 1024,
+ "minLength": 1,
+ "title": "Path",
+ "type": "string"
+ },
+ "range": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/SourceRangeV1"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "file_id",
+ "path",
+ "fact"
+ ],
+ "title": "EvidenceRefV1",
+ "type": "object"
+ },
"ExactSearchRequestV1": {
"properties": {
"chunk_set_id": {
@@ -3325,30 +3638,233 @@
"title": "GitHubImportV1",
"type": "object"
},
- "GraphPage": {
+ "GraphEdgeV1": {
"additionalProperties": false,
"properties": {
- "edges": {
+ "candidates": {
+ "default": [],
"items": {
- "$ref": "#/components/schemas/EdgeCreateV1"
+ "type": "string"
},
- "title": "Edges",
+ "maxItems": 8,
+ "title": "Candidates",
"type": "array"
},
- "next_cursor": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "title": "Next Cursor"
+ "evidence": {
+ "$ref": "#/components/schemas/EvidenceRefV1"
},
- "nodes": {
- "items": {
- "$ref": "#/components/schemas/NodeCreateV1"
+ "import_kind": {
+ "maxLength": 32,
+ "minLength": 1,
+ "title": "Import Kind",
+ "type": "string"
+ },
+ "module": {
+ "maxLength": 512,
+ "title": "Module",
+ "type": "string"
+ },
+ "resolution": {
+ "enum": [
+ "resolved",
+ "ambiguous",
+ "external",
+ "unresolved"
+ ],
+ "title": "Resolution",
+ "type": "string"
+ },
+ "source": {
+ "maxLength": 1100,
+ "minLength": 1,
+ "title": "Source",
+ "type": "string"
+ },
+ "target": {
+ "anyOf": [
+ {
+ "maxLength": 1100,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Target"
+ }
+ },
+ "required": [
+ "source",
+ "module",
+ "import_kind",
+ "resolution",
+ "evidence"
+ ],
+ "title": "GraphEdgeV1",
+ "type": "object"
+ },
+ "GraphLinkOutV1": {
+ "additionalProperties": false,
+ "properties": {
+ "resolution": {
+ "enum": [
+ "resolved",
+ "ambiguous",
+ "external",
+ "unresolved"
+ ],
+ "title": "Resolution",
+ "type": "string"
+ },
+ "source": {
+ "title": "Source",
+ "type": "string"
+ },
+ "target": {
+ "title": "Target",
+ "type": "string"
+ }
+ },
+ "required": [
+ "source",
+ "target",
+ "resolution"
+ ],
+ "title": "GraphLinkOutV1",
+ "type": "object"
+ },
+ "GraphNodeOutV1": {
+ "additionalProperties": false,
+ "properties": {
+ "group": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Group"
+ },
+ "id": {
+ "title": "Id",
+ "type": "string"
+ },
+ "kind": {
+ "enum": [
+ "file",
+ "package",
+ "external"
+ ],
+ "title": "Kind",
+ "type": "string"
+ },
+ "label": {
+ "title": "Label",
+ "type": "string"
+ },
+ "language": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Language"
+ }
+ },
+ "required": [
+ "id",
+ "label",
+ "kind"
+ ],
+ "title": "GraphNodeOutV1",
+ "type": "object"
+ },
+ "GraphNodeV1": {
+ "additionalProperties": false,
+ "properties": {
+ "file_id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "File Id"
+ },
+ "id": {
+ "maxLength": 1100,
+ "minLength": 1,
+ "title": "Id",
+ "type": "string"
+ },
+ "kind": {
+ "enum": [
+ "file",
+ "package",
+ "external"
+ ],
+ "title": "Kind",
+ "type": "string"
+ },
+ "label": {
+ "maxLength": 1024,
+ "minLength": 1,
+ "title": "Label",
+ "type": "string"
+ },
+ "language": {
+ "anyOf": [
+ {
+ "maxLength": 64,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Language"
+ }
+ },
+ "required": [
+ "id",
+ "kind",
+ "label"
+ ],
+ "title": "GraphNodeV1",
+ "type": "object"
+ },
+ "GraphPage": {
+ "additionalProperties": false,
+ "properties": {
+ "edges": {
+ "items": {
+ "$ref": "#/components/schemas/EdgeCreateV1"
+ },
+ "title": "Edges",
+ "type": "array"
+ },
+ "next_cursor": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Next Cursor"
+ },
+ "nodes": {
+ "items": {
+ "$ref": "#/components/schemas/NodeCreateV1"
},
"title": "Nodes",
"type": "array"
@@ -7912,6 +8428,62 @@
"title": "RepositoryRecord",
"type": "object"
},
+ "RepositoryReportV1": {
+ "additionalProperties": false,
+ "properties": {
+ "coverage": {
+ "$ref": "#/components/schemas/CoverageV1"
+ },
+ "graph": {
+ "$ref": "#/components/schemas/DependencyGraphV1"
+ },
+ "inputs_digest": {
+ "pattern": "^[0-9a-f]{64}$",
+ "title": "Inputs Digest",
+ "type": "string"
+ },
+ "org_id": {
+ "format": "uuid",
+ "title": "Org Id",
+ "type": "string"
+ },
+ "repository_id": {
+ "format": "uuid",
+ "title": "Repository Id",
+ "type": "string"
+ },
+ "schema_version": {
+ "const": 1,
+ "default": 1,
+ "title": "Schema Version",
+ "type": "integer"
+ },
+ "sections": {
+ "items": {
+ "$ref": "#/components/schemas/SectionV1"
+ },
+ "maxItems": 8,
+ "title": "Sections",
+ "type": "array"
+ },
+ "snapshot_id": {
+ "format": "uuid",
+ "title": "Snapshot Id",
+ "type": "string"
+ }
+ },
+ "required": [
+ "org_id",
+ "repository_id",
+ "snapshot_id",
+ "inputs_digest",
+ "coverage",
+ "graph",
+ "sections"
+ ],
+ "title": "RepositoryReportV1",
+ "type": "object"
+ },
"ResolutionV1": {
"additionalProperties": false,
"properties": {
@@ -9133,6 +9705,48 @@
"title": "SearchScopeV1",
"type": "object"
},
+ "SectionV1": {
+ "additionalProperties": false,
+ "properties": {
+ "name": {
+ "enum": [
+ "overview",
+ "components",
+ "dependencies",
+ "api_surface",
+ "data_model",
+ "configuration",
+ "entry_points",
+ "coverage"
+ ],
+ "title": "Name",
+ "type": "string"
+ },
+ "statements": {
+ "default": [],
+ "items": {
+ "$ref": "#/components/schemas/StatementV1"
+ },
+ "maxItems": 200,
+ "title": "Statements",
+ "type": "array"
+ },
+ "tables": {
+ "default": [],
+ "items": {
+ "$ref": "#/components/schemas/TableV1"
+ },
+ "maxItems": 8,
+ "title": "Tables",
+ "type": "array"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "title": "SectionV1",
+ "type": "object"
+ },
"SessionV1": {
"additionalProperties": false,
"properties": {
@@ -9169,19 +9783,86 @@
"title": "SessionV1",
"type": "object"
},
- "SignatureV1": {
+ "ShardStatusV1": {
"additionalProperties": false,
"properties": {
- "params": {
- "default": [],
- "items": {
- "$ref": "#/components/schemas/ParameterV1"
- },
- "maxItems": 128,
- "title": "Params",
- "type": "array"
+ "files": {
+ "minimum": 0.0,
+ "title": "Files",
+ "type": "integer"
},
- "return_type": {
+ "index": {
+ "minimum": 0.0,
+ "title": "Index",
+ "type": "integer"
+ },
+ "job_id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Job Id"
+ },
+ "prefixes": {
+ "minimum": 0.0,
+ "title": "Prefixes",
+ "type": "integer"
+ },
+ "run_id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Run Id"
+ },
+ "state": {
+ "enum": [
+ "not_started",
+ "queued",
+ "running",
+ "retry_wait",
+ "cancelling",
+ "succeeded",
+ "partial",
+ "failed",
+ "cancelled"
+ ],
+ "title": "State",
+ "type": "string"
+ }
+ },
+ "required": [
+ "index",
+ "files",
+ "prefixes",
+ "state"
+ ],
+ "title": "ShardStatusV1",
+ "type": "object"
+ },
+ "SignatureV1": {
+ "additionalProperties": false,
+ "properties": {
+ "params": {
+ "default": [],
+ "items": {
+ "$ref": "#/components/schemas/ParameterV1"
+ },
+ "maxItems": 128,
+ "title": "Params",
+ "type": "array"
+ },
+ "return_type": {
"anyOf": [
{
"maxLength": 512,
@@ -9422,6 +10103,76 @@
"title": "SourceViewResultV1",
"type": "object"
},
+ "StatementV1": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "maxLength": 96,
+ "minLength": 1,
+ "pattern": "^[a-z][a-z0-9_.]*$",
+ "title": "Code",
+ "type": "string"
+ },
+ "evidence": {
+ "default": [],
+ "items": {
+ "$ref": "#/components/schemas/EvidenceRefV1"
+ },
+ "maxItems": 8,
+ "title": "Evidence",
+ "type": "array"
+ },
+ "evidence_total": {
+ "anyOf": [
+ {
+ "minimum": 0.0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Evidence Total"
+ },
+ "kind": {
+ "enum": [
+ "observation",
+ "derivation",
+ "inference",
+ "unknown"
+ ],
+ "title": "Kind",
+ "type": "string"
+ },
+ "params": {
+ "additionalProperties": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "integer"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "maxProperties": 16,
+ "title": "Params",
+ "type": "object"
+ }
+ },
+ "required": [
+ "kind",
+ "code"
+ ],
+ "title": "StatementV1",
+ "type": "object"
+ },
"StructuralAnalysisRequestV1": {
"additionalProperties": false,
"properties": {
@@ -10368,6 +11119,64 @@
"title": "SymbolObservationV1",
"type": "object"
},
+ "TableV1": {
+ "additionalProperties": false,
+ "properties": {
+ "columns": {
+ "items": {
+ "type": "string"
+ },
+ "maxItems": 12,
+ "minItems": 1,
+ "title": "Columns",
+ "type": "array"
+ },
+ "name": {
+ "maxLength": 64,
+ "minLength": 1,
+ "pattern": "^[a-z][a-z0-9_]*$",
+ "title": "Name",
+ "type": "string"
+ },
+ "rows": {
+ "default": [],
+ "items": {
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "integer"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "maxItems": 200,
+ "title": "Rows",
+ "type": "array"
+ },
+ "rows_total": {
+ "default": 0,
+ "minimum": 0.0,
+ "title": "Rows Total",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "name",
+ "columns"
+ ],
+ "title": "TableV1",
+ "type": "object"
+ },
"ToolCallV1": {
"additionalProperties": false,
"properties": {
@@ -12762,6 +13571,491 @@
"summary": "Create Scan"
}
},
+ "/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/architecture-reports": {
+ "post": {
+ "operationId": "build_architecture_report_api_v1_repositories__repository_id__snapshots__snapshot_id__architecture_reports_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "repository_id",
+ "required": true,
+ "schema": {
+ "format": "uuid",
+ "title": "Repository Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "snapshot_id",
+ "required": true,
+ "schema": {
+ "format": "uuid",
+ "title": "Snapshot Id",
+ "type": "string"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ArchitectureStartRequestV1"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "201": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ArchitectureReportRefV1"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Build Architecture Report"
+ }
+ },
+ "/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/architecture-reports/latest": {
+ "get": {
+ "operationId": "latest_architecture_report_api_v1_repositories__repository_id__snapshots__snapshot_id__architecture_reports_latest_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "repository_id",
+ "required": true,
+ "schema": {
+ "format": "uuid",
+ "title": "Repository Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "snapshot_id",
+ "required": true,
+ "schema": {
+ "format": "uuid",
+ "title": "Snapshot Id",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ArchitectureReportRefV1"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Latest Architecture Report"
+ }
+ },
+ "/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/architecture-reports/prepare": {
+ "get": {
+ "operationId": "architecture_report_status_api_v1_repositories__repository_id__snapshots__snapshot_id__architecture_reports_prepare_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "repository_id",
+ "required": true,
+ "schema": {
+ "format": "uuid",
+ "title": "Repository Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "snapshot_id",
+ "required": true,
+ "schema": {
+ "format": "uuid",
+ "title": "Snapshot Id",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ArchitectureShardsV1"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Architecture Report Status"
+ },
+ "post": {
+ "operationId": "prepare_architecture_report_api_v1_repositories__repository_id__snapshots__snapshot_id__architecture_reports_prepare_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "repository_id",
+ "required": true,
+ "schema": {
+ "format": "uuid",
+ "title": "Repository Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "snapshot_id",
+ "required": true,
+ "schema": {
+ "format": "uuid",
+ "title": "Snapshot Id",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "202": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ArchitectureShardsV1"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Prepare Architecture Report"
+ }
+ },
+ "/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/architecture-reports/{report_id}": {
+ "get": {
+ "operationId": "get_architecture_report_api_v1_repositories__repository_id__snapshots__snapshot_id__architecture_reports__report_id__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "repository_id",
+ "required": true,
+ "schema": {
+ "format": "uuid",
+ "title": "Repository Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "snapshot_id",
+ "required": true,
+ "schema": {
+ "format": "uuid",
+ "title": "Snapshot Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "report_id",
+ "required": true,
+ "schema": {
+ "format": "uuid",
+ "title": "Report Id",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/RepositoryReportV1"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Get Architecture Report"
+ }
+ },
+ "/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/architecture-reports/{report_id}/graph": {
+ "get": {
+ "operationId": "architecture_report_graph_api_v1_repositories__repository_id__snapshots__snapshot_id__architecture_reports__report_id__graph_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "repository_id",
+ "required": true,
+ "schema": {
+ "format": "uuid",
+ "title": "Repository Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "snapshot_id",
+ "required": true,
+ "schema": {
+ "format": "uuid",
+ "title": "Snapshot Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "report_id",
+ "required": true,
+ "schema": {
+ "format": "uuid",
+ "title": "Report Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "offset",
+ "required": false,
+ "schema": {
+ "default": 0,
+ "title": "Offset",
+ "type": "integer"
+ }
+ },
+ {
+ "in": "query",
+ "name": "limit",
+ "required": false,
+ "schema": {
+ "default": 2000,
+ "title": "Limit",
+ "type": "integer"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ArchitectureGraphPageV1"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Architecture Report Graph"
+ }
+ },
+ "/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/architecture-reports/{report_id}/markdown": {
+ "get": {
+ "operationId": "architecture_report_markdown_api_v1_repositories__repository_id__snapshots__snapshot_id__architecture_reports__report_id__markdown_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "repository_id",
+ "required": true,
+ "schema": {
+ "format": "uuid",
+ "title": "Repository Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "snapshot_id",
+ "required": true,
+ "schema": {
+ "format": "uuid",
+ "title": "Snapshot Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "report_id",
+ "required": true,
+ "schema": {
+ "format": "uuid",
+ "title": "Report Id",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Architecture Report Markdown"
+ }
+ },
+ "/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/architecture-reports/{report_id}/sections/{name}": {
+ "get": {
+ "operationId": "architecture_report_section_api_v1_repositories__repository_id__snapshots__snapshot_id__architecture_reports__report_id__sections__name__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "repository_id",
+ "required": true,
+ "schema": {
+ "format": "uuid",
+ "title": "Repository Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "snapshot_id",
+ "required": true,
+ "schema": {
+ "format": "uuid",
+ "title": "Snapshot Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "report_id",
+ "required": true,
+ "schema": {
+ "format": "uuid",
+ "title": "Report Id",
+ "type": "string"
+ }
+ },
+ {
+ "in": "path",
+ "name": "name",
+ "required": true,
+ "schema": {
+ "enum": [
+ "overview",
+ "components",
+ "dependencies",
+ "api_surface",
+ "data_model",
+ "configuration",
+ "entry_points",
+ "coverage"
+ ],
+ "title": "Name",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/SectionV1"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Architecture Report Section"
+ }
+ },
"/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/ast-facts": {
"get": {
"operationId": "ast_facts_summary_api_v1_repositories__repository_id__snapshots__snapshot_id__ast_facts_get",
diff --git a/backend/tests/ast_facts/test_architecture_report_api.py b/backend/tests/ast_facts/test_architecture_report_api.py
new file mode 100644
index 0000000..49e8295
--- /dev/null
+++ b/backend/tests/ast_facts/test_architecture_report_api.py
@@ -0,0 +1,107 @@
+"""Architecture report HTTP routes: prepare, wait, build, read, and refusals."""
+
+import os
+from uuid import UUID, uuid4
+
+import httpx
+import pytest
+from app.api.application import ApiSettings, ApplicationPorts, create_app
+from app.security.sessions import SessionService
+from app.services.jobs import JobService
+
+from tests.ast_facts.test_ast_facts_publication import admitted, operations
+
+pytestmark = pytest.mark.skipif(
+ os.environ.get("CODESPY_TEST_SCHEMA_TARGET") != "head",
+ reason="requires the current schema head (revision 0048)",
+)
+
+
+async def ready():
+ return True
+
+
+async def client_for(factory, tmp_path, *, enabled=True):
+ ctx, snapshot, repo, store = await admitted(factory, tmp_path)
+ issued = await SessionService(factory).issue(ctx.principal_id)
+ app = create_app(
+ ApiSettings(
+ environment="test",
+ auth_mode="local_fixture",
+ origin="http://testserver",
+ structural_enabled=enabled,
+ structural_toolchain_hash="a" * 64 if enabled else None,
+ ),
+ ApplicationPorts(factory, store, ctx, readiness=ready),
+ )
+ client = httpx.AsyncClient(
+ transport=httpx.ASGITransport(app=app),
+ base_url="http://testserver",
+ cookies={"codespy_dev": issued.token},
+ )
+ token = (await client.get("/api/v1/session")).json()["csrf_token"]
+ headers = {"Origin": "http://testserver", "X-CSRF-Token": token, "Idempotency-Key": "report-1"}
+ base = f"/api/v1/repositories/{repo}/snapshots/{snapshot}/architecture-reports"
+ return client, headers, ctx, store, base
+
+
+async def test_prepare_build_and_read_a_report_through_http(factory, tmp_path):
+ client, headers, ctx, store, base = await client_for(factory, tmp_path)
+ try:
+ assert (await client.post(base + "/prepare")).status_code == 403 # no CSRF
+ prepared = await client.post(base + "/prepare", headers=headers)
+ assert prepared.status_code == 202, prepared.text
+ shards = prepared.json()
+ assert shards["ready"] is False and shards["total_files"] == 1
+ assert (await client.get(base + "/prepare")).json()["plan_digest"] == shards["plan_digest"]
+
+ body = {"request_key": "report-1"}
+ pending = await client.post(base, json=body, headers=headers)
+ assert pending.status_code == 409 and pending.json()["code"] == "report_inputs_pending"
+ assert (await client.get(base + "/latest")).status_code == 404
+
+ lease = await JobService(factory).claim(
+ ctx.org_id, UUID(shards["shards"][0]["job_id"]), 1, "worker"
+ )
+ await operations(factory, store)[2].execute(lease)
+ assert (await client.get(base + "/prepare")).json()["ready"] is True
+
+ mismatch = await client.post(base, json={"request_key": "other"}, headers=headers)
+ assert mismatch.status_code == 422
+ built = await client.post(base, json=body, headers=headers)
+ assert built.status_code == 201, built.text
+ ref = built.json()
+ assert ref["complete"] is True and (ref["analyzed_files"], ref["eligible_files"]) == (1, 1)
+ again = await client.post(base, json=body, headers=headers)
+ assert again.json()["id"] == ref["id"] # same inputs, same report
+ assert (await client.get(base + "/latest")).json()["id"] == ref["id"]
+
+ report = await client.get(f"{base}/{ref['id']}")
+ assert report.status_code == 200 and report.json()["coverage"]["analyzed_files"] == 1
+ names = [s["name"] for s in report.json()["sections"]]
+ assert names[0] == "overview" and names[-1] == "coverage"
+ markdown = await client.get(f"{base}/{ref['id']}/markdown")
+ assert markdown.status_code == 200 and markdown.headers["content-type"].startswith(
+ "text/markdown"
+ )
+ assert markdown.text.startswith("# Architecture report")
+ assert "## Coverage and limitations" in markdown.text and "**UNKNOWN**" in markdown.text
+ graph = await client.get(f"{base}/{ref['id']}/graph?limit=10")
+ assert graph.status_code == 200 and graph.json()["nodes_total"] == 1
+ assert graph.json()["nodes"][0]["label"] == "a.py"
+ section = await client.get(f"{base}/{ref['id']}/sections/coverage")
+ assert section.status_code == 200 and section.json()["name"] == "coverage"
+ assert (await client.get(f"{base}/{ref['id']}/graph?limit=0")).status_code == 422
+ assert (await client.get(f"{base}/{ref['id']}/sections/bogus")).status_code == 422
+ assert (await client.get(f"{base}/{uuid4()}")).status_code == 404
+ finally:
+ await client.aclose()
+
+
+async def test_prepare_is_unavailable_without_a_qualified_analysis_runtime(factory, tmp_path):
+ client, headers, _, _, base = await client_for(factory, tmp_path, enabled=False)
+ try:
+ response = await client.post(base + "/prepare", headers=headers)
+ assert response.status_code == 503 and response.json()["code"] == "analysis_unavailable"
+ finally:
+ await client.aclose()
diff --git a/backend/tests/phase3/unit/test_architecture_report_contracts.py b/backend/tests/phase3/unit/test_architecture_report_contracts.py
index f83854c..ec0b294 100644
--- a/backend/tests/phase3/unit/test_architecture_report_contracts.py
+++ b/backend/tests/phase3/unit/test_architecture_report_contracts.py
@@ -4,12 +4,12 @@
import pytest
from app.contracts.architecture_report import (
- ArchitectureReportV1,
CoverageV1,
DependencyGraphV1,
EvidenceRefV1,
GraphEdgeV1,
GraphNodeV1,
+ RepositoryReportV1,
SectionV1,
StatementV1,
TableV1,
@@ -115,7 +115,7 @@ def report(**overrides):
"graph": DependencyGraphV1(),
"sections": (SectionV1(name="overview"),),
}
- return ArchitectureReportV1(**{**values, **overrides})
+ return RepositoryReportV1(**{**values, **overrides})
def test_a_report_is_deterministic_and_rejects_duplicate_sections():
diff --git a/frontend/src/api/generated/index.ts b/frontend/src/api/generated/index.ts
index 792e386..341f9a0 100644
--- a/frontend/src/api/generated/index.ts
+++ b/frontend/src/api/generated/index.ts
@@ -1,4 +1,4 @@
// This file is auto-generated by @hey-api/openapi-ts
-export { acquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPost, assembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePost, astFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGet, astFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGet, astFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGet, astFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGet, astFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGet, astFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGet, bindGithubApiV1RepositoriesRepositoryIdGithubBindingPost, cancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPost, cancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPost, cancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPost, cancelJobApiV1JobsJobIdCancelPost, cancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPost, cancelSubmissionApiV1SubmissionsSubmissionIdCancelPost, contextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPost, createAnalysisApiV1RepositoriesRepositoryIdAnalysesPost, createAstFactsApiV1RepositoriesRepositoryIdAstFactsPost, createDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePost, createInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPost, createRepositoryApiV1RepositoriesPost, createScanApiV1RepositoriesRepositoryIdScansPost, createSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPost, createSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPost, deleteSubmissionApiV1SubmissionsSubmissionIdDelete, executeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePost, exportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGet, getAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGet, getEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGet, getFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGet, getIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGet, getInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGet, getJobApiV1JobsJobIdGet, getScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGet, getScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGet, getSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGet, getSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGet, getSubmissionApiV1SubmissionsSubmissionIdGet, getSubmissionApiV1UploadsSubmissionIdGet, getTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGet, githubWebhookApiV1WebhooksGithubPost, healthLiveHealthLiveGet, healthReadyHealthReadyGet, importGithubUrlApiV1GithubImportsPost, indexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGet, inventoryApiV1SnapshotsSnapshotIdInventoryGet, jobEventsApiV1JobsJobIdEventsGet, listInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGet, listInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGet, listMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGet, listRepositoriesApiV1RepositoriesGet, listScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGet, logoutApiV1LogoutPost, logoutApiV1SessionLogoutPost, memoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGet, modelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGet, oauthCallbackApiV1AuthGithubCallbackGet, oauthStartApiV1AuthGithubStartGet, type Options, queryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGet, recordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPost, recordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPost, reportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGet, repositoryMetadataApiV1RepositoriesRepositoryIdMetadataGet, reserveUploadApiV1RepositoriesRepositoryIdUploadsPost, resumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePost, retryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPost, retryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPost, retryJobApiV1JobsJobIdRetryPost, retryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPost, reviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPost, scanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGet, searchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePost, searchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPost, searchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPost, searchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPost, sessionApiV1SessionGet, streamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGet, structuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGet, structuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGet, structuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPost, traceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePost, triageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePost, uploadContentApiV1SubmissionsSubmissionIdContentPut, uploadContentApiV1UploadsSubmissionIdContentPut } from './sdk.gen';
-export type { AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostData, AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostError, AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostErrors, AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostResponse, AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostResponses, AnalysisAcceptedV1, ArchitectureReportV1, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostData, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostError, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostErrors, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostResponse, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostResponses, AstConfigItemV1, AstConfigPageV1, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetData, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetError, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetErrors, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetResponse, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetResponses, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetData, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetError, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetErrors, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetResponse, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetResponses, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetData, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetError, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetErrors, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetResponse, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetResponses, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetData, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetError, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetErrors, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetResponse, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetResponses, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetData, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetError, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetErrors, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetResponse, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetResponses, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetData, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetError, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetErrors, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetResponse, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetResponses, AstFilePageV1, AstFileSummaryV1, AstModelItemV1, AstModelPageV1, AstRouteItemV1, AstRoutePageV1, AstSnapshotSummaryV1, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostData, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostError, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostErrors, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostResponse, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostResponses, BoundaryLinkV1, ByteRangeV1, CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostData, CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostError, CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostErrors, CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostResponse, CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostResponses, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostData, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostError, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostErrors, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostResponse, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostResponses, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostData, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostError, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostErrors, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostResponse, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostResponses, CancelJobApiV1JobsJobIdCancelPostData, CancelJobApiV1JobsJobIdCancelPostError, CancelJobApiV1JobsJobIdCancelPostErrors, CancelJobApiV1JobsJobIdCancelPostResponse, CancelJobApiV1JobsJobIdCancelPostResponses, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostData, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostError, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostErrors, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostResponse, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostResponses, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostData, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostError, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostErrors, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostResponse, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostResponses, ChatMessageV1, ChunkKind, ClaimVerificationStatus, ClaimVerificationV1, ClientOptions, ColumnFactV1, ComponentSectionV1, ConfigFactV1, ContextAssemblyRequestV1, ContextBudgetV1, ContextItemV1, ContextPacketV1, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostData, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostError, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostErrors, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostResponse, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostResponses, ContextPreviewRequestV1, ContextPreviewV1, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostData, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostError, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostErrors, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostResponse, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostResponses, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostData, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostError, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostErrors, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostResponse, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostResponses, CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostData, CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostError, CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostErrors, CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostResponse, CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostResponses, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostData, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostError, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostErrors, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostResponse, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostResponses, CreateRepositoryApiV1RepositoriesPostData, CreateRepositoryApiV1RepositoriesPostResponse, CreateRepositoryApiV1RepositoriesPostResponses, CreateScanApiV1RepositoriesRepositoryIdScansPostData, CreateScanApiV1RepositoriesRepositoryIdScansPostError, CreateScanApiV1RepositoriesRepositoryIdScansPostErrors, CreateScanApiV1RepositoriesRepositoryIdScansPostResponse, CreateScanApiV1RepositoriesRepositoryIdScansPostResponses, CreateScanRequestV1, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostData, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostError, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostErrors, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostResponse, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostResponses, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostData, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostError, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostErrors, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostResponse, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostResponses, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteData, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteError, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteErrors, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteResponse, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteResponses, DenseSearchHitV1, DenseSearchRequestV1, DenseSearchResponseV1, DependencyFileV1, DependencySelectionV1, DiagnosticFactV1, DiagnosticV1, EdgeCreateV1, EmbedCreateResponseV1, EmbedJobRecordV7, EmbedReceiptV1, EmbedStartRequestV1, EmbedStatusV1, EventPageV2, EventPageV3, EvidencePointerV1, ExactSearchRequestV1, ExactSearchType, ExecuteInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePostData, ExecuteInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePostError, ExecuteInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePostErrors, ExecuteInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePostResponses, ExportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGetData, ExportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGetError, ExportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGetErrors, ExportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGetResponses, ExportFactV1, FeatureTraceV1, FileFactsV1, FileOmissionV1, FindingDetailResponseV1, FindingListResponseV1, FindingSummaryV1, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetData, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetError, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetErrors, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetResponse, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetResponses, GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetData, GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetError, GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetErrors, GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetResponse, GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetResponses, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetData, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetError, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetErrors, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetResponse, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetResponses, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetData, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetError, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetErrors, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetResponse, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetResponses, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetData, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetError, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetErrors, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetResponse, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetResponses, GetJobApiV1JobsJobIdGetData, GetJobApiV1JobsJobIdGetError, GetJobApiV1JobsJobIdGetErrors, GetJobApiV1JobsJobIdGetResponse, GetJobApiV1JobsJobIdGetResponses, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetData, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetError, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetErrors, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetResponse, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetResponses, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetData, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetError, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetErrors, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetResponse, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetResponses, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetData, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetError, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetErrors, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetResponse, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetResponses, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetData, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetError, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetErrors, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetResponse, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetResponses, GetSubmissionApiV1SubmissionsSubmissionIdGetData, GetSubmissionApiV1SubmissionsSubmissionIdGetError, GetSubmissionApiV1SubmissionsSubmissionIdGetErrors, GetSubmissionApiV1SubmissionsSubmissionIdGetResponse, GetSubmissionApiV1SubmissionsSubmissionIdGetResponses, GetSubmissionApiV1UploadsSubmissionIdGetData, GetSubmissionApiV1UploadsSubmissionIdGetError, GetSubmissionApiV1UploadsSubmissionIdGetErrors, GetSubmissionApiV1UploadsSubmissionIdGetResponse, GetSubmissionApiV1UploadsSubmissionIdGetResponses, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetData, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetError, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetErrors, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetResponse, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetResponses, GitHubAcquisitionV1, GitHubBindingV1, GitHubImportV1, GithubWebhookApiV1WebhooksGithubPostData, GithubWebhookApiV1WebhooksGithubPostResponse, GithubWebhookApiV1WebhooksGithubPostResponses, GraphPage, GraphQueryV1, GraphTraversalV1, HealthLiveHealthLiveGetData, HealthLiveHealthLiveGetResponse, HealthLiveHealthLiveGetResponses, HealthReadyHealthReadyGetData, HealthReadyHealthReadyGetResponses, HttpRequestObservationV1, HttpValidationError, HybridSearchHitV1, HybridSearchRequestV1, HybridSearchResponseV1, IdentityMapV1, ImportFactV1, ImportGithubUrlApiV1GithubImportsPostData, ImportGithubUrlApiV1GithubImportsPostResponse, ImportGithubUrlApiV1GithubImportsPostResponses, ImportNameV1, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetData, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetError, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetErrors, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetResponse, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetResponses, IndexAvailabilityV1, IndexCoverageV1, IndexCreateResponseV1, IndexCreateResponseV1Writable, IndexJobRecordV5, IndexOmissionExampleV1, IndexOmissionV1, IndexReceiptV1, IndexRetryResponseV1, IndexStartRequestV1, IndexStatusV1, IntervalMappingV1, InventoryApiV1SnapshotsSnapshotIdInventoryGetData, InventoryApiV1SnapshotsSnapshotIdInventoryGetError, InventoryApiV1SnapshotsSnapshotIdInventoryGetErrors, InventoryApiV1SnapshotsSnapshotIdInventoryGetResponse, InventoryApiV1SnapshotsSnapshotIdInventoryGetResponses, InventoryEntryV1, InventoryPageV1, InvestigationCancelResponseV1, InvestigationClaimKind, InvestigationClaimV1, InvestigationClaimV2, InvestigationCreateRequestV1, InvestigationCreateRequestV2, InvestigationDepth, InvestigationDetailResponseV1, InvestigationDetailResponseV2, InvestigationEventPageV1, InvestigationEventV1, InvestigationEventV2, InvestigationFeedbackRequestV1, InvestigationJobRecordV1, InvestigationListResponseV1, InvestigationListResponseV2, InvestigationMode, InvestigationReportV1, InvestigationResumeRequestV1, InvestigationRetryRequestV1, InvestigationStartResponseV1, InvestigationStateV1, InvestigationStatus, InvestigationStopReason, InvestigationSummaryV1, InvestigationSummaryV2, InvestigationTargetType, JobEventsApiV1JobsJobIdEventsGetData, JobEventsApiV1JobsJobIdEventsGetError, JobEventsApiV1JobsJobIdEventsGetErrors, JobEventsApiV1JobsJobIdEventsGetResponse, JobEventsApiV1JobsJobIdEventsGetResponses, JobEventV2, JobEventV3, JobRecordV2, JobRecordV3, LexicalSearchRequestV1, ListInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGetData, ListInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGetError, ListInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGetErrors, ListInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGetResponses, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetData, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetError, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetErrors, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetResponse, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetResponses, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetData, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetError, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetErrors, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetResponse, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetResponses, ListRepositoriesApiV1RepositoriesGetData, ListRepositoriesApiV1RepositoriesGetError, ListRepositoriesApiV1RepositoriesGetErrors, ListRepositoriesApiV1RepositoriesGetResponse, ListRepositoriesApiV1RepositoriesGetResponses, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetData, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetError, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetErrors, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetResponse, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetResponses, LogoutApiV1LogoutPostData, LogoutApiV1LogoutPostResponse, LogoutApiV1LogoutPostResponses, LogoutApiV1SessionLogoutPostData, LogoutApiV1SessionLogoutPostResponse, LogoutApiV1SessionLogoutPostResponses, MemoryCreateRequestV1, MemoryEntryV1, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetData, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetError, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetErrors, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetResponse, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetResponses, MemoryHistoryV1, MemoryKind, MemoryManagementPageV1, MemoryQueryResponseV1, MemoryReviewEventV1, MemoryReviewRequestV1, MemoryState, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetData, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetError, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetErrors, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetResponse, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetResponses, ModelAvailabilityItemV1, ModelAvailabilityV1, ModelFactV1, ModelRole, NativeSelectionV1, NodeCreateV1, OauthCallbackApiV1AuthGithubCallbackGetData, OauthCallbackApiV1AuthGithubCallbackGetError, OauthCallbackApiV1AuthGithubCallbackGetErrors, OauthCallbackApiV1AuthGithubCallbackGetResponses, OauthStartApiV1AuthGithubStartGetData, OauthStartApiV1AuthGithubStartGetResponses, ParameterV1, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetData, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetError, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetErrors, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetResponse, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetResponses, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostData, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostError, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostErrors, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostResponse, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostResponses, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostData, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostError, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostErrors, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostResponse, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostResponses, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetData, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetError, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetErrors, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetResponse, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetResponses, RepositoryCreate, RepositoryListItemV1, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetData, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetError, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetErrors, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetResponse, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetResponses, RepositoryPageV1, RepositoryRecord, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostData, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostError, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostErrors, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostResponse, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostResponses, ResolutionV1, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostData, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostError, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostErrors, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostResponse, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostResponses, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostData, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostError, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostErrors, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostResponse, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostResponses, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostData, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostError, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostErrors, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostResponse, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostResponses, RetryJobApiV1JobsJobIdRetryPostData, RetryJobApiV1JobsJobIdRetryPostError, RetryJobApiV1JobsJobIdRetryPostErrors, RetryJobApiV1JobsJobIdRetryPostResponse, RetryJobApiV1JobsJobIdRetryPostResponses, RetryResponseV1, RetryResponseV2, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostData, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostError, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostErrors, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostResponse, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostResponses, RetryScanResponseV3, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostData, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostError, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostErrors, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostResponse, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostResponses, RouteFactV1, RouteObservationV1, RunRef, ScanAcceptedV1, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetData, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetError, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetErrors, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetResponse, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetResponses, ScanConfigurationV1, ScanConfigV1, ScanJobRecordV4, ScannerFileV1, ScannerProfileV1, ScanSummaryResponseV1, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostData, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostError, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostErrors, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostResponse, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostResponses, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostData, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostError, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostErrors, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostResponse, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostResponses, SearchHitV1, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostData, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostError, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostErrors, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostResponse, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostResponses, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostData, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostError, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostErrors, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostResponse, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostResponses, SearchMode, SearchResponseV1, SearchScopeV1, SessionApiV1SessionGetData, SessionApiV1SessionGetResponse, SessionApiV1SessionGetResponses, SessionV1, SignatureV1, SourceExcerptV1, SourceLocationV1, SourceRangeV1, SourceRepresentation, SourceViewResultV1, StreamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGetData, StreamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGetError, StreamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGetErrors, StreamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGetResponses, StructuralAnalysisRequestV1, StructuralCoverageV1, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetData, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetError, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetErrors, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetResponse, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetResponses, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetData, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetError, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetErrors, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetResponse, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetResponses, StructuralLimitsV1, StructuralSectionPageV1, StructuralSummaryV1, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostData, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostError, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostErrors, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostResponse, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostResponses, SubmissionRecordV1, SymbolFactV1, SymbolObservationV1, ToolCallV1, TraceBudgetV1, TraceEdgeV1, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostData, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostError, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostErrors, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostResponse, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostResponses, TraceNodeV1, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostData, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostError, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostErrors, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostResponse, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostResponses, TriageHistoryItemV1, TriageHistoryV1, TriageRecordV1, TriageTransitionV1, UploadContentApiV1SubmissionsSubmissionIdContentPutData, UploadContentApiV1SubmissionsSubmissionIdContentPutError, UploadContentApiV1SubmissionsSubmissionIdContentPutErrors, UploadContentApiV1SubmissionsSubmissionIdContentPutResponse, UploadContentApiV1SubmissionsSubmissionIdContentPutResponses, UploadContentApiV1UploadsSubmissionIdContentPutData, UploadContentApiV1UploadsSubmissionIdContentPutError, UploadContentApiV1UploadsSubmissionIdContentPutErrors, UploadContentApiV1UploadsSubmissionIdContentPutResponse, UploadContentApiV1UploadsSubmissionIdContentPutResponses, UploadReservationV1, ValidationError } from './types.gen';
+export { acquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPost, architectureReportGraphApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGraphGet, architectureReportMarkdownApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdMarkdownGet, architectureReportSectionApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdSectionsNameGet, architectureReportStatusApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPrepareGet, assembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePost, astFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGet, astFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGet, astFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGet, astFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGet, astFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGet, astFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGet, bindGithubApiV1RepositoriesRepositoryIdGithubBindingPost, buildArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPost, cancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPost, cancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPost, cancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPost, cancelJobApiV1JobsJobIdCancelPost, cancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPost, cancelSubmissionApiV1SubmissionsSubmissionIdCancelPost, contextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPost, createAnalysisApiV1RepositoriesRepositoryIdAnalysesPost, createAstFactsApiV1RepositoriesRepositoryIdAstFactsPost, createDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePost, createInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPost, createRepositoryApiV1RepositoriesPost, createScanApiV1RepositoriesRepositoryIdScansPost, createSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPost, createSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPost, deleteSubmissionApiV1SubmissionsSubmissionIdDelete, executeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePost, exportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGet, getAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGet, getArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGet, getEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGet, getFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGet, getIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGet, getInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGet, getJobApiV1JobsJobIdGet, getScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGet, getScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGet, getSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGet, getSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGet, getSubmissionApiV1SubmissionsSubmissionIdGet, getSubmissionApiV1UploadsSubmissionIdGet, getTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGet, githubWebhookApiV1WebhooksGithubPost, healthLiveHealthLiveGet, healthReadyHealthReadyGet, importGithubUrlApiV1GithubImportsPost, indexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGet, inventoryApiV1SnapshotsSnapshotIdInventoryGet, jobEventsApiV1JobsJobIdEventsGet, latestArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsLatestGet, listInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGet, listInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGet, listMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGet, listRepositoriesApiV1RepositoriesGet, listScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGet, logoutApiV1LogoutPost, logoutApiV1SessionLogoutPost, memoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGet, modelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGet, oauthCallbackApiV1AuthGithubCallbackGet, oauthStartApiV1AuthGithubStartGet, type Options, prepareArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPreparePost, queryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGet, recordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPost, recordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPost, reportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGet, repositoryMetadataApiV1RepositoriesRepositoryIdMetadataGet, reserveUploadApiV1RepositoriesRepositoryIdUploadsPost, resumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePost, retryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPost, retryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPost, retryJobApiV1JobsJobIdRetryPost, retryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPost, reviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPost, scanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGet, searchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePost, searchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPost, searchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPost, searchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPost, sessionApiV1SessionGet, streamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGet, structuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGet, structuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGet, structuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPost, traceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePost, triageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePost, uploadContentApiV1SubmissionsSubmissionIdContentPut, uploadContentApiV1UploadsSubmissionIdContentPut } from './sdk.gen';
+export type { AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostData, AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostError, AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostErrors, AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostResponse, AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostResponses, AnalysisAcceptedV1, ArchitectureGraphPageV1, ArchitectureReportGraphApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGraphGetData, ArchitectureReportGraphApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGraphGetError, ArchitectureReportGraphApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGraphGetErrors, ArchitectureReportGraphApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGraphGetResponse, ArchitectureReportGraphApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGraphGetResponses, ArchitectureReportMarkdownApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdMarkdownGetData, ArchitectureReportMarkdownApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdMarkdownGetError, ArchitectureReportMarkdownApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdMarkdownGetErrors, ArchitectureReportMarkdownApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdMarkdownGetResponses, ArchitectureReportRefV1, ArchitectureReportSectionApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdSectionsNameGetData, ArchitectureReportSectionApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdSectionsNameGetError, ArchitectureReportSectionApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdSectionsNameGetErrors, ArchitectureReportSectionApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdSectionsNameGetResponse, ArchitectureReportSectionApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdSectionsNameGetResponses, ArchitectureReportStatusApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPrepareGetData, ArchitectureReportStatusApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPrepareGetError, ArchitectureReportStatusApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPrepareGetErrors, ArchitectureReportStatusApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPrepareGetResponse, ArchitectureReportStatusApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPrepareGetResponses, ArchitectureReportV1, ArchitectureShardsV1, ArchitectureStartRequestV1, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostData, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostError, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostErrors, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostResponse, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostResponses, AstConfigItemV1, AstConfigPageV1, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetData, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetError, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetErrors, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetResponse, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetResponses, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetData, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetError, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetErrors, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetResponse, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetResponses, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetData, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetError, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetErrors, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetResponse, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetResponses, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetData, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetError, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetErrors, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetResponse, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetResponses, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetData, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetError, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetErrors, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetResponse, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetResponses, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetData, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetError, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetErrors, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetResponse, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetResponses, AstFilePageV1, AstFileSummaryV1, AstModelItemV1, AstModelPageV1, AstRouteItemV1, AstRoutePageV1, AstSnapshotSummaryV1, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostData, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostError, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostErrors, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostResponse, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostResponses, BoundaryLinkV1, BuildArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPostData, BuildArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPostError, BuildArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPostErrors, BuildArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPostResponse, BuildArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPostResponses, ByteRangeV1, CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostData, CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostError, CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostErrors, CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostResponse, CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostResponses, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostData, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostError, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostErrors, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostResponse, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostResponses, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostData, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostError, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostErrors, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostResponse, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostResponses, CancelJobApiV1JobsJobIdCancelPostData, CancelJobApiV1JobsJobIdCancelPostError, CancelJobApiV1JobsJobIdCancelPostErrors, CancelJobApiV1JobsJobIdCancelPostResponse, CancelJobApiV1JobsJobIdCancelPostResponses, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostData, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostError, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostErrors, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostResponse, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostResponses, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostData, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostError, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostErrors, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostResponse, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostResponses, ChatMessageV1, ChunkKind, ClaimVerificationStatus, ClaimVerificationV1, ClientOptions, ColumnFactV1, ComponentSectionV1, ConfigFactV1, ContextAssemblyRequestV1, ContextBudgetV1, ContextItemV1, ContextPacketV1, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostData, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostError, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostErrors, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostResponse, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostResponses, ContextPreviewRequestV1, ContextPreviewV1, CoverageV1, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostData, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostError, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostErrors, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostResponse, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostResponses, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostData, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostError, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostErrors, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostResponse, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostResponses, CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostData, CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostError, CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostErrors, CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostResponse, CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostResponses, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostData, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostError, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostErrors, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostResponse, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostResponses, CreateRepositoryApiV1RepositoriesPostData, CreateRepositoryApiV1RepositoriesPostResponse, CreateRepositoryApiV1RepositoriesPostResponses, CreateScanApiV1RepositoriesRepositoryIdScansPostData, CreateScanApiV1RepositoriesRepositoryIdScansPostError, CreateScanApiV1RepositoriesRepositoryIdScansPostErrors, CreateScanApiV1RepositoriesRepositoryIdScansPostResponse, CreateScanApiV1RepositoriesRepositoryIdScansPostResponses, CreateScanRequestV1, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostData, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostError, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostErrors, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostResponse, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostResponses, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostData, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostError, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostErrors, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostResponse, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostResponses, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteData, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteError, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteErrors, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteResponse, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteResponses, DenseSearchHitV1, DenseSearchRequestV1, DenseSearchResponseV1, DependencyFileV1, DependencyGraphV1, DependencySelectionV1, DiagnosticFactV1, DiagnosticV1, EdgeCreateV1, EmbedCreateResponseV1, EmbedJobRecordV7, EmbedReceiptV1, EmbedStartRequestV1, EmbedStatusV1, EventPageV2, EventPageV3, EvidencePointerV1, EvidenceRefV1, ExactSearchRequestV1, ExactSearchType, ExecuteInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePostData, ExecuteInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePostError, ExecuteInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePostErrors, ExecuteInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePostResponses, ExportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGetData, ExportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGetError, ExportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGetErrors, ExportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGetResponses, ExportFactV1, FeatureTraceV1, FileFactsV1, FileOmissionV1, FindingDetailResponseV1, FindingListResponseV1, FindingSummaryV1, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetData, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetError, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetErrors, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetResponse, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetResponses, GetArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGetData, GetArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGetError, GetArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGetErrors, GetArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGetResponse, GetArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGetResponses, GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetData, GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetError, GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetErrors, GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetResponse, GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetResponses, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetData, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetError, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetErrors, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetResponse, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetResponses, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetData, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetError, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetErrors, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetResponse, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetResponses, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetData, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetError, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetErrors, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetResponse, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetResponses, GetJobApiV1JobsJobIdGetData, GetJobApiV1JobsJobIdGetError, GetJobApiV1JobsJobIdGetErrors, GetJobApiV1JobsJobIdGetResponse, GetJobApiV1JobsJobIdGetResponses, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetData, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetError, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetErrors, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetResponse, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetResponses, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetData, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetError, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetErrors, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetResponse, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetResponses, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetData, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetError, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetErrors, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetResponse, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetResponses, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetData, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetError, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetErrors, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetResponse, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetResponses, GetSubmissionApiV1SubmissionsSubmissionIdGetData, GetSubmissionApiV1SubmissionsSubmissionIdGetError, GetSubmissionApiV1SubmissionsSubmissionIdGetErrors, GetSubmissionApiV1SubmissionsSubmissionIdGetResponse, GetSubmissionApiV1SubmissionsSubmissionIdGetResponses, GetSubmissionApiV1UploadsSubmissionIdGetData, GetSubmissionApiV1UploadsSubmissionIdGetError, GetSubmissionApiV1UploadsSubmissionIdGetErrors, GetSubmissionApiV1UploadsSubmissionIdGetResponse, GetSubmissionApiV1UploadsSubmissionIdGetResponses, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetData, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetError, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetErrors, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetResponse, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetResponses, GitHubAcquisitionV1, GitHubBindingV1, GitHubImportV1, GithubWebhookApiV1WebhooksGithubPostData, GithubWebhookApiV1WebhooksGithubPostResponse, GithubWebhookApiV1WebhooksGithubPostResponses, GraphEdgeV1, GraphLinkOutV1, GraphNodeOutV1, GraphNodeV1, GraphPage, GraphQueryV1, GraphTraversalV1, HealthLiveHealthLiveGetData, HealthLiveHealthLiveGetResponse, HealthLiveHealthLiveGetResponses, HealthReadyHealthReadyGetData, HealthReadyHealthReadyGetResponses, HttpRequestObservationV1, HttpValidationError, HybridSearchHitV1, HybridSearchRequestV1, HybridSearchResponseV1, IdentityMapV1, ImportFactV1, ImportGithubUrlApiV1GithubImportsPostData, ImportGithubUrlApiV1GithubImportsPostResponse, ImportGithubUrlApiV1GithubImportsPostResponses, ImportNameV1, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetData, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetError, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetErrors, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetResponse, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetResponses, IndexAvailabilityV1, IndexCoverageV1, IndexCreateResponseV1, IndexCreateResponseV1Writable, IndexJobRecordV5, IndexOmissionExampleV1, IndexOmissionV1, IndexReceiptV1, IndexRetryResponseV1, IndexStartRequestV1, IndexStatusV1, IntervalMappingV1, InventoryApiV1SnapshotsSnapshotIdInventoryGetData, InventoryApiV1SnapshotsSnapshotIdInventoryGetError, InventoryApiV1SnapshotsSnapshotIdInventoryGetErrors, InventoryApiV1SnapshotsSnapshotIdInventoryGetResponse, InventoryApiV1SnapshotsSnapshotIdInventoryGetResponses, InventoryEntryV1, InventoryPageV1, InvestigationCancelResponseV1, InvestigationClaimKind, InvestigationClaimV1, InvestigationClaimV2, InvestigationCreateRequestV1, InvestigationCreateRequestV2, InvestigationDepth, InvestigationDetailResponseV1, InvestigationDetailResponseV2, InvestigationEventPageV1, InvestigationEventV1, InvestigationEventV2, InvestigationFeedbackRequestV1, InvestigationJobRecordV1, InvestigationListResponseV1, InvestigationListResponseV2, InvestigationMode, InvestigationReportV1, InvestigationResumeRequestV1, InvestigationRetryRequestV1, InvestigationStartResponseV1, InvestigationStateV1, InvestigationStatus, InvestigationStopReason, InvestigationSummaryV1, InvestigationSummaryV2, InvestigationTargetType, JobEventsApiV1JobsJobIdEventsGetData, JobEventsApiV1JobsJobIdEventsGetError, JobEventsApiV1JobsJobIdEventsGetErrors, JobEventsApiV1JobsJobIdEventsGetResponse, JobEventsApiV1JobsJobIdEventsGetResponses, JobEventV2, JobEventV3, JobRecordV2, JobRecordV3, LatestArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsLatestGetData, LatestArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsLatestGetError, LatestArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsLatestGetErrors, LatestArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsLatestGetResponse, LatestArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsLatestGetResponses, LexicalSearchRequestV1, ListInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGetData, ListInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGetError, ListInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGetErrors, ListInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGetResponses, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetData, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetError, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetErrors, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetResponse, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetResponses, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetData, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetError, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetErrors, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetResponse, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetResponses, ListRepositoriesApiV1RepositoriesGetData, ListRepositoriesApiV1RepositoriesGetError, ListRepositoriesApiV1RepositoriesGetErrors, ListRepositoriesApiV1RepositoriesGetResponse, ListRepositoriesApiV1RepositoriesGetResponses, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetData, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetError, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetErrors, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetResponse, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetResponses, LogoutApiV1LogoutPostData, LogoutApiV1LogoutPostResponse, LogoutApiV1LogoutPostResponses, LogoutApiV1SessionLogoutPostData, LogoutApiV1SessionLogoutPostResponse, LogoutApiV1SessionLogoutPostResponses, MemoryCreateRequestV1, MemoryEntryV1, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetData, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetError, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetErrors, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetResponse, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetResponses, MemoryHistoryV1, MemoryKind, MemoryManagementPageV1, MemoryQueryResponseV1, MemoryReviewEventV1, MemoryReviewRequestV1, MemoryState, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetData, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetError, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetErrors, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetResponse, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetResponses, ModelAvailabilityItemV1, ModelAvailabilityV1, ModelFactV1, ModelRole, NativeSelectionV1, NodeCreateV1, OauthCallbackApiV1AuthGithubCallbackGetData, OauthCallbackApiV1AuthGithubCallbackGetError, OauthCallbackApiV1AuthGithubCallbackGetErrors, OauthCallbackApiV1AuthGithubCallbackGetResponses, OauthStartApiV1AuthGithubStartGetData, OauthStartApiV1AuthGithubStartGetResponses, ParameterV1, PrepareArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPreparePostData, PrepareArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPreparePostError, PrepareArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPreparePostErrors, PrepareArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPreparePostResponse, PrepareArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPreparePostResponses, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetData, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetError, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetErrors, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetResponse, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetResponses, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostData, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostError, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostErrors, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostResponse, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostResponses, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostData, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostError, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostErrors, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostResponse, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostResponses, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetData, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetError, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetErrors, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetResponse, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetResponses, RepositoryCreate, RepositoryListItemV1, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetData, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetError, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetErrors, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetResponse, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetResponses, RepositoryPageV1, RepositoryRecord, RepositoryReportV1, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostData, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostError, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostErrors, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostResponse, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostResponses, ResolutionV1, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostData, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostError, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostErrors, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostResponse, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostResponses, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostData, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostError, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostErrors, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostResponse, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostResponses, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostData, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostError, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostErrors, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostResponse, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostResponses, RetryJobApiV1JobsJobIdRetryPostData, RetryJobApiV1JobsJobIdRetryPostError, RetryJobApiV1JobsJobIdRetryPostErrors, RetryJobApiV1JobsJobIdRetryPostResponse, RetryJobApiV1JobsJobIdRetryPostResponses, RetryResponseV1, RetryResponseV2, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostData, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostError, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostErrors, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostResponse, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostResponses, RetryScanResponseV3, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostData, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostError, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostErrors, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostResponse, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostResponses, RouteFactV1, RouteObservationV1, RunRef, ScanAcceptedV1, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetData, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetError, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetErrors, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetResponse, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetResponses, ScanConfigurationV1, ScanConfigV1, ScanJobRecordV4, ScannerFileV1, ScannerProfileV1, ScanSummaryResponseV1, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostData, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostError, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostErrors, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostResponse, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostResponses, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostData, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostError, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostErrors, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostResponse, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostResponses, SearchHitV1, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostData, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostError, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostErrors, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostResponse, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostResponses, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostData, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostError, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostErrors, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostResponse, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostResponses, SearchMode, SearchResponseV1, SearchScopeV1, SectionV1, SessionApiV1SessionGetData, SessionApiV1SessionGetResponse, SessionApiV1SessionGetResponses, SessionV1, ShardStatusV1, SignatureV1, SourceExcerptV1, SourceLocationV1, SourceRangeV1, SourceRepresentation, SourceViewResultV1, StatementV1, StreamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGetData, StreamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGetError, StreamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGetErrors, StreamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGetResponses, StructuralAnalysisRequestV1, StructuralCoverageV1, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetData, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetError, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetErrors, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetResponse, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetResponses, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetData, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetError, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetErrors, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetResponse, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetResponses, StructuralLimitsV1, StructuralSectionPageV1, StructuralSummaryV1, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostData, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostError, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostErrors, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostResponse, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostResponses, SubmissionRecordV1, SymbolFactV1, SymbolObservationV1, TableV1, ToolCallV1, TraceBudgetV1, TraceEdgeV1, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostData, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostError, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostErrors, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostResponse, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostResponses, TraceNodeV1, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostData, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostError, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostErrors, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostResponse, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostResponses, TriageHistoryItemV1, TriageHistoryV1, TriageRecordV1, TriageTransitionV1, UploadContentApiV1SubmissionsSubmissionIdContentPutData, UploadContentApiV1SubmissionsSubmissionIdContentPutError, UploadContentApiV1SubmissionsSubmissionIdContentPutErrors, UploadContentApiV1SubmissionsSubmissionIdContentPutResponse, UploadContentApiV1SubmissionsSubmissionIdContentPutResponses, UploadContentApiV1UploadsSubmissionIdContentPutData, UploadContentApiV1UploadsSubmissionIdContentPutError, UploadContentApiV1UploadsSubmissionIdContentPutErrors, UploadContentApiV1UploadsSubmissionIdContentPutResponse, UploadContentApiV1UploadsSubmissionIdContentPutResponses, UploadReservationV1, ValidationError } from './types.gen';
diff --git a/frontend/src/api/generated/sdk.gen.ts b/frontend/src/api/generated/sdk.gen.ts
index 2a69b84..3bf357a 100644
--- a/frontend/src/api/generated/sdk.gen.ts
+++ b/frontend/src/api/generated/sdk.gen.ts
@@ -2,7 +2,7 @@
import type { Client, ClientMeta, Options as Options2, RequestResult, TDataShape } from './client';
import { client } from './client.gen';
-import type { AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostData, AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostErrors, AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostResponses, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostData, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostErrors, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostResponses, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetData, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetErrors, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetResponses, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetData, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetErrors, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetResponses, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetData, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetErrors, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetResponses, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetData, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetErrors, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetResponses, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetData, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetErrors, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetResponses, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetData, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetErrors, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetResponses, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostData, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostErrors, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostResponses, CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostData, CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostErrors, CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostResponses, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostData, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostErrors, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostResponses, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostData, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostErrors, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostResponses, CancelJobApiV1JobsJobIdCancelPostData, CancelJobApiV1JobsJobIdCancelPostErrors, CancelJobApiV1JobsJobIdCancelPostResponses, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostData, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostErrors, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostResponses, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostData, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostErrors, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostResponses, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostData, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostErrors, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostResponses, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostData, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostErrors, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostResponses, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostData, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostErrors, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostResponses, CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostData, CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostErrors, CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostResponses, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostData, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostErrors, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostResponses, CreateRepositoryApiV1RepositoriesPostData, CreateRepositoryApiV1RepositoriesPostResponses, CreateScanApiV1RepositoriesRepositoryIdScansPostData, CreateScanApiV1RepositoriesRepositoryIdScansPostErrors, CreateScanApiV1RepositoriesRepositoryIdScansPostResponses, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostData, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostErrors, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostResponses, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostData, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostErrors, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostResponses, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteData, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteErrors, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteResponses, ExecuteInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePostData, ExecuteInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePostErrors, ExecuteInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePostResponses, ExportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGetData, ExportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGetErrors, ExportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGetResponses, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetData, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetErrors, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetResponses, GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetData, GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetErrors, GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetResponses, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetData, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetErrors, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetResponses, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetData, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetErrors, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetResponses, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetData, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetErrors, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetResponses, GetJobApiV1JobsJobIdGetData, GetJobApiV1JobsJobIdGetErrors, GetJobApiV1JobsJobIdGetResponses, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetData, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetErrors, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetResponses, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetData, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetErrors, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetResponses, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetData, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetErrors, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetResponses, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetData, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetErrors, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetResponses, GetSubmissionApiV1SubmissionsSubmissionIdGetData, GetSubmissionApiV1SubmissionsSubmissionIdGetErrors, GetSubmissionApiV1SubmissionsSubmissionIdGetResponses, GetSubmissionApiV1UploadsSubmissionIdGetData, GetSubmissionApiV1UploadsSubmissionIdGetErrors, GetSubmissionApiV1UploadsSubmissionIdGetResponses, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetData, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetErrors, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetResponses, GithubWebhookApiV1WebhooksGithubPostData, GithubWebhookApiV1WebhooksGithubPostResponses, HealthLiveHealthLiveGetData, HealthLiveHealthLiveGetResponses, HealthReadyHealthReadyGetData, HealthReadyHealthReadyGetResponses, ImportGithubUrlApiV1GithubImportsPostData, ImportGithubUrlApiV1GithubImportsPostResponses, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetData, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetErrors, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetResponses, InventoryApiV1SnapshotsSnapshotIdInventoryGetData, InventoryApiV1SnapshotsSnapshotIdInventoryGetErrors, InventoryApiV1SnapshotsSnapshotIdInventoryGetResponses, JobEventsApiV1JobsJobIdEventsGetData, JobEventsApiV1JobsJobIdEventsGetErrors, JobEventsApiV1JobsJobIdEventsGetResponses, ListInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGetData, ListInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGetErrors, ListInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGetResponses, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetData, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetErrors, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetResponses, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetData, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetErrors, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetResponses, ListRepositoriesApiV1RepositoriesGetData, ListRepositoriesApiV1RepositoriesGetErrors, ListRepositoriesApiV1RepositoriesGetResponses, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetData, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetErrors, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetResponses, LogoutApiV1LogoutPostData, LogoutApiV1LogoutPostResponses, LogoutApiV1SessionLogoutPostData, LogoutApiV1SessionLogoutPostResponses, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetData, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetErrors, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetResponses, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetData, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetErrors, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetResponses, OauthCallbackApiV1AuthGithubCallbackGetData, OauthCallbackApiV1AuthGithubCallbackGetErrors, OauthCallbackApiV1AuthGithubCallbackGetResponses, OauthStartApiV1AuthGithubStartGetData, OauthStartApiV1AuthGithubStartGetResponses, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetData, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetErrors, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetResponses, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostData, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostErrors, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostResponses, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostData, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostErrors, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostResponses, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetData, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetErrors, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetResponses, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetData, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetErrors, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetResponses, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostData, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostErrors, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostResponses, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostData, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostErrors, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostResponses, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostData, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostErrors, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostResponses, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostData, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostErrors, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostResponses, RetryJobApiV1JobsJobIdRetryPostData, RetryJobApiV1JobsJobIdRetryPostErrors, RetryJobApiV1JobsJobIdRetryPostResponses, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostData, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostErrors, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostResponses, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostData, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostErrors, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostResponses, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetData, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetErrors, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetResponses, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostData, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostErrors, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostResponses, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostData, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostErrors, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostResponses, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostData, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostErrors, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostResponses, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostData, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostErrors, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostResponses, SessionApiV1SessionGetData, SessionApiV1SessionGetResponses, StreamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGetData, StreamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGetErrors, StreamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGetResponses, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetData, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetErrors, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetResponses, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetData, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetErrors, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetResponses, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostData, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostErrors, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostResponses, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostData, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostErrors, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostResponses, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostData, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostErrors, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostResponses, UploadContentApiV1SubmissionsSubmissionIdContentPutData, UploadContentApiV1SubmissionsSubmissionIdContentPutErrors, UploadContentApiV1SubmissionsSubmissionIdContentPutResponses, UploadContentApiV1UploadsSubmissionIdContentPutData, UploadContentApiV1UploadsSubmissionIdContentPutErrors, UploadContentApiV1UploadsSubmissionIdContentPutResponses } from './types.gen';
+import type { AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostData, AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostErrors, AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostResponses, ArchitectureReportGraphApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGraphGetData, ArchitectureReportGraphApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGraphGetErrors, ArchitectureReportGraphApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGraphGetResponses, ArchitectureReportMarkdownApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdMarkdownGetData, ArchitectureReportMarkdownApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdMarkdownGetErrors, ArchitectureReportMarkdownApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdMarkdownGetResponses, ArchitectureReportSectionApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdSectionsNameGetData, ArchitectureReportSectionApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdSectionsNameGetErrors, ArchitectureReportSectionApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdSectionsNameGetResponses, ArchitectureReportStatusApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPrepareGetData, ArchitectureReportStatusApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPrepareGetErrors, ArchitectureReportStatusApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPrepareGetResponses, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostData, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostErrors, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostResponses, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetData, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetErrors, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetResponses, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetData, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetErrors, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetResponses, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetData, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetErrors, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetResponses, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetData, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetErrors, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetResponses, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetData, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetErrors, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetResponses, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetData, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetErrors, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetResponses, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostData, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostErrors, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostResponses, BuildArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPostData, BuildArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPostErrors, BuildArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPostResponses, CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostData, CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostErrors, CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostResponses, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostData, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostErrors, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostResponses, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostData, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostErrors, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostResponses, CancelJobApiV1JobsJobIdCancelPostData, CancelJobApiV1JobsJobIdCancelPostErrors, CancelJobApiV1JobsJobIdCancelPostResponses, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostData, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostErrors, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostResponses, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostData, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostErrors, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostResponses, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostData, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostErrors, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostResponses, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostData, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostErrors, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostResponses, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostData, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostErrors, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostResponses, CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostData, CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostErrors, CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostResponses, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostData, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostErrors, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostResponses, CreateRepositoryApiV1RepositoriesPostData, CreateRepositoryApiV1RepositoriesPostResponses, CreateScanApiV1RepositoriesRepositoryIdScansPostData, CreateScanApiV1RepositoriesRepositoryIdScansPostErrors, CreateScanApiV1RepositoriesRepositoryIdScansPostResponses, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostData, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostErrors, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostResponses, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostData, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostErrors, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostResponses, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteData, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteErrors, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteResponses, ExecuteInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePostData, ExecuteInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePostErrors, ExecuteInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePostResponses, ExportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGetData, ExportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGetErrors, ExportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGetResponses, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetData, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetErrors, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetResponses, GetArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGetData, GetArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGetErrors, GetArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGetResponses, GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetData, GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetErrors, GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetResponses, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetData, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetErrors, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetResponses, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetData, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetErrors, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetResponses, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetData, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetErrors, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetResponses, GetJobApiV1JobsJobIdGetData, GetJobApiV1JobsJobIdGetErrors, GetJobApiV1JobsJobIdGetResponses, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetData, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetErrors, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetResponses, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetData, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetErrors, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetResponses, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetData, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetErrors, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetResponses, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetData, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetErrors, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetResponses, GetSubmissionApiV1SubmissionsSubmissionIdGetData, GetSubmissionApiV1SubmissionsSubmissionIdGetErrors, GetSubmissionApiV1SubmissionsSubmissionIdGetResponses, GetSubmissionApiV1UploadsSubmissionIdGetData, GetSubmissionApiV1UploadsSubmissionIdGetErrors, GetSubmissionApiV1UploadsSubmissionIdGetResponses, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetData, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetErrors, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetResponses, GithubWebhookApiV1WebhooksGithubPostData, GithubWebhookApiV1WebhooksGithubPostResponses, HealthLiveHealthLiveGetData, HealthLiveHealthLiveGetResponses, HealthReadyHealthReadyGetData, HealthReadyHealthReadyGetResponses, ImportGithubUrlApiV1GithubImportsPostData, ImportGithubUrlApiV1GithubImportsPostResponses, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetData, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetErrors, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetResponses, InventoryApiV1SnapshotsSnapshotIdInventoryGetData, InventoryApiV1SnapshotsSnapshotIdInventoryGetErrors, InventoryApiV1SnapshotsSnapshotIdInventoryGetResponses, JobEventsApiV1JobsJobIdEventsGetData, JobEventsApiV1JobsJobIdEventsGetErrors, JobEventsApiV1JobsJobIdEventsGetResponses, LatestArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsLatestGetData, LatestArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsLatestGetErrors, LatestArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsLatestGetResponses, ListInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGetData, ListInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGetErrors, ListInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGetResponses, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetData, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetErrors, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetResponses, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetData, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetErrors, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetResponses, ListRepositoriesApiV1RepositoriesGetData, ListRepositoriesApiV1RepositoriesGetErrors, ListRepositoriesApiV1RepositoriesGetResponses, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetData, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetErrors, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetResponses, LogoutApiV1LogoutPostData, LogoutApiV1LogoutPostResponses, LogoutApiV1SessionLogoutPostData, LogoutApiV1SessionLogoutPostResponses, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetData, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetErrors, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetResponses, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetData, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetErrors, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetResponses, OauthCallbackApiV1AuthGithubCallbackGetData, OauthCallbackApiV1AuthGithubCallbackGetErrors, OauthCallbackApiV1AuthGithubCallbackGetResponses, OauthStartApiV1AuthGithubStartGetData, OauthStartApiV1AuthGithubStartGetResponses, PrepareArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPreparePostData, PrepareArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPreparePostErrors, PrepareArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPreparePostResponses, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetData, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetErrors, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetResponses, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostData, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostErrors, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostResponses, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostData, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostErrors, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostResponses, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetData, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetErrors, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetResponses, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetData, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetErrors, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetResponses, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostData, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostErrors, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostResponses, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostData, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostErrors, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostResponses, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostData, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostErrors, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostResponses, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostData, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostErrors, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostResponses, RetryJobApiV1JobsJobIdRetryPostData, RetryJobApiV1JobsJobIdRetryPostErrors, RetryJobApiV1JobsJobIdRetryPostResponses, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostData, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostErrors, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostResponses, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostData, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostErrors, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostResponses, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetData, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetErrors, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetResponses, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostData, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostErrors, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostResponses, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostData, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostErrors, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostResponses, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostData, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostErrors, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostResponses, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostData, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostErrors, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostResponses, SessionApiV1SessionGetData, SessionApiV1SessionGetResponses, StreamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGetData, StreamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGetErrors, StreamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGetResponses, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetData, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetErrors, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetResponses, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetData, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetErrors, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetResponses, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostData, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostErrors, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostResponses, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostData, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostErrors, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostResponses, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostData, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostErrors, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostResponses, UploadContentApiV1SubmissionsSubmissionIdContentPutData, UploadContentApiV1SubmissionsSubmissionIdContentPutErrors, UploadContentApiV1SubmissionsSubmissionIdContentPutResponses, UploadContentApiV1UploadsSubmissionIdContentPutData, UploadContentApiV1UploadsSubmissionIdContentPutErrors, UploadContentApiV1UploadsSubmissionIdContentPutResponses } from './types.gen';
export type Options = Options2 & {
/**
@@ -275,6 +275,53 @@ export const createScanApiV1RepositoriesRepositoryIdScansPost = (options: Options): RequestResult => (options.client ?? client).post({
+ url: '/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/architecture-reports',
+ ...options,
+ headers: {
+ 'Content-Type': 'application/json',
+ ...options.headers
+ }
+});
+
+/**
+ * Latest Architecture Report
+ */
+export const latestArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsLatestGet = (options: Options): RequestResult => (options.client ?? client).get({ url: '/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/architecture-reports/latest', ...options });
+
+/**
+ * Architecture Report Status
+ */
+export const architectureReportStatusApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPrepareGet = (options: Options): RequestResult => (options.client ?? client).get({ url: '/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/architecture-reports/prepare', ...options });
+
+/**
+ * Prepare Architecture Report
+ */
+export const prepareArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPreparePost = (options: Options): RequestResult => (options.client ?? client).post({ url: '/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/architecture-reports/prepare', ...options });
+
+/**
+ * Get Architecture Report
+ */
+export const getArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGet = (options: Options): RequestResult => (options.client ?? client).get({ url: '/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/architecture-reports/{report_id}', ...options });
+
+/**
+ * Architecture Report Graph
+ */
+export const architectureReportGraphApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGraphGet = (options: Options): RequestResult => (options.client ?? client).get({ url: '/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/architecture-reports/{report_id}/graph', ...options });
+
+/**
+ * Architecture Report Markdown
+ */
+export const architectureReportMarkdownApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdMarkdownGet = (options: Options): RequestResult => (options.client ?? client).get({ url: '/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/architecture-reports/{report_id}/markdown', ...options });
+
+/**
+ * Architecture Report Section
+ */
+export const architectureReportSectionApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdSectionsNameGet = (options: Options): RequestResult => (options.client ?? client).get({ url: '/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/architecture-reports/{report_id}/sections/{name}', ...options });
+
/**
* Ast Facts Summary
*/
diff --git a/frontend/src/api/generated/types.gen.ts b/frontend/src/api/generated/types.gen.ts
index 49daf61..b11da53 100644
--- a/frontend/src/api/generated/types.gen.ts
+++ b/frontend/src/api/generated/types.gen.ts
@@ -30,6 +30,92 @@ export type AnalysisAcceptedV1 = {
status_url: string;
};
+/**
+ * ArchitectureGraphPageV1
+ *
+ * A slice of the graph in D3's nodes-and-links shape; unknown edges are only counted.
+ */
+export type ArchitectureGraphPageV1 = {
+ /**
+ * Ambiguous
+ */
+ ambiguous: number;
+ /**
+ * Links
+ */
+ links: Array;
+ /**
+ * Links Total
+ */
+ links_total: number;
+ /**
+ * Nodes
+ */
+ nodes: Array;
+ /**
+ * Nodes Total
+ */
+ nodes_total: number;
+ /**
+ * Offset
+ */
+ offset: number;
+ /**
+ * Schema Version
+ */
+ schema_version?: 1;
+ /**
+ * Unresolved
+ */
+ unresolved: number;
+};
+
+/**
+ * ArchitectureReportRefV1
+ */
+export type ArchitectureReportRefV1 = {
+ /**
+ * Analyzed Files
+ */
+ analyzed_files: number;
+ /**
+ * Complete
+ */
+ complete: boolean;
+ /**
+ * Eligible Files
+ */
+ eligible_files: number;
+ /**
+ * Id
+ */
+ id: string;
+ /**
+ * Inputs Digest
+ */
+ inputs_digest: string;
+ /**
+ * Report Digest
+ */
+ report_digest: string;
+ /**
+ * Repository Id
+ */
+ repository_id: string;
+ /**
+ * Schema Version
+ */
+ schema_version?: 1;
+ /**
+ * Size Bytes
+ */
+ size_bytes: number;
+ /**
+ * Snapshot Id
+ */
+ snapshot_id: string;
+};
+
/**
* ArchitectureReportV1
*/
@@ -107,6 +193,50 @@ export type ArchitectureReportV1 = {
toolchain_hash: string;
};
+/**
+ * ArchitectureShardsV1
+ */
+export type ArchitectureShardsV1 = {
+ /**
+ * Plan Digest
+ */
+ plan_digest: string;
+ /**
+ * Ready
+ */
+ ready: boolean;
+ /**
+ * Schema Version
+ */
+ schema_version?: 1;
+ /**
+ * Shards
+ */
+ shards?: Array;
+ /**
+ * Skipped Files
+ */
+ skipped_files: number;
+ /**
+ * Total Files
+ */
+ total_files: number;
+};
+
+/**
+ * ArchitectureStartRequestV1
+ */
+export type ArchitectureStartRequestV1 = {
+ /**
+ * Request Key
+ */
+ request_key: string;
+ /**
+ * Schema Version
+ */
+ schema_version?: 1;
+};
+
/**
* AstConfigItemV1
*/
@@ -798,6 +928,32 @@ export type ContextPreviewV1 = {
selection_digest: string;
};
+/**
+ * CoverageV1
+ */
+export type CoverageV1 = {
+ /**
+ * Analyzed Files
+ */
+ analyzed_files: number;
+ /**
+ * Eligible Files
+ */
+ eligible_files: number;
+ /**
+ * Fact Runs
+ */
+ fact_runs?: Array;
+ /**
+ * Omitted Files
+ */
+ omitted_files: number;
+ /**
+ * Partial Files
+ */
+ partial_files: number;
+};
+
/**
* CreateScanRequestV1
*/
@@ -985,6 +1141,20 @@ export type DependencyFileV1 = {
size_bytes: number;
};
+/**
+ * DependencyGraphV1
+ */
+export type DependencyGraphV1 = {
+ /**
+ * Edges
+ */
+ edges?: Array;
+ /**
+ * Nodes
+ */
+ nodes?: Array;
+};
+
/**
* DependencySelectionV1
*/
@@ -1322,6 +1492,25 @@ export type EvidencePointerV1 = {
symbol_name?: string | null;
};
+/**
+ * EvidenceRefV1
+ */
+export type EvidenceRefV1 = {
+ /**
+ * Fact
+ */
+ fact: 'file' | 'import' | 'export' | 'route' | 'model' | 'config' | 'symbol';
+ /**
+ * File Id
+ */
+ file_id: string;
+ /**
+ * Path
+ */
+ path: string;
+ range?: SourceRangeV1 | null;
+};
+
/**
* ExactSearchRequestV1
*/
@@ -1691,6 +1880,107 @@ export type GitHubImportV1 = {
url: string;
};
+/**
+ * GraphEdgeV1
+ */
+export type GraphEdgeV1 = {
+ /**
+ * Candidates
+ */
+ candidates?: Array;
+ evidence: EvidenceRefV1;
+ /**
+ * Import Kind
+ */
+ import_kind: string;
+ /**
+ * Module
+ */
+ module: string;
+ /**
+ * Resolution
+ */
+ resolution: 'resolved' | 'ambiguous' | 'external' | 'unresolved';
+ /**
+ * Source
+ */
+ source: string;
+ /**
+ * Target
+ */
+ target?: string | null;
+};
+
+/**
+ * GraphLinkOutV1
+ */
+export type GraphLinkOutV1 = {
+ /**
+ * Resolution
+ */
+ resolution: 'resolved' | 'ambiguous' | 'external' | 'unresolved';
+ /**
+ * Source
+ */
+ source: string;
+ /**
+ * Target
+ */
+ target: string;
+};
+
+/**
+ * GraphNodeOutV1
+ */
+export type GraphNodeOutV1 = {
+ /**
+ * Group
+ */
+ group?: string | null;
+ /**
+ * Id
+ */
+ id: string;
+ /**
+ * Kind
+ */
+ kind: 'file' | 'package' | 'external';
+ /**
+ * Label
+ */
+ label: string;
+ /**
+ * Language
+ */
+ language?: string | null;
+};
+
+/**
+ * GraphNodeV1
+ */
+export type GraphNodeV1 = {
+ /**
+ * File Id
+ */
+ file_id?: string | null;
+ /**
+ * Id
+ */
+ id: string;
+ /**
+ * Kind
+ */
+ kind: 'file' | 'package' | 'external';
+ /**
+ * Label
+ */
+ label: string;
+ /**
+ * Language
+ */
+ language?: string | null;
+};
+
/**
* GraphPage
*/
@@ -4083,6 +4373,38 @@ export type RepositoryRecord = {
source_kind: 'local_fixture' | 'github' | 'archive';
};
+/**
+ * RepositoryReportV1
+ */
+export type RepositoryReportV1 = {
+ coverage: CoverageV1;
+ graph: DependencyGraphV1;
+ /**
+ * Inputs Digest
+ */
+ inputs_digest: string;
+ /**
+ * Org Id
+ */
+ org_id: string;
+ /**
+ * Repository Id
+ */
+ repository_id: string;
+ /**
+ * Schema Version
+ */
+ schema_version?: 1;
+ /**
+ * Sections
+ */
+ sections: Array;
+ /**
+ * Snapshot Id
+ */
+ snapshot_id: string;
+};
+
/**
* ResolutionV1
*/
@@ -4717,6 +5039,24 @@ export type SearchScopeV1 = {
snapshot_id: string;
};
+/**
+ * SectionV1
+ */
+export type SectionV1 = {
+ /**
+ * Name
+ */
+ name: 'overview' | 'components' | 'dependencies' | 'api_surface' | 'data_model' | 'configuration' | 'entry_points' | 'coverage';
+ /**
+ * Statements
+ */
+ statements?: Array;
+ /**
+ * Tables
+ */
+ tables?: Array;
+};
+
/**
* SessionV1
*/
@@ -4740,24 +5080,54 @@ export type SessionV1 = {
};
/**
- * SignatureV1
+ * ShardStatusV1
*/
-export type SignatureV1 = {
+export type ShardStatusV1 = {
/**
- * Params
+ * Files
*/
- params?: Array;
+ files: number;
/**
- * Return Type
+ * Index
*/
- return_type?: string | null;
-};
-
-/**
- * SourceExcerptV1
- */
-export type SourceExcerptV1 = {
- location: SourceLocationV1;
+ index: number;
+ /**
+ * Job Id
+ */
+ job_id?: string | null;
+ /**
+ * Prefixes
+ */
+ prefixes: number;
+ /**
+ * Run Id
+ */
+ run_id?: string | null;
+ /**
+ * State
+ */
+ state: 'not_started' | 'queued' | 'running' | 'retry_wait' | 'cancelling' | 'succeeded' | 'partial' | 'failed' | 'cancelled';
+};
+
+/**
+ * SignatureV1
+ */
+export type SignatureV1 = {
+ /**
+ * Params
+ */
+ params?: Array;
+ /**
+ * Return Type
+ */
+ return_type?: string | null;
+};
+
+/**
+ * SourceExcerptV1
+ */
+export type SourceExcerptV1 = {
+ location: SourceLocationV1;
/**
* Sha256
*/
@@ -4881,6 +5251,34 @@ export type SourceViewResultV1 = {
total_file_size: number;
};
+/**
+ * StatementV1
+ */
+export type StatementV1 = {
+ /**
+ * Code
+ */
+ code: string;
+ /**
+ * Evidence
+ */
+ evidence?: Array;
+ /**
+ * Evidence Total
+ */
+ evidence_total?: number | null;
+ /**
+ * Kind
+ */
+ kind: 'observation' | 'derivation' | 'inference' | 'unknown';
+ /**
+ * Params
+ */
+ params?: {
+ [key: string]: string | number | number | boolean;
+ };
+};
+
/**
* StructuralAnalysisRequestV1
*/
@@ -5344,6 +5742,28 @@ export type SymbolObservationV1 = {
type_only?: boolean;
};
+/**
+ * TableV1
+ */
+export type TableV1 = {
+ /**
+ * Columns
+ */
+ columns: Array;
+ /**
+ * Name
+ */
+ name: string;
+ /**
+ * Rows
+ */
+ rows?: Array>;
+ /**
+ * Rows Total
+ */
+ rows_total?: number;
+};
+
/**
* ToolCallV1
*/
@@ -6785,6 +7205,305 @@ export type CreateScanApiV1RepositoriesRepositoryIdScansPostResponses = {
export type CreateScanApiV1RepositoriesRepositoryIdScansPostResponse = CreateScanApiV1RepositoriesRepositoryIdScansPostResponses[keyof CreateScanApiV1RepositoriesRepositoryIdScansPostResponses];
+export type BuildArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPostData = {
+ body: ArchitectureStartRequestV1;
+ path: {
+ /**
+ * Repository Id
+ */
+ repository_id: string;
+ /**
+ * Snapshot Id
+ */
+ snapshot_id: string;
+ };
+ query?: never;
+ url: '/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/architecture-reports';
+};
+
+export type BuildArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPostErrors = {
+ /**
+ * Validation Error
+ */
+ 422: HttpValidationError;
+};
+
+export type BuildArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPostError = BuildArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPostErrors[keyof BuildArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPostErrors];
+
+export type BuildArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPostResponses = {
+ /**
+ * Successful Response
+ */
+ 201: ArchitectureReportRefV1;
+};
+
+export type BuildArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPostResponse = BuildArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPostResponses[keyof BuildArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPostResponses];
+
+export type LatestArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsLatestGetData = {
+ body?: never;
+ path: {
+ /**
+ * Repository Id
+ */
+ repository_id: string;
+ /**
+ * Snapshot Id
+ */
+ snapshot_id: string;
+ };
+ query?: never;
+ url: '/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/architecture-reports/latest';
+};
+
+export type LatestArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsLatestGetErrors = {
+ /**
+ * Validation Error
+ */
+ 422: HttpValidationError;
+};
+
+export type LatestArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsLatestGetError = LatestArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsLatestGetErrors[keyof LatestArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsLatestGetErrors];
+
+export type LatestArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsLatestGetResponses = {
+ /**
+ * Successful Response
+ */
+ 200: ArchitectureReportRefV1;
+};
+
+export type LatestArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsLatestGetResponse = LatestArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsLatestGetResponses[keyof LatestArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsLatestGetResponses];
+
+export type ArchitectureReportStatusApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPrepareGetData = {
+ body?: never;
+ path: {
+ /**
+ * Repository Id
+ */
+ repository_id: string;
+ /**
+ * Snapshot Id
+ */
+ snapshot_id: string;
+ };
+ query?: never;
+ url: '/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/architecture-reports/prepare';
+};
+
+export type ArchitectureReportStatusApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPrepareGetErrors = {
+ /**
+ * Validation Error
+ */
+ 422: HttpValidationError;
+};
+
+export type ArchitectureReportStatusApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPrepareGetError = ArchitectureReportStatusApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPrepareGetErrors[keyof ArchitectureReportStatusApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPrepareGetErrors];
+
+export type ArchitectureReportStatusApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPrepareGetResponses = {
+ /**
+ * Successful Response
+ */
+ 200: ArchitectureShardsV1;
+};
+
+export type ArchitectureReportStatusApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPrepareGetResponse = ArchitectureReportStatusApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPrepareGetResponses[keyof ArchitectureReportStatusApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPrepareGetResponses];
+
+export type PrepareArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPreparePostData = {
+ body?: never;
+ path: {
+ /**
+ * Repository Id
+ */
+ repository_id: string;
+ /**
+ * Snapshot Id
+ */
+ snapshot_id: string;
+ };
+ query?: never;
+ url: '/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/architecture-reports/prepare';
+};
+
+export type PrepareArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPreparePostErrors = {
+ /**
+ * Validation Error
+ */
+ 422: HttpValidationError;
+};
+
+export type PrepareArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPreparePostError = PrepareArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPreparePostErrors[keyof PrepareArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPreparePostErrors];
+
+export type PrepareArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPreparePostResponses = {
+ /**
+ * Successful Response
+ */
+ 202: ArchitectureShardsV1;
+};
+
+export type PrepareArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPreparePostResponse = PrepareArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPreparePostResponses[keyof PrepareArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPreparePostResponses];
+
+export type GetArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGetData = {
+ body?: never;
+ path: {
+ /**
+ * Repository Id
+ */
+ repository_id: string;
+ /**
+ * Snapshot Id
+ */
+ snapshot_id: string;
+ /**
+ * Report Id
+ */
+ report_id: string;
+ };
+ query?: never;
+ url: '/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/architecture-reports/{report_id}';
+};
+
+export type GetArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGetErrors = {
+ /**
+ * Validation Error
+ */
+ 422: HttpValidationError;
+};
+
+export type GetArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGetError = GetArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGetErrors[keyof GetArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGetErrors];
+
+export type GetArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGetResponses = {
+ /**
+ * Successful Response
+ */
+ 200: RepositoryReportV1;
+};
+
+export type GetArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGetResponse = GetArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGetResponses[keyof GetArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGetResponses];
+
+export type ArchitectureReportGraphApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGraphGetData = {
+ body?: never;
+ path: {
+ /**
+ * Repository Id
+ */
+ repository_id: string;
+ /**
+ * Snapshot Id
+ */
+ snapshot_id: string;
+ /**
+ * Report Id
+ */
+ report_id: string;
+ };
+ query?: {
+ /**
+ * Offset
+ */
+ offset?: number;
+ /**
+ * Limit
+ */
+ limit?: number;
+ };
+ url: '/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/architecture-reports/{report_id}/graph';
+};
+
+export type ArchitectureReportGraphApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGraphGetErrors = {
+ /**
+ * Validation Error
+ */
+ 422: HttpValidationError;
+};
+
+export type ArchitectureReportGraphApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGraphGetError = ArchitectureReportGraphApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGraphGetErrors[keyof ArchitectureReportGraphApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGraphGetErrors];
+
+export type ArchitectureReportGraphApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGraphGetResponses = {
+ /**
+ * Successful Response
+ */
+ 200: ArchitectureGraphPageV1;
+};
+
+export type ArchitectureReportGraphApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGraphGetResponse = ArchitectureReportGraphApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGraphGetResponses[keyof ArchitectureReportGraphApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGraphGetResponses];
+
+export type ArchitectureReportMarkdownApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdMarkdownGetData = {
+ body?: never;
+ path: {
+ /**
+ * Repository Id
+ */
+ repository_id: string;
+ /**
+ * Snapshot Id
+ */
+ snapshot_id: string;
+ /**
+ * Report Id
+ */
+ report_id: string;
+ };
+ query?: never;
+ url: '/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/architecture-reports/{report_id}/markdown';
+};
+
+export type ArchitectureReportMarkdownApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdMarkdownGetErrors = {
+ /**
+ * Validation Error
+ */
+ 422: HttpValidationError;
+};
+
+export type ArchitectureReportMarkdownApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdMarkdownGetError = ArchitectureReportMarkdownApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdMarkdownGetErrors[keyof ArchitectureReportMarkdownApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdMarkdownGetErrors];
+
+export type ArchitectureReportMarkdownApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdMarkdownGetResponses = {
+ /**
+ * Successful Response
+ */
+ 200: unknown;
+};
+
+export type ArchitectureReportSectionApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdSectionsNameGetData = {
+ body?: never;
+ path: {
+ /**
+ * Repository Id
+ */
+ repository_id: string;
+ /**
+ * Snapshot Id
+ */
+ snapshot_id: string;
+ /**
+ * Report Id
+ */
+ report_id: string;
+ /**
+ * Name
+ */
+ name: 'overview' | 'components' | 'dependencies' | 'api_surface' | 'data_model' | 'configuration' | 'entry_points' | 'coverage';
+ };
+ query?: never;
+ url: '/api/v1/repositories/{repository_id}/snapshots/{snapshot_id}/architecture-reports/{report_id}/sections/{name}';
+};
+
+export type ArchitectureReportSectionApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdSectionsNameGetErrors = {
+ /**
+ * Validation Error
+ */
+ 422: HttpValidationError;
+};
+
+export type ArchitectureReportSectionApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdSectionsNameGetError = ArchitectureReportSectionApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdSectionsNameGetErrors[keyof ArchitectureReportSectionApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdSectionsNameGetErrors];
+
+export type ArchitectureReportSectionApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdSectionsNameGetResponses = {
+ /**
+ * Successful Response
+ */
+ 200: SectionV1;
+};
+
+export type ArchitectureReportSectionApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdSectionsNameGetResponse = ArchitectureReportSectionApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdSectionsNameGetResponses[keyof ArchitectureReportSectionApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdSectionsNameGetResponses];
+
export type AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetData = {
body?: never;
path: {
From 1e69f1cf4f60e3056e228b61105fbab40b630394 Mon Sep 17 00:00:00 2001
From: Aman Bhaskar
Date: Fri, 13 Nov 2026 07:00:54 +0530
Subject: [PATCH 17/55] feat(report): report viewer, templates route and ADR
0006
---
backend/app/api/application.py | 7 +
backend/app/contracts/architecture_report.py | 7 +
backend/openapi.json | 42 +++
.../ast_facts/test_architecture_report_api.py | 3 +
.../phase3/unit/test_architecture_report.py | 9 +
docs/adr/0006-architecture-report.md | 41 +++
frontend/src/App.tsx | 6 +
frontend/src/api/client.ts | 55 +++
frontend/src/api/generated/index.ts | 4 +-
frontend/src/api/generated/sdk.gen.ts | 7 +-
frontend/src/api/generated/types.gen.ts | 34 ++
.../ArchitectureWorkbench.test.tsx | 318 +++++++++++++++++
.../architecture/ArchitectureWorkbench.tsx | 335 ++++++++++++++++++
.../features/architecture/ComponentGraph.tsx | 105 ++++++
.../features/architecture/statementText.ts | 46 +++
15 files changed, 1016 insertions(+), 3 deletions(-)
create mode 100644 docs/adr/0006-architecture-report.md
create mode 100644 frontend/src/features/architecture/ArchitectureWorkbench.test.tsx
create mode 100644 frontend/src/features/architecture/ArchitectureWorkbench.tsx
create mode 100644 frontend/src/features/architecture/ComponentGraph.tsx
create mode 100644 frontend/src/features/architecture/statementText.ts
diff --git a/backend/app/api/application.py b/backend/app/api/application.py
index 5a07b5b..817642d 100644
--- a/backend/app/api/application.py
+++ b/backend/app/api/application.py
@@ -10,6 +10,7 @@
from uuid import UUID, uuid4
from app.adapters.model.http_transport import ProviderTransportError
+from app.analyzers.graph.render import TEXT as REPORT_TEMPLATES
from app.analyzers.graph.render import graph_page
from app.analyzers.graph.render import render_markdown as render_repository_markdown
from app.analyzers.reporting import render_json, render_markdown
@@ -18,6 +19,7 @@
ArchitectureReportRefV1,
ArchitectureShardsV1,
ArchitectureStartRequestV1,
+ ArchitectureTemplatesV1,
RepositoryReportV1,
SectionName,
SectionV1,
@@ -1784,6 +1786,11 @@ async def architecture_report_markdown(
render_repository_markdown(report), media_type="text/markdown; charset=utf-8"
)
+ @app.get("/api/v1/architecture-report-templates")
+ async def architecture_report_templates(request: Request) -> ArchitectureTemplatesV1:
+ await principal(request)
+ return ArchitectureTemplatesV1(templates=dict(REPORT_TEMPLATES))
+
@app.get(reports_base + "/{report_id}/graph")
async def architecture_report_graph(
request: Request,
diff --git a/backend/app/contracts/architecture_report.py b/backend/app/contracts/architecture_report.py
index f916d6b..c10fcdd 100644
--- a/backend/app/contracts/architecture_report.py
+++ b/backend/app/contracts/architecture_report.py
@@ -244,6 +244,13 @@ class ArchitectureReportRefV1(Contract):
eligible_files: int = Field(ge=0)
+class ArchitectureTemplatesV1(Contract):
+ """Statement text templates keyed by statement code (``{name}`` marks a parameter)."""
+
+ schema_version: Literal[1] = 1
+ templates: dict[str, str]
+
+
class GraphNodeOutV1(Contract):
id: str
label: str
diff --git a/backend/openapi.json b/backend/openapi.json
index a3f9c9a..bdc7201 100644
--- a/backend/openapi.json
+++ b/backend/openapi.json
@@ -419,6 +419,30 @@
"title": "ArchitectureStartRequestV1",
"type": "object"
},
+ "ArchitectureTemplatesV1": {
+ "additionalProperties": false,
+ "description": "Statement text templates keyed by statement code (``{name}`` marks a parameter).",
+ "properties": {
+ "schema_version": {
+ "const": 1,
+ "default": 1,
+ "title": "Schema Version",
+ "type": "integer"
+ },
+ "templates": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "title": "Templates",
+ "type": "object"
+ }
+ },
+ "required": [
+ "templates"
+ ],
+ "title": "ArchitectureTemplatesV1",
+ "type": "object"
+ },
"AstConfigItemV1": {
"additionalProperties": false,
"properties": {
@@ -11633,6 +11657,24 @@
},
"openapi": "3.1.0",
"paths": {
+ "/api/v1/architecture-report-templates": {
+ "get": {
+ "operationId": "architecture_report_templates_api_v1_architecture_report_templates_get",
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ArchitectureTemplatesV1"
+ }
+ }
+ },
+ "description": "Successful Response"
+ }
+ },
+ "summary": "Architecture Report Templates"
+ }
+ },
"/api/v1/auth/github/callback": {
"get": {
"operationId": "oauth_callback_api_v1_auth_github_callback_get",
diff --git a/backend/tests/ast_facts/test_architecture_report_api.py b/backend/tests/ast_facts/test_architecture_report_api.py
index 49e8295..a39f957 100644
--- a/backend/tests/ast_facts/test_architecture_report_api.py
+++ b/backend/tests/ast_facts/test_architecture_report_api.py
@@ -94,6 +94,9 @@ async def test_prepare_build_and_read_a_report_through_http(factory, tmp_path):
assert (await client.get(f"{base}/{ref['id']}/graph?limit=0")).status_code == 422
assert (await client.get(f"{base}/{ref['id']}/sections/bogus")).status_code == 422
assert (await client.get(f"{base}/{uuid4()}")).status_code == 404
+ templates = await client.get("/api/v1/architecture-report-templates")
+ assert templates.status_code == 200
+ assert "{analyzed}" in templates.json()["templates"]["overview.files"]
finally:
await client.aclose()
diff --git a/backend/tests/phase3/unit/test_architecture_report.py b/backend/tests/phase3/unit/test_architecture_report.py
index 239115d..5c506d3 100644
--- a/backend/tests/phase3/unit/test_architecture_report.py
+++ b/backend/tests/phase3/unit/test_architecture_report.py
@@ -147,3 +147,12 @@ def test_markdown_and_graph_payload_shape():
assert statement_text(
next(s for s in statements(report, "overview") if s.code == "overview.files")
).startswith("5 source files")
+
+
+def test_every_statement_code_the_report_emits_has_a_template():
+ from app.analyzers.graph.render import TEXT
+
+ report, _ = build(eligible_files=len(FILES) + 5, omitted_files=5)
+ codes = {s.code for section in report.sections for s in section.statements}
+ assert codes <= set(TEXT), sorted(codes - set(TEXT))
+ assert set(LIMITATIONS) <= set(TEXT)
diff --git a/docs/adr/0006-architecture-report.md b/docs/adr/0006-architecture-report.md
new file mode 100644
index 0000000..c33f376
--- /dev/null
+++ b/docs/adr/0006-architecture-report.md
@@ -0,0 +1,41 @@
+# ADR 0006: Evidence-first architecture report
+
+Status: accepted for the deterministic report; model-written narrative is deferred. The
+[acceptance record](../acceptance/architecture-report.md) owns verification evidence and limits.
+
+## Decisions
+
+1. **A report is a pure function of published facts.** It is computed from the AST facts of the shard
+ analyses that cover a snapshot, stored once per inputs digest, and never updated or deleted. The
+ database insert guard recomputes the inputs digest from the stored facts rows and refuses a report
+ that cites a run which does not exist, is not a published AST-facts analysis of the same snapshot,
+ overlaps another run, or disagrees with its own columns.
+2. **Every statement is typed.** Following the evidence discipline of the REA project (observations,
+ derivations, inferences and unknowns are kept distinct, provenance is carried, partial facts are
+ kept, and coverage and limits are always reported), a statement is an *observation* (read from a
+ fact, evidence required), a *derivation* (computed mechanically), an *inference* (a judgment the
+ facts do not prove, such as "uses Flask") or an *unknown* (what the facts cannot settle). Only
+ REA's methodology is adopted, not its code or runtime.
+3. **Unresolved is unknown, never absent.** Imports that cannot be located, that match several files
+ equally well, or that may live outside the analyzed set never create a dependency between two
+ repository files; they are counted and listed as unknowns. A missing edge is not read as "no
+ dependency".
+4. **Statements carry templates and scalar parameters, evidence carries files and ranges.** Text is
+ rendered deterministically from a template code, so no source value or quote can reach a report;
+ only names, paths and line ranges do. This keeps the report safe to hand to a model later.
+5. **Resolution is syntactic and conservative.** Per-language rules use only the analyzed paths and
+ import facts. Python resolves only when a single file matches (or one sits beside the importer);
+ path aliases, bundler settings, `go.mod` and build classpaths are not read.
+6. **Coverage is explicit.** One AST-facts analysis reads at most 128 files, 16 MiB and 16 include
+ prefixes, so the coordinator partitions a snapshot into disjoint shards (a pure function of the
+ inventory, every analyzable path in exactly one shard) and creates one existing analysis per shard
+ within the organization's pending-job quota. A report built from fewer files than are eligible says
+ so in its data, its Markdown and the viewer.
+
+## Deferred
+
+A model-written narrative (component analysis and synthesis) is a separate phase. It will run as one
+synthetic investigation per report so that the existing gateway, budget ledger, replay safety and
+claim verifier apply unchanged, with every claim citing evidence the verifier can check, and the
+narrative marked as inference unless verified. It needs the Bedrock runtime composed and qualified by
+the owner first.
diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx
index ccf35fb..c33bae7 100644
--- a/frontend/src/App.tsx
+++ b/frontend/src/App.tsx
@@ -25,6 +25,7 @@ import type {
RetryResponseV2,
} from "./api/generated/types.gen";
import { StructuralReportView } from "./features/structure/StructuralReportView";
+import { ArchitectureWorkbench } from "./features/architecture/ArchitectureWorkbench";
import { FindingsWorkbench } from "./features/findings/FindingsWorkbench";
import { RetrievalWorkbench } from "./features/retrieval/RetrievalWorkbench";
import { InvestigationsWorkbench } from "./features/investigations/InvestigationsWorkbench";
@@ -1009,6 +1010,11 @@ function WorkspaceApp() {
)}
+
)}
{snapshot && repository && (
diff --git a/frontend/src/api/client.ts b/frontend/src/api/client.ts
index 11c0f83..18c4ab1 100644
--- a/frontend/src/api/client.ts
+++ b/frontend/src/api/client.ts
@@ -9,6 +9,11 @@ import type {
InventoryPageV1,
AnalysisAcceptedV1,
ArchitectureReportV1,
+ ArchitectureGraphPageV1,
+ ArchitectureReportRefV1,
+ ArchitectureShardsV1,
+ ArchitectureTemplatesV1,
+ RepositoryReportV1,
} from "./generated/types.gen";
export class ApiError extends Error {
@@ -53,7 +58,57 @@ export async function request(
throw new ApiError(409, "access_context_changed");
return value as T;
}
+const reportsPath = (repoId: string, snapshotId: string) =>
+ `/repositories/${repoId}/snapshots/${snapshotId}/architecture-reports`;
+
export const api = {
+ architectureStatus: (repoId: string, snapshotId: string) =>
+ request(`${reportsPath(repoId, snapshotId)}/prepare`),
+ architecturePrepare: (repoId: string, snapshotId: string, csrf: string) =>
+ request(
+ `${reportsPath(repoId, snapshotId)}/prepare`,
+ {
+ method: "POST",
+ headers: mutationHeaders(csrf),
+ },
+ ),
+ architectureBuild: (
+ repoId: string,
+ snapshotId: string,
+ csrf: string,
+ key: string,
+ ) =>
+ request(reportsPath(repoId, snapshotId), {
+ method: "POST",
+ headers: mutationHeaders(csrf, key),
+ body: JSON.stringify({ request_key: key }),
+ }),
+ architectureLatest: async (repoId: string, snapshotId: string) => {
+ try {
+ return await request(
+ `${reportsPath(repoId, snapshotId)}/latest`,
+ );
+ } catch (error) {
+ if (error instanceof ApiError && error.status === 404) return null;
+ throw error;
+ }
+ },
+ architectureReport: (repoId: string, snapshotId: string, reportId: string) =>
+ request(
+ `${reportsPath(repoId, snapshotId)}/${reportId}`,
+ ),
+ architectureGraph: (
+ repoId: string,
+ snapshotId: string,
+ reportId: string,
+ offset = 0,
+ limit = 5000,
+ ) =>
+ request(
+ `${reportsPath(repoId, snapshotId)}/${reportId}/graph?offset=${offset}&limit=${limit}`,
+ ),
+ architectureTemplates: () =>
+ request("/architecture-report-templates"),
repositoryMetadata: (repoId: string, signal?: AbortSignal) =>
request(
`/repositories/${repoId}/metadata`,
diff --git a/frontend/src/api/generated/index.ts b/frontend/src/api/generated/index.ts
index 341f9a0..944fbe9 100644
--- a/frontend/src/api/generated/index.ts
+++ b/frontend/src/api/generated/index.ts
@@ -1,4 +1,4 @@
// This file is auto-generated by @hey-api/openapi-ts
-export { acquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPost, architectureReportGraphApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGraphGet, architectureReportMarkdownApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdMarkdownGet, architectureReportSectionApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdSectionsNameGet, architectureReportStatusApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPrepareGet, assembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePost, astFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGet, astFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGet, astFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGet, astFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGet, astFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGet, astFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGet, bindGithubApiV1RepositoriesRepositoryIdGithubBindingPost, buildArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPost, cancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPost, cancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPost, cancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPost, cancelJobApiV1JobsJobIdCancelPost, cancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPost, cancelSubmissionApiV1SubmissionsSubmissionIdCancelPost, contextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPost, createAnalysisApiV1RepositoriesRepositoryIdAnalysesPost, createAstFactsApiV1RepositoriesRepositoryIdAstFactsPost, createDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePost, createInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPost, createRepositoryApiV1RepositoriesPost, createScanApiV1RepositoriesRepositoryIdScansPost, createSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPost, createSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPost, deleteSubmissionApiV1SubmissionsSubmissionIdDelete, executeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePost, exportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGet, getAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGet, getArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGet, getEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGet, getFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGet, getIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGet, getInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGet, getJobApiV1JobsJobIdGet, getScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGet, getScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGet, getSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGet, getSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGet, getSubmissionApiV1SubmissionsSubmissionIdGet, getSubmissionApiV1UploadsSubmissionIdGet, getTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGet, githubWebhookApiV1WebhooksGithubPost, healthLiveHealthLiveGet, healthReadyHealthReadyGet, importGithubUrlApiV1GithubImportsPost, indexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGet, inventoryApiV1SnapshotsSnapshotIdInventoryGet, jobEventsApiV1JobsJobIdEventsGet, latestArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsLatestGet, listInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGet, listInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGet, listMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGet, listRepositoriesApiV1RepositoriesGet, listScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGet, logoutApiV1LogoutPost, logoutApiV1SessionLogoutPost, memoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGet, modelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGet, oauthCallbackApiV1AuthGithubCallbackGet, oauthStartApiV1AuthGithubStartGet, type Options, prepareArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPreparePost, queryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGet, recordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPost, recordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPost, reportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGet, repositoryMetadataApiV1RepositoriesRepositoryIdMetadataGet, reserveUploadApiV1RepositoriesRepositoryIdUploadsPost, resumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePost, retryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPost, retryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPost, retryJobApiV1JobsJobIdRetryPost, retryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPost, reviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPost, scanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGet, searchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePost, searchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPost, searchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPost, searchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPost, sessionApiV1SessionGet, streamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGet, structuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGet, structuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGet, structuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPost, traceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePost, triageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePost, uploadContentApiV1SubmissionsSubmissionIdContentPut, uploadContentApiV1UploadsSubmissionIdContentPut } from './sdk.gen';
-export type { AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostData, AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostError, AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostErrors, AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostResponse, AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostResponses, AnalysisAcceptedV1, ArchitectureGraphPageV1, ArchitectureReportGraphApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGraphGetData, ArchitectureReportGraphApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGraphGetError, ArchitectureReportGraphApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGraphGetErrors, ArchitectureReportGraphApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGraphGetResponse, ArchitectureReportGraphApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGraphGetResponses, ArchitectureReportMarkdownApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdMarkdownGetData, ArchitectureReportMarkdownApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdMarkdownGetError, ArchitectureReportMarkdownApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdMarkdownGetErrors, ArchitectureReportMarkdownApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdMarkdownGetResponses, ArchitectureReportRefV1, ArchitectureReportSectionApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdSectionsNameGetData, ArchitectureReportSectionApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdSectionsNameGetError, ArchitectureReportSectionApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdSectionsNameGetErrors, ArchitectureReportSectionApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdSectionsNameGetResponse, ArchitectureReportSectionApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdSectionsNameGetResponses, ArchitectureReportStatusApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPrepareGetData, ArchitectureReportStatusApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPrepareGetError, ArchitectureReportStatusApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPrepareGetErrors, ArchitectureReportStatusApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPrepareGetResponse, ArchitectureReportStatusApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPrepareGetResponses, ArchitectureReportV1, ArchitectureShardsV1, ArchitectureStartRequestV1, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostData, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostError, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostErrors, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostResponse, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostResponses, AstConfigItemV1, AstConfigPageV1, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetData, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetError, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetErrors, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetResponse, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetResponses, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetData, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetError, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetErrors, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetResponse, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetResponses, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetData, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetError, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetErrors, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetResponse, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetResponses, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetData, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetError, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetErrors, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetResponse, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetResponses, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetData, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetError, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetErrors, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetResponse, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetResponses, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetData, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetError, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetErrors, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetResponse, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetResponses, AstFilePageV1, AstFileSummaryV1, AstModelItemV1, AstModelPageV1, AstRouteItemV1, AstRoutePageV1, AstSnapshotSummaryV1, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostData, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostError, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostErrors, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostResponse, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostResponses, BoundaryLinkV1, BuildArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPostData, BuildArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPostError, BuildArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPostErrors, BuildArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPostResponse, BuildArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPostResponses, ByteRangeV1, CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostData, CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostError, CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostErrors, CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostResponse, CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostResponses, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostData, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostError, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostErrors, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostResponse, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostResponses, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostData, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostError, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostErrors, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostResponse, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostResponses, CancelJobApiV1JobsJobIdCancelPostData, CancelJobApiV1JobsJobIdCancelPostError, CancelJobApiV1JobsJobIdCancelPostErrors, CancelJobApiV1JobsJobIdCancelPostResponse, CancelJobApiV1JobsJobIdCancelPostResponses, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostData, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostError, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostErrors, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostResponse, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostResponses, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostData, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostError, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostErrors, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostResponse, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostResponses, ChatMessageV1, ChunkKind, ClaimVerificationStatus, ClaimVerificationV1, ClientOptions, ColumnFactV1, ComponentSectionV1, ConfigFactV1, ContextAssemblyRequestV1, ContextBudgetV1, ContextItemV1, ContextPacketV1, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostData, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostError, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostErrors, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostResponse, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostResponses, ContextPreviewRequestV1, ContextPreviewV1, CoverageV1, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostData, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostError, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostErrors, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostResponse, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostResponses, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostData, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostError, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostErrors, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostResponse, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostResponses, CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostData, CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostError, CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostErrors, CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostResponse, CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostResponses, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostData, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostError, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostErrors, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostResponse, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostResponses, CreateRepositoryApiV1RepositoriesPostData, CreateRepositoryApiV1RepositoriesPostResponse, CreateRepositoryApiV1RepositoriesPostResponses, CreateScanApiV1RepositoriesRepositoryIdScansPostData, CreateScanApiV1RepositoriesRepositoryIdScansPostError, CreateScanApiV1RepositoriesRepositoryIdScansPostErrors, CreateScanApiV1RepositoriesRepositoryIdScansPostResponse, CreateScanApiV1RepositoriesRepositoryIdScansPostResponses, CreateScanRequestV1, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostData, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostError, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostErrors, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostResponse, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostResponses, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostData, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostError, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostErrors, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostResponse, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostResponses, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteData, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteError, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteErrors, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteResponse, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteResponses, DenseSearchHitV1, DenseSearchRequestV1, DenseSearchResponseV1, DependencyFileV1, DependencyGraphV1, DependencySelectionV1, DiagnosticFactV1, DiagnosticV1, EdgeCreateV1, EmbedCreateResponseV1, EmbedJobRecordV7, EmbedReceiptV1, EmbedStartRequestV1, EmbedStatusV1, EventPageV2, EventPageV3, EvidencePointerV1, EvidenceRefV1, ExactSearchRequestV1, ExactSearchType, ExecuteInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePostData, ExecuteInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePostError, ExecuteInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePostErrors, ExecuteInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePostResponses, ExportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGetData, ExportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGetError, ExportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGetErrors, ExportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGetResponses, ExportFactV1, FeatureTraceV1, FileFactsV1, FileOmissionV1, FindingDetailResponseV1, FindingListResponseV1, FindingSummaryV1, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetData, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetError, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetErrors, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetResponse, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetResponses, GetArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGetData, GetArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGetError, GetArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGetErrors, GetArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGetResponse, GetArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGetResponses, GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetData, GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetError, GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetErrors, GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetResponse, GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetResponses, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetData, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetError, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetErrors, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetResponse, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetResponses, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetData, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetError, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetErrors, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetResponse, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetResponses, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetData, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetError, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetErrors, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetResponse, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetResponses, GetJobApiV1JobsJobIdGetData, GetJobApiV1JobsJobIdGetError, GetJobApiV1JobsJobIdGetErrors, GetJobApiV1JobsJobIdGetResponse, GetJobApiV1JobsJobIdGetResponses, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetData, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetError, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetErrors, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetResponse, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetResponses, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetData, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetError, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetErrors, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetResponse, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetResponses, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetData, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetError, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetErrors, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetResponse, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetResponses, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetData, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetError, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetErrors, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetResponse, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetResponses, GetSubmissionApiV1SubmissionsSubmissionIdGetData, GetSubmissionApiV1SubmissionsSubmissionIdGetError, GetSubmissionApiV1SubmissionsSubmissionIdGetErrors, GetSubmissionApiV1SubmissionsSubmissionIdGetResponse, GetSubmissionApiV1SubmissionsSubmissionIdGetResponses, GetSubmissionApiV1UploadsSubmissionIdGetData, GetSubmissionApiV1UploadsSubmissionIdGetError, GetSubmissionApiV1UploadsSubmissionIdGetErrors, GetSubmissionApiV1UploadsSubmissionIdGetResponse, GetSubmissionApiV1UploadsSubmissionIdGetResponses, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetData, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetError, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetErrors, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetResponse, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetResponses, GitHubAcquisitionV1, GitHubBindingV1, GitHubImportV1, GithubWebhookApiV1WebhooksGithubPostData, GithubWebhookApiV1WebhooksGithubPostResponse, GithubWebhookApiV1WebhooksGithubPostResponses, GraphEdgeV1, GraphLinkOutV1, GraphNodeOutV1, GraphNodeV1, GraphPage, GraphQueryV1, GraphTraversalV1, HealthLiveHealthLiveGetData, HealthLiveHealthLiveGetResponse, HealthLiveHealthLiveGetResponses, HealthReadyHealthReadyGetData, HealthReadyHealthReadyGetResponses, HttpRequestObservationV1, HttpValidationError, HybridSearchHitV1, HybridSearchRequestV1, HybridSearchResponseV1, IdentityMapV1, ImportFactV1, ImportGithubUrlApiV1GithubImportsPostData, ImportGithubUrlApiV1GithubImportsPostResponse, ImportGithubUrlApiV1GithubImportsPostResponses, ImportNameV1, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetData, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetError, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetErrors, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetResponse, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetResponses, IndexAvailabilityV1, IndexCoverageV1, IndexCreateResponseV1, IndexCreateResponseV1Writable, IndexJobRecordV5, IndexOmissionExampleV1, IndexOmissionV1, IndexReceiptV1, IndexRetryResponseV1, IndexStartRequestV1, IndexStatusV1, IntervalMappingV1, InventoryApiV1SnapshotsSnapshotIdInventoryGetData, InventoryApiV1SnapshotsSnapshotIdInventoryGetError, InventoryApiV1SnapshotsSnapshotIdInventoryGetErrors, InventoryApiV1SnapshotsSnapshotIdInventoryGetResponse, InventoryApiV1SnapshotsSnapshotIdInventoryGetResponses, InventoryEntryV1, InventoryPageV1, InvestigationCancelResponseV1, InvestigationClaimKind, InvestigationClaimV1, InvestigationClaimV2, InvestigationCreateRequestV1, InvestigationCreateRequestV2, InvestigationDepth, InvestigationDetailResponseV1, InvestigationDetailResponseV2, InvestigationEventPageV1, InvestigationEventV1, InvestigationEventV2, InvestigationFeedbackRequestV1, InvestigationJobRecordV1, InvestigationListResponseV1, InvestigationListResponseV2, InvestigationMode, InvestigationReportV1, InvestigationResumeRequestV1, InvestigationRetryRequestV1, InvestigationStartResponseV1, InvestigationStateV1, InvestigationStatus, InvestigationStopReason, InvestigationSummaryV1, InvestigationSummaryV2, InvestigationTargetType, JobEventsApiV1JobsJobIdEventsGetData, JobEventsApiV1JobsJobIdEventsGetError, JobEventsApiV1JobsJobIdEventsGetErrors, JobEventsApiV1JobsJobIdEventsGetResponse, JobEventsApiV1JobsJobIdEventsGetResponses, JobEventV2, JobEventV3, JobRecordV2, JobRecordV3, LatestArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsLatestGetData, LatestArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsLatestGetError, LatestArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsLatestGetErrors, LatestArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsLatestGetResponse, LatestArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsLatestGetResponses, LexicalSearchRequestV1, ListInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGetData, ListInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGetError, ListInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGetErrors, ListInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGetResponses, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetData, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetError, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetErrors, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetResponse, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetResponses, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetData, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetError, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetErrors, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetResponse, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetResponses, ListRepositoriesApiV1RepositoriesGetData, ListRepositoriesApiV1RepositoriesGetError, ListRepositoriesApiV1RepositoriesGetErrors, ListRepositoriesApiV1RepositoriesGetResponse, ListRepositoriesApiV1RepositoriesGetResponses, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetData, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetError, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetErrors, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetResponse, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetResponses, LogoutApiV1LogoutPostData, LogoutApiV1LogoutPostResponse, LogoutApiV1LogoutPostResponses, LogoutApiV1SessionLogoutPostData, LogoutApiV1SessionLogoutPostResponse, LogoutApiV1SessionLogoutPostResponses, MemoryCreateRequestV1, MemoryEntryV1, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetData, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetError, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetErrors, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetResponse, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetResponses, MemoryHistoryV1, MemoryKind, MemoryManagementPageV1, MemoryQueryResponseV1, MemoryReviewEventV1, MemoryReviewRequestV1, MemoryState, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetData, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetError, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetErrors, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetResponse, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetResponses, ModelAvailabilityItemV1, ModelAvailabilityV1, ModelFactV1, ModelRole, NativeSelectionV1, NodeCreateV1, OauthCallbackApiV1AuthGithubCallbackGetData, OauthCallbackApiV1AuthGithubCallbackGetError, OauthCallbackApiV1AuthGithubCallbackGetErrors, OauthCallbackApiV1AuthGithubCallbackGetResponses, OauthStartApiV1AuthGithubStartGetData, OauthStartApiV1AuthGithubStartGetResponses, ParameterV1, PrepareArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPreparePostData, PrepareArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPreparePostError, PrepareArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPreparePostErrors, PrepareArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPreparePostResponse, PrepareArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPreparePostResponses, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetData, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetError, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetErrors, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetResponse, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetResponses, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostData, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostError, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostErrors, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostResponse, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostResponses, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostData, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostError, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostErrors, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostResponse, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostResponses, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetData, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetError, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetErrors, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetResponse, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetResponses, RepositoryCreate, RepositoryListItemV1, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetData, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetError, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetErrors, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetResponse, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetResponses, RepositoryPageV1, RepositoryRecord, RepositoryReportV1, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostData, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostError, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostErrors, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostResponse, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostResponses, ResolutionV1, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostData, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostError, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostErrors, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostResponse, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostResponses, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostData, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostError, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostErrors, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostResponse, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostResponses, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostData, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostError, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostErrors, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostResponse, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostResponses, RetryJobApiV1JobsJobIdRetryPostData, RetryJobApiV1JobsJobIdRetryPostError, RetryJobApiV1JobsJobIdRetryPostErrors, RetryJobApiV1JobsJobIdRetryPostResponse, RetryJobApiV1JobsJobIdRetryPostResponses, RetryResponseV1, RetryResponseV2, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostData, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostError, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostErrors, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostResponse, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostResponses, RetryScanResponseV3, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostData, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostError, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostErrors, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostResponse, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostResponses, RouteFactV1, RouteObservationV1, RunRef, ScanAcceptedV1, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetData, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetError, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetErrors, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetResponse, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetResponses, ScanConfigurationV1, ScanConfigV1, ScanJobRecordV4, ScannerFileV1, ScannerProfileV1, ScanSummaryResponseV1, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostData, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostError, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostErrors, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostResponse, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostResponses, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostData, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostError, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostErrors, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostResponse, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostResponses, SearchHitV1, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostData, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostError, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostErrors, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostResponse, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostResponses, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostData, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostError, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostErrors, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostResponse, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostResponses, SearchMode, SearchResponseV1, SearchScopeV1, SectionV1, SessionApiV1SessionGetData, SessionApiV1SessionGetResponse, SessionApiV1SessionGetResponses, SessionV1, ShardStatusV1, SignatureV1, SourceExcerptV1, SourceLocationV1, SourceRangeV1, SourceRepresentation, SourceViewResultV1, StatementV1, StreamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGetData, StreamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGetError, StreamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGetErrors, StreamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGetResponses, StructuralAnalysisRequestV1, StructuralCoverageV1, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetData, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetError, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetErrors, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetResponse, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetResponses, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetData, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetError, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetErrors, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetResponse, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetResponses, StructuralLimitsV1, StructuralSectionPageV1, StructuralSummaryV1, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostData, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostError, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostErrors, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostResponse, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostResponses, SubmissionRecordV1, SymbolFactV1, SymbolObservationV1, TableV1, ToolCallV1, TraceBudgetV1, TraceEdgeV1, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostData, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostError, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostErrors, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostResponse, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostResponses, TraceNodeV1, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostData, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostError, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostErrors, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostResponse, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostResponses, TriageHistoryItemV1, TriageHistoryV1, TriageRecordV1, TriageTransitionV1, UploadContentApiV1SubmissionsSubmissionIdContentPutData, UploadContentApiV1SubmissionsSubmissionIdContentPutError, UploadContentApiV1SubmissionsSubmissionIdContentPutErrors, UploadContentApiV1SubmissionsSubmissionIdContentPutResponse, UploadContentApiV1SubmissionsSubmissionIdContentPutResponses, UploadContentApiV1UploadsSubmissionIdContentPutData, UploadContentApiV1UploadsSubmissionIdContentPutError, UploadContentApiV1UploadsSubmissionIdContentPutErrors, UploadContentApiV1UploadsSubmissionIdContentPutResponse, UploadContentApiV1UploadsSubmissionIdContentPutResponses, UploadReservationV1, ValidationError } from './types.gen';
+export { acquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPost, architectureReportGraphApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGraphGet, architectureReportMarkdownApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdMarkdownGet, architectureReportSectionApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdSectionsNameGet, architectureReportStatusApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPrepareGet, architectureReportTemplatesApiV1ArchitectureReportTemplatesGet, assembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePost, astFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGet, astFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGet, astFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGet, astFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGet, astFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGet, astFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGet, bindGithubApiV1RepositoriesRepositoryIdGithubBindingPost, buildArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPost, cancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPost, cancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPost, cancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPost, cancelJobApiV1JobsJobIdCancelPost, cancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPost, cancelSubmissionApiV1SubmissionsSubmissionIdCancelPost, contextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPost, createAnalysisApiV1RepositoriesRepositoryIdAnalysesPost, createAstFactsApiV1RepositoriesRepositoryIdAstFactsPost, createDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePost, createInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPost, createRepositoryApiV1RepositoriesPost, createScanApiV1RepositoriesRepositoryIdScansPost, createSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPost, createSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPost, deleteSubmissionApiV1SubmissionsSubmissionIdDelete, executeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePost, exportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGet, getAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGet, getArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGet, getEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGet, getFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGet, getIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGet, getInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGet, getJobApiV1JobsJobIdGet, getScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGet, getScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGet, getSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGet, getSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGet, getSubmissionApiV1SubmissionsSubmissionIdGet, getSubmissionApiV1UploadsSubmissionIdGet, getTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGet, githubWebhookApiV1WebhooksGithubPost, healthLiveHealthLiveGet, healthReadyHealthReadyGet, importGithubUrlApiV1GithubImportsPost, indexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGet, inventoryApiV1SnapshotsSnapshotIdInventoryGet, jobEventsApiV1JobsJobIdEventsGet, latestArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsLatestGet, listInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGet, listInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGet, listMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGet, listRepositoriesApiV1RepositoriesGet, listScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGet, logoutApiV1LogoutPost, logoutApiV1SessionLogoutPost, memoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGet, modelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGet, oauthCallbackApiV1AuthGithubCallbackGet, oauthStartApiV1AuthGithubStartGet, type Options, prepareArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPreparePost, queryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGet, recordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPost, recordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPost, reportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGet, repositoryMetadataApiV1RepositoriesRepositoryIdMetadataGet, reserveUploadApiV1RepositoriesRepositoryIdUploadsPost, resumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePost, retryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPost, retryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPost, retryJobApiV1JobsJobIdRetryPost, retryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPost, reviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPost, scanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGet, searchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePost, searchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPost, searchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPost, searchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPost, sessionApiV1SessionGet, streamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGet, structuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGet, structuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGet, structuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPost, traceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePost, triageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePost, uploadContentApiV1SubmissionsSubmissionIdContentPut, uploadContentApiV1UploadsSubmissionIdContentPut } from './sdk.gen';
+export type { AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostData, AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostError, AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostErrors, AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostResponse, AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostResponses, AnalysisAcceptedV1, ArchitectureGraphPageV1, ArchitectureReportGraphApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGraphGetData, ArchitectureReportGraphApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGraphGetError, ArchitectureReportGraphApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGraphGetErrors, ArchitectureReportGraphApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGraphGetResponse, ArchitectureReportGraphApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGraphGetResponses, ArchitectureReportMarkdownApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdMarkdownGetData, ArchitectureReportMarkdownApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdMarkdownGetError, ArchitectureReportMarkdownApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdMarkdownGetErrors, ArchitectureReportMarkdownApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdMarkdownGetResponses, ArchitectureReportRefV1, ArchitectureReportSectionApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdSectionsNameGetData, ArchitectureReportSectionApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdSectionsNameGetError, ArchitectureReportSectionApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdSectionsNameGetErrors, ArchitectureReportSectionApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdSectionsNameGetResponse, ArchitectureReportSectionApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdSectionsNameGetResponses, ArchitectureReportStatusApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPrepareGetData, ArchitectureReportStatusApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPrepareGetError, ArchitectureReportStatusApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPrepareGetErrors, ArchitectureReportStatusApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPrepareGetResponse, ArchitectureReportStatusApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPrepareGetResponses, ArchitectureReportTemplatesApiV1ArchitectureReportTemplatesGetData, ArchitectureReportTemplatesApiV1ArchitectureReportTemplatesGetResponse, ArchitectureReportTemplatesApiV1ArchitectureReportTemplatesGetResponses, ArchitectureReportV1, ArchitectureShardsV1, ArchitectureStartRequestV1, ArchitectureTemplatesV1, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostData, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostError, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostErrors, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostResponse, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostResponses, AstConfigItemV1, AstConfigPageV1, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetData, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetError, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetErrors, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetResponse, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetResponses, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetData, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetError, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetErrors, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetResponse, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetResponses, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetData, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetError, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetErrors, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetResponse, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetResponses, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetData, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetError, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetErrors, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetResponse, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetResponses, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetData, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetError, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetErrors, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetResponse, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetResponses, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetData, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetError, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetErrors, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetResponse, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetResponses, AstFilePageV1, AstFileSummaryV1, AstModelItemV1, AstModelPageV1, AstRouteItemV1, AstRoutePageV1, AstSnapshotSummaryV1, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostData, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostError, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostErrors, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostResponse, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostResponses, BoundaryLinkV1, BuildArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPostData, BuildArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPostError, BuildArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPostErrors, BuildArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPostResponse, BuildArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPostResponses, ByteRangeV1, CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostData, CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostError, CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostErrors, CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostResponse, CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostResponses, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostData, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostError, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostErrors, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostResponse, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostResponses, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostData, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostError, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostErrors, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostResponse, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostResponses, CancelJobApiV1JobsJobIdCancelPostData, CancelJobApiV1JobsJobIdCancelPostError, CancelJobApiV1JobsJobIdCancelPostErrors, CancelJobApiV1JobsJobIdCancelPostResponse, CancelJobApiV1JobsJobIdCancelPostResponses, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostData, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostError, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostErrors, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostResponse, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostResponses, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostData, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostError, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostErrors, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostResponse, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostResponses, ChatMessageV1, ChunkKind, ClaimVerificationStatus, ClaimVerificationV1, ClientOptions, ColumnFactV1, ComponentSectionV1, ConfigFactV1, ContextAssemblyRequestV1, ContextBudgetV1, ContextItemV1, ContextPacketV1, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostData, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostError, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostErrors, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostResponse, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostResponses, ContextPreviewRequestV1, ContextPreviewV1, CoverageV1, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostData, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostError, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostErrors, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostResponse, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostResponses, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostData, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostError, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostErrors, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostResponse, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostResponses, CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostData, CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostError, CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostErrors, CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostResponse, CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostResponses, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostData, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostError, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostErrors, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostResponse, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostResponses, CreateRepositoryApiV1RepositoriesPostData, CreateRepositoryApiV1RepositoriesPostResponse, CreateRepositoryApiV1RepositoriesPostResponses, CreateScanApiV1RepositoriesRepositoryIdScansPostData, CreateScanApiV1RepositoriesRepositoryIdScansPostError, CreateScanApiV1RepositoriesRepositoryIdScansPostErrors, CreateScanApiV1RepositoriesRepositoryIdScansPostResponse, CreateScanApiV1RepositoriesRepositoryIdScansPostResponses, CreateScanRequestV1, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostData, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostError, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostErrors, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostResponse, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostResponses, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostData, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostError, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostErrors, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostResponse, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostResponses, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteData, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteError, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteErrors, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteResponse, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteResponses, DenseSearchHitV1, DenseSearchRequestV1, DenseSearchResponseV1, DependencyFileV1, DependencyGraphV1, DependencySelectionV1, DiagnosticFactV1, DiagnosticV1, EdgeCreateV1, EmbedCreateResponseV1, EmbedJobRecordV7, EmbedReceiptV1, EmbedStartRequestV1, EmbedStatusV1, EventPageV2, EventPageV3, EvidencePointerV1, EvidenceRefV1, ExactSearchRequestV1, ExactSearchType, ExecuteInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePostData, ExecuteInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePostError, ExecuteInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePostErrors, ExecuteInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePostResponses, ExportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGetData, ExportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGetError, ExportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGetErrors, ExportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGetResponses, ExportFactV1, FeatureTraceV1, FileFactsV1, FileOmissionV1, FindingDetailResponseV1, FindingListResponseV1, FindingSummaryV1, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetData, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetError, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetErrors, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetResponse, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetResponses, GetArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGetData, GetArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGetError, GetArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGetErrors, GetArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGetResponse, GetArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGetResponses, GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetData, GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetError, GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetErrors, GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetResponse, GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetResponses, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetData, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetError, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetErrors, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetResponse, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetResponses, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetData, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetError, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetErrors, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetResponse, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetResponses, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetData, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetError, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetErrors, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetResponse, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetResponses, GetJobApiV1JobsJobIdGetData, GetJobApiV1JobsJobIdGetError, GetJobApiV1JobsJobIdGetErrors, GetJobApiV1JobsJobIdGetResponse, GetJobApiV1JobsJobIdGetResponses, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetData, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetError, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetErrors, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetResponse, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetResponses, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetData, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetError, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetErrors, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetResponse, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetResponses, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetData, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetError, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetErrors, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetResponse, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetResponses, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetData, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetError, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetErrors, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetResponse, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetResponses, GetSubmissionApiV1SubmissionsSubmissionIdGetData, GetSubmissionApiV1SubmissionsSubmissionIdGetError, GetSubmissionApiV1SubmissionsSubmissionIdGetErrors, GetSubmissionApiV1SubmissionsSubmissionIdGetResponse, GetSubmissionApiV1SubmissionsSubmissionIdGetResponses, GetSubmissionApiV1UploadsSubmissionIdGetData, GetSubmissionApiV1UploadsSubmissionIdGetError, GetSubmissionApiV1UploadsSubmissionIdGetErrors, GetSubmissionApiV1UploadsSubmissionIdGetResponse, GetSubmissionApiV1UploadsSubmissionIdGetResponses, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetData, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetError, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetErrors, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetResponse, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetResponses, GitHubAcquisitionV1, GitHubBindingV1, GitHubImportV1, GithubWebhookApiV1WebhooksGithubPostData, GithubWebhookApiV1WebhooksGithubPostResponse, GithubWebhookApiV1WebhooksGithubPostResponses, GraphEdgeV1, GraphLinkOutV1, GraphNodeOutV1, GraphNodeV1, GraphPage, GraphQueryV1, GraphTraversalV1, HealthLiveHealthLiveGetData, HealthLiveHealthLiveGetResponse, HealthLiveHealthLiveGetResponses, HealthReadyHealthReadyGetData, HealthReadyHealthReadyGetResponses, HttpRequestObservationV1, HttpValidationError, HybridSearchHitV1, HybridSearchRequestV1, HybridSearchResponseV1, IdentityMapV1, ImportFactV1, ImportGithubUrlApiV1GithubImportsPostData, ImportGithubUrlApiV1GithubImportsPostResponse, ImportGithubUrlApiV1GithubImportsPostResponses, ImportNameV1, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetData, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetError, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetErrors, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetResponse, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetResponses, IndexAvailabilityV1, IndexCoverageV1, IndexCreateResponseV1, IndexCreateResponseV1Writable, IndexJobRecordV5, IndexOmissionExampleV1, IndexOmissionV1, IndexReceiptV1, IndexRetryResponseV1, IndexStartRequestV1, IndexStatusV1, IntervalMappingV1, InventoryApiV1SnapshotsSnapshotIdInventoryGetData, InventoryApiV1SnapshotsSnapshotIdInventoryGetError, InventoryApiV1SnapshotsSnapshotIdInventoryGetErrors, InventoryApiV1SnapshotsSnapshotIdInventoryGetResponse, InventoryApiV1SnapshotsSnapshotIdInventoryGetResponses, InventoryEntryV1, InventoryPageV1, InvestigationCancelResponseV1, InvestigationClaimKind, InvestigationClaimV1, InvestigationClaimV2, InvestigationCreateRequestV1, InvestigationCreateRequestV2, InvestigationDepth, InvestigationDetailResponseV1, InvestigationDetailResponseV2, InvestigationEventPageV1, InvestigationEventV1, InvestigationEventV2, InvestigationFeedbackRequestV1, InvestigationJobRecordV1, InvestigationListResponseV1, InvestigationListResponseV2, InvestigationMode, InvestigationReportV1, InvestigationResumeRequestV1, InvestigationRetryRequestV1, InvestigationStartResponseV1, InvestigationStateV1, InvestigationStatus, InvestigationStopReason, InvestigationSummaryV1, InvestigationSummaryV2, InvestigationTargetType, JobEventsApiV1JobsJobIdEventsGetData, JobEventsApiV1JobsJobIdEventsGetError, JobEventsApiV1JobsJobIdEventsGetErrors, JobEventsApiV1JobsJobIdEventsGetResponse, JobEventsApiV1JobsJobIdEventsGetResponses, JobEventV2, JobEventV3, JobRecordV2, JobRecordV3, LatestArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsLatestGetData, LatestArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsLatestGetError, LatestArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsLatestGetErrors, LatestArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsLatestGetResponse, LatestArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsLatestGetResponses, LexicalSearchRequestV1, ListInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGetData, ListInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGetError, ListInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGetErrors, ListInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGetResponses, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetData, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetError, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetErrors, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetResponse, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetResponses, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetData, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetError, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetErrors, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetResponse, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetResponses, ListRepositoriesApiV1RepositoriesGetData, ListRepositoriesApiV1RepositoriesGetError, ListRepositoriesApiV1RepositoriesGetErrors, ListRepositoriesApiV1RepositoriesGetResponse, ListRepositoriesApiV1RepositoriesGetResponses, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetData, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetError, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetErrors, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetResponse, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetResponses, LogoutApiV1LogoutPostData, LogoutApiV1LogoutPostResponse, LogoutApiV1LogoutPostResponses, LogoutApiV1SessionLogoutPostData, LogoutApiV1SessionLogoutPostResponse, LogoutApiV1SessionLogoutPostResponses, MemoryCreateRequestV1, MemoryEntryV1, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetData, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetError, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetErrors, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetResponse, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetResponses, MemoryHistoryV1, MemoryKind, MemoryManagementPageV1, MemoryQueryResponseV1, MemoryReviewEventV1, MemoryReviewRequestV1, MemoryState, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetData, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetError, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetErrors, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetResponse, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetResponses, ModelAvailabilityItemV1, ModelAvailabilityV1, ModelFactV1, ModelRole, NativeSelectionV1, NodeCreateV1, OauthCallbackApiV1AuthGithubCallbackGetData, OauthCallbackApiV1AuthGithubCallbackGetError, OauthCallbackApiV1AuthGithubCallbackGetErrors, OauthCallbackApiV1AuthGithubCallbackGetResponses, OauthStartApiV1AuthGithubStartGetData, OauthStartApiV1AuthGithubStartGetResponses, ParameterV1, PrepareArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPreparePostData, PrepareArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPreparePostError, PrepareArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPreparePostErrors, PrepareArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPreparePostResponse, PrepareArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPreparePostResponses, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetData, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetError, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetErrors, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetResponse, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetResponses, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostData, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostError, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostErrors, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostResponse, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostResponses, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostData, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostError, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostErrors, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostResponse, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostResponses, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetData, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetError, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetErrors, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetResponse, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetResponses, RepositoryCreate, RepositoryListItemV1, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetData, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetError, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetErrors, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetResponse, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetResponses, RepositoryPageV1, RepositoryRecord, RepositoryReportV1, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostData, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostError, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostErrors, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostResponse, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostResponses, ResolutionV1, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostData, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostError, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostErrors, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostResponse, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostResponses, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostData, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostError, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostErrors, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostResponse, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostResponses, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostData, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostError, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostErrors, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostResponse, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostResponses, RetryJobApiV1JobsJobIdRetryPostData, RetryJobApiV1JobsJobIdRetryPostError, RetryJobApiV1JobsJobIdRetryPostErrors, RetryJobApiV1JobsJobIdRetryPostResponse, RetryJobApiV1JobsJobIdRetryPostResponses, RetryResponseV1, RetryResponseV2, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostData, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostError, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostErrors, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostResponse, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostResponses, RetryScanResponseV3, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostData, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostError, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostErrors, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostResponse, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostResponses, RouteFactV1, RouteObservationV1, RunRef, ScanAcceptedV1, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetData, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetError, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetErrors, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetResponse, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetResponses, ScanConfigurationV1, ScanConfigV1, ScanJobRecordV4, ScannerFileV1, ScannerProfileV1, ScanSummaryResponseV1, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostData, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostError, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostErrors, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostResponse, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostResponses, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostData, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostError, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostErrors, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostResponse, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostResponses, SearchHitV1, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostData, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostError, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostErrors, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostResponse, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostResponses, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostData, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostError, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostErrors, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostResponse, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostResponses, SearchMode, SearchResponseV1, SearchScopeV1, SectionV1, SessionApiV1SessionGetData, SessionApiV1SessionGetResponse, SessionApiV1SessionGetResponses, SessionV1, ShardStatusV1, SignatureV1, SourceExcerptV1, SourceLocationV1, SourceRangeV1, SourceRepresentation, SourceViewResultV1, StatementV1, StreamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGetData, StreamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGetError, StreamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGetErrors, StreamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGetResponses, StructuralAnalysisRequestV1, StructuralCoverageV1, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetData, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetError, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetErrors, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetResponse, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetResponses, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetData, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetError, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetErrors, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetResponse, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetResponses, StructuralLimitsV1, StructuralSectionPageV1, StructuralSummaryV1, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostData, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostError, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostErrors, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostResponse, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostResponses, SubmissionRecordV1, SymbolFactV1, SymbolObservationV1, TableV1, ToolCallV1, TraceBudgetV1, TraceEdgeV1, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostData, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostError, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostErrors, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostResponse, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostResponses, TraceNodeV1, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostData, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostError, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostErrors, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostResponse, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostResponses, TriageHistoryItemV1, TriageHistoryV1, TriageRecordV1, TriageTransitionV1, UploadContentApiV1SubmissionsSubmissionIdContentPutData, UploadContentApiV1SubmissionsSubmissionIdContentPutError, UploadContentApiV1SubmissionsSubmissionIdContentPutErrors, UploadContentApiV1SubmissionsSubmissionIdContentPutResponse, UploadContentApiV1SubmissionsSubmissionIdContentPutResponses, UploadContentApiV1UploadsSubmissionIdContentPutData, UploadContentApiV1UploadsSubmissionIdContentPutError, UploadContentApiV1UploadsSubmissionIdContentPutErrors, UploadContentApiV1UploadsSubmissionIdContentPutResponse, UploadContentApiV1UploadsSubmissionIdContentPutResponses, UploadReservationV1, ValidationError } from './types.gen';
diff --git a/frontend/src/api/generated/sdk.gen.ts b/frontend/src/api/generated/sdk.gen.ts
index 3bf357a..26cfe0c 100644
--- a/frontend/src/api/generated/sdk.gen.ts
+++ b/frontend/src/api/generated/sdk.gen.ts
@@ -2,7 +2,7 @@
import type { Client, ClientMeta, Options as Options2, RequestResult, TDataShape } from './client';
import { client } from './client.gen';
-import type { AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostData, AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostErrors, AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostResponses, ArchitectureReportGraphApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGraphGetData, ArchitectureReportGraphApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGraphGetErrors, ArchitectureReportGraphApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGraphGetResponses, ArchitectureReportMarkdownApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdMarkdownGetData, ArchitectureReportMarkdownApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdMarkdownGetErrors, ArchitectureReportMarkdownApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdMarkdownGetResponses, ArchitectureReportSectionApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdSectionsNameGetData, ArchitectureReportSectionApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdSectionsNameGetErrors, ArchitectureReportSectionApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdSectionsNameGetResponses, ArchitectureReportStatusApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPrepareGetData, ArchitectureReportStatusApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPrepareGetErrors, ArchitectureReportStatusApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPrepareGetResponses, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostData, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostErrors, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostResponses, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetData, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetErrors, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetResponses, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetData, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetErrors, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetResponses, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetData, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetErrors, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetResponses, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetData, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetErrors, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetResponses, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetData, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetErrors, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetResponses, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetData, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetErrors, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetResponses, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostData, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostErrors, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostResponses, BuildArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPostData, BuildArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPostErrors, BuildArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPostResponses, CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostData, CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostErrors, CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostResponses, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostData, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostErrors, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostResponses, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostData, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostErrors, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostResponses, CancelJobApiV1JobsJobIdCancelPostData, CancelJobApiV1JobsJobIdCancelPostErrors, CancelJobApiV1JobsJobIdCancelPostResponses, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostData, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostErrors, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostResponses, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostData, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostErrors, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostResponses, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostData, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostErrors, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostResponses, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostData, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostErrors, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostResponses, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostData, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostErrors, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostResponses, CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostData, CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostErrors, CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostResponses, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostData, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostErrors, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostResponses, CreateRepositoryApiV1RepositoriesPostData, CreateRepositoryApiV1RepositoriesPostResponses, CreateScanApiV1RepositoriesRepositoryIdScansPostData, CreateScanApiV1RepositoriesRepositoryIdScansPostErrors, CreateScanApiV1RepositoriesRepositoryIdScansPostResponses, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostData, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostErrors, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostResponses, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostData, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostErrors, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostResponses, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteData, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteErrors, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteResponses, ExecuteInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePostData, ExecuteInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePostErrors, ExecuteInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePostResponses, ExportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGetData, ExportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGetErrors, ExportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGetResponses, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetData, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetErrors, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetResponses, GetArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGetData, GetArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGetErrors, GetArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGetResponses, GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetData, GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetErrors, GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetResponses, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetData, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetErrors, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetResponses, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetData, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetErrors, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetResponses, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetData, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetErrors, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetResponses, GetJobApiV1JobsJobIdGetData, GetJobApiV1JobsJobIdGetErrors, GetJobApiV1JobsJobIdGetResponses, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetData, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetErrors, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetResponses, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetData, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetErrors, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetResponses, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetData, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetErrors, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetResponses, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetData, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetErrors, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetResponses, GetSubmissionApiV1SubmissionsSubmissionIdGetData, GetSubmissionApiV1SubmissionsSubmissionIdGetErrors, GetSubmissionApiV1SubmissionsSubmissionIdGetResponses, GetSubmissionApiV1UploadsSubmissionIdGetData, GetSubmissionApiV1UploadsSubmissionIdGetErrors, GetSubmissionApiV1UploadsSubmissionIdGetResponses, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetData, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetErrors, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetResponses, GithubWebhookApiV1WebhooksGithubPostData, GithubWebhookApiV1WebhooksGithubPostResponses, HealthLiveHealthLiveGetData, HealthLiveHealthLiveGetResponses, HealthReadyHealthReadyGetData, HealthReadyHealthReadyGetResponses, ImportGithubUrlApiV1GithubImportsPostData, ImportGithubUrlApiV1GithubImportsPostResponses, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetData, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetErrors, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetResponses, InventoryApiV1SnapshotsSnapshotIdInventoryGetData, InventoryApiV1SnapshotsSnapshotIdInventoryGetErrors, InventoryApiV1SnapshotsSnapshotIdInventoryGetResponses, JobEventsApiV1JobsJobIdEventsGetData, JobEventsApiV1JobsJobIdEventsGetErrors, JobEventsApiV1JobsJobIdEventsGetResponses, LatestArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsLatestGetData, LatestArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsLatestGetErrors, LatestArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsLatestGetResponses, ListInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGetData, ListInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGetErrors, ListInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGetResponses, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetData, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetErrors, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetResponses, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetData, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetErrors, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetResponses, ListRepositoriesApiV1RepositoriesGetData, ListRepositoriesApiV1RepositoriesGetErrors, ListRepositoriesApiV1RepositoriesGetResponses, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetData, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetErrors, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetResponses, LogoutApiV1LogoutPostData, LogoutApiV1LogoutPostResponses, LogoutApiV1SessionLogoutPostData, LogoutApiV1SessionLogoutPostResponses, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetData, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetErrors, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetResponses, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetData, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetErrors, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetResponses, OauthCallbackApiV1AuthGithubCallbackGetData, OauthCallbackApiV1AuthGithubCallbackGetErrors, OauthCallbackApiV1AuthGithubCallbackGetResponses, OauthStartApiV1AuthGithubStartGetData, OauthStartApiV1AuthGithubStartGetResponses, PrepareArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPreparePostData, PrepareArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPreparePostErrors, PrepareArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPreparePostResponses, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetData, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetErrors, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetResponses, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostData, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostErrors, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostResponses, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostData, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostErrors, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostResponses, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetData, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetErrors, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetResponses, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetData, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetErrors, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetResponses, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostData, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostErrors, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostResponses, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostData, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostErrors, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostResponses, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostData, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostErrors, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostResponses, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostData, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostErrors, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostResponses, RetryJobApiV1JobsJobIdRetryPostData, RetryJobApiV1JobsJobIdRetryPostErrors, RetryJobApiV1JobsJobIdRetryPostResponses, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostData, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostErrors, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostResponses, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostData, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostErrors, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostResponses, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetData, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetErrors, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetResponses, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostData, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostErrors, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostResponses, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostData, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostErrors, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostResponses, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostData, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostErrors, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostResponses, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostData, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostErrors, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostResponses, SessionApiV1SessionGetData, SessionApiV1SessionGetResponses, StreamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGetData, StreamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGetErrors, StreamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGetResponses, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetData, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetErrors, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetResponses, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetData, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetErrors, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetResponses, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostData, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostErrors, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostResponses, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostData, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostErrors, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostResponses, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostData, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostErrors, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostResponses, UploadContentApiV1SubmissionsSubmissionIdContentPutData, UploadContentApiV1SubmissionsSubmissionIdContentPutErrors, UploadContentApiV1SubmissionsSubmissionIdContentPutResponses, UploadContentApiV1UploadsSubmissionIdContentPutData, UploadContentApiV1UploadsSubmissionIdContentPutErrors, UploadContentApiV1UploadsSubmissionIdContentPutResponses } from './types.gen';
+import type { AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostData, AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostErrors, AcquireGithubApiV1RepositoriesRepositoryIdGithubAcquisitionsPostResponses, ArchitectureReportGraphApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGraphGetData, ArchitectureReportGraphApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGraphGetErrors, ArchitectureReportGraphApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGraphGetResponses, ArchitectureReportMarkdownApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdMarkdownGetData, ArchitectureReportMarkdownApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdMarkdownGetErrors, ArchitectureReportMarkdownApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdMarkdownGetResponses, ArchitectureReportSectionApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdSectionsNameGetData, ArchitectureReportSectionApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdSectionsNameGetErrors, ArchitectureReportSectionApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdSectionsNameGetResponses, ArchitectureReportStatusApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPrepareGetData, ArchitectureReportStatusApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPrepareGetErrors, ArchitectureReportStatusApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPrepareGetResponses, ArchitectureReportTemplatesApiV1ArchitectureReportTemplatesGetData, ArchitectureReportTemplatesApiV1ArchitectureReportTemplatesGetResponses, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostData, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostErrors, AssembleContextEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextAssemblePostResponses, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetData, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetErrors, AstFactsConfigApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsConfigGetResponses, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetData, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetErrors, AstFactsFileApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesFileIdGetResponses, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetData, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetErrors, AstFactsFilesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsFilesGetResponses, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetData, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetErrors, AstFactsModelsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsModelsGetResponses, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetData, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetErrors, AstFactsRoutesApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsRoutesGetResponses, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetData, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetErrors, AstFactsSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdAstFactsGetResponses, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostData, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostErrors, BindGithubApiV1RepositoriesRepositoryIdGithubBindingPostResponses, BuildArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPostData, BuildArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPostErrors, BuildArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPostResponses, CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostData, CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostErrors, CancelEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdCancelPostResponses, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostData, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostErrors, CancelIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdCancelPostResponses, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostData, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostErrors, CancelInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdCancelPostResponses, CancelJobApiV1JobsJobIdCancelPostData, CancelJobApiV1JobsJobIdCancelPostErrors, CancelJobApiV1JobsJobIdCancelPostResponses, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostData, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostErrors, CancelScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdCancelPostResponses, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostData, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostErrors, CancelSubmissionApiV1SubmissionsSubmissionIdCancelPostResponses, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostData, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostErrors, ContextPreviewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdContextPreviewPostResponses, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostData, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostErrors, CreateAnalysisApiV1RepositoriesRepositoryIdAnalysesPostResponses, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostData, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostErrors, CreateAstFactsApiV1RepositoriesRepositoryIdAstFactsPostResponses, CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostData, CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostErrors, CreateDenseIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesChunkSetIdDensePostResponses, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostData, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostErrors, CreateInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsPostResponses, CreateRepositoryApiV1RepositoriesPostData, CreateRepositoryApiV1RepositoriesPostResponses, CreateScanApiV1RepositoriesRepositoryIdScansPostData, CreateScanApiV1RepositoriesRepositoryIdScansPostErrors, CreateScanApiV1RepositoriesRepositoryIdScansPostResponses, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostData, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostErrors, CreateSnapshotIndexApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesPostResponses, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostData, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostErrors, CreateSnapshotScanApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansPostResponses, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteData, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteErrors, DeleteSubmissionApiV1SubmissionsSubmissionIdDeleteResponses, ExecuteInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePostData, ExecuteInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePostErrors, ExecuteInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdExecutePostResponses, ExportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGetData, ExportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGetErrors, ExportAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdExportGetResponses, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetData, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetErrors, GetAnalysisReportApiV1RepositoriesRepositoryIdAnalysesRunIdReportGetResponses, GetArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGetData, GetArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGetErrors, GetArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsReportIdGetResponses, GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetData, GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetErrors, GetEmbedJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdEmbedJobsJobIdGetResponses, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetData, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetErrors, GetFindingDetailApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdGetResponses, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetData, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetErrors, GetIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdGetResponses, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetData, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetErrors, GetInvestigationDetailEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdGetResponses, GetJobApiV1JobsJobIdGetData, GetJobApiV1JobsJobIdGetErrors, GetJobApiV1JobsJobIdGetResponses, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetData, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetErrors, GetScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdGetResponses, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetData, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetErrors, GetScanSummaryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdSummaryGetResponses, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetData, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetErrors, GetSnapshotStructuralReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdStructuralReportGetResponses, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetData, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetErrors, GetSourceViewEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFilesFileIdSourceViewGetResponses, GetSubmissionApiV1SubmissionsSubmissionIdGetData, GetSubmissionApiV1SubmissionsSubmissionIdGetErrors, GetSubmissionApiV1SubmissionsSubmissionIdGetResponses, GetSubmissionApiV1UploadsSubmissionIdGetData, GetSubmissionApiV1UploadsSubmissionIdGetErrors, GetSubmissionApiV1UploadsSubmissionIdGetResponses, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetData, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetErrors, GetTriageHistoryApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriageHistoryGetResponses, GithubWebhookApiV1WebhooksGithubPostData, GithubWebhookApiV1WebhooksGithubPostResponses, HealthLiveHealthLiveGetData, HealthLiveHealthLiveGetResponses, HealthReadyHealthReadyGetData, HealthReadyHealthReadyGetResponses, ImportGithubUrlApiV1GithubImportsPostData, ImportGithubUrlApiV1GithubImportsPostResponses, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetData, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetErrors, IndexAvailabilityApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexesGetResponses, InventoryApiV1SnapshotsSnapshotIdInventoryGetData, InventoryApiV1SnapshotsSnapshotIdInventoryGetErrors, InventoryApiV1SnapshotsSnapshotIdInventoryGetResponses, JobEventsApiV1JobsJobIdEventsGetData, JobEventsApiV1JobsJobIdEventsGetErrors, JobEventsApiV1JobsJobIdEventsGetResponses, LatestArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsLatestGetData, LatestArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsLatestGetErrors, LatestArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsLatestGetResponses, ListInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGetData, ListInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGetErrors, ListInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdEventsGetResponses, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetData, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetErrors, ListInvestigationsEndpointApiV1RepositoriesRepositoryIdInvestigationsGetResponses, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetData, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetErrors, ListMemoryReviewEndpointApiV1RepositoriesRepositoryIdMemoryReviewGetResponses, ListRepositoriesApiV1RepositoriesGetData, ListRepositoriesApiV1RepositoriesGetErrors, ListRepositoriesApiV1RepositoriesGetResponses, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetData, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetErrors, ListScanFindingsApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScansRunIdFindingsGetResponses, LogoutApiV1LogoutPostData, LogoutApiV1LogoutPostResponses, LogoutApiV1SessionLogoutPostData, LogoutApiV1SessionLogoutPostResponses, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetData, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetErrors, MemoryHistoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdHistoryGetResponses, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetData, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetErrors, ModelAvailabilityEndpointApiV1RepositoriesRepositoryIdModelsGetResponses, OauthCallbackApiV1AuthGithubCallbackGetData, OauthCallbackApiV1AuthGithubCallbackGetErrors, OauthCallbackApiV1AuthGithubCallbackGetResponses, OauthStartApiV1AuthGithubStartGetData, OauthStartApiV1AuthGithubStartGetResponses, PrepareArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPreparePostData, PrepareArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPreparePostErrors, PrepareArchitectureReportApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdArchitectureReportsPreparePostResponses, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetData, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetErrors, QueryMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesGetResponses, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostData, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostErrors, RecordInvestigationFeedbackEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdFeedbackPostResponses, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostData, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostErrors, RecordMemoryEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdMemoriesPostResponses, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetData, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetErrors, ReportSectionApiV1RepositoriesRepositoryIdAnalysesRunIdReportSectionGetResponses, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetData, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetErrors, RepositoryMetadataApiV1RepositoriesRepositoryIdMetadataGetResponses, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostData, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostErrors, ReserveUploadApiV1RepositoriesRepositoryIdUploadsPostResponses, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostData, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostErrors, ResumeInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdResumePostResponses, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostData, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostErrors, RetryIndexJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdIndexJobsJobIdRetryPostResponses, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostData, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostErrors, RetryInvestigationEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdRetryPostResponses, RetryJobApiV1JobsJobIdRetryPostData, RetryJobApiV1JobsJobIdRetryPostErrors, RetryJobApiV1JobsJobIdRetryPostResponses, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostData, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostErrors, RetryScanJobApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanJobsJobIdRetryPostResponses, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostData, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostErrors, ReviewMemoryEndpointApiV1RepositoriesRepositoryIdMemoriesMemoryIdReviewsPostResponses, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetData, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetErrors, ScanConfigurationApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdScanConfigurationGetResponses, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostData, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostErrors, SearchDenseEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchDensePostResponses, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostData, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostErrors, SearchExactEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchExactPostResponses, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostData, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostErrors, SearchHybridEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchHybridPostResponses, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostData, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostErrors, SearchLexicalEndpointApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdSearchLexicalPostResponses, SessionApiV1SessionGetData, SessionApiV1SessionGetResponses, StreamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGetData, StreamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGetErrors, StreamInvestigationEventsEndpointApiV1RepositoriesRepositoryIdInvestigationsInvestigationIdStreamGetResponses, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetData, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetErrors, StructuralEvidenceApiV1RepositoriesRepositoryIdAnalysesRunIdEvidenceEvidenceIdGetResponses, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetData, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetErrors, StructuralGraphApiV1RepositoriesRepositoryIdAnalysesRunIdGraphGetResponses, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostData, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostErrors, StructuralTraversalApiV1RepositoriesRepositoryIdAnalysesRunIdTraversalPostResponses, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostData, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostErrors, TraceFindingFeatureApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTracePostResponses, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostData, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostErrors, TriageFindingApiV1RepositoriesRepositoryIdSnapshotsSnapshotIdFindingsFindingIdTriagePostResponses, UploadContentApiV1SubmissionsSubmissionIdContentPutData, UploadContentApiV1SubmissionsSubmissionIdContentPutErrors, UploadContentApiV1SubmissionsSubmissionIdContentPutResponses, UploadContentApiV1UploadsSubmissionIdContentPutData, UploadContentApiV1UploadsSubmissionIdContentPutErrors, UploadContentApiV1UploadsSubmissionIdContentPutResponses } from './types.gen';
export type Options = Options2 & {
/**
@@ -18,6 +18,11 @@ export type Options : ClientMeta;
};
+/**
+ * Architecture Report Templates
+ */
+export const architectureReportTemplatesApiV1ArchitectureReportTemplatesGet = (options?: Options): RequestResult => (options?.client ?? client).get({ url: '/api/v1/architecture-report-templates', ...options });
+
/**
* Oauth Callback
*/
diff --git a/frontend/src/api/generated/types.gen.ts b/frontend/src/api/generated/types.gen.ts
index b11da53..f18108e 100644
--- a/frontend/src/api/generated/types.gen.ts
+++ b/frontend/src/api/generated/types.gen.ts
@@ -237,6 +237,24 @@ export type ArchitectureStartRequestV1 = {
schema_version?: 1;
};
+/**
+ * ArchitectureTemplatesV1
+ *
+ * Statement text templates keyed by statement code (``{name}`` marks a parameter).
+ */
+export type ArchitectureTemplatesV1 = {
+ /**
+ * Schema Version
+ */
+ schema_version?: 1;
+ /**
+ * Templates
+ */
+ templates: {
+ [key: string]: string;
+ };
+};
+
/**
* AstConfigItemV1
*/
@@ -6021,6 +6039,22 @@ export type IndexCreateResponseV1Writable = {
job: IndexJobRecordV5;
};
+export type ArchitectureReportTemplatesApiV1ArchitectureReportTemplatesGetData = {
+ body?: never;
+ path?: never;
+ query?: never;
+ url: '/api/v1/architecture-report-templates';
+};
+
+export type ArchitectureReportTemplatesApiV1ArchitectureReportTemplatesGetResponses = {
+ /**
+ * Successful Response
+ */
+ 200: ArchitectureTemplatesV1;
+};
+
+export type ArchitectureReportTemplatesApiV1ArchitectureReportTemplatesGetResponse = ArchitectureReportTemplatesApiV1ArchitectureReportTemplatesGetResponses[keyof ArchitectureReportTemplatesApiV1ArchitectureReportTemplatesGetResponses];
+
export type OauthCallbackApiV1AuthGithubCallbackGetData = {
body?: never;
path?: never;
diff --git a/frontend/src/features/architecture/ArchitectureWorkbench.test.tsx b/frontend/src/features/architecture/ArchitectureWorkbench.test.tsx
new file mode 100644
index 0000000..34e07a9
--- /dev/null
+++ b/frontend/src/features/architecture/ArchitectureWorkbench.test.tsx
@@ -0,0 +1,318 @@
+import "@testing-library/jest-dom/vitest";
+import {
+ cleanup,
+ fireEvent,
+ render,
+ screen,
+ waitFor,
+ within,
+} from "@testing-library/react";
+import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
+import { afterEach, describe, expect, it, vi } from "vitest";
+import { api, ApiError } from "../../api/client";
+import type {
+ ArchitectureGraphPageV1,
+ ArchitectureReportRefV1,
+ ArchitectureShardsV1,
+ RepositoryReportV1,
+} from "../../api/generated/types.gen";
+import { ArchitectureWorkbench } from "./ArchitectureWorkbench";
+import { statementText } from "./statementText";
+
+const repo = "10000000-0000-4000-8000-000000000001";
+const snapshot = "10000000-0000-4000-8000-000000000002";
+const reportId = "10000000-0000-4000-8000-000000000003";
+const digest = "a".repeat(64);
+
+afterEach(() => {
+ cleanup();
+ vi.restoreAllMocks();
+});
+
+function shards(state: string, ready: boolean): ArchitectureShardsV1 {
+ return {
+ plan_digest: digest,
+ total_files: 12,
+ skipped_files: 0,
+ ready,
+ shards: [
+ {
+ index: 0,
+ files: 12,
+ prefixes: 0,
+ state: state as "queued",
+ job_id: state === "not_started" ? null : repo,
+ run_id: ready ? snapshot : null,
+ },
+ ],
+ };
+}
+
+const ref: ArchitectureReportRefV1 = {
+ id: reportId,
+ repository_id: repo,
+ snapshot_id: snapshot,
+ inputs_digest: digest,
+ report_digest: digest,
+ size_bytes: 100,
+ complete: false,
+ analyzed_files: 10,
+ eligible_files: 12,
+};
+
+function report(): RepositoryReportV1 {
+ const range = {
+ start_byte: 0,
+ end_byte: 5,
+ start_line: 7,
+ end_line: 7,
+ start_col: 0,
+ end_col: 5,
+ };
+ return {
+ schema_version: 1,
+ org_id: repo,
+ repository_id: repo,
+ snapshot_id: snapshot,
+ inputs_digest: digest,
+ coverage: {
+ eligible_files: 12,
+ analyzed_files: 10,
+ partial_files: 1,
+ omitted_files: 2,
+ fact_runs: [],
+ },
+ graph: { nodes: [], edges: [] },
+ sections: [
+ {
+ name: "coverage",
+ statements: [
+ {
+ kind: "unknown",
+ code: "limitation.no_manifests",
+ params: {},
+ evidence: [],
+ evidence_total: 0,
+ },
+ ],
+ tables: [],
+ },
+ {
+ name: "overview",
+ statements: [
+ {
+ kind: "derivation",
+ code: "overview.files",
+ params: { analyzed: 10 },
+ evidence: [],
+ evidence_total: 0,
+ },
+ {
+ kind: "inference",
+ code: "stack.framework",
+ params: { framework: "Flask", files: 4 },
+ evidence: [
+ {
+ file_id: repo,
+ path: "app/web.py",
+ fact: "import",
+ range,
+ },
+ ],
+ evidence_total: 5,
+ },
+ ],
+ tables: [
+ {
+ name: "languages",
+ columns: ["language", "files", "symbols"],
+ rows: [["python", 10, 40]],
+ rows_total: 3,
+ },
+ ],
+ },
+ {
+ name: "components",
+ statements: [],
+ tables: [
+ {
+ name: "components",
+ columns: [
+ "component",
+ "files",
+ "languages",
+ "inbound",
+ "outbound",
+ "layer",
+ ],
+ rows: [
+ ["app", 6, "python:6", 0, 3, 0],
+ ["lib", 4, "python:4", 3, 0, 1],
+ ],
+ rows_total: 2,
+ },
+ ],
+ },
+ ],
+ };
+}
+
+const graph: ArchitectureGraphPageV1 = {
+ nodes: [
+ {
+ id: "file:app/a.py",
+ label: "app/a.py",
+ kind: "file",
+ language: "python",
+ group: "app",
+ },
+ {
+ id: "file:lib/b.py",
+ label: "lib/b.py",
+ kind: "file",
+ language: "python",
+ group: "lib",
+ },
+ ],
+ links: [
+ {
+ source: "file:app/a.py",
+ target: "file:lib/b.py",
+ resolution: "resolved",
+ },
+ ],
+ nodes_total: 2,
+ links_total: 1,
+ offset: 0,
+ ambiguous: 0,
+ unresolved: 0,
+};
+
+const templates = {
+ templates: {
+ "overview.files": "{analyzed} source files were analyzed.",
+ "stack.framework":
+ "{framework} appears to be used (imported by {files} files).",
+ "limitation.no_manifests": "Package manifests are not parsed.",
+ },
+};
+
+function mount(options: {
+ status: ArchitectureShardsV1;
+ latest: ArchitectureReportRefV1 | null;
+}) {
+ vi.spyOn(api, "architectureStatus").mockResolvedValue(options.status);
+ vi.spyOn(api, "architectureLatest").mockResolvedValue(options.latest);
+ vi.spyOn(api, "architectureTemplates").mockResolvedValue(templates);
+ vi.spyOn(api, "architectureReport").mockResolvedValue(report());
+ vi.spyOn(api, "architectureGraph").mockResolvedValue(graph);
+ const client = new QueryClient({
+ defaultOptions: { queries: { retry: false }, mutations: { retry: false } },
+ });
+ return render(
+
+
+ ,
+ );
+}
+
+describe("ArchitectureWorkbench", () => {
+ it("prepares the analysis and keeps building disabled until every shard is published", async () => {
+ const prepare = vi
+ .spyOn(api, "architecturePrepare")
+ .mockResolvedValue(shards("queued", false));
+ mount({ status: shards("not_started", false), latest: null });
+ expect(
+ await screen.findByText(/12 analyzable files in 1 shard; not started/),
+ ).toBeInTheDocument();
+ expect(screen.getByRole("button", { name: "Build report" })).toBeDisabled();
+ fireEvent.click(screen.getByRole("button", { name: "Prepare analysis" }));
+ await waitFor(() =>
+ expect(prepare).toHaveBeenCalledWith(repo, snapshot, "csrf-token"),
+ );
+ expect(await screen.findByText(/0 published/)).toBeInTheDocument();
+ expect(
+ screen.getByRole("button", { name: "Continue analysis" }),
+ ).toBeInTheDocument();
+ });
+
+ it("builds once with a stable key and explains a pending refusal", async () => {
+ const build = vi
+ .spyOn(api, "architectureBuild")
+ .mockRejectedValue(new ApiError(409, "report_inputs_pending"));
+ mount({ status: shards("succeeded", true), latest: null });
+ const button = await screen.findByRole("button", { name: "Build report" });
+ await waitFor(() => expect(button).toBeEnabled());
+ fireEvent.click(button);
+ await waitFor(() => expect(build).toHaveBeenCalledTimes(1));
+ expect(build.mock.calls[0]?.[2]).toBe("csrf-token");
+ expect(await screen.findByRole("alert")).toHaveTextContent(/still running/);
+ });
+
+ it("shows typed statements, evidence, tables and a loud partial-coverage banner", async () => {
+ mount({ status: shards("succeeded", true), latest: ref });
+ const overview = await screen.findByRole("region", { name: "Overview" });
+ const items = within(overview).getAllByRole("listitem");
+ expect(items[0]).toHaveTextContent("Derived");
+ expect(items[0]).toHaveTextContent("10 source files were analyzed.");
+ expect(items[1]).toHaveTextContent("Inferred");
+ expect(items[1]).toHaveTextContent(
+ "Flask appears to be used (imported by 4 files).",
+ );
+ expect(items[1]).toHaveTextContent("app/web.py:7");
+ expect(items[1]).toHaveTextContent("and 2 more");
+ expect(
+ within(overview).getByRole("table", { name: "languages" }),
+ ).toHaveTextContent("python");
+ expect(
+ within(overview).getByText("2 more rows not shown."),
+ ).toBeInTheDocument();
+ expect(screen.getByRole("alert")).toHaveTextContent(
+ "Partial coverage: 10 of 12 eligible files",
+ );
+ const coverage = screen.getByRole("region", {
+ name: "Coverage and limitations",
+ });
+ expect(coverage).toHaveTextContent("Unknown");
+ expect(coverage).toHaveTextContent("Package manifests are not parsed.");
+ expect(
+ screen.getByRole("link", { name: "Export Markdown" }),
+ ).toHaveAttribute(
+ "href",
+ expect.stringContaining(`/architecture-reports/${reportId}/markdown`),
+ );
+ const sections = screen
+ .getAllByRole("heading", { level: 3 })
+ .map((h) => h.textContent);
+ expect(sections.indexOf("Overview")).toBeLessThan(
+ sections.indexOf("Coverage and limitations"),
+ );
+ const drawing = await screen.findByRole("img", {
+ name: "Component dependency graph",
+ });
+ expect(drawing).toBeInTheDocument();
+ });
+});
+
+describe("statementText", () => {
+ it("fills parameters, marks missing ones and falls back for unknown codes", () => {
+ const base = {
+ kind: "derivation" as const,
+ params: { a: 1 },
+ evidence: [],
+ };
+ expect(statementText({ x: "n={a} m={b}" }, { ...base, code: "x" })).toBe(
+ "n=1 m=?",
+ );
+ expect(statementText({}, { ...base, code: "nope.code" })).toBe(
+ "nope.code (a=1)",
+ );
+ expect(
+ statementText(undefined, { ...base, code: "plain", params: {} }),
+ ).toBe("plain");
+ });
+});
diff --git a/frontend/src/features/architecture/ArchitectureWorkbench.tsx b/frontend/src/features/architecture/ArchitectureWorkbench.tsx
new file mode 100644
index 0000000..41a96de
--- /dev/null
+++ b/frontend/src/features/architecture/ArchitectureWorkbench.tsx
@@ -0,0 +1,335 @@
+import { useRef } from "react";
+import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
+import { api, ApiError } from "../../api/client";
+import type {
+ RepositoryReportV1,
+ SectionV1,
+ TableV1,
+} from "../../api/generated/types.gen";
+import { Button } from "../../ui/Button";
+import { InlineNotice } from "../../ui/InlineNotice";
+import { Panel } from "../../ui/Panel";
+import { StatusBadge } from "../../ui/StatusBadge";
+import { ComponentGraph } from "./ComponentGraph";
+import {
+ KIND_LABEL,
+ KIND_TONE,
+ locationOf,
+ statementText,
+ type Templates,
+} from "./statementText";
+
+interface Props {
+ repositoryId: string;
+ snapshotId: string;
+ csrfToken: string;
+}
+
+const TITLE: Record = {
+ overview: "Overview",
+ components: "Components",
+ dependencies: "Dependencies",
+ api_surface: "API surface",
+ data_model: "Data model",
+ configuration: "Configuration",
+ entry_points: "Entry points",
+ coverage: "Coverage and limitations",
+};
+const ORDER = Object.keys(TITLE);
+
+export function ArchitectureWorkbench(props: Props) {
+ return (
+
+ );
+}
+
+function problem(error: unknown): string {
+ if (error instanceof ApiError) {
+ if (error.code === "report_inputs_pending")
+ return "Some analysis shards are still running. Build the report when every shard has finished.";
+ if (error.code === "analysis_unavailable")
+ return "Analysis is not available in this deployment.";
+ return `Request failed (${error.code}).`;
+ }
+ return "Request failed.";
+}
+
+function ArchitectureWorkbenchState({
+ repositoryId,
+ snapshotId,
+ csrfToken,
+}: Props) {
+ const queryClient = useQueryClient();
+ const buildKey = useRef(null);
+ const scope = [repositoryId, snapshotId];
+ const status = useQuery({
+ queryKey: ["architecture-status", ...scope],
+ queryFn: () => api.architectureStatus(repositoryId, snapshotId),
+ refetchInterval: (query) => {
+ const data = query.state.data;
+ const started = data?.shards?.some((s) => s.state !== "not_started");
+ return started && !data?.ready ? 4000 : false;
+ },
+ });
+ const latest = useQuery({
+ queryKey: ["architecture-latest", ...scope],
+ queryFn: () => api.architectureLatest(repositoryId, snapshotId),
+ });
+ const reportId = latest.data?.id;
+ const report = useQuery({
+ queryKey: ["architecture-report", ...scope, reportId],
+ queryFn: () => api.architectureReport(repositoryId, snapshotId, reportId!),
+ enabled: Boolean(reportId),
+ });
+ const graph = useQuery({
+ queryKey: ["architecture-graph", ...scope, reportId],
+ queryFn: () => api.architectureGraph(repositoryId, snapshotId, reportId!),
+ enabled: Boolean(reportId),
+ });
+ const templates = useQuery({
+ queryKey: ["architecture-templates"],
+ queryFn: () => api.architectureTemplates(),
+ staleTime: Infinity,
+ });
+ const prepare = useMutation({
+ mutationFn: () =>
+ api.architecturePrepare(repositoryId, snapshotId, csrfToken),
+ onSuccess: (data) =>
+ queryClient.setQueryData(["architecture-status", ...scope], data),
+ });
+ const build = useMutation({
+ mutationFn: () => {
+ buildKey.current ??= crypto.randomUUID();
+ return api.architectureBuild(
+ repositoryId,
+ snapshotId,
+ csrfToken,
+ buildKey.current,
+ );
+ },
+ onSettled: () => {
+ buildKey.current = null;
+ void queryClient.invalidateQueries({
+ queryKey: ["architecture-latest", ...scope],
+ });
+ },
+ });
+ const shards = status.data?.shards ?? [];
+ const started = shards.some((s) => s.state !== "not_started");
+ const finished = shards.filter(
+ (s) => s.state === "succeeded" || s.state === "partial",
+ );
+ return (
+
+ Export Markdown
+
+ ) : undefined
+ }
+ >
+
+ An evidence-first report built from this snapshot's source facts.
+ Every statement is labelled observed, derived, inferred or unknown.
+
+ {status.isError && (
+ {problem(status.error)}
+ )}
+ {status.data && (
+
+
+ {status.data.total_files} analyzable files in {shards.length}{" "}
+ {shards.length === 1 ? "shard" : "shards"}
+ {started ? `; ${finished.length} published` : "; not started"}.
+ {status.data.skipped_files > 0 &&
+ ` ${status.data.skipped_files} files cannot be selected and are not covered.`}
+
+ {started && shards.length > 1 && (
+
+
+
+ | Shard |
+ Files |
+ State |
+
+
+
+ {shards.map((s) => (
+
+ | {s.index + 1} |
+ {s.files} |
+ {s.state.replaceAll("_", " ")} |
+
+ ))}
+
+
+ )}
+
+ )}
+
+
+
+
+ {(prepare.isError || build.isError) && (
+
+ {problem(prepare.error ?? build.error)}
+
+ )}
+ {report.data && (
+
+ )}
+
+ );
+}
+
+function ReportView({
+ report,
+ templates,
+ graph,
+}: {
+ report: RepositoryReportV1;
+ templates: Templates | undefined;
+ graph: Parameters[0]["graph"] | undefined;
+}) {
+ const cov = report.coverage;
+ const complete =
+ cov.analyzed_files === cov.eligible_files && cov.omitted_files === 0;
+ const sections = [...report.sections].sort(
+ (a, b) => ORDER.indexOf(a.name) - ORDER.indexOf(b.name),
+ );
+ const components = report.sections
+ .find((s) => s.name === "components")
+ ?.tables?.find((t) => t.name === "components");
+ const layers = new Map();
+ const counts = new Map();
+ for (const row of components?.rows ?? []) {
+ counts.set(String(row[0]), Number(row[1]));
+ if (Number(row[5]) >= 0) layers.set(String(row[0]), Number(row[5]));
+ }
+ return (
+
+ {!complete && (
+
+ Partial coverage: {cov.analyzed_files} of {cov.eligible_files}{" "}
+ eligible files were analyzed. Everything below describes only those
+ files.
+
+ )}
+ {sections.map((section) => (
+
+ ))}
+ {graph && layers.size > 0 && (
+
+ )}
+
+ );
+}
+
+function SectionView({
+ section,
+ templates,
+}: {
+ section: SectionV1;
+ templates: Templates | undefined;
+}) {
+ return (
+
+
+ {TITLE[section.name] ?? section.name}
+
+
+ {(section.statements ?? []).map((statement, index) => {
+ const evidence = statement.evidence ?? [];
+ const total = statement.evidence_total ?? evidence.length;
+ return (
+ -
+
+ {KIND_LABEL[statement.kind]}
+ {" "}
+ {statementText(templates, statement)}
+ {evidence.length > 0 && (
+
+ {" "}
+ (evidence:{" "}
+ {evidence.slice(0, 3).map((ref, i) => (
+
+ {i > 0 ? ", " : ""}
+ {locationOf(ref)}
+
+ ))}
+ {total > 3 ? ` and ${total - 3} more` : ""})
+
+ )}
+
+ );
+ })}
+
+ {(section.tables ?? []).map((table) => (
+
+ ))}
+
+ );
+}
+
+function ReportTable({ table }: { table: TableV1 }) {
+ const rows = table.rows ?? [];
+ if (rows.length === 0) return null;
+ const hidden = (table.rows_total ?? rows.length) - rows.length;
+ return (
+
+
+
+
+ {table.columns.map((c) => (
+ | {c.replaceAll("_", " ")} |
+ ))}
+
+
+
+ {rows.map((row, i) => (
+
+ {row.map((cell, j) => (
+ | {String(cell)} |
+ ))}
+
+ ))}
+
+
+ {hidden > 0 &&
{hidden} more rows not shown.
}
+
+ );
+}
diff --git a/frontend/src/features/architecture/ComponentGraph.tsx b/frontend/src/features/architecture/ComponentGraph.tsx
new file mode 100644
index 0000000..0576c59
--- /dev/null
+++ b/frontend/src/features/architecture/ComponentGraph.tsx
@@ -0,0 +1,105 @@
+import type { ArchitectureGraphPageV1 } from "../../api/generated/types.gen";
+
+interface Props {
+ /** Component name -> layer (0 is the top: it imports, and is not imported by, the layers below). */
+ layers: ReadonlyMap;
+ graph: ArchitectureGraphPageV1;
+ fileCounts: ReadonlyMap;
+}
+
+const W = 720;
+const ROW = 84;
+const BOX_W = 150;
+const BOX_H = 34;
+
+/** A layered SVG of component-to-component import counts (resolved edges only). */
+export function ComponentGraph({ layers, graph, fileCounts }: Props) {
+ const groupOf = new Map();
+ for (const node of graph.nodes)
+ if (node.group) groupOf.set(node.id, node.group);
+ const edges = new Map();
+ for (const link of graph.links) {
+ if (link.resolution !== "resolved") continue;
+ const a = groupOf.get(link.source);
+ const b = groupOf.get(link.target);
+ if (a && b && a !== b)
+ edges.set(`${a}\u0000${b}`, (edges.get(`${a}\u0000${b}`) ?? 0) + 1);
+ }
+ const rows = new Map();
+ for (const [name, layer] of layers)
+ rows.set(layer, [...(rows.get(layer) ?? []), name].sort());
+ const ordered = [...rows.entries()].sort(([a], [b]) => a - b);
+ if (ordered.length === 0)
+ return No component structure to draw.
;
+ const position = new Map();
+ ordered.forEach(([, names], row) =>
+ names.forEach((name, i) =>
+ position.set(name, {
+ x: ((i + 1) * W) / (names.length + 1),
+ y: 24 + row * ROW + BOX_H / 2,
+ }),
+ ),
+ );
+ const height = 48 + ordered.length * ROW;
+ const incomplete = graph.links_total > graph.links.length;
+ return (
+
+
+
+ Arrows point from the importing component to the imported one; width
+ grows with the number of resolved imports.
+ {incomplete &&
+ ` Showing ${graph.links.length} of ${graph.links_total} links.`}
+
+
+ );
+}
diff --git a/frontend/src/features/architecture/statementText.ts b/frontend/src/features/architecture/statementText.ts
new file mode 100644
index 0000000..3f451ba
--- /dev/null
+++ b/frontend/src/features/architecture/statementText.ts
@@ -0,0 +1,46 @@
+import type { StatementV1 } from "../../api/generated/types.gen";
+
+export type Templates = Record;
+
+/** Render a typed statement from the server's templates; unknown codes fall back to code and params. */
+export function statementText(
+ templates: Templates | undefined,
+ statement: StatementV1,
+): string {
+ const params = statement.params ?? {};
+ const template = templates?.[statement.code];
+ if (template === undefined) {
+ const pairs = Object.entries(params)
+ .sort(([a], [b]) => a.localeCompare(b))
+ .map(([key, value]) => `${key}=${String(value)}`)
+ .join(", ");
+ return pairs ? `${statement.code} (${pairs})` : statement.code;
+ }
+ return template.replace(/\{(\w+)\}/g, (_match, name: string) =>
+ name in params ? String(params[name]) : "?",
+ );
+}
+
+export const KIND_LABEL: Record = {
+ observation: "Observed",
+ derivation: "Derived",
+ inference: "Inferred",
+ unknown: "Unknown",
+};
+
+export const KIND_TONE: Record<
+ StatementV1["kind"],
+ "neutral" | "success" | "warning" | "danger"
+> = {
+ observation: "success",
+ derivation: "neutral",
+ inference: "warning",
+ unknown: "danger",
+};
+
+export function locationOf(ref: {
+ path: string;
+ range?: { start_line: number } | null;
+}): string {
+ return ref.range ? `${ref.path}:${ref.range.start_line}` : ref.path;
+}
From 4ad027c60d5ef892e81088c52e73b83a216a9d72 Mon Sep 17 00:00:00 2001
From: Aman Bhaskar
Date: Fri, 13 Nov 2026 07:02:13 +0530
Subject: [PATCH 18/55] feat(report): corpus evaluation with measured floors
and acceptance record
---
.../tests/corpus/test_architecture_corpus.py | 74 +++++++++++
docs/acceptance/architecture-report.md | 93 +++++++++++++
evals/ast/corpus.json | 82 +++++++++++-
evals/ast/fetch.py | 4 +-
evals/ast/report_eval.py | 125 ++++++++++++++++++
evals/ast/runner.py | 18 +--
6 files changed, 379 insertions(+), 17 deletions(-)
create mode 100644 backend/tests/corpus/test_architecture_corpus.py
create mode 100644 docs/acceptance/architecture-report.md
create mode 100644 evals/ast/report_eval.py
diff --git a/backend/tests/corpus/test_architecture_corpus.py b/backend/tests/corpus/test_architecture_corpus.py
new file mode 100644
index 0000000..8025fe4
--- /dev/null
+++ b/backend/tests/corpus/test_architecture_corpus.py
@@ -0,0 +1,74 @@
+# ruff: noqa: E501
+"""Architecture report over the pinned corpus: floors, determinism and an offline harness check."""
+
+import os
+
+import pytest
+from evals.ast import fetch, report_eval
+
+from tests.corpus.test_ast_corpus import synthetic_archive
+
+
+def comparable(result):
+ return {k: v for k, v in result.items() if k not in {"seconds", "digest"}}
+
+
+def test_the_report_harness_measures_a_generated_archive_deterministically(tmp_path):
+ archive = tmp_path / "x.zip"
+ synthetic_archive(archive)
+ first = report_eval.measure_report("o/r", "a" * 40, archive)
+ second = report_eval.measure_report("o/r", "a" * 40, archive)
+ assert comparable(first) == comparable(second)
+ assert first["files"] == 3 and first["sections"] == report_eval.SECTIONS
+ assert first["analytics"] == "complete" and first["shards"] == 1
+
+
+def test_floor_checks_report_every_violation():
+ result = {
+ "name": "o/r", "sections": 7, "analytics": "wall", "resolved": 1, "unresolved_permille": 500,
+ "ambiguous_permille": 0, "components": 1, "report_kib": 900, "seconds": 9.0,
+ } # fmt: skip
+ manifest = {
+ "repos": [
+ {
+ "name": "o/r",
+ "report_floors": {
+ "min_resolved": 5,
+ "max_unresolved_permille": 100,
+ "max_report_kib": 100,
+ "max_seconds": 5.0,
+ },
+ }
+ ]
+ }
+ problems = report_eval.check_report([result], manifest)
+ assert len(problems) == 6 and any("expected 8 sections" in p for p in problems)
+ passing = {
+ **result,
+ "sections": 8,
+ "analytics": "complete",
+ "resolved": 9,
+ "unresolved_permille": 1,
+ "report_kib": 5,
+ "seconds": 0.1,
+ }
+ assert report_eval.check_report([passing], manifest) == []
+
+
+def test_every_pinned_repository_has_report_floors():
+ for repo in fetch.load()["repos"]:
+ assert {"min_resolved", "max_unresolved_permille", "max_report_kib"} <= set(
+ repo["report_floors"]
+ )
+
+
+@pytest.mark.live
+@pytest.mark.skipif(os.environ.get("CODESPY_LIVE_CORPUS") != "1", reason="live GitHub access")
+def test_pinned_corpus_reports_meet_their_floors():
+ import asyncio
+
+ fetched = asyncio.run(fetch.fetch())
+ results = [report_eval.measure_report(n, c, p) for n, c, p, _ in fetched]
+ assert report_eval.check_report(results, fetch.load()) == []
+ again = report_eval.measure_report(*fetched[0][:3])
+ assert comparable(again) == comparable(results[0])
diff --git a/docs/acceptance/architecture-report.md b/docs/acceptance/architecture-report.md
new file mode 100644
index 0000000..2bab595
--- /dev/null
+++ b/docs/acceptance/architecture-report.md
@@ -0,0 +1,93 @@
+# Architecture report
+
+An evidence-first architecture report is built from the published AST facts of a snapshot and stored
+immutably. It has no model in the loop: every number and statement is computed from facts, every
+statement is typed, and what the facts cannot settle is stated as unknown.
+
+## Implemented boundary
+
+- **Typed statements.** Observation (read from a fact, evidence required), derivation (computed
+ mechanically), inference (a judgment such as "uses Flask" or "looks like an entry point") and unknown
+ (unresolved or ambiguous imports, partial files, truncated coverage, fixed limitations). A statement
+ is a template code plus scalar parameters with evidence references (file and range); no source value
+ or quote can appear. Text is rendered from `GET /api/v1/architecture-report-templates`, so the
+ server owns the wording.
+- **Dependency graph** (`analyzers/graph/`). Per-language resolution of every import fact against the
+ analyzed paths for Python, JavaScript/TypeScript, Go, Java, Rust, C/C++, Ruby, PHP and Swift. An edge
+ is resolved, ambiguous (all candidates kept), external (standard library or third party) or
+ unresolved (may be internal but cannot be located). Go and Swift imports target package nodes
+ (directories). Python resolves only when one file matches, or one sits beside the importer.
+- **Analytics.** From resolved edges only: file import cycles and component cycles, most-imported and
+ most-importing files, directory-based components (single-child chains collapsed, at most 40),
+ layers from the component condensation, entry-point candidates and external packages. Bounded
+ computations report when they stop early.
+- **Sections.** overview, components, dependencies, API surface, data model, configuration (names only),
+ entry points, and coverage and limitations. A Markdown renderer and a D3-shaped nodes-and-links
+ payload (paged) are served from the same stored document.
+- **Coverage coordinator.** One AST-facts analysis reads at most 128 files, 16 MiB and 16 include
+ prefixes. `POST .../architecture-reports/prepare` plans disjoint shards (a pure function of the
+ inventory; every analyzable path in exactly one shard) and creates one existing analysis per shard,
+ at most eight per call and within the organization's pending-job quota (call again for the rest).
+ `GET .../prepare` aggregates shard status.
+- **Storage.** Migration `0048_architecture_reports` adds an immutable table. The insert guard requires
+ every cited run to be a published AST-facts analysis of the same snapshot, no file in two runs, the
+ inputs digest recomputed from the stored facts rows to match, and the document to agree with its
+ columns. One report per (repository, snapshot, inputs digest); updates and deletes are rejected.
+- **Routes** (all tenant-scoped through the repository authorization): `POST .../prepare`,
+ `GET .../prepare`, `POST .../architecture-reports` (builds once every shard is published, else 409
+ `report_inputs_pending`), `GET .../latest`, `GET .../{id}`, `/markdown`, `/graph?offset&limit`,
+ `/sections/{name}`.
+- **Viewer.** The structural pane shows prepare and shard status, a build button, a partial-coverage
+ banner, typed statements with evidence locations, tables, Markdown export and a layered SVG of
+ component-to-component import counts. No new frontend dependency.
+
+## Limitations
+
+- Resolution is syntactic. Path aliases, bundler configuration, `go.mod`, Cargo workspaces, build
+ classpaths and Swift package manifests are not read; such imports are unresolved, ambiguous or
+ external, never guessed. Swift imports of the repository's own module therefore read as external
+ (Alamofire: 0 resolved of 191).
+- Rust `mod x;` declarations and inline modules are not import facts, so Rust edges come from `use`
+ paths only (anyhow: 7 of 34 internal imports unresolved).
+- Component boundaries are a directory-based heuristic. Package manifests are not parsed: the stack is
+ inferred from imports and framework facts.
+- The model-written narrative (component analysis and synthesis) is not built; it needs the Bedrock
+ runtime composed and qualified, and will attach to the report as inference unless verified.
+- The coordinator relies on the existing analysis runtime; a large snapshot needs several shard jobs
+ and the organization's pending-job quota (default 20) bounds how many exist at once.
+- No retry or rebuild route: building again from the same facts returns the same report.
+
+## Verification
+
+Owned disposable PostgreSQL 16 at schema head:
+
+- **Unit:** contracts (typed statements, closed graphs, bounded documents), per-language resolution
+ golden tests over real extracted facts, graph analytics, report assembly (typed statements, unknowns,
+ no source value in the report, Markdown or graph, determinism, every emitted code has a template),
+ shard plans (exactly-once coverage, 128 files, 16 prefixes, 15 MiB, determinism).
+- **PostgreSQL:** prepare idempotent and quota-aware; build refused until every shard is published; one
+ immutable report per inputs; the guard refuses missing runs, altered digests, document/column
+ disagreement and duplicates; tenant isolation; HTTP flow with CSRF, key mismatch, 409, 404 and the
+ section, graph and Markdown routes.
+- **Frontend:** 76 tests including the viewer (prepare, build, refusal text, typed statements,
+ evidence, partial-coverage banner, component graph).
+- **Corpus** (`evals/ast/report_eval.py`, live marker, measured 2026-11-13, floors in `corpus.json`):
+
+| Repository | Files | Resolved | Ambiguous | External | Unresolved | Components | File cycles | Report | Shards |
+|---|---:|---:|---:|---:|---:|---:|---:|---:|---:|
+| pallets/flask | 83 | 256 | 77 | 291 | 5 | 6 | 2 | 266 KiB | 1 |
+| expressjs/express | 142 | 160 | 0 | 245 | 0 | 30 | 0 | 180 KiB | 2 |
+| gin-gonic/gin | 99 | 31 | 0 | 490 | 0 | 7 | 0 | 210 KiB | 1 |
+| spring-projects/spring-petclinic | 50 | 24 | 0 | 451 | 0 | 6 | 0 | 269 KiB | 1 |
+| dtolnay/anyhow | 37 | 27 | 0 | 98 | 7 | 7 | 1 | 58 KiB | 1 |
+| antirez/kilo | 1 | 0 | 0 | 15 | 0 | 1 | 0 | 10 KiB | 1 |
+| gabime/spdlog | 154 | 446 | 0 | 380 | 2 | 11 | 21 | 366 KiB | 2 |
+| sinatra/sinatra | 147 | 130 | 0 | 62 | 0 | 8 | 0 | 110 KiB | 2 |
+| slimphp/Slim | 72 | 112 | 0 | 242 | 0 | 8 | 1 | 170 KiB | 1 |
+| Alamofire/Alamofire | 111 | 0 | 0 | 191 | 0 | 9 | 0 | 102 KiB | 1 |
+
+ Every report built in 0.11 s or less. Running the corpus found three resolver defects now fixed with
+ regression tests: Java treated a framework's shared directory prefix as internal, Go missed a
+ module's root package, and a test fixture named like a library captured every importer in Python.
+- **Regression:** the retrieval, job, accounting, memory, investigation, AST and model suites show the
+ same 42 failures as the unchanged base branch (all pre-existing).
diff --git a/evals/ast/corpus.json b/evals/ast/corpus.json
index efe3d78..0bd8f17 100644
--- a/evals/ast/corpus.json
+++ b/evals/ast/corpus.json
@@ -1,6 +1,6 @@
{
"version": 1,
- "note": "Public repositories pinned by full commit SHA; archives are never vendored. Floors are ~5-20% below a measured run (2026-11-12) so a regression fails but noise does not. Re-measure with `scripts/ast_corpus.py run` and review before changing a floor.",
+ "note": "Public repositories pinned by full commit SHA; archives are never vendored. Floors are ~5-20% below a measured run (2026-11-12) so a regression fails but noise does not. Re-measure with `scripts/ast_corpus.py run` and review before changing a floor. Report floors (report_floors) were measured on 2026-11-13 and sit 20-50% inside the measured values.",
"repos": [
{
"name": "pallets/flask",
@@ -13,6 +13,14 @@
"min_symbols": 812,
"min_routes": 32,
"min_models": 0
+ },
+ "report_floors": {
+ "min_resolved": 204,
+ "max_unresolved_permille": 40,
+ "max_ambiguous_permille": 351,
+ "min_components": 4,
+ "max_report_kib": 409,
+ "max_seconds": 5.0
}
},
{
@@ -26,6 +34,14 @@
"min_symbols": 44,
"min_routes": 0,
"min_models": 0
+ },
+ "report_floors": {
+ "min_resolved": 128,
+ "max_unresolved_permille": 40,
+ "max_ambiguous_permille": 50,
+ "min_components": 21,
+ "max_report_kib": 280,
+ "max_seconds": 5.0
}
},
{
@@ -39,6 +55,14 @@
"min_symbols": 1615,
"min_routes": 10,
"min_models": 0
+ },
+ "report_floors": {
+ "min_resolved": 24,
+ "max_unresolved_permille": 40,
+ "max_ambiguous_permille": 50,
+ "min_components": 4,
+ "max_report_kib": 325,
+ "max_seconds": 5.0
}
},
{
@@ -52,6 +76,14 @@
"min_symbols": 258,
"min_routes": 13,
"min_models": 7
+ },
+ "report_floors": {
+ "min_resolved": 19,
+ "max_unresolved_permille": 40,
+ "max_ambiguous_permille": 50,
+ "min_components": 4,
+ "max_report_kib": 414,
+ "max_seconds": 5.0
}
},
{
@@ -65,6 +97,14 @@
"min_symbols": 302,
"min_routes": 0,
"min_models": 0
+ },
+ "report_floors": {
+ "min_resolved": 21,
+ "max_unresolved_permille": 318,
+ "max_ambiguous_permille": 50,
+ "min_components": 4,
+ "max_report_kib": 97,
+ "max_seconds": 5.0
}
},
{
@@ -78,6 +118,14 @@
"min_symbols": 92,
"min_routes": 0,
"min_models": 0
+ },
+ "report_floors": {
+ "min_resolved": 0,
+ "max_unresolved_permille": 40,
+ "max_ambiguous_permille": 50,
+ "min_components": 1,
+ "max_report_kib": 25,
+ "max_seconds": 5.0
}
},
{
@@ -91,6 +139,14 @@
"min_symbols": 1711,
"min_routes": 0,
"min_models": 0
+ },
+ "report_floors": {
+ "min_resolved": 356,
+ "max_unresolved_permille": 40,
+ "max_ambiguous_permille": 50,
+ "min_components": 7,
+ "max_report_kib": 559,
+ "max_seconds": 5.0
}
},
{
@@ -104,6 +160,14 @@
"min_symbols": 799,
"min_routes": 0,
"min_models": 0
+ },
+ "report_floors": {
+ "min_resolved": 104,
+ "max_unresolved_permille": 40,
+ "max_ambiguous_permille": 50,
+ "min_components": 5,
+ "max_report_kib": 175,
+ "max_seconds": 5.0
}
},
{
@@ -117,6 +181,14 @@
"min_symbols": 452,
"min_routes": 0,
"min_models": 0
+ },
+ "report_floors": {
+ "min_resolved": 89,
+ "max_unresolved_permille": 40,
+ "max_ambiguous_permille": 50,
+ "min_components": 5,
+ "max_report_kib": 265,
+ "max_seconds": 5.0
}
},
{
@@ -130,6 +202,14 @@
"min_symbols": 2939,
"min_routes": 0,
"min_models": 0
+ },
+ "report_floors": {
+ "min_resolved": 0,
+ "max_unresolved_permille": 40,
+ "max_ambiguous_permille": 50,
+ "min_components": 6,
+ "max_report_kib": 163,
+ "max_seconds": 5.0
}
}
]
diff --git a/evals/ast/fetch.py b/evals/ast/fetch.py
index 5c20f5a..b21bb22 100644
--- a/evals/ast/fetch.py
+++ b/evals/ast/fetch.py
@@ -67,7 +67,5 @@ async def fetch() -> list[tuple[str, str, Path, str]]:
handle.write(block)
tmp.rename(path)
print("downloaded", name, path.stat().st_size)
- out.append(
- (name, commit, path, hashlib.sha256(path.read_bytes()).hexdigest())
- )
+ out.append((name, commit, path, hashlib.sha256(path.read_bytes()).hexdigest()))
return out
diff --git a/evals/ast/report_eval.py b/evals/ast/report_eval.py
new file mode 100644
index 0000000..8da6aff
--- /dev/null
+++ b/evals/ast/report_eval.py
@@ -0,0 +1,125 @@
+"""Measure the architecture report over the pinned corpus: resolution quality, structure, cost.
+
+Facts are extracted in-process over every eligible file (the production 128-file cap is the shard
+planner's concern, measured separately), then the same assembly the service uses builds the report.
+Floors in ``corpus.json`` (``report_floors``) fail a run that regresses resolution or growth.
+"""
+
+import io
+import time
+import zipfile
+from pathlib import Path
+from typing import Any
+from uuid import uuid4
+
+from app.admission.zip_inventory import inspect_zip_bytes
+from app.analyzers.facts import FACT_LANGUAGES, extract_facts
+from app.analyzers.graph import FileEntry
+from app.analyzers.graph.analytics import analyze
+from app.analyzers.graph.render import render_markdown
+from app.analyzers.graph.report import assemble_report
+from app.analyzers.graph.shards import plan_shards
+from app.analyzers.registry import FACT_DIALECTS
+from app.contracts.ingestion import AdmissionPolicyV3
+from app.contracts.structure import AnalysisBudget, SourceUnitV1
+
+SECTIONS = 8
+
+
+def load_entries(path: Path) -> tuple[list[FileEntry], list[str], dict[str, int]]:
+ data = path.read_bytes()
+ manifest = inspect_zip_bytes(data, AdmissionPolicyV3(github_strip_root=True))
+ known = {e.path: e for e in manifest.entries}
+ budget = AnalysisBudget(wall_seconds=3600.0, max_syntax_nodes=10**9)
+ entries: list[FileEntry] = []
+ inventory: list[str] = []
+ sizes: dict[str, int] = {}
+ with zipfile.ZipFile(io.BytesIO(data)) as archive:
+ for info in archive.infolist():
+ if info.is_dir() or "/" not in info.filename:
+ continue
+ rel = info.filename.split("/", 1)[1]
+ entry = known.get(rel)
+ if entry is None or not entry.eligible:
+ continue
+ inventory.append(rel)
+ language = FACT_DIALECTS.get(Path(rel).suffix.casefold())
+ if language not in FACT_LANGUAGES:
+ continue
+ raw = archive.read(info)
+ sizes[rel] = len(raw)
+ unit = SourceUnitV1(
+ file_id=uuid4(), path=rel, sha256=entry.sha256, data=raw, language=language
+ )
+ entries.append(FileEntry(unit.file_id, rel, language, extract_facts(unit, budget)))
+ return entries, inventory, sizes
+
+
+def measure_report(name: str, commit: str, path: Path) -> dict[str, Any]:
+ entries, inventory, sizes = load_entries(path)
+ ids = (uuid4(), uuid4(), uuid4())
+ started = time.perf_counter()
+ report = assemble_report(
+ org_id=ids[0],
+ repository_id=ids[1],
+ snapshot_id=ids[2],
+ files=entries,
+ inventory=inventory,
+ eligible_files=len(entries),
+ omitted_files=0,
+ fact_runs=(uuid4(),),
+ )
+ seconds = time.perf_counter() - started
+ counts = report.graph.counts()
+ internal = counts["resolved"] + counts["ambiguous"] + counts["unresolved"]
+ analytics = analyze(report.graph)
+ plan = plan_shards(sizes)
+ return {
+ "name": name,
+ "commit": commit,
+ "files": len(entries),
+ "edges": sum(counts.values()),
+ "resolved": counts["resolved"],
+ "ambiguous": counts["ambiguous"],
+ "external": counts["external"],
+ "unresolved": counts["unresolved"],
+ "unresolved_permille": 1000 * counts["unresolved"] // max(1, internal),
+ "ambiguous_permille": 1000 * counts["ambiguous"] // max(1, internal),
+ "components": len(analytics.components),
+ "file_cycles": len(analytics.file_cycles),
+ "component_cycles": len(analytics.component_cycles),
+ "sections": len(report.sections),
+ "report_kib": report.size_bytes() // 1024,
+ "markdown_kib": len(render_markdown(report)) // 1024,
+ "seconds": round(seconds, 3),
+ "shards": len(plan.shards),
+ "digest": report.digest(),
+ "analytics": analytics.disposition,
+ }
+
+
+def check_report(results: list[dict[str, Any]], manifest: dict[str, Any]) -> list[str]:
+ floors = {r["name"]: r.get("report_floors", {}) for r in manifest["repos"]}
+ problems = []
+ for result in results:
+ name, expected = result["name"], floors.get(result["name"], {})
+ if result["sections"] != SECTIONS:
+ problems.append(f"{name}: expected {SECTIONS} sections, got {result['sections']}")
+ if result["analytics"] != "complete":
+ problems.append(f"{name}: analytics stopped early ({result['analytics']})")
+ limits = {
+ "min_resolved": ("resolved", 1),
+ "max_unresolved_permille": ("unresolved_permille", -1),
+ "max_ambiguous_permille": ("ambiguous_permille", -1),
+ "min_components": ("components", 1),
+ "max_report_kib": ("report_kib", -1),
+ "max_seconds": ("seconds", -1),
+ }
+ for key, (metric, direction) in limits.items():
+ if key in expected:
+ value = result[metric]
+ if (direction > 0 and value < expected[key]) or (
+ direction < 0 and value > expected[key]
+ ):
+ problems.append(f"{name}: {metric} {value} violates {key} {expected[key]}")
+ return problems
diff --git a/evals/ast/runner.py b/evals/ast/runner.py
index 3b10350..b6688ee 100644
--- a/evals/ast/runner.py
+++ b/evals/ast/runner.py
@@ -58,11 +58,9 @@ def measure(name: str, commit: str, path: Path) -> dict[str, Any]:
started = time.perf_counter()
try:
result = extract_facts(unit, budget)
- except Exception as error: # noqa: BLE001 -- a crash is a result, not a reason to stop the corpus
+ except Exception as error:
statuses["failed"] += 1
- errors.append(
- {"path": rel, "error": f"{type(error).__name__}: {error}"[:200]}
- )
+ errors.append({"path": rel, "error": f"{type(error).__name__}: {error}"[:200]})
continue
parse_seconds += time.perf_counter() - started
parsed_bytes += len(raw)
@@ -80,9 +78,7 @@ def measure(name: str, commit: str, path: Path) -> dict[str, Any]:
"eligible_fact_files": eligible_fact_files,
"languages": dict(languages),
"statuses": dict(statuses),
- "parse_success": (statuses["parsed"] + statuses["partial"]) / processed
- if processed
- else 0,
+ "parse_success": (statuses["parsed"] + statuses["partial"]) / processed if processed else 0,
"clean_parse_ratio": statuses["parsed"] / processed if processed else 0,
"error_nodes": error_nodes,
"lines": lines,
@@ -92,9 +88,7 @@ def measure(name: str, commit: str, path: Path) -> dict[str, Any]:
else {},
"parse_seconds": round(parse_seconds, 3),
"files_per_second": round(processed / parse_seconds, 1) if parse_seconds else 0,
- "mib_per_second": round(parsed_bytes / 1048576 / parse_seconds, 2)
- if parse_seconds
- else 0,
+ "mib_per_second": round(parsed_bytes / 1048576 / parse_seconds, 2) if parse_seconds else 0,
"production_coverage": round(
min(PRODUCTION_FILES, eligible_fact_files) / eligible_fact_files, 3
)
@@ -149,9 +143,7 @@ def check(report: dict[str, Any], manifest: dict[str, Any]) -> list[str]:
}
for key, floor in expected.items():
if got[key] < floor:
- problems.append(
- f"{name}: {key[4:]} {got[key]} is below the floor {floor}"
- )
+ problems.append(f"{name}: {key[4:]} {got[key]} is below the floor {floor}")
if result["failures"]:
problems.append(f"{name}: {len(result['failures'])} extraction crashes")
return problems
From 675474aac8469ae2692ea62689f518cdf321ef49 Mon Sep 17 00:00:00 2001
From: Aman Bhaskar
Date: Fri, 13 Nov 2026 07:08:02 +0530
Subject: [PATCH 19/55] fix(report): scope shard keys to the snapshot, bound
inputs, redact handlers
Shard request keys and job lookups now include the snapshot and repository, so two snapshots
with the same plan no longer share jobs. Long names and paths are clipped, oversized
repositories are refused with report_too_large, route handlers are reported only as plain
names, Markdown text is one line, and the viewer stops polling on failed shards.
---
backend/app/analyzers/graph/build.py | 5 +-
backend/app/analyzers/graph/render.py | 9 ++-
backend/app/analyzers/graph/report.py | 28 +++++++++-
backend/app/api/application.py | 18 +++++-
backend/app/contracts/architecture_report.py | 22 ++++++--
backend/app/services/architecture_reports.py | 56 +++++++++++++++----
.../test_architecture_report_service.py | 2 +-
.../phase3/unit/test_architecture_report.py | 30 ++++++++++
.../test_architecture_report_contracts.py | 6 +-
backend/tests/phase3/unit/test_shard_plan.py | 9 +++
docs/acceptance/architecture-report.md | 13 +++++
.../architecture/ArchitectureWorkbench.tsx | 11 +++-
.../features/architecture/ComponentGraph.tsx | 4 +-
13 files changed, 185 insertions(+), 28 deletions(-)
diff --git a/backend/app/analyzers/graph/build.py b/backend/app/analyzers/graph/build.py
index 079c70a..1d61b4e 100644
--- a/backend/app/analyzers/graph/build.py
+++ b/backend/app/analyzers/graph/build.py
@@ -13,6 +13,7 @@
EvidenceRefV1,
GraphEdgeV1,
GraphNodeV1,
+ ReportTooLarge,
Resolution,
)
from app.contracts.ast_facts import FileFactsV1
@@ -113,12 +114,12 @@ def edge(
edges.append(edge(None, "ambiguous", candidates))
elif outcome.resolution == "external":
family = ECOSYSTEM.get(entry.language, entry.language)
- target = ensure(f"{EXTERNAL}{family}:{outcome.external}", family)
+ target = ensure(f"{EXTERNAL}{family}:{(outcome.external or '')[:256]}", family)
edges.append(edge(target, "external"))
else:
edges.append(edge(None, "unresolved"))
if len(edges) > MAX_EDGES or len(nodes) > MAX_NODES:
- raise ValueError("dependency graph exceeds its size bound")
+ raise ReportTooLarge("dependency graph exceeds its size bound")
edges.sort(
key=lambda e: (
diff --git a/backend/app/analyzers/graph/render.py b/backend/app/analyzers/graph/render.py
index 65fd2e2..5754190 100644
--- a/backend/app/analyzers/graph/render.py
+++ b/backend/app/analyzers/graph/render.py
@@ -70,12 +70,17 @@ def __missing__(self, key: str) -> str:
return "?"
+def _clean(value: object) -> str:
+ """One line of plain text: control characters and line separators become spaces."""
+ return "".join(" " if ord(c) < 32 or c in "\x7f\u2028\u2029\x85" else c for c in str(value))
+
+
def statement_text(statement: StatementV1) -> str:
template = TEXT.get(statement.code)
if template is None:
pairs = ", ".join(f"{k}={v}" for k, v in sorted(statement.params.items()))
return f"{statement.code}" + (f" ({pairs})" if pairs else "")
- return template.format_map(_Params(statement.params))
+ return _clean(template.format_map(_Params(statement.params)))
def _location(ref: EvidenceRefV1) -> str:
@@ -83,7 +88,7 @@ def _location(ref: EvidenceRefV1) -> str:
def _cell(value: object) -> str:
- return str(value).replace("|", "\\|").replace("\n", " ")
+ return _clean(value).replace("|", "\\|")
def _table(table: TableV1) -> list[str]:
diff --git a/backend/app/analyzers/graph/report.py b/backend/app/analyzers/graph/report.py
index fc37999..bebc6b4 100644
--- a/backend/app/analyzers/graph/report.py
+++ b/backend/app/analyzers/graph/report.py
@@ -7,6 +7,7 @@
limitations) is stated as unknown. Statements carry evidence (file and range), never source text.
"""
+import re
from collections import Counter, defaultdict
from collections.abc import Iterable, Sequence
from uuid import UUID
@@ -273,7 +274,14 @@ def _api(files: Sequence[FileEntry]) -> SectionV1:
for f in files:
for r in f.facts.routes:
rows.append(
- (r.framework, r.method, _clip(r.path), _clip(r.handler), f.path, r.range.start_line)
+ (
+ r.framework,
+ r.method,
+ _route_path(r.path),
+ _handler(r.handler),
+ f.path,
+ r.range.start_line,
+ )
)
evidence.append(_ref(f, "route", r.range))
frameworks[r.framework] += 1
@@ -388,6 +396,24 @@ def _coverage(files: Sequence[FileEntry], cov: CoverageV1, a: Analytics) -> Sect
return SectionV1(name="coverage", statements=tuple(statements))
+_HANDLER = re.compile(r"^[A-Za-z_$][\w$]*(?:[.:][A-Za-z_$][\w$]*){0,6}$")
+_SECRETISH = re.compile(
+ r"(? str:
+ """A handler is reported only when it is a plain (dotted) name, never an expression."""
+ if text is None:
+ return ""
+ return text if _HANDLER.match(text) else ""
+
+
+def _route_path(text: str) -> str:
+ """Route patterns are kept, but long token-like segments are not echoed."""
+ return _clip(_SECRETISH.sub("", text))
+
+
def assemble_report(
*,
org_id: UUID,
diff --git a/backend/app/api/application.py b/backend/app/api/application.py
index 817642d..c0b1349 100644
--- a/backend/app/api/application.py
+++ b/backend/app/api/application.py
@@ -195,7 +195,11 @@
from app.security.sessions import SessionService, token_digest
from app.services import ast_reads
from app.services.analysis_sources import locate_source
-from app.services.architecture_reports import ArchitectureReportService, ReportInputsPending
+from app.services.architecture_reports import (
+ ArchitectureReportService,
+ ReportInputsPending,
+ ReportTooLarge,
+)
from app.services.configured_model_gateway import ModelConnectionError
from app.services.context_assembly import ContextAssemblyService
from app.services.dense_search import DenseSearchService, QueryEmbedder
@@ -1737,14 +1741,20 @@ def config_for(prefixes: tuple[str, ...]) -> AnalysisConfigV1:
limits=StructuralLimitsV1(),
)
- return await architecture.prepare(ctx, repository_id, snapshot_id, config_for)
+ try:
+ return await architecture.prepare(ctx, repository_id, snapshot_id, config_for)
+ except ReportTooLarge:
+ raise HTTPException(422, detail="report_too_large") from None
@app.get(reports_base + "/prepare")
async def architecture_report_status(
request: Request, repository_id: UUID, snapshot_id: UUID
) -> ArchitectureShardsV1:
ctx = await repository_context(request, repository_id)
- return await architecture.status(ctx, repository_id, snapshot_id)
+ try:
+ return await architecture.status(ctx, repository_id, snapshot_id)
+ except ReportTooLarge:
+ raise HTTPException(422, detail="report_too_large") from None
@app.post(reports_base, status_code=201)
async def build_architecture_report(
@@ -1758,6 +1768,8 @@ async def build_architecture_report(
return await architecture.build(ctx, repository_id, snapshot_id)
except ReportInputsPending:
raise HTTPException(409, detail="report_inputs_pending") from None
+ except ReportTooLarge:
+ raise HTTPException(422, detail="report_too_large") from None
@app.get(reports_base + "/latest")
async def latest_architecture_report(
diff --git a/backend/app/contracts/architecture_report.py b/backend/app/contracts/architecture_report.py
index c10fcdd..1d45bcc 100644
--- a/backend/app/contracts/architecture_report.py
+++ b/backend/app/contracts/architecture_report.py
@@ -8,10 +8,10 @@
"""
import hashlib
-from typing import Literal, Self
+from typing import Any, Literal, Self
from uuid import UUID
-from pydantic import Field, model_validator
+from pydantic import Field, field_validator, model_validator
from app.domain.canonical_json import canonical_bytes, semantic_digest
from app.domain.scope import Contract
@@ -20,6 +20,12 @@
MAX_NODES = 20_000
MAX_EDGES = 100_000
MAX_REPORT_BYTES = 8 * 1024 * 1024
+MAX_FACT_RUNS = 64
+
+
+class ReportTooLarge(ValueError): # noqa: N818
+ """The repository exceeds a documented report bound; the report is refused, not truncated."""
+
StatementKind = Literal["observation", "derivation", "inference", "unknown"]
Resolution = Literal["resolved", "ambiguous", "external", "unresolved"]
@@ -58,6 +64,14 @@ def default_total(self) -> Self:
object.__setattr__(self, "evidence_total", len(self.evidence))
return self
+ @field_validator("params", mode="before")
+ @classmethod
+ def clip_values(cls, value: Any) -> Any:
+ """Paths and names can be long; clip them deterministically instead of failing a build."""
+ if isinstance(value, dict):
+ return {k: (v[:512] if isinstance(v, str) else v) for k, v in value.items()}
+ return value
+
@model_validator(mode="after")
def bounded(self) -> Self:
if any(not 1 <= len(k) <= 64 for k in self.params):
@@ -149,7 +163,7 @@ class CoverageV1(Contract):
analyzed_files: int = Field(ge=0)
partial_files: int = Field(ge=0)
omitted_files: int = Field(ge=0)
- fact_runs: tuple[UUID, ...] = Field(default=(), max_length=64)
+ fact_runs: tuple[UUID, ...] = Field(default=(), max_length=MAX_FACT_RUNS)
@model_validator(mode="after")
def bounded(self) -> Self:
@@ -187,7 +201,7 @@ def size_bytes(self) -> int:
def check_size(self) -> None:
if self.size_bytes() > MAX_REPORT_BYTES:
- raise ValueError("report exceeds the size bound")
+ raise ReportTooLarge("report exceeds the size bound")
def inputs_digest(run_ids: tuple[UUID, ...], facts_digests: tuple[str, ...]) -> str:
diff --git a/backend/app/services/architecture_reports.py b/backend/app/services/architecture_reports.py
index be82d74..a0227ec 100644
--- a/backend/app/services/architecture_reports.py
+++ b/backend/app/services/architecture_reports.py
@@ -7,6 +7,8 @@
computes the report as a pure function of those facts and stores it immutably.
"""
+import asyncio
+import hashlib
import json
from collections.abc import Callable
from dataclasses import dataclass
@@ -22,8 +24,10 @@
from app.analyzers.graph.report import assemble_report
from app.analyzers.graph.shards import ShardPlan, plan_shards
from app.contracts.architecture_report import (
+ MAX_FACT_RUNS,
ArchitectureReportRefV1,
ArchitectureShardsV1,
+ ReportTooLarge,
RepositoryReportV1,
ShardStatusV1,
)
@@ -55,8 +59,14 @@ class SnapshotPlan:
inventory: tuple[str, ...]
-def shard_key(plan: ShardPlan, index: int) -> str:
- return f"report:{plan.digest[:32]}:{index}"
+def _assemble(**kwargs: Any) -> RepositoryReportV1:
+ return assemble_report(**kwargs)
+
+
+def shard_key(snapshot_id: UUID, plan: ShardPlan, index: int) -> str:
+ """Request key of one shard; scoped to the snapshot so plans never collide across snapshots."""
+ scope = hashlib.sha256(f"{snapshot_id}:{plan.digest}".encode()).hexdigest()[:32]
+ return f"report:{scope}:{index}"
def _load[M: BaseModel](model: type[M], payload: Any) -> M:
@@ -80,22 +90,34 @@ async def _plan(
located = await locate_source(session, ctx.org_id, repository_id, snapshot_id)
eligible = [f for f in located.files if f.eligible]
sizes = {f.path: f.size_bytes for f in eligible if f.language in FACT_LANGUAGES}
+ plan = plan_shards(sizes)
+ if len(plan.shards) > MAX_FACT_RUNS:
+ raise ReportTooLarge("repository needs more fact shards than one report can cite")
return SnapshotPlan(
- plan=plan_shards(sizes),
+ plan=plan,
analyzable=len(sizes),
inventory=tuple(sorted(f.path for f in eligible)),
)
async def _status(
- self, session: AsyncSession, ctx: TenantContext, plan: ShardPlan, skipped: int
+ self,
+ session: AsyncSession,
+ ctx: TenantContext,
+ repository_id: UUID,
+ snapshot_id: UUID,
+ plan: ShardPlan,
+ skipped: int,
) -> ArchitectureShardsV1:
shards = []
for shard in plan.shards:
found = await _rows(
session,
- "SELECT id,state,result_run_id FROM jobs WHERE org_id=:o AND request_key=:k",
+ "SELECT id,state,result_run_id FROM jobs WHERE org_id=:o AND repository_id=:r "
+ "AND snapshot_id=:s AND request_key=:k",
o=ctx.org_id,
- k=shard_key(plan, shard.index),
+ r=repository_id,
+ s=snapshot_id,
+ k=shard_key(snapshot_id, plan, shard.index),
)
job = found[0] if found else None
shards.append(
@@ -122,7 +144,9 @@ async def status(
async with transaction(self.factory) as session:
await require_snapshot(session, ctx, repository_id, snapshot_id)
snap = await self._plan(session, ctx, repository_id, snapshot_id)
- return await self._status(session, ctx, snap.plan, len(snap.plan.skipped))
+ return await self._status(
+ session, ctx, repository_id, snapshot_id, snap.plan, len(snap.plan.skipped)
+ )
async def prepare(
self,
@@ -136,7 +160,9 @@ async def prepare(
async with transaction(self.factory) as session:
await require_snapshot(session, ctx, repository_id, snapshot_id, write=True)
snap = await self._plan(session, ctx, repository_id, snapshot_id)
- current = await self._status(session, ctx, snap.plan, len(snap.plan.skipped))
+ current = await self._status(
+ session, ctx, repository_id, snapshot_id, snap.plan, len(snap.plan.skipped)
+ )
created = 0
for shard, state in zip(snap.plan.shards, current.shards, strict=True):
if state.state != "not_started":
@@ -149,13 +175,15 @@ async def prepare(
repository_id,
snapshot_id,
config_for(shard.prefixes),
- shard_key(snap.plan, shard.index),
+ shard_key(snapshot_id, snap.plan, shard.index),
)
except CapacityExceeded:
break # the organization's pending-job quota is full; call again later
created += 1
async with transaction(self.factory) as session:
- return await self._status(session, ctx, snap.plan, len(snap.plan.skipped))
+ return await self._status(
+ session, ctx, repository_id, snapshot_id, snap.plan, len(snap.plan.skipped)
+ )
async def build(
self, ctx: TenantContext, repository_id: UUID, snapshot_id: UUID
@@ -163,7 +191,9 @@ async def build(
async with transaction(self.factory) as session:
await lock_scope(session, ctx.org_id, ctx.principal_id, repository_id, snapshot_id)
snap = await self._plan(session, ctx, repository_id, snapshot_id)
- status = await self._status(session, ctx, snap.plan, len(snap.plan.skipped))
+ status = await self._status(
+ session, ctx, repository_id, snapshot_id, snap.plan, len(snap.plan.skipped)
+ )
if not status.ready:
raise ReportInputsPending(status)
runs = tuple(sorted({s.run_id for s in status.shards if s.run_id}))
@@ -179,7 +209,8 @@ async def build(
for row in rows:
facts = _load(FileFactsV1, row.facts_json)
entries.append(FileEntry(facts.file_id, facts.path, facts.language, facts))
- report = assemble_report(
+ report = await asyncio.to_thread(
+ _assemble,
org_id=ctx.org_id,
repository_id=repository_id,
snapshot_id=snapshot_id,
@@ -297,5 +328,6 @@ async def latest(
"ArchitectureReportService",
"DuplicateConflict",
"ReportInputsPending",
+ "ReportTooLarge",
"shard_key",
]
diff --git a/backend/tests/ast_facts/test_architecture_report_service.py b/backend/tests/ast_facts/test_architecture_report_service.py
index 34935db..89d6673 100644
--- a/backend/tests/ast_facts/test_architecture_report_service.py
+++ b/backend/tests/ast_facts/test_architecture_report_service.py
@@ -121,7 +121,7 @@ async def insert(inputs_digest=ref.inputs_digest, runs=(run,), document=doc, sna
await insert(inputs_digest="d" * 64, document={**doc, "inputs_digest": "d" * 64})
with pytest.raises(DBAPIError, match="identity differs"): # document disagrees with its columns
await insert(document={**doc, "snapshot_id": str(uuid4())})
- with pytest.raises(DBAPIError): # the same inputs twice
+ with pytest.raises(DBAPIError, match="duplicate key|uq_"): # the same inputs twice
await insert()
diff --git a/backend/tests/phase3/unit/test_architecture_report.py b/backend/tests/phase3/unit/test_architecture_report.py
index 5c506d3..fb72c6a 100644
--- a/backend/tests/phase3/unit/test_architecture_report.py
+++ b/backend/tests/phase3/unit/test_architecture_report.py
@@ -156,3 +156,33 @@ def test_every_statement_code_the_report_emits_has_a_template():
codes = {s.code for section in report.sections for s in section.statements}
assert codes <= set(TEXT), sorted(codes - set(TEXT))
assert set(LIMITATIONS) <= set(TEXT)
+
+
+def test_long_paths_and_external_names_do_not_break_a_build():
+ long_dir = "d" * 300
+ files = {
+ f"{long_dir}/{long_dir}/index.py": "",
+ "main.py": "import " + "a" * 1500 + "\n",
+ }
+ report, _ = build(files)
+ assert report.sections # clipped, not raised
+ assert all(len(n.id) <= 1100 for n in report.graph.nodes)
+
+
+def test_route_handlers_and_token_like_paths_are_not_echoed():
+ files = {
+ "app.js": (
+ "const express = require('express');\nconst app = express();\n"
+ "app.get('/hook/abcdef0123456789abcdef0123456789', auth('Bearer sk_live_ZZ9'));\n"
+ )
+ }
+ report, _ = build(files)
+ blob = json.dumps(report.model_dump(mode="json"))
+ assert "sk_live_ZZ9" not in blob
+ assert "abcdef0123456789abcdef0123456789" not in blob
+
+
+def test_markdown_cannot_be_structured_by_control_characters():
+ files = {"a\r# forged.py": "", "main.py": "import os\n"}
+ report, _ = build(files)
+ assert "\r" not in render_markdown(report)
diff --git a/backend/tests/phase3/unit/test_architecture_report_contracts.py b/backend/tests/phase3/unit/test_architecture_report_contracts.py
index ec0b294..a2b162d 100644
--- a/backend/tests/phase3/unit/test_architecture_report_contracts.py
+++ b/backend/tests/phase3/unit/test_architecture_report_contracts.py
@@ -53,7 +53,7 @@ def test_an_observation_needs_evidence_but_an_unknown_does_not():
@pytest.mark.parametrize(
"code,params",
- [("Bad Code", {}), ("x.y", {"": 1}), ("x.y", {"k": "v" * 513})],
+ [("Bad Code", {}), ("x.y", {"": 1})],
)
def test_codes_and_parameters_are_bounded(code, params):
with pytest.raises(ValidationError):
@@ -131,3 +131,7 @@ def test_inputs_digest_ignores_order_and_changes_with_content():
a, b = uuid4(), uuid4()
assert inputs_digest((a, b), ("x", "y")) == inputs_digest((b, a), ("y", "x"))
assert inputs_digest((a, b), ("x", "y")) != inputs_digest((a, b), ("x", "z"))
+
+
+def test_long_parameter_values_are_clipped_not_rejected():
+ assert len(StatementV1(kind="unknown", code="x.y", params={"k": "v" * 900}).params["k"]) == 512
diff --git a/backend/tests/phase3/unit/test_shard_plan.py b/backend/tests/phase3/unit/test_shard_plan.py
index 3ab1f45..cadd223 100644
--- a/backend/tests/phase3/unit/test_shard_plan.py
+++ b/backend/tests/phase3/unit/test_shard_plan.py
@@ -74,3 +74,12 @@ def test_the_plan_is_deterministic_and_unplannable_paths_are_reported():
assert plan.skipped == ("bad\\name.py",)
assert plan.digest == plan_shards(sizes).digest or plan.digest # digest covers prefixes only
assert plan_shards({}).shards == ()
+
+
+def test_shard_keys_differ_per_snapshot():
+ from uuid import uuid4
+
+ from app.services.architecture_reports import shard_key
+
+ plan = plan_shards({"a.py": 1})
+ assert shard_key(uuid4(), plan, 0) != shard_key(uuid4(), plan, 0)
diff --git a/docs/acceptance/architecture-report.md b/docs/acceptance/architecture-report.md
index 2bab595..3148220 100644
--- a/docs/acceptance/architecture-report.md
+++ b/docs/acceptance/architecture-report.md
@@ -57,6 +57,19 @@ statement is typed, and what the facts cannot settle is stated as unknown.
and the organization's pending-job quota (default 20) bounds how many exist at once.
- No retry or rebuild route: building again from the same facts returns the same report.
+Review follow-ups (documented bounds):
+
+- Route handlers are reported only when they are plain dotted names; other expressions show as
+ ``. Route paths keep their pattern, but long token-like segments are replaced.
+- Shard job keys are scoped to the snapshot and lookups filter by repository and snapshot.
+- Repositories needing more than 64 fact shards, or whose graph or report exceeds its size bound,
+ are refused with `report_too_large` (HTTP 422); nothing is truncated silently.
+- A failed or cancelled shard has no retry route yet, so the report cannot be built until that is
+ addressed; the viewer shows this and stops polling.
+- Graph analytics keep a wall-clock budget; on a very slow machine an exhausted budget is recorded
+ as a disposition in the report, so the stored report is what that machine produced.
+- `/graph` pages recompute the analytics for each request.
+
## Verification
Owned disposable PostgreSQL 16 at schema head:
diff --git a/frontend/src/features/architecture/ArchitectureWorkbench.tsx b/frontend/src/features/architecture/ArchitectureWorkbench.tsx
index 41a96de..7ea6f77 100644
--- a/frontend/src/features/architecture/ArchitectureWorkbench.tsx
+++ b/frontend/src/features/architecture/ArchitectureWorkbench.tsx
@@ -71,7 +71,10 @@ function ArchitectureWorkbenchState({
refetchInterval: (query) => {
const data = query.state.data;
const started = data?.shards?.some((s) => s.state !== "not_started");
- return started && !data?.ready ? 4000 : false;
+ const stuck = data?.shards?.some(
+ (s) => s.state === "failed" || s.state === "cancelled",
+ );
+ return started && !data?.ready && !stuck ? 4000 : false;
},
});
const latest = useQuery({
@@ -154,6 +157,12 @@ function ArchitectureWorkbenchState({
{status.data.skipped_files > 0 &&
` ${status.data.skipped_files} files cannot be selected and are not covered.`}
+ {shards.some((s) => s.state === "failed" || s.state === "cancelled") && (
+
+ Some analyses failed or were cancelled, so the report cannot be
+ built for this snapshot yet.
+
+ )}
{started && shards.length > 1 && (
diff --git a/frontend/src/features/architecture/ComponentGraph.tsx b/frontend/src/features/architecture/ComponentGraph.tsx
index 0576c59..6e527ea 100644
--- a/frontend/src/features/architecture/ComponentGraph.tsx
+++ b/frontend/src/features/architecture/ComponentGraph.tsx
@@ -41,7 +41,9 @@ export function ComponentGraph({ layers, graph, fileCounts }: Props) {
),
);
const height = 48 + ordered.length * ROW;
- const incomplete = graph.links_total > graph.links.length;
+ const incomplete =
+ graph.links_total > graph.links.length ||
+ (graph.nodes_total ?? 0) > graph.nodes.length;
return (