Skip to content

Generated Python API inventory

This inventory is generated from each public namespace's __all__ under Anatomize 2.1.1. Names absent from __all__ are implementation details.

For most integrations, start with anatomize.review.ReviewApplication rather than lower-level builders.

anatomize.review

High-level application, capability negotiation, artifact gateway, and rendering.

Exported names: 23.

Name Kind Summary
ARTIFACT_CHECK_SCHEMA_VERSION constant Value: '1.0.0'.
ARTIFACT_CHECK_TYPE constant Value: 'anatomize.artifact-check'.
DEFAULT_MAX_REVIEW_ARTIFACT_BYTES constant Value: 134217728.
DOSSIER_EXCHANGE_ARTIFACT_TYPE constant Value: 'anatomize.dossier-exchange'.
DOSSIER_EXCHANGE_SCHEMA_VERSION constant Value: '1.0.0'.
ArtifactCheck class Machine-readable successful artifact validation result.
DossierExchange class One exact request and its answer, retained together for review and expansion.
ReviewApplication class Stateless façade reused without semantic reconstruction by every interface.
ProviderArtifactInput class One caller-selected, data-only provider artifact.
ProviderArtifactKind class Enum values: sarif, lsp, junit, coverage, mutation, jscpd, snakemake, targets, renv, cyclonedx, ro-crate.
normalize_provider_artifact function (artifact: 'ProviderArtifactInput', *, baseline: 'RepositoryEvidence', root: 'Path') -> 'tuple[ProviderEnvelope, ...]' — Normalize one captured artifact against an exact baseline state.
normalize_builtin_source_facts function (*, baseline: 'RepositoryEvidence', root: 'Path') -> 'ProviderEnvelope | None' — Extract R, notebook, and test intent facts already inside the source state.
ReviewApplicationError class Stable, actionable failure across every public application interface.
ReviewOutputFormat class Enum values: text, json, markdown.
artifact_identity function (artifact: 'BaseModel') -> 'str' — Select the stable primary identity of any supported review artifact.
build_dossier_exchange function (request: 'DossierRequest', dossier: 'Dossier') -> 'DossierExchange' — Bind one exact request and response without inventing a second result schema.
canonical_review_bytes function (artifact: 'BaseModel') -> 'bytes' — Return canonical bytes for any validated public review artifact.
load_review_artifact function (path: 'Path', *, expected_type: 'str | None' = None, max_bytes: 'int' = 134217728) -> 'BaseModel' — Read and validate one bounded public review artifact.
parse_review_artifact function (raw: 'bytes', *, expected_type: 'str | None' = None, max_bytes: 'int' = 134217728) -> 'BaseModel' — Parse one exact current-schema public artifact without compatibility guessing.
review_capabilities function () -> 'dict[str, Any]' — Machine-readable, versioned capabilities of the converged application layer.
render_review function (value: 'BaseModel | dict[str, Any]', *, format: 'ReviewOutputFormat', width: 'int' = 88) -> 'str' — Render one result without ANSI, terminal control codes, or width-dependent semantics.
target_selector function (value: 'str', *, kind: 'TargetKind') -> 'TargetSelector' — Convert concise CLI syntax into the same typed selector accepted by Python.
write_review_artifact function (artifact: 'BaseModel', path: 'Path') -> 'None' — Atomically write one validated public review artifact.

anatomize.index

Deterministic baseline repository facts.

Exported names: 2.

Name Kind Summary
RepositoryIndex class Canonical portable repository index.
build_repository_index function (root: 'Path', *, python_roots: 'list[Path] | None' = None) -> 'RepositoryIndex' — Build a deterministic Python-aware repository index.

anatomize.evidence

Canonical evidence, completeness, conflict, provenance, and merge contracts.

Exported names: 77.

Name Kind Summary
EVIDENCE_ARTIFACT_TYPE constant Value: 'anatomize.evidence'.
EVIDENCE_SCHEMA_VERSION constant Value: '1.0.0'.
AliasRecord class Lossless reconciliation of one provider identity across state-scoped entities.
ArtifactEntity class Public model with 10 fields.
CandidateKind class Enum values: reference, similarity, duplication, lineage, ownership, documentation_drift.
CandidateRecord class A bounded review candidate, never an established edge or verdict.
CompletenessRecord class Provider coverage for one state, scope and evidence-family set.
CompletenessStatus class Enum values: complete, partial, unavailable, unknown.
ConfigurationEntity class Public model with 8 fields.
CoordinateSpace type alias Public type alias.
ConflictRecord class Explicit contradiction retained without overwriting either observation.
ConflictStatus class Enum values: unresolved, externally_resolved.
ContentClass class Enum values: ordinary, binary, large, generated, vendor, ignored, sensitive, external, opaque.
ContractKind class Enum values: api, behavior, configuration, schema, data, workflow, runtime.
ContractRecord class A declared contract, distinct from observed behavior and diagnostics.
DataEntity class Public model with 10 fields.
DependencyEntity class Public model with 10 fields.
DiagnosticEntity class Public model with 17 fields.
DiagnosticFixSuggestion class Digest-bound producer fix retained explicitly as an untrusted suggestion.
DiagnosticObservation class Public model with 14 fields.
DiagnosticSuppression class Producer-declared suppression state without interpreting its validity.
DocumentationEntity class Public model with 9 fields.
EdgeRecord class Provider-neutral relationship target that can receive many observations.
EntityKind class Enum values: repository, file, range, symbol, documentation, configuration, test, data, workflow, artifact, dependency, diagnostic, runtime, similarity, external.
EntityRecord type alias Public type alias.
EvidenceProducer class Identity of the software that wrote the canonical artifact.
EvidenceModel class Strict immutable base for every public evidence record.
EvidenceStrength class Enum values: exact, derived, conservative, heuristic, declared, unknown.
ExternalEntity class Public model with 9 fields.
FileEntity class Public model with 12 fields.
FileCoordinateSpace class Coordinates in the repository file named by the location.
GeneratedCoordinateSpace class Coordinates in generated output with explicit source-location provenance.
IdentityCandidate class One exact candidate retained with provider-specific provenance.
IdentityReason class Public enum with 17 values.
IdentityResolutionStatus class Enum values: exact, ambiguous, unresolved, conflicting.
LimitationRecord class One stable statement of what a provider or method cannot establish.
LineageRecord class Cross-state continuity candidate, distinct from state-scoped identity.
LineageCertainty class Enum values: exact, candidate.
LineageKind class Enum values: unchanged, modified, moved, renamed, split, merged, deleted, added.
LineageReason class Public enum with 15 values.
LocationOrigin class Enum values: repository, generated, external, opaque.
LocationRecord class Portable repository, generated, external, or opaque coordinate.
NotebookCellCoordinateSpace class Coordinates in the decoded source of one stable notebook cell.
ObservationRecord type alias Public type alias.
ObservationStance class Enum values: supports, qualifies, conflicts.
OmissionRecord class Material evidence absent because of scope, policy, support, or budget.
ProviderArtifactRecord class Digest-bound provider-native artifact metadata; payload remains external.
ProviderRunRecord class Identity, method and outcome of one provider attempt over one state.
ProviderRunStatus class Enum values: complete, partial, unavailable, failed, cancelled.
ProjectionCompleteness class Enum values: exact, partial, unavailable, unknown.
RangeEntity class Public model with 8 fields.
RelationshipCategory class Public enum with 15 values.
RepositoryEntity class Public model with 8 fields.
RepositoryEvidence class The sole canonical portable repository-evidence aggregate.
RuntimeEntity class Public model with 9 fields.
RuntimeObservation class Public model with 16 fields.
SimilarityEntity class Public model with 9 fields.
SimilarityObservation class Public model with 15 fields.
SourcePosition class One one-based line and zero-based Unicode-codepoint column.
SourceRange class Half-open source range.
SourceStateRecord class Portable identity of one repository source state.
StructuralObservation class Public model with 14 fields.
SymbolEntity class Public model with 12 fields.
TestEntity class Public model with 9 fields.
EmbeddedRegionCoordinateSpace class Coordinates in one language region projected from a host location.
WorkflowEntity class Public model with 8 fields.
validate_portable_identity function (value: 'str', *, label: 'str' = 'identity') -> 'str' — Reject local absolute paths while retaining opaque external identities.
validate_repository_path function (value: 'str') -> 'str' — Return one normalized repository-relative POSIX path or fail closed.
DEFAULT_MAX_EVIDENCE_BYTES constant Value: 67108864.
EvidenceArtifactError class Actionable artifact failure with a stable public error code.
canonical_evidence_bytes function (evidence: 'RepositoryEvidence') -> 'bytes' — Serialize evidence deterministically independent of set-like input ordering.
evidence_digest function (evidence: 'RepositoryEvidence') -> 'str' — Return the digest used by consumers and derived caches.
evidence_json_schema function () -> 'dict[str, Any]' — Return the generated public JSON Schema for the canonical artifact.
load_evidence function (path: 'Path', *, max_bytes: 'int' = 67108864) -> 'RepositoryEvidence' — Load one bounded current-schema evidence artifact.
merge_repository_evidence function (artifacts: 'Iterable[RepositoryEvidence]') -> 'RepositoryEvidence' — Merge same-repository provider artifacts without overwriting disagreements.
parse_evidence function (raw: 'bytes', *, max_bytes: 'int' = 67108864, max_depth: 'int' = 64, max_values: 'int' = 2000000, max_string_bytes: 'int' = 1000000) -> 'RepositoryEvidence' — Parse, identify, version-check, and validate bounded evidence bytes.
write_evidence function (evidence: 'RepositoryEvidence', path: 'Path') -> 'None' — Atomically publish a validated canonical evidence artifact.

anatomize.identity

Portable identities, coordinates, and cross-provider reconciliation.

Exported names: 23.

Name Kind Summary
AnonymousScopeIdentityKey class Public model with 9 fields.
ClaimCertainty class Enum values: exact, candidate, unresolved.
ColumnEncoding class Enum values: unicode_codepoint, byte, utf8_byte, utf16_code_unit.
CoordinateConvention class Provider coordinate convention; all ranges remain half-open.
CoordinateError class Stable coordinate-boundary failure with exact provider context.
EmbeddedRegionIdentityKey class Public model with 7 fields.
ExternalPackageIdentityKey class Public model with 7 fields.
FileIdentityKey class Public model with 7 fields.
GeneratedIdentityKey class Public model with 7 fields.
IdentityKey type alias Public type alias.
IdentityMappingClaim class One provider's complete claim for one alias in one state.
NotebookCellIdentityKey class Public model with 8 fields.
PathKind class Enum values: regular, symlink, generated, vendored.
ProviderPosition class Public model with 2 fields.
ProviderRange class Public model with 2 fields.
RepositoryIdentityKey class Public model with 3 fields.
SourceCoordinateMap class Immutable line map for exact, round-trippable coordinate conversion.
SymbolIdentityKey class Public model with 10 fields.
SymbolRole class Enum values: definition, declaration, reexport, alias, overload, method.
WorkflowIdentityKey class Public model with 6 fields.
canonical_identity_id function (key: 'IdentityKey') -> 'str' — Return a deterministic opaque ID from the complete typed key.
parse_identity_key function (value: 'dict[str, Any]') -> 'IdentityKey' — Validate one discriminated public identity key.
reconcile_identity_claims function (*, repository_id: 'str', source_state_id: 'str', scheme: 'str', value: 'str', claims: 'Sequence[IdentityMappingClaim]', known_entity_ids: 'AbstractSet[str]', rationale: 'str') -> 'AliasRecord' — Reconcile without choosing among ambiguity or conflicting exact claims.

anatomize.providers

Data-only provider envelopes, normalization, and conformance.

Exported names: 30.

Name Kind Summary
DEFAULT_MAX_PROVIDER_BYTES constant Value: 33554432.
PROVIDER_API_VERSION constant Value: '1.0.0'.
PROVIDER_ENVELOPE_ARTIFACT_TYPE constant Value: 'anatomize.provider'.
PROVIDER_ENVELOPE_SCHEMA_VERSION constant Value: '1.0.0'.
AuthorityLevel class Enum values: A0_baseline, A1_artifact, A2_installed_code, A3_command, A4_protected_content, A5_network_credential.
InvocationAuthority class Caller-supplied authority actually used to obtain the artifact.
InvocationMode class Enum values: built_in, artifact_import, installed_provider, direct_command, external_policy.
NetworkPolicy class Enum values: not_applicable, denied, caller_isolated, allowed, unspecified.
ProviderArtifactLimits class Hard parser limits applied before an artifact becomes evidence.
ProviderBatchBuilder class Deduplicate records and close baseline entity/location references.
ProviderConformanceCheck class One independently reported conformance property.
ProviderConformanceExpectation class Identity and state a provider claims to implement.
ProviderConformanceReport class Complete provider qualification report without an aggregate score.
ProviderEnvelope class Artifact-first provider interchange envelope.
ProviderEnvelopeError class Stable, actionable provider envelope failure.
ProviderEvidenceBatch class Self-contained normalized evidence payload produced by one provider run.
ProviderScope class Exact source and evidence scope declared by one provider run.
ProviderToolIdentity class Native tool identity retained independently from adapter identity.
build_provider_envelope function (*, provider_run_id: 'str', provider_id: 'str', provider_version: 'str', tool: 'ProviderToolIdentity', capabilities: 'list[str]', languages: 'list[str]', repository_id: 'str', source_states: 'list[SourceStateRecord]', primary_source_state_id: 'str', configuration_digest: 'str', scope: 'ProviderScope', invocation: 'InvocationAuthority', status: 'ProviderRunStatus', payload: 'ProviderEvidenceBatch') -> 'ProviderEnvelope' — Seal a validated batch with its deterministic payload digest.
canonical_provider_bytes function (envelope: 'ProviderEnvelope') -> 'bytes' — Serialize a provider envelope deterministically.
load_provider_envelope function (path: 'Path', *, limits: 'ProviderArtifactLimits' = ProviderArtifactLimits(max_bytes=33554432, max_depth=64, max_values=500000, max_string_bytes=1000000)) -> 'ProviderEnvelope' — Load a provider envelope as untrusted bytes without executing code.
parse_provider_envelope function (raw: 'bytes', *, limits: 'ProviderArtifactLimits' = ProviderArtifactLimits(max_bytes=33554432, max_depth=64, max_values=500000, max_string_bytes=1000000)) -> 'ProviderEnvelope' — Parse and validate one exact-version provider envelope.
provider_cache_key function (envelope: 'ProviderEnvelope') -> 'str' — Cache identity covering provider, source, configuration, artifact, and authority.
provider_envelope_evidence function (envelope: 'ProviderEnvelope') -> 'RepositoryEvidence' — Project one validated provider envelope into the canonical evidence aggregate.
provider_envelope_json_schema function () -> 'dict[str, Any]' — Return the generated public JSON Schema for provider artifacts.
provider_payload_digest function (payload: 'ProviderEvidenceBatch') -> 'str' — Content identity of the normalized provider payload.
repository_index_provider_envelope function (index: 'RepositoryIndex', *, repository_id: 'str', policy_digest: 'str') -> 'ProviderEnvelope' — Wrap built-in index evidence in the same transport used by optional providers.
repository_index_evidence function (index: 'RepositoryIndex', *, repository_id: 'str') -> 'RepositoryEvidence' — Losslessly project index facts needed by canonical dossiers.
run_provider_conformance function (produce: 'Callable[[], bytes]', *, expectation: 'ProviderConformanceExpectation', failure_probe: 'Callable[[], object] | None' = None) -> 'ProviderConformanceReport' — Challenge one provider producer at deterministic and hostile boundaries.
write_provider_envelope function (envelope: 'ProviderEnvelope', path: 'Path') -> 'None' — Atomically write one validated canonical provider envelope.

anatomize.sessions

Portable sessions and immutable recoverable generations.

Exported names: 29.

Name Kind Summary
DEFAULT_MAX_SESSION_BUNDLE_BYTES constant Value: 134217728.
SESSION_ARTIFACT_TYPE constant Value: 'anatomize.session'.
SESSION_BUNDLE_ARTIFACT_TYPE constant Value: 'anatomize.session-bundle'.
SESSION_BUNDLE_SCHEMA_VERSION constant Value: '1.0.0'.
SESSION_SCHEMA_VERSION constant Value: '1.0.0'.
ArtifactBlob class Compressed base64 transport for one exact session artifact.
ArtifactRole class Enum values: normalized_evidence, comparison, report, source_slice, auxiliary.
BudgetBinding class One declared resource or output budget and its final use.
OmissionScope class Enum values: provider, source, evidence, index, report, slice, budget.
QueryBinding class Exact normalized request whose products the session contains.
ReviewSessionBundle class Self-contained deterministic export from which the derived store is rebuilt.
ReviewSessionManifest class Complete provenance for one reproducible agent review session.
SchemaBinding class Exact public schema used by one session artifact family.
SessionArtifact class Digest-bound portable artifact produced or consumed by a session.
SessionArtifactError class Stable, actionable session artifact failure.
SessionOmission class Explicitly bounded absence retained in a session manifest.
SessionProviderBinding class Provider identity projected from the canonical state manifest.
SessionStatus class Enum values: complete, partial, failed, cancelled.
SessionStore class Immutable generations selected by atomic pointers with one-writer locking.
SessionStoreError class Stable derived-store publication or recovery failure.
build_omission function (scope: 'OmissionScope', code: 'str', rationale: 'str', *, provider_id: 'str | None' = None) -> 'SessionOmission' — Create one content-addressed explicit omission.
build_query function (operation: 'str', parameters: 'dict[str, JsonValue] | None' = None) -> 'QueryBinding' — Build one content-addressed normalized query.
build_session_artifact function (*, role: 'ArtifactRole', content: 'bytes', media_type: 'str', portable_path: 'str', source_state_ids: 'list[str] | None' = None, provider_run_id: 'str | None' = None, derived_from_ids: 'list[str] | None' = None, deterministic: 'bool' = True, generated_at: 'datetime | None' = None) -> 'tuple[SessionArtifact, ArtifactBlob]' — Bind exact bytes to portable metadata and transport content.
build_session_bundle function (manifest: 'ReviewSessionManifest', blobs: 'list[ArtifactBlob]') -> 'ReviewSessionBundle' — Build and validate one self-contained portable export.
build_session_manifest function (*, repository_id: 'str', status: 'SessionStatus', configuration_digest: 'str', policy_digest: 'str', source_states: 'list[StateManifest]', schemas: 'list[SchemaBinding]', providers: 'list[SessionProviderBinding]', query: 'QueryBinding', budgets: 'list[BudgetBinding]', artifacts: 'list[SessionArtifact]', omissions: 'list[SessionOmission] | None' = None, deterministic: 'bool' = True, recorded_at: 'datetime | None' = None) -> 'ReviewSessionManifest' — Build a content-addressed session manifest from its complete provenance.
canonical_session_bundle_bytes function (bundle: 'ReviewSessionBundle') -> 'bytes' — Serialize one bundle deterministically for export, hashing, and storage.
load_session_bundle function (path: 'Path', *, max_bytes: 'int' = 134217728) -> 'ReviewSessionBundle' — Read and validate one bounded portable session.
parse_session_bundle function (raw: 'bytes', *, max_bytes: 'int' = 134217728, max_depth: 'int' = 64, max_values: 'int' = 2000000, max_string_bytes: 'int' = 134217728) -> 'ReviewSessionBundle' — Parse one bounded, exact-schema, self-validating portable session.
write_session_bundle function (bundle: 'ReviewSessionBundle', path: 'Path') -> 'None' — Atomically export one canonical portable session.

anatomize.dossiers

Task targets, evidence groups, limits, selection, and expansion.

Exported names: 68.

Name Kind Summary
DEFAULT_MAX_DOSSIER_BYTES constant Value: 67108864.
DEFAULT_MAX_DOSSIER_REQUEST_BYTES constant Value: 2097152.
DOSSIER_ARTIFACT_TYPE constant Value: 'anatomize.dossier'.
DOSSIER_REQUEST_ARTIFACT_TYPE constant Value: 'anatomize.dossier-request'.
DOSSIER_REQUEST_SCHEMA_VERSION constant Value: '1.0.0'.
DOSSIER_SCHEMA_VERSION constant Value: '1.0.0'.
BudgetCounter class One exact declared limit and its deterministic use.
ContentRange class Half-open content range used by a dossier slice.
Dossier class Source-bound progressively expandable evidence dossier.
DossierArtifactError class Stable bounded-artifact failure with explicit remediation.
DossierBoundary class Question, authority, and task-specific proof boundary.
DossierBudget class Explicit delivery bounds; no bound redefines proof completeness.
DossierBudgetUse class Disaggregated result cost; payload bytes are measured canonical bytes.
DossierContent class Deduplicated exact content transmitted separately from semantic roles.
DossierContext class Exact session bindings and parsed evidence reused by many dossier queries.
DossierContextError class Stable context-construction failure without ambient source fallback.
DossierCursor class Self-validating stable continuation bound to one query and source session.
DossierEngine class Reusable deterministic query maps over one immutable dossier context.
DossierExpansion class One consumer-requested expansion over an immutable base dossier.
DossierFilters class Conjunctive restrictions applied without changing source facts.
DossierGroup class Evidence items grouped by their purpose in reader order.
DossierItem class One role-labelled evidence reference with every independent reason.
DossierLocator class Structured portable target or evidence locator.
DossierObservation class One independent provider observation retained without aggregation.
DossierOmission class Typed absence with requiredness and deterministic recovery.
DossierProfile class Enum values: orientation, design, audit, localisation, implementation, change_review, closure.
DossierQueryError class Stable query failure used when even a bounded response cannot be encoded.
DossierRequest class Normalized, content-addressed dossier query.
DossierSection class Enum values: decision_critical, contradictions_unknowns, supporting_context.
DossierStatus class Enum values: complete, partial, blocked, failed.
DossierSource class Caller-authorized source bytes bound to one repository state and path.
EvidenceLocator class Portable evidence location retained in a dossier item.
EvidenceRole class Public enum with 31 values.
ExpansionAction class One safe typed action that can derive a new request.
ExpansionKind class Enum values: group, entity, relationship, role, depth, adjacent_context, complete_file, provider, omission, cursor, history, validation, refresh.
OmissionReason class Enum values: scope, unsupported, policy, budget, provider_limitation, ambiguity, source_drift, failure.
QueryDirection class Enum values: inbound, outbound, both.
ResolvedTarget class Resolution outcome preserved for each requested selector.
SelectionReason class One independent and inspectable reason an item was selected.
SelectionReasonCode class Public enum with 10 values.
SourceSlicePolicy class Content inclusion policy kept independent from evidence selection.
TargetKind class Public enum with 14 values.
TargetResolutionStatus class Enum values: exact, ambiguous, unresolved, unsupported, conflicting.
TargetSelector class One exact identity or structured locator requested by a consumer.
build_dossier function (context: 'DossierContext', request: 'DossierRequest') -> 'Dossier' — Convenience operation for one query; reuse DossierEngine for repeated calls.
build_dossier_content function (**values: 'Any') -> 'DossierContent' — Build one content-addressed source or document slice.
build_dossier_cursor function (**values: 'Any') -> 'DossierCursor' — Build a checksum-bound cursor from fields other than checksum.
build_dossier_group function (**values: 'Any') -> 'DossierGroup' — Build one content-addressed ordered evidence group.
build_dossier_item function (**values: 'Any') -> 'DossierItem' — Build one content-addressed dossier item.
build_dossier_omission function (**values: 'Any') -> 'DossierOmission' — Build one content-addressed explicit omission.
build_dossier_request function (*, profile: 'DossierProfile', question: 'str', session_id: 'str', session_manifest_digest: 'str', targets: 'list[TargetSelector] &#124; None' = None, direction: 'QueryDirection' = <QueryDirection.BOTH: 'both'>, filters: 'DossierFilters &#124; None' = None, include: 'list[str] &#124; None' = None, exclude: 'list[str] &#124; None' = None, budget: 'DossierBudget &#124; None' = None, slice_policy: 'SourceSlicePolicy &#124; None' = None, expansion: 'DossierExpansion &#124; None' = None) -> 'DossierRequest' — Build a normalized request with one ordered content identity.
build_expansion_action function (**values: 'Any') -> 'ExpansionAction' — Build one content-addressed safe expansion action.
canonical_dossier_bytes function (dossier: 'Dossier') -> 'bytes' — Serialize a dossier while preserving its semantically ordered arrays.
decode_dossier_cursor function (token: 'str', *, max_bytes: 'int' = 16384) -> 'DossierCursor' — Decode one bounded base64url cursor and validate every typed binding.
dossier_json_schema function () -> 'dict[str, Any]' — Return the generated public response schema.
dossier_query_digest function (request: 'DossierRequest') -> 'str' — Bind selection semantics while permitting an explicit expansion budget.
dossier_request_json_schema function () -> 'dict[str, Any]' — Return the generated public request schema.
dossier_source_json_schema function () -> 'dict[str, Any]' — Return the generated schema for explicit source snapshots.
expand_dossier_request function (base_request: 'DossierRequest', base_dossier: 'Dossier', action: 'ExpansionAction', *, budget: 'DossierBudget &#124; None' = None, slice_policy: 'SourceSlicePolicy &#124; None' = None, depth_increment: 'int' = 1, context_lines: 'int' = 3) -> 'DossierRequest' — Derive one immutable request from an action exposed by a base dossier.
load_dossier function (path: 'Path', *, max_bytes: 'int' = 67108864) -> 'Dossier' — Read one bounded dossier from a local artifact path.
load_dossier_request function (path: 'Path', *, max_bytes: 'int' = 2097152) -> 'DossierRequest' — Read one bounded dossier request from a local artifact path.
parse_dossier function (raw: 'bytes', *, max_bytes: 'int' = 67108864) -> 'Dossier' — Parse one bounded current-version dossier and verify exact byte accounting.
parse_dossier_request function (raw: 'bytes', *, max_bytes: 'int' = 2097152) -> 'DossierRequest' — Parse one bounded current-version dossier request.
session_manifest_digest function (manifest: 'ReviewSessionManifest') -> 'str' — Return the exact digest used by dossier requests and cursor bindings.
write_dossier function (dossier: 'Dossier', path: 'Path') -> 'None' — Atomically write canonical ordered dossier JSON.
write_dossier_request function (request: 'DossierRequest', path: 'Path') -> 'None' — Atomically write canonical ordered request JSON.
build_dossier_source function (*, source_state_id: 'str', path: 'str', media_type: 'str', text: 'str &#124; None', digest: 'str &#124; None' = None, size_bytes: 'int &#124; None' = None, language: 'str &#124; None' = None, content_class: 'ContentClass' = <ContentClass.ORDINARY: 'ordinary'>) -> 'DossierSource' — Build an exact source snapshot without granting ambient file access.
slice_dossier_source function (source: 'DossierSource', *, start_line: 'int &#124; None', start_column: 'int &#124; None', end_line: 'int &#124; None', end_column: 'int &#124; None', enclosing_entity_id: 'str &#124; None', policy: 'SourceSlicePolicy', extra_context: 'int' = 0, complete_file: 'bool' = False, max_text_bytes: 'int &#124; None' = None) -> 'DossierContent' — Create one stable, bounded source slice from an authorized snapshot.

anatomize.temporal

Exact source states and evidence-wide comparison.

Exported names: 31.

Name Kind Summary
COMPARISON_ARTIFACT_TYPE constant Value: 'anatomize.comparison'.
COMPARISON_SCHEMA_VERSION constant Value: '1.0.0'.
DEFAULT_MAX_COMPARISON_BYTES constant Value: 33554432.
STATE_MANIFEST_ARTIFACT_TYPE constant Value: 'anatomize.state-manifest'.
STATE_MANIFEST_SCHEMA_VERSION constant Value: '1.0.0'.
BoundaryDisposition class Enum values: degraded, unavailable.
ComparisonArtifactError class Stable comparison artifact error with safe remediation.
ComparisonBoundaryIssue class One explicit temporal boundary failure or degradation.
ComparisonIssueCode class Enum values: absent_baseline, shallow_history, history_unavailable, ambiguous_history, dirty_worktree, generated_output, provider_mismatch, configuration_mismatch.
ComparisonStatus class Enum values: complete, partial, unavailable.
DeltaAvailability class Enum values: complete, partial, unavailable.
DeltaFamily class Enum values: entity, relationship, api, diagnostic, duplicate, test, documentation, workflow, data, environment, artifact.
DeltaReason class Public enum with 16 values.
DeltaStatus class Enum values: added, removed, changed, unchanged, unknown.
EvidenceRecordType class Enum values: entity, edge, contract, candidate, observation, provider_artifact.
EvidenceTargetReference class Source-bound reference into one external canonical evidence artifact.
HistoryStatus class Enum values: complete, shallow, unavailable, ambiguous.
ProviderStateBinding class Exact provider/configuration/artifact state used for one source state.
RepositoryComparison class Portable two-state lineage and semantic-delta artifact.
SemanticDelta class One provider-aware semantic difference without a consumer verdict.
StateArtifactBinding class One provider artifact identity retained without its native payload.
StateManifest class Portable exact state identity for one side of a comparison.
build_repository_comparison function (*, repository_id: 'str', before: 'StateManifest &#124; None', after: 'StateManifest', lineage: 'list[LineageRecord]', deltas: 'list[SemanticDelta]', limitations: 'list[str] &#124; None' = None) -> 'RepositoryComparison' — Build one comparison and derive every manifest-visible boundary issue.
build_semantic_delta function (*, family: 'DeltaFamily', status: 'DeltaStatus', predecessor_refs: 'list[EvidenceTargetReference]', successor_refs: 'list[EvidenceTargetReference]', lineage_ids: 'list[str]', provider_run_ids: 'list[str]', required_provider_ids: 'list[str]', availability: 'DeltaAvailability', strength: 'EvidenceStrength', reason_codes: 'list[DeltaReason]', rationale: 'str') -> 'SemanticDelta' — Create a content-addressed semantic delta from its complete meaning.
build_state_manifest function (evidence: 'RepositoryEvidence', *, source_state_id: 'str', configuration_digest: 'str', history_status: 'HistoryStatus', baseline_available: 'bool') -> 'StateManifest' — Bind one source state to exact evidence, provider, configuration, and artifact state.
canonical_comparison_bytes function (comparison: 'RepositoryComparison') -> 'bytes' — Serialize a comparison deterministically for review and hashing.
compare_repository_evidence function (before: 'RepositoryEvidence', after: 'RepositoryEvidence', *, configuration_digest: 'str', history_status: 'HistoryStatus' = <HistoryStatus.UNAVAILABLE: 'unavailable'>, include_unchanged: 'bool' = False) -> 'RepositoryComparison' — Compare two exact evidence states with conservative, validated lineage.
load_comparison function (path: 'Path', *, max_bytes: 'int' = 33554432) -> 'RepositoryComparison' — Load one bounded comparison artifact from disk.
parse_comparison function (raw: 'bytes', *, max_bytes: 'int' = 33554432, max_depth: 'int' = 64, max_values: 'int' = 1000000, max_string_bytes: 'int' = 1000000) -> 'RepositoryComparison' — Parse one exact comparison artifact without executing repository content.
validate_comparison_evidence function (comparison: 'RepositoryComparison', *, before_evidence: 'RepositoryEvidence &#124; None', after_evidence: 'RepositoryEvidence') -> 'None' — Validate every external comparison reference against its digest-bound evidence.
write_comparison function (comparison: 'RepositoryComparison', path: 'Path') -> 'None' — Atomically publish one canonical comparison artifact.

anatomize.lifecycle

Similarity, decisions, implementation intent, change, and closure.

Exported names: 82.

Name Kind Summary
CHANGE_DOSSIER_SCHEMA_VERSION constant Value: '1.0.0'.
CHANGE_DOSSIER_TYPE constant Value: 'anatomize.change-dossier'.
CLOSURE_REPORT_SCHEMA_VERSION constant Value: '1.0.0'.
CLOSURE_REPORT_TYPE constant Value: 'anatomize.closure-report'.
IMPLEMENTATION_INTENT_SCHEMA_VERSION constant Value: '1.0.0'.
IMPLEMENTATION_INTENT_TYPE constant Value: 'anatomize.implementation-intent'.
CONSOLIDATION_DOSSIER_SCHEMA_VERSION constant Value: '1.0.0'.
CONSOLIDATION_DOSSIER_TYPE constant Value: 'anatomize.consolidation-dossier'.
DECISION_OVERLAY_SCHEMA_VERSION constant Value: '1.0.0'.
DECISION_OVERLAY_TYPE constant Value: 'anatomize.decision-overlay'.
OVERLAY_EVALUATION_SCHEMA_VERSION constant Value: '1.0.0'.
OVERLAY_EVALUATION_TYPE constant Value: 'anatomize.overlay-evaluation'.
SIMILARITY_ARTIFACT_TYPE constant Value: 'anatomize.similarity'.
SIMILARITY_SCHEMA_VERSION constant Value: '1.0.0'.
TEST_INTENT_ARTIFACT_TYPE constant Value: 'anatomize.test-intent'.
TEST_INTENT_SCHEMA_VERSION constant Value: '1.0.0'.
TEST_RUNTIME_ARTIFACT_TYPE constant Value: 'anatomize.test-runtime'.
TEST_RUNTIME_SCHEMA_VERSION constant Value: '1.0.0'.
AlignedHunk class One bounded correspondence or difference between two members.
CandidateDelta class Cross-state candidate change with explicit lineage certainty.
CandidateDeltaKind class Enum values: new, removed, expanded, reduced, moved, diverged, unchanged.
CandidateGranularity class Enum values: file, definition, block, expression.
CandidateRegion class One exact member coordinate in a candidate group.
ChangeBoundaryKind class Enum values: added, modified, moved, renamed, deleted, split, merged, reexported, generated, absent_baseline, provider_mismatch.
ChangeDimension class Enum values: textual, entity, api, relationship, diagnostic, test, runtime, documentation, configuration, workflow, data, environment, artifact, candidate.
ChangeDossier class Public model with 16 fields.
ChangeEvidence class Public model with 8 fields.
ClosureObservation class Public model with 6 fields.
ClosureOutcome class Enum values: closed, discrepancy, incomplete, stale.
ClosureReport class Public model with 14 fields.
ConsolidationDossier class Public model with 10 fields.
ConsolidationQuestion class Public enum with 12 values.
DecisionDisposition class Enum values: unreviewed, investigate, keep, consolidate, generalise, separate, accepted_duplicate.
DecisionOverlay class Public model with 17 fields.
HunkKind class Enum values: equal, replace, insert, delete.
ImplementationIntent class Public model with 11 fields.
ImplementationObligation class Public model with 5 fields.
ObligationKind class Enum values: owner, contract, consumer, candidate, test, documentation, workflow, unknown.
ObligationStatus class Enum values: satisfied, discrepancy, unresolved, unavailable, stale.
OverlayEvaluation class Public model with 7 fields.
OverlayStaleReason class Public enum with 6 values.
ReviewEvidenceGroup class Public model with 4 fields.
SimilarityArtifact class Portable candidates from baseline or independently executed providers.
SimilarityArtifactError class Bounded, actionable similarity artifact failure.
SimilarityCandidate class A review candidate with method-native evidence and no decision verdict.
SimilarityMethod class Enum values: exact, normalized, external_near_match.
SimilarityQuery class Explicit candidate policy; values are acquisition bounds, not quality scores.
RuntimeTestObservation class Public model with 8 fields.
TestEvidenceError class Stable failure while extracting or importing test evidence.
TestEvidenceKind class Enum values: static_exercise, runtime_execution, line_coverage, branch_coverage, mutation_detection, failure, skip, absence.
TestIntent class Public model with 16 fields.
TestIntentArtifact class Public model with 6 fields.
TestIntentComparison class Public model with 5 fields.
TestLocator class Public model with 3 fields.
TestRuntimeArtifact class Public model with 13 fields.
build_aligned_hunk function (**values: 'Any') -> 'AlignedHunk' — Public exported value.
build_consolidation_dossier function (*, repository_id: 'str', base_dossier_id: 'str', base_dossier_digest: 'str', candidate: 'SimilarityCandidate', groups: 'list[ReviewEvidenceGroup]') -> 'ConsolidationDossier' — Bind candidate evidence into a review-question surface.
build_change_dossier function (**values: 'Any') -> 'ChangeDossier' — Public exported value.
build_change_evidence function (**values: 'Any') -> 'ChangeEvidence' — Public exported value.
build_decision_overlay function (*, candidate: 'SimilarityCandidate', relevant_source_digest: 'str', provider_digests: 'dict[str, str]', evidence_digests: 'dict[str, str]', decision_schema_version: 'str', decision_policy_digest: 'str', owner_namespace: 'str', disposition: 'DecisionDisposition', rationale: 'str', preserved_divergence: 'list[str] &#124; None' = None, review_conditions: 'list[str] &#124; None' = None) -> 'DecisionOverlay' — Create a portable judgement separate from canonical repository evidence.
build_implementation_intent function (**values: 'Any') -> 'ImplementationIntent' — Public exported value.
build_implementation_obligation function (**values: 'Any') -> 'ImplementationObligation' — Public exported value.
candidate_evidence_digest function (candidate: 'SimilarityCandidate') -> 'str' — Public exported value.
build_similarity_candidate function (**values: 'Any') -> 'SimilarityCandidate' — Public exported value.
canonical_similarity_bytes function (artifact: 'SimilarityArtifact') -> 'bytes' — Public exported value.
compare_similarity_artifacts function (before: 'SimilarityArtifact', after: 'SimilarityArtifact') -> 'list[CandidateDelta]' — Describe supported candidate change without guessing ambiguous lineage.
compare_test_intent function (left: 'TestIntent', right: 'TestIntent') -> 'TestIntentComparison' — Public exported value.
extract_python_test_intent function (source: 'str', *, repository_id: 'str', source_state_id: 'str', path: 'str') -> 'TestIntentArtifact' — Extract bounded pytest/unittest intent signals without executing tests.
extract_r_test_intent function (source: 'str', *, repository_id: 'str', source_state_id: 'str', path: 'str') -> 'TestIntentArtifact' — Extract conservative testthat intent from source without evaluating R.
evaluate_decision_overlay function (overlay: 'DecisionOverlay', *, candidate: 'SimilarityCandidate', relevant_source_digest: 'str', provider_digests: 'dict[str, str]', evidence_digests: 'dict[str, str]', decision_schema_version: 'str', decision_policy_digest: 'str') -> 'OverlayEvaluation' — Explain relevant staleness; unrelated repository state is deliberately absent.
stable_candidate_key function (candidate: 'SimilarityCandidate') -> 'str' — Identify reconciled members and acquisition semantics across source states.
jscpd_provider_envelope function (raw: 'bytes', *, baseline: 'RepositoryEvidence', provider_run_id: 'str', provider_version: 'str', configuration_digest: 'str', policy_digest: 'str', query: 'SimilarityQuery', repository_root: 'Path &#124; None' = None, threshold: 'float &#124; None' = None) -> 'ProviderEnvelope' — Project imported jscpd evidence through the canonical provider envelope.
parse_jscpd_report function (raw: 'bytes', *, repository_id: 'str', source_state_id: 'str', provider_run_id: 'str', provider_version: 'str', configuration_digest: 'str', query: 'SimilarityQuery', repository_root: 'Path &#124; None' = None, threshold: 'float &#124; None' = None, max_bytes: 'int' = 67108864) -> 'SimilarityArtifact' — Normalize bounded jscpd JSON without executing jscpd or reading source.
parse_similarity_artifact function (raw: 'bytes', *, max_bytes: 'int' = 67108864) -> 'SimilarityArtifact' — Parse one bounded current similarity artifact without legacy fallback.
parse_coverage_json function (raw: 'bytes', *, repository_id: 'str', source_state_id: 'str', provider_run_id: 'str', provider_version: 'str', environment_digest: 'str', selection: 'list[str]', max_bytes: 'int' = 67108864) -> 'TestRuntimeArtifact' — Parse coverage.py-style JSON as line and branch context, never proof of redundancy.
parse_junit_xml function (raw: 'bytes', *, repository_id: 'str', source_state_id: 'str', provider_run_id: 'str', provider_version: 'str', environment_digest: 'str', selection: 'list[str]', max_bytes: 'int' = 33554432) -> 'TestRuntimeArtifact' — Parse bounded JUnit XML while rejecting DTD/entity declarations.
parse_mutation_json function (raw: 'bytes', *, repository_id: 'str', source_state_id: 'str', provider_run_id: 'str', provider_version: 'str', environment_digest: 'str', selection: 'list[str]', max_bytes: 'int' = 67108864) -> 'TestRuntimeArtifact' — Parse a small generic mutation-result interchange.
select_similarity_candidates function (candidates: 'list[SimilarityCandidate]', query: 'SimilarityQuery') -> 'list[SimilarityCandidate]' — Apply explicit method, granularity, role, size, and count policy.
similarity_json_schema function () -> 'dict[str, Any]' — Public exported value.
test_runtime_provider_envelope function (artifact: 'TestRuntimeArtifact', *, baseline: 'RepositoryEvidence', configuration_digest: 'str', policy_digest: 'str') -> 'ProviderEnvelope' — Map runtime/coverage/mutation observations through the common provider contract.
visible_candidates function (candidates: 'list[SimilarityCandidate]', overlays: 'list[DecisionOverlay]', evaluations: 'list[OverlayEvaluation]', *, show_accepted_duplicates: 'bool' = False) -> 'list[SimilarityCandidate]' — Hide only explicitly accepted, still-current candidates when requested.
verify_implementation_closure function (intent: 'ImplementationIntent', *, after_source_state_id: 'str', after_source_state_digest: 'str', after_provider_digests: 'dict[str, str]', provider_completeness: "dict[str, Literal['complete', 'partial', 'unavailable', 'unknown']]", observations: 'list[ClosureObservation]', evidence_kinds_by_ref: 'Mapping[str, Set[str]]') -> 'ClosureReport' — Evaluate each declared obligation at one exact after state without inference across kinds.

anatomize.semantic

Captured language-server semantic artifacts.

Exported names: 25.

Name Kind Summary
DEFAULT_MAX_LSP_SEMANTIC_BYTES constant Value: 67108864.
LSP_SEMANTIC_ARTIFACT_TYPE constant Value: 'anatomize.lsp-semantic'.
LSP_SEMANTIC_PROVIDER_ID constant Value: 'anatomize.lsp-artifact'.
LSP_SEMANTIC_PROVIDER_VERSION constant Value: '1.0.0'.
LSP_SEMANTIC_SCHEMA_VERSION constant Value: '1.0.0'.
SUPPORTED_LSP_VERSIONS constant Public value of type frozenset.
LspPositionEncoding class Enum values: utf-8, utf-16, utf-32.
LspSemanticArtifact class A replayable capture of selected LSP 3.17/3.18 semantic responses.
LspSemanticArtifactError class Stable actionable semantic-artifact failure.
LspSemanticArtifactLimits class Hard resource bounds applied before semantic artifact validation.
SemanticCapability class Enum values: definitions, declarations, references, calls, implementations, overrides.
SemanticDocument class One digest-bound repository document covered by the capture.
SemanticExternalTarget class Portable external semantic target without a checkout-specific URI.
SemanticIssue class Explicit producer-reported reason why semantic coverage is degraded.
SemanticIssueCode class Enum values: compiler_error, incomplete_project, generated_path, stale_index, version_skew, provider_unavailable.
SemanticOccurrence class One occurrence and its internal, external, or unresolved target claim.
SemanticRelationship class Enum values: reference, call, implementation, override.
SemanticSymbol class One provider-native declaration with enough identity to reconcile it.
canonical_lsp_semantic_bytes function (artifact: 'LspSemanticArtifact') -> 'bytes' — Serialize one semantic artifact deterministically.
load_lsp_semantic_artifact function (path: 'Path', *, limits: 'LspSemanticArtifactLimits' = LspSemanticArtifactLimits(max_bytes=67108864, max_depth=64, max_values=750000, max_string_bytes=1000000)) -> 'LspSemanticArtifact' — Load one semantic artifact as untrusted bytes.
lsp_semantic_json_schema function () -> 'dict[str, Any]' — Return the exact public JSON Schema for captured LSP semantics.
normalize_lsp_semantic_artifact function (artifact: 'LspSemanticArtifact', *, expected_state: 'SourceStateRecord', baseline: 'RepositoryEvidence', sources: 'Mapping[str, str]', expected_configuration_digest: 'str', invocation: 'InvocationAuthority &#124; None' = None, provider_id: 'str' = 'anatomize.lsp-artifact', provider_version: 'str' = '1.0.0') -> 'ProviderEnvelope' — Reconcile one captured LSP artifact with canonical baseline identities.
parse_lsp_semantic_artifact function (raw: 'bytes', *, limits: 'LspSemanticArtifactLimits' = LspSemanticArtifactLimits(max_bytes=67108864, max_depth=64, max_values=750000, max_string_bytes=1000000)) -> 'LspSemanticArtifact' — Parse one exact-version semantic artifact without executing provider code.
unavailable_lsp_semantic_envelope function (*, expected_state: 'SourceStateRecord', baseline: 'RepositoryEvidence', configuration_digest: 'str', requested_paths: 'Sequence[str]' = (), reason: 'str' = 'No semantic artifact provider was available.') -> 'ProviderEnvelope' — Represent optional-provider absence without probing or importing provider code.
write_lsp_semantic_artifact function (artifact: 'LspSemanticArtifact', path: 'Path') -> 'None' — Atomically write one validated canonical semantic artifact.

anatomize.diagnostics

Bounded SARIF 2.1.0 diagnostics.

Exported names: 37.

Name Kind Summary
DEFAULT_MAX_SARIF_BYTES constant Value: 134217728.
SARIF_PROVIDER_VERSION constant Value: '1.0.0'.
SARIF_VERSION constant Value: '2.1.0'.
DeclaredDiagnosticContract class Caller-owned contract that a diagnostic rule may report against.
SarifArtifact class Public model with 4 fields.
SarifArtifactBinding class Trusted acquisition metadata binding otherwise portable SARIF to one state.
SarifArtifactChange class Public model with 2 fields.
SarifArtifactContent class Public model with 1 fields.
SarifArtifactError class Stable actionable SARIF ingestion failure.
SarifArtifactLimits class Hard parser limits applied before a SARIF log becomes evidence.
SarifArtifactLocation class Public model with 3 fields.
SarifFix class Public model with 2 fields.
SarifInvocation class Public model with 7 fields.
SarifLocation class Public model with 3 fields.
SarifLog class Public model with 3 fields.
SarifLogicalLocation class Public model with 3 fields.
SarifMessage class Public model with 4 fields.
SarifPhysicalLocation class Public model with 2 fields.
SarifRegion class Public model with 6 fields.
SarifReplacement class Public model with 2 fields.
SarifReportingConfiguration class Public model with 1 fields.
SarifReportingDescriptor class Public model with 8 fields.
SarifResult class Public model with 13 fields.
SarifRun class Public model with 10 fields.
SarifRunAutomationDetails class Public model with 2 fields.
SarifSuppression class Public model with 3 fields.
SarifTool class Public model with 2 fields.
SarifToolComponent class Public model with 5 fields.
SarifVersionControlDetails class Public model with 3 fields.
build_sarif_binding function (log: 'SarifLog', *, source_state: 'SourceStateRecord', configuration_digest: 'str') -> 'SarifArtifactBinding' — Bind one immutable parsed log to trusted acquisition context.
canonical_sarif_bytes function (log: 'SarifLog') -> 'bytes' — Serialize SARIF deterministically without reordering index-bearing arrays.
load_sarif_log function (path: 'Path', *, limits: 'SarifArtifactLimits' = SarifArtifactLimits(max_bytes=134217728, max_depth=96, max_values=1000000, max_string_bytes=2000000)) -> 'SarifLog' — Load one SARIF log as untrusted bytes.
normalize_sarif_log function (log: 'SarifLog', *, binding: 'SarifArtifactBinding', expected_state: 'SourceStateRecord', expected_configuration_digest: 'str', baseline: 'RepositoryEvidence', sources: 'Mapping[str, str]', repository_uri_base_ids: 'Sequence[str]' = (), declared_contracts: 'Mapping[str, DeclaredDiagnosticContract] &#124; None' = None, invocation: 'InvocationAuthority &#124; None' = None) -> 'tuple[ProviderEnvelope, ...]' — Normalize every SARIF run independently without comparing tool severities.
parse_sarif_log function (raw: 'bytes', *, limits: 'SarifArtifactLimits' = SarifArtifactLimits(max_bytes=134217728, max_depth=96, max_values=1000000, max_string_bytes=2000000)) -> 'SarifLog' — Parse a saved SARIF 2.1.0 report without loading or running its producer.
sarif_digest function (log: 'SarifLog') -> 'str' — Return the canonical content identity of one parsed SARIF log.
unavailable_diagnostic_envelope function (*, tool_name: 'str', expected_state: 'SourceStateRecord', expected_configuration_digest: 'str', baseline: 'RepositoryEvidence', reason: 'str') -> 'ProviderEnvelope' — Record unavailable diagnostics without loading an external executable.
write_sarif_log function (log: 'SarifLog', path: 'Path') -> 'None' — Atomically publish canonical SARIF while preserving array order.

anatomize.research

R, notebooks, workflows, data, environments, and provenance.

Exported names: 58.

Name Kind Summary
NOTEBOOK_ARTIFACT_TYPE constant Value: 'anatomize.notebook'.
NOTEBOOK_EXECUTION_SCHEMA_VERSION constant Value: '1.0.0'.
NOTEBOOK_EXECUTION_TYPE constant Value: 'anatomize.notebook-execution'.
NOTEBOOK_SCHEMA_VERSION constant Value: '1.0.0'.
R_ARTIFACT_SCHEMA_VERSION constant Value: '1.0.0'.
R_ARTIFACT_TYPE constant Value: 'anatomize.r-repository'.
RESEARCH_GRAPH_SCHEMA_VERSION constant Value: '1.0.0'.
RESEARCH_GRAPH_TYPE constant Value: 'anatomize.research-graph'.
RCall class Public model with 6 fields.
RDataDeclaration class Public model with 5 fields.
RFunction class Public model with 10 fields.
RNamespaceDirective class Public model with 6 fields.
RPackage class Public model with 6 fields.
RRepositoryArtifact class Public model with 12 fields.
RSourceLocator class Public model with 3 fields.
CellDeltaKind class Enum values: added, removed, moved, reordered, split, merged, output_only, source_changed, unchanged.
CellIdentityStrength class Enum values: exact, candidate.
EmbeddedInventory class Public model with 7 fields.
EnvironmentDeclaration class Public model with 8 fields.
NotebookArtifact class Public model with 10 fields.
NotebookArtifactError class Stable failure while importing an executable-document artifact.
NotebookCell class Public model with 17 fields.
NotebookCellDelta class Public model with 7 fields.
NotebookCellKind class Enum values: code, markdown, raw.
NotebookExecutionArtifact class Public model with 13 fields.
NotebookExecutionObservation class Public model with 6 fields.
NotebookLocator class Public model with 5 fields.
OutputState class Enum values: cleared, current, stale, unknown.
ProvenanceContext class Public model with 7 fields.
ResearchArtifactError class Stable, actionable failure for an imported research metadata artifact.
ResearchDependency class Public model with 9 fields.
ResearchEdge class Public model with 6 fields.
ResearchGraphArtifact class Public model with 14 fields.
ResearchGraphStatus class Enum values: complete, partial, unavailable, unknown.
ResearchLineageDossier class Smallest auditable upstream slice for one workflow-produced resource.
ResearchNode type alias Public type alias.
ResearchResource class Public model with 14 fields.
ResourceAvailability class Enum values: available, missing, remote, opaque, ignored.
ResourceRole class Enum values: input, output, data, report, script, archive, other.
SupplyChainFinding class Public model with 7 fields.
WorkflowStep class Public model with 10 fields.
build_research_edge function (**values: 'Any') -> 'ResearchEdge' — Public exported value.
build_research_graph function (*, repository_id: 'str', source_state_id: 'str', provider_run_id: 'str', provider_id: 'str', provider_version: 'str', source_artifact: 'bytes', nodes: 'list[ResearchNode]', edges: 'list[ResearchEdge]', limitations: 'set[str] &#124; list[str]', evidence_families: 'list[str]') -> 'ResearchGraphArtifact' — Seal an imported research artifact into one deterministic graph.
build_research_node function (model: 'type[_ResearchNodeT]', **values: 'Any') -> '_ResearchNodeT' — Public exported value.
compare_notebooks function (before: 'NotebookArtifact', after: 'NotebookArtifact') -> 'list[NotebookCellDelta]' — Compare cell source/order/output with exact ids and conservative fallback lineage.
notebook_execution_provider_envelope function (artifact: 'NotebookExecutionArtifact', *, notebook: 'NotebookArtifact', baseline: 'RepositoryEvidence', configuration_digest: 'str', policy_digest: 'str') -> 'ProviderEnvelope' — Project captured cell execution through the common provider ABI.
parse_executable_document function (source: 'str', *, repository_id: 'str', source_state_id: 'str', path: 'str') -> 'NotebookArtifact' — Inventory Quarto/R Markdown prose and executable fences without rendering.
parse_cyclonedx_sbom function (raw: 'bytes', *, repository_id: 'str', source_state_id: 'str', provider_run_id: 'str', provider_version: 'str') -> 'ResearchGraphArtifact' — Import CycloneDX components, dependency edges, and reported vulnerabilities.
parse_jupyter_notebook function (raw: 'bytes', *, repository_id: 'str', source_state_id: 'str', path: 'str', max_bytes: 'int' = 67108864) -> 'NotebookArtifact' — Parse bounded nbformat JSON without exposing output or attachment content.
parse_notebook_execution function (raw: 'bytes', *, repository_id: 'str', source_state_id: 'str', notebook_document_digest: 'str', provider_run_id: 'str', provider_id: 'str', provider_version: 'str', environment_digest: 'str', max_bytes: 'int' = 67108864) -> 'NotebookExecutionArtifact' — Parse a bounded provider-neutral execution summary, never notebook source.
parse_renv_lock function (raw: 'bytes', *, repository_id: 'str', source_state_id: 'str', provider_run_id: 'str', provider_version: 'str') -> 'ResearchGraphArtifact' — Import dependency declarations from an renv.lock artifact.
parse_ro_crate function (raw: 'bytes', *, repository_id: 'str', source_state_id: 'str', provider_run_id: 'str', provider_version: 'str') -> 'ResearchGraphArtifact' — Import bounded RO-Crate JSON-LD identities and relationships without dereferencing.
parse_snakemake_workflow function (raw: 'bytes', *, repository_id: 'str', source_state_id: 'str', provider_run_id: 'str', provider_version: 'str') -> 'ResearchGraphArtifact' — Parse a bounded, content-free Snakemake workflow summary artifact.
parse_targets_manifest function (manifest_raw: 'bytes', *, repository_id: 'str', source_state_id: 'str', provider_run_id: 'str', provider_version: 'str', metadata_raw: 'bytes &#124; None' = None, network_raw: 'bytes &#124; None' = None) -> 'ResearchGraphArtifact' — Parse native tar_manifest(), tar_meta(), and edge-list exports.
extract_r_repository function (sources: 'Mapping[str, str]', *, repository_id: 'str', source_state_id: 'str') -> 'RRepositoryArtifact' — Inventory bounded supplied R source; no files, packages, or R code are loaded.
research_graph_provider_envelope function (artifact: 'ResearchGraphArtifact', *, baseline: 'RepositoryEvidence', policy_digest: 'str') -> 'ProviderEnvelope' — Normalize a research graph into canonical entities, edges, and observations.
unavailable_research_graph function (*, repository_id: 'str', source_state_id: 'str', provider_run_id: 'str', provider_id: 'str', provider_version: 'str', evidence_families: 'list[str]', reason: 'str') -> 'ResearchGraphArtifact' — Represent an absent tool or artifact without erasing the attempted evidence family.
workflow_lineage_dossier function (artifact: 'ResearchGraphArtifact', *, target_node_id: 'str') -> 'ResearchLineageDossier' — Return a deterministic upstream review slice without claiming runtime causality.