Appendix A — jammi API reference

Every verb the book’s chapters and recipes call, with the signature they call it by. The reference lives once, in the cookbook’s library, and renders here; scripts/check_api_reference.py fails CI if the installed client’s signatures drift from it.

B jammi API reference

These are the jammi Python signatures the chapters call, confirmed by introspecting the installed client — inspect.signature resolved on a live connect("file://…") instance, the way a caller invokes a verb through the thin Session wrapper’s composition (explicit methods on the wrapper, every other verb forwarded to the native handle via __getattr__) — not transcribed from a spec. Call them exactly as written. scripts/check_api_reference.py fails CI when an installed signature differs from this page.

B.1 Two planes, one verb surface

The client splits provisioning from execution, and the book’s teaching spine is the connect(target) parity: write a recipe once, swap only the target.

  • Control plane — provisioning (register sources/topics/mutable tables, list_*, describe_*). In a deployment this is the jammi CLI; in the book it is the same Session handle.
  • Data plane — the ML/data verbs (generate_embeddings, propagate_embeddings, search, fine_tune*, train_context_predictor, job, list_jobs, cancel_job, list_workers, prune_jobs, predict*, eval_*, conformalize*).

connect(target) selects the transport once and returns a handle whose verb surface is identical across planes:

  • jammi.connect("file:///path") -> EmbeddedBackend — embedded, in-process engine (the CPU engine, or CUDA with jammi-ai-native-cu12). CI and a small-scale run render the book on this arm.
  • jammi.connect("grpc://host:port") -> RemoteDatabase — the pure-Python client (jammi) over a running jammi-server. A RemoteDatabase may carry a bearer credential (jammi.connect(endpoint, credentials=jammi.BearerCredentials(token))); the client threads that bearer onto both lanes it uses — the typed gRPC verbs and the Flight SQL lane (db.sql(), a separate pyarrow.flight transport). The engine enforces auth on no transport by design; verifying the bearer is a gateway-in-front’s job.

A recipe written against either handle runs unchanged against the other — the keystone’s heavy emit connects grpc:// to the GPU server; every chapter loads the committed cache and runs file:// on CPU.

B.2 Setup / sources

  • jammi.connect(target) -> Session — open a session against a target; target is a URL string (file:// local, grpc:///grpcs:// remote) or a parsed Target. Selects transport once.
  • jammi.parse_target(target) -> Target · LocalTarget(artifact_dir) / RemoteTarget(endpoint, tls).
  • db.add_source(name, *, url, format=None, tenant_column=None) — register a source by the URL that names it. A postgres:///postgresql:// URL is a PostgreSQL database and a mysql:// URL a MySQL/MariaDB database, each federated table by table and taking no format; any other URL (local, s3:///gs:///azure://) is a file, whose format ∈ {"parquet","csv","json","jsonl","avro"} is required. Re-registering a name raises (Source already registered).
  • db.list_sources() -> list[dict] · db.describe_source(source_id) -> Optional[dict] — control-plane catalog reads.
  • db.list_index_segments(table_name) -> list[dict] — the ANN index segments of one result table, in segment_id order; each entry is {"segment_id": int, "index_path": str, "row_count": int} (the whole index_segments row, identically shaped on both arms — embedded, and CatalogService.ListIndexSegments over grpc://). Returns an empty list, never an error, for all four misses: a table with no segments, a flat (unsegmented) index, an unknown table, and a table this session’s tenant cannot resolve. The last two answer identically by design, so the verb is not an existence oracle for a peer tenant’s table names — ask the result-table surface if you must distinguish “it exists”. db.sql() is not an alternative: the catalog’s own tables are not registered in the DataFusion federation it runs over.
  • db.get_server_info() -> dict — {"version", "features", "storage_backends", "services"}.
  • db.set_tenant(tenant_id) -> None · db.tenant_scope(tenant_id) (context manager) · db.tenant() -> Optional[str] — set_tenant binds the tenant scope to the connection in place (pass "" to clear); tenant_scope binds it for a with block and restores the prior scope on exit; tenant reads the current scope. The bound scope filters catalog listing (list_sources) and row reads from sources carrying a tenant_id discriminator column to tenant_id = $cur OR IS NULL; it does not gate a discriminator-less source (the engine does not authenticate). tenant_id is an opaque UUID.
  • db.generate_embeddings(*, source, model, columns, key, modality=None, dimensions=None, cache=None) -> str — returns the embedding-table name; modality ∈ {"text","image","audio"}. dimensions serves the model’s leading coordinates, each vector L2-renormalised (a Matryoshka prefix: a smaller index from a model trained with matryoshka_dims); the table, its descriptor and every refresh/recompute keep that width, and a width beyond the model’s is refused. model is a model-id string resolved from HuggingFace Hub. cache (H4) opts the call into the engine’s incremental-recompute cache: a recorded producing descriptor lets a later recompute/staleness/verify_materialization reason about this output. (Runs on the GPU server when connected grpc://.)
  • db.sql(query) -> pyarrow.Table · db.encode_query(*, model, query, modality=None, dimensions=None) -> list[float] — dimensions encodes to the model’s leading coordinates, renormalised, to search a table generated at the same width. On a RemoteDatabase, db.sql() runs over the Flight SQL lane (pyarrow.flight) and carries the connection’s bearer credential on that lane.
  • db.rrf_fuse(ranked_lists, *, k_rrf=None) -> list[(str, float)]

A registered file source is queried as <source>.public.<table> (catalog.schema.table), the table being the file’s name without its extension. An engine-produced embedding table is queried as "jammi.<table>" (a quoted single identifier).

B.3 Tier 01 — Construct

  • db.build_neighbor_graph(source, *, k, min_similarity=None, mutual=False, exact=False, embedding_table=None, cache=None) -> str — source is the registered source name (e.g. "arxiv_papers"), not an embedding-table name; embedding_table names the embedding table to build over, and omitted the engine reads that source’s newest ready one. Returns an edge table (src, dst, rank, similarity). Use exact=True in the cookbook (determinism). cache (H4) records a producing descriptor for incremental recompute.

B.4 Tier 02 — Analyze

  • db.search(source, *, query=None, row_key=None, k, filter=None, select=None, embedding_table=None, oversample=None, exact=False) -> pyarrow.Table — ranks by exactly one of query (a vector, list[float]) or row_key (query-by-example: the vector stored for that row, resolved inside the engine); embedding_table names which of the source’s tables to search (default: the most recent); oversample widens a quantized index’s retrieve→rescore breadth for this call; exact=True scores every vector instead of searching the index — the true nearest neighbours, the baseline for measuring an approximate search’s recall.
  • db.build_lexical_index(source, *, columns, key, analyzer="english") -> str — materialises a lexical table over the source’s text: one (_row_id, text) row per source row, keyed by key, the text columns joined in order by a space. analyzer ∈ {"english" (lowercase + Porter stemming), "raw" (lowercase, no stemming)}. The BM25 index is rebuilt in memory from the table per version, never stored. Always recomputes (its only input is an unpinned source).
  • db.lexical_search(source, *, text, k, filter=None, select=None, lexical_table=None) -> pyarrow.Table — BM25 over the source’s lexical table (default: the newest): text’s words are the query (disjunctive terms; no syntax interpreted). Rows are hydrated from the source like search’s, each with bm25_score, 0-based bm25_rank and retrieved_by == ["bm25"]; filter returns the k best-ranked rows that satisfy it.
  • db.assemble_context(source, *, query, k, value_columns=None, aggregator=None, exclude_self=True, exclude_key=None, split=None, edge_source=None, edge_src_column=None, edge_dst_column=None, edge_type_column=None, edge_weight_column=None, edge_hops=None, edge_fanout=None, edge_direction=None, edge_types=None, min_weight=None, hybrid=False) -> dict — keys context_vector, context_size, context_keys, value_rows, source. aggregator ∈ {"mean","sum","max"}; edge_direction ∈ {"out","in","undirected"}.
  • db.propagate_embeddings(source, *, embedding_table=None, edge_graph_table=None, edge_source=None, edge_src_column=None, edge_dst_column=None, edge_weight_column=None, direction=None, hops=None, weighting=None, alpha=None, output=None, cache=None) -> str — propagate an embedding table’s features over a declared graph; returns a new searchable embedding table. Pass embedding_table (the name generate_embeddings returned) plus either edge_graph_table (an S9 neighbor_graph) or edge_source (a registered edge table; cols default "src"/"dst"). direction ∈ {"out"(default),"in","undirected"}; hops default 2, clamped to [1,3]; weighting ∈ {"degree_normalized"(default; symmetric-normalized + α-teleport = APPNP), "uniform"(random-walk mean ≈ SGC), "edge_similarity"(weighted by edge_weight_column)}; alpha = APPNP teleport (default 0.1); output ∈ {"final"(default, d-dim), "jumping_knowledge"(concat all hops, (K+1)·d)}. cache (H4) records a producing descriptor for incremental recompute. Deterministic by construction (fixed (group,neighbour) f64 fold order — byte-identical across threads; no seeding). Refuses if the edge set exceeds ~2M.

B.5 Tier 03 — Learn

  • db.fine_tune(*, source, base_model, columns, method, task=None, lora_rank=None, lora_alpha=None, lora_dropout=None, learning_rate=None, epochs=None, batch_size=None, max_seq_length=None, validation_fraction=None, early_stopping_patience=None, warmup_steps=None, warmup_fraction=None, gradient_accumulation_steps=None, triplet_margin=None, target_modules=None, early_stopping_metric=None, backbone_dtype=None, weight_decay=None, max_grad_norm=None, embedding_loss=None, mnrl_temperature=None, cached=None, mine_hard_negatives=None, hard_negative_k=None, hard_negative_exclude_hops=None, hard_negative_refresh_every=None, matryoshka_dims=None, seed=None, regression_loss=None, regression_beta=None, quantile_levels=None, keep_last_n_checkpoints=None, idempotency_key="", world_size=1) -> Job — method is required (the adapter family; only "lora" is supported). task is the optional ModelTask string ("text_embedding", "classification", "regression", …). embedding_loss ∈ {"cosent","angle","cosine_mse","triplet","mnrl"}. seed pins fine-tune determinism. Regression objective (task="regression" only): regression_loss ∈ {"gaussian_nll","beta_nll","crps","pinball"} — default β-NLL (a stop-gradient σ^{2β} re-weighting that prevents mean-starvation in joint μ,σ² NLL; distinct from the σ-floor overconfidence guard); regression_beta is β for beta_nll (default 0.5); quantile_levels is required for pinball. The supervision source must project columns named exactly text and target (numeric); served predictions are de-standardized to raw outcome units (predicted_mean/predicted_std). keep_last_n_checkpoints enables per-epoch adapter checkpointing and caps how many the trainer retains (a rolling window over the run’s own epoch order); None (default) DISABLES it entirely — no checkpoint bytes, no catalog rows, unchanged behavior from before this knob existed — n >= 1 enables it (n >= epochs retains every epoch), 0 is refused (ambiguous — omit the field to disable), each retained epoch registers under jammi:fine-tuned:{job_id}:epoch_{N}. idempotency_key, when non-empty, dedupes the submission per-tenant: a second submit carrying the same key returns the prior job’s handle rather than submitting a duplicate. world_size is the number of ranks that train the job cooperatively; 1 (the default) is a single process, a value below 1 is refused client-side with jammi.errors.InvalidArgument, and only a value above 1 reaches the wire — one rank has one encoding, the unset field.
  • db.fine_tune_graph(*, node_source, id_column, text_column, base_model, edge_graph_table=None, edge_source=None, edge_src_column=None, edge_dst_column=None, edge_provenance="declared", walk_length=None, walks_per_node=None, return_p=None, in_out_q=None, graph_hard_negatives=None, exclude_hops=None, min_negatives=None, sample_seed=None, embedding_loss=None, mnrl_temperature=None, triplet_margin=None, epochs=None, batch_size=None, learning_rate=None, lora_rank=None, lora_alpha=None, lora_dropout=None, max_seq_length=None, validation_fraction=None, early_stopping_patience=None, early_stopping_metric=None, warmup_steps=None, warmup_fraction=None, gradient_accumulation_steps=None, target_modules=None, backbone_dtype=None, weight_decay=None, max_grad_norm=None, matryoshka_dims=None, seed=None, keep_last_n_checkpoints=None, idempotency_key="", world_size=1) -> Job — the training knobs are fine_tune’s own; the walks follow exactly one graph: edge_graph_table (a build_neighbor_graph table, pinned by its content digest) or edge_source (a registered source; endpoint columns default to src/dst). edge_provenance ∈ {"declared","similarity"}; "declared" (external structure) supervises the largest gain, "similarity" (k-NN-of-own-embeddings) a smaller but real one via homophily — never a substitute, only a weak bootstrap. world_size is the number of ranks that train the job cooperatively; 1 (the default) is a single process, a value below 1 is refused client-side with jammi.errors.InvalidArgument, and only a value above 1 reaches the wire — one rank has one encoding, the unset field.
  • Job (the generalised, kind-agnostic handle over JobService — training kinds today, any jobs row in principle): job.wait() -> dict (blocks to a terminal state and returns the tagged terminal result — {"kind": "model", "model_id", "artifact_path", "metrics", "cache_outcome"} for a training kind, {"kind": "table", "table", "cache_outcome"} for a compute kind — cache_outcome is {"outcome": "computed"}, or {"outcome": "reused", "reused": {"table": <name>}} / {"outcome": "reused", "reused": {"model": <artifact>}} for an exact hit under cache="use"; raises on failure) · job.status() -> str · job.progress() -> dict ({"rows_done", "rows_total", "phase"}; the first two are None until the executor records any) · job.cancel() -> bool (request cancellation; True iff it landed on a still non-terminal row) · job.kind · job.output_model_id · job.job_id · job.metrics() -> dict (the catalog’s run-summary blob, nested inside the tagged jobs.result payload — final_loss, early_stopping_metric, total_steps, started_at/completed_at, train_loss_curve, and val_loss_curve when the job’s early_stopping_metric is "val_loss"; each curve is a [{epoch, loss}] array) · job.acceleration_report() -> Optional[dict] (the claiming worker’s per-job GPU-acceleration determination — None when the catalog column is unset (SQL NULL: a row no code has recorded a determination on), {"state": "pending"} at submission, {"state": "determined", "attempt", "device", "dtype", "cuda_compiled", "flash_compiled", "ops": {<op>: {"holds", "reason"}, ...}, "flash": {"holds", "reason"}} once the claiming worker resolves the device, right before the training loop’s first step. The ops keys are dtype-NEUTRAL (cast_scale/cast_add name a cast boundary whose underlying registry key the engine resolves from the job’s own backbone_dtype), and the map carries only the ops this job’s probe could attribute a clean dispatch to — an unattributable op is omitted, never guessed. state’s vocabulary is owned by the producer and is NOT closed by this list: a job that fails before its device is resolved, or a kind the probe does not apply to, records {"state": "undetermined", "reason": ...} / {"state": "not_applicable", ...} instead — so read state, never assume determined. The unset value is None, never {} — a deliberate, test-pinned contract, not an oversight: unlike metrics(), whose column carries only ONE absence (NULL and “not recorded yet” are the same state there, so {} loses nothing), this column’s NULL and its submission-time {"state": "pending"} marker are two DIFFERENT, distinguishable states — a job whose acceleration was never recorded at all, versus a job recorded as awaiting a claimant — and coercing the absence to {} would erase exactly that distinction, handing a caller an empty “report” it could read as a determination. None is an honest absence of information. A present-but-malformed blob is NOT folded into it: that raises jammi.errors.BackendError on both transports). (Remote handles return RemoteJob with the same wait()/status()/progress()/cancel()/kind/output_model_id/job_id/metrics()/acceleration_report() surface — RemoteJob.acceleration_report() parses JobStatusResponse.acceleration_report_json off the wire into the same dict shape, and returns the same None when that wire field is unset. The two transports are value-parity pinned across all three states — unset/None, pending, determined — so the tri-state above is the contract on BOTH arms, not a per-transport accident.) A handle is re-attachable across connections: db.job(job_id) -> Job | RemoteJob hands back a handle to a job this session never submitted — the embedded arm’s Job, the remote arm’s RemoteJob, every read verb (status() / progress() / metrics() / acceleration_report() / cancel() / wait()) working on either. Existence is resolved AT ATTACH (one JobStatus call on the remote arm, the catalog read itself on the embedded one), so a job_id with no row visible to this session’s tenant raises the typed jammi.errors.BackendError — identical in class on both arms — rather than returning a handle that fails on its first read. output_model_id reads the same on both arms at EVERY lifecycle state — queued, running, completed, failed — not only once the job completes: for the two LoRA fine-tune kinds it is the DETERMINISTIC jammi:fine-tuned:{job_id} id, stamped at SUBMISSION time (it depends only on job_id, never on the run’s outcome); the server resolves it via resolve_model_id (crates/jammi_ai/src/fine_tune/training_job.rs) into JobStatusResponse.output_model_id (crates/jammi-wire/proto/jammi/v1/job.proto), and the embedded attach calls the SAME engine function, so this client duplicates no naming rule of its own; empty for a compute-kind job (no compute kind registers a model). db.list_jobs() -> list[dict] lists the jobs visible to the current tenant, most recent first; each entry carries the wire’s JobSummary field set — job_id, kind, status, base_model_id, output_model_id, created_at, error, claimed_by, ranks — with error empty unless the job failed, claimed_by the instance holding (or last holding) its claim and empty while queued, and ranks the instance that ran each rank of the latest training attempt, in rank order (empty for a compute kind); none is mapped onto None on either arm. db.cancel_job(job_id) -> bool, db.list_workers() -> list[dict] (the engine processes running the claim loop — instance_id, label, host, kinds, started_at, last_seen_at), and db.prune_jobs() -> int (eagerly delete this tenant’s own terminal job rows older than [jobs] retention_days) round out the job-verb set. There is no progress surface on the LISTING — read job(job_id).progress() on the individual handle for that.
  • Eval (R1): db.eval_embeddings(*, source, golden_source, embedding_table=None, k=10, cohorts=None, oversample=None, exact=False) -> dict · db.eval_compare(*, embedding_tables, source, golden_source, k=10, oversample=None, exact=False) -> dict — exact=True ranks every query as search(exact=True) does: every vector scored, ties broken by row key, no index approximation in the report · db.eval_inference(*, model, source, columns, task, golden_source, label_column) -> dict · db.eval_per_query(eval_run_id) -> list

B.6 Tier 04 — Predict & Quantify

  • db.train_context_predictor(source, *, key_column, task_column, value_column, architecture="attncnp", output="gaussian", objective="crps", context_k=32, hidden_dim=64, num_heads=4, num_layers=2, levels=None, beta=0.5, epochs=100, learning_rate=0.005, grad_clip=1.0, test_task_fraction=0.2, min_task_count=4, seed=0, model_id=None, idempotency_key="") -> Job — architecture ∈ {"cnp","attncnp","tnp"}; output ∈ {"gaussian","quantile"}; objective ∈ {"crps","nll","betanll"}. Returns a Job; job.output_model_id after job.wait() is the predictor id.
  • db.predict_with_context_predictor(model_id, *, source, target_key, split=None, edge_source=None, edge_src_column=None, edge_dst_column=None, edge_type_column=None, edge_weight_column=None, edge_hops=None, edge_fanout=None, edge_direction=None, edge_types=None, min_weight=None, hybrid_ann_k=None) -> dict — gaussian: {"kind","mean","std"}; quantile: {"kind","levels"}; plus "source" and "context_ref". The declared-edge params make this graph-conditioned — the tier-04 BYOG surface.
  • Conformal (marginal only in Python, by design): db.conformalize(calibration, true_labels, test, *, alpha, score=None, raps_params=None) -> list[list[int]] (score ∈ {"lac","aps","raps"}); db.conformalize_interval(predictions, observed, test_predictions, *, alpha) -> list[(float,float)]; db.conformalize_cqr(lower, upper, observed, test_lower, test_upper, *, alpha) -> list[(float,float)].
  • Calibration eval (R2): db.eval_calibration(*, source, golden_source, shape, cohorts=None) -> dict — shape ∈ {"gaussian","sample"}; returns aggregate (CRPS/NLL/adaptive_ece/sharpness/coverage), per_cohort, per_record. golden_source resolves in the engine’s default catalog, so pass the fully-qualified path "<source>.public.<source>", not the bare source id (the bare id raises table not found). For "gaussian" the golden table carries record_id, mean, sd, outcome.

B.7 Model catalog (control plane)

A fine_tune* / train_context_predictor job registers a model under its job.output_model_id; these control-plane verbs let you see the models the engine resolves and trains, and clean them up. Pre-trained models are served by id (the resolver loads an HF or local model by reference). Scoped to the session’s bound tenant. Each dict carries {model_id, backend, task, status}.

  • db.list_models() -> list[dict] — one record per model in the catalog for the current tenant (peer of list_sources).
  • db.describe_model(model_id) -> Optional[dict] — describe one model by id, or None if it is not in the catalog.
  • db.delete_model(model_id, *, version=None, if_exists=False) -> None — remove the model row from the catalog. Refused with FAILED_PRECONDITION while any reference still points at the model. version=None targets the latest version; if_exists=True makes a missing model a no-op (the flag rides the request — the server is authoritative).

B.8 Provenance channels

  • db.register_channel(channel_id, *, priority, columns) · db.add_channel_columns(channel_id, *, columns) — for a recipe that needs a custom evidence channel.

B.9 Mutable companion tables

  • db.create_mutable_table(name, *, schema, primary_key, indexes=None, order_column=None, chunk_size=None) -> str — provision a mutable companion table alongside the append-only result tables; schema is the column definition, primary_key the upsert key. indexes declares secondary lookups, order_column the sort key, chunk_size the row-group size.
  • db.drop_mutable_table(name, *, if_exists=False) -> None — drop a mutable table; if_exists=True makes a missing table a no-op.
  • db.list_mutable_tables() -> list[dict] — control-plane catalog read of the registered mutable tables.

B.10 Trigger stream / topics

  • db.register_topic(name, *, schema) -> str — register a trigger-stream topic with a row schema.
  • db.drop_topic(name, *, if_exists=False) -> None — drop a topic; if_exists=True makes a missing topic a no-op.
  • db.list_topics() -> list[str] — control-plane catalog read of the registered topic names.
  • db.publish_topic(topic, *, batch) -> int — publish an Arrow batch of rows onto a topic; returns the 0-based offset the batch landed at.
  • db.subscribe_collect(topic, *, predicate=None, from_offset=None, replay_only=True, max_batches=None) -> pyarrow.Table — collect a topic’s batches into one table; predicate is a SQL filter over the topic schema (a batch whose rows all filter out is dropped). By default the collect drains the backing table from from_offset and returns (no from_offset replays nothing), capped at max_batches when given. replay_only=False follows the live tail after the replay and returns once max_batches batches arrive; it requires max_batches.

B.11 Point-in-time join + materialization / incremental recompute (H4, 0.31.0)

The H4 horizon adds a point-in-time temporal join and a read-only materialization / lineage / incremental-recompute surface. The cache-aware verbs above (generate_embeddings, infer, build_neighbor_graph, propagate_embeddings) accept a cache kwarg that records a producing descriptor for their output table; these verbs then reason over that descriptor.

  • db.asof_join(spine, facts, *, spine_by, spine_time, facts_by, facts_time, direction=None, boundary=None, tolerance_duration_micros=None, tolerance_steps=None, tie_break_column=None, project=None) -> str — assemble a point-in-time-correct table: for each spine row, attach the facts row valid as-of the spine row’s temporal key, within each equality group; returns the new table name (read it via sql). spine/facts are registered source ids; the *_by/*_time pairs name each side’s equality + temporal columns (an empty *_by is one global group). direction ∈ {"backward"(default, leakage-safe),"forward","nearest"}; boundary ∈ {"inclusive"(default),"exclusive"}; at most one tolerance unit (tolerance_duration_micros or tolerance_steps) may be given; tie_break_column names the secondary descending disambiguator (when omitted, a duplicate at the matched instant fails loudly). Left rows are always preserved; unmatched fact columns are null. Mirrors RemoteDatabase.asof_join.
  • db.verify_materialization(table, expected_definition=None) -> dict — recompute a materialised result table’s artifact digest (and, if given, an expected definition hash) against its .materialization.json manifest. Returns {"verdict": "match" | "mismatch" | "match_with_unpinned_inputs" | "missing_manifest", ...}. Read-only — attests the Parquet data (not the ANN index); never acts on a verdict.
  • db.staleness(table, current_definition) -> dict — the read-only staleness sensor: is a ready table still the output of its recorded definition over its inputs’ current state? current_definition is the hash of how the table is produced now. Returns {"staleness": "fresh" | "stale" | "undecidable" | "missing_manifest", ...} (stale carries reasons; undecidable carries unpinned + decided_reasons). Read-only.
  • db.derives_from(table) -> list[dict] — the one-hop reverse-dependency edges of a result table: every ready table that anchored on it, as {"input", "derived", "kind"}. Read-only lineage the caller walks transitively.
  • db.recompute(table, *, cascade=None) -> dict — re-invoke a result table’s recorded producer over its inputs’ current state. cascade ∈ {"report_only"(default — recompute the named table only and report the transitive downstream-stale set), "downstream"(additionally sweep every transitive dependent once, in dependency order)}. A pre-contract table (no recorded producing descriptor) raises. Returns {"recomputed": [{"original","recomputed","outcome"}], "downstream_stale": [...]}; read each recomputed table via sql. Mirrors RemoteDatabase.recompute.

B.12 Not available in Python (do not call)

  • search_by_id — use search with a fetched vector.
  • Standalone Mondrian / weighted conformal — not in the OSS Python surface. The tier-04 graph-aware repair is computed inline in the notebook (~10 lines of numpy); a productionized, governed cohort surface is out of scope. OSS Python exposes only the marginal conformalize* surface.