cadrumo.application.search.installed_workbench module

Pure installed-workbench search snapshot assembly.

The installed composition root supplies already-built public projections and their already-admitted destinations. This module keeps only the resulting redacted documents; it neither retains the source projections nor resolves a repository, token, network client, or business authority.

class InstalledWorkbenchSearchSnapshotV1(documents)[source]

Bases: object

One immutable, redacted document snapshot for the installed palette.

Parameters:

documents (tuple[WorkbenchSearchDocument, ...])

documents: tuple[WorkbenchSearchDocument, ...]
service()[source]

Build the pure query service over this exact snapshot.

Return type:

WorkbenchSearchService

class InstalledWorkbenchSearchInputsV1(ledger, declarations, aeat_sync, modelo, ledger_admission, declarations_admission, aeat_sync_admission)[source]

Bases: object

One already-loaded, coherent input set owned by the session root.

Parameters:
ledger: LedgerWorkspaceProjectionV1
declarations: DeclarationsWorkspaceProjectionV1
aeat_sync: AeatSyncWorkspaceProjectionV1
modelo: tuple[ModeloWorkspaceProjectionV1, ...]
ledger_admission: WorkbenchDestinationAdmission
declarations_admission: WorkbenchDestinationAdmission
aeat_sync_admission: WorkbenchDestinationAdmission
snapshot()[source]

Assemble this exact preloaded generation through the application door.

Return type:

InstalledWorkbenchSearchSnapshotV1

assemble_installed_workbench_search_snapshot(*, ledger, declarations, aeat_sync, modelo, ledger_admission, declarations_admission, aeat_sync_admission)[source]

Derive redacted documents from preloaded current workspace projections.

This is intentionally a one-shot assembly operation. The caller decides when fresh projections are authoritative and invokes it again; searching a returned service never reads state or rebuilds its documents.

Return type:

InstalledWorkbenchSearchSnapshotV1

Parameters: