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 thejammiCLI; in the book it is the sameSessionhandle. - 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 withjammi-ai-native-cu12). CI and asmall-scale run render the book on this arm.jammi.connect("grpc://host:port") -> RemoteDatabase— the pure-Python client (jammi) over a runningjammi-server. ARemoteDatabasemay 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 separatepyarrow.flighttransport). 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;targetis a URL string (file://local,grpc:///grpcs://remote) or a parsedTarget. 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. Apostgres:///postgresql://URL is a PostgreSQL database and amysql://URL a MySQL/MariaDB database, each federated table by table and taking noformat; any other URL (local,s3:///gs:///azure://) is a file, whoseformat ∈ {"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, insegment_idorder; each entry is{"segment_id": int, "index_path": str, "row_count": int}(the wholeindex_segmentsrow, identically shaped on both arms — embedded, andCatalogService.ListIndexSegmentsovergrpc://). 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_tenantbinds the tenant scope to the connection in place (pass""to clear);tenant_scopebinds it for awithblock and restores the prior scope on exit;tenantreads the current scope. The bound scope filters catalog listing (list_sources) and row reads from sources carrying atenant_iddiscriminator column totenant_id = $cur OR IS NULL; it does not gate a discriminator-less source (the engine does not authenticate).tenant_idis 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"}.dimensionsserves the model’s leading coordinates, each vector L2-renormalised (a Matryoshka prefix: a smaller index from a model trained withmatryoshka_dims); the table, its descriptor and every refresh/recompute keep that width, and a width beyond the model’s is refused.modelis 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 laterrecompute/staleness/verify_materializationreason about this output. (Runs on the GPU server when connectedgrpc://.)db.sql(query) -> pyarrow.Table·db.encode_query(*, model, query, modality=None, dimensions=None) -> list[float]—dimensionsencodes to the model’s leading coordinates, renormalised, to search a table generated at the same width. On aRemoteDatabase,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—sourceis the registered source name (e.g."arxiv_papers"), not an embedding-table name;embedding_tablenames 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). Useexact=Truein 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 ofquery(a vector,list[float]) orrow_key(query-by-example: the vector stored for that row, resolved inside the engine);embedding_tablenames which of the source’s tables to search (default: the most recent);oversamplewidens a quantized index’s retrieve→rescore breadth for this call;exact=Truescores 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 bykey, the textcolumnsjoined 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 likesearch’s, each withbm25_score, 0-basedbm25_rankandretrieved_by == ["bm25"];filterreturns thekbest-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— keyscontext_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. Passembedding_table(the namegenerate_embeddingsreturned) plus eitheredge_graph_table(an S9neighbor_graph) oredge_source(a registered edge table; cols default"src"/"dst").direction ∈ {"out"(default),"in","undirected"};hopsdefault 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—methodis required (the adapter family; only"lora"is supported).taskis the optionalModelTaskstring ("text_embedding","classification","regression", …).embedding_loss ∈ {"cosent","angle","cosine_mse","triplet","mnrl"}.seedpins 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_betais β forbeta_nll(default 0.5);quantile_levelsis required forpinball. The supervision source must project columns named exactlytextandtarget(numeric); served predictions are de-standardized to raw outcome units (predicted_mean/predicted_std).keep_last_n_checkpointsenables 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 >= 1enables it (n >= epochsretains every epoch),0is refused (ambiguous — omit the field to disable), each retained epoch registers underjammi: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_sizeis the number of ranks that train the job cooperatively;1(the default) is a single process, a value below1is refused client-side withjammi.errors.InvalidArgument, and only a value above1reaches 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 arefine_tune’s own; the walks follow exactly one graph:edge_graph_table(abuild_neighbor_graphtable, pinned by its content digest) oredge_source(a registered source; endpoint columns default tosrc/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_sizeis the number of ranks that train the job cooperatively;1(the default) is a single process, a value below1is refused client-side withjammi.errors.InvalidArgument, and only a value above1reaches the wire — one rank has one encoding, the unset field.Job(the generalised, kind-agnostic handle overJobService— training kinds today, anyjobsrow 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_outcomeis{"outcome": "computed"}, or{"outcome": "reused", "reused": {"table": <name>}}/{"outcome": "reused", "reused": {"model": <artifact>}}for an exact hit undercache="use"; raises on failure) ·job.status() -> str·job.progress() -> dict({"rows_done", "rows_total", "phase"}; the first two areNoneuntil the executor records any) ·job.cancel() -> bool(request cancellation;Trueiff 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 taggedjobs.resultpayload —final_loss,early_stopping_metric,total_steps,started_at/completed_at,train_loss_curve, andval_loss_curvewhen the job’searly_stopping_metricis"val_loss"; each curve is a[{epoch, loss}]array) ·job.acceleration_report() -> Optional[dict](the claiming worker’s per-job GPU-acceleration determination —Nonewhen the catalog column is unset (SQLNULL: 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. Theopskeys are dtype-NEUTRAL (cast_scale/cast_addname a cast boundary whose underlying registry key the engine resolves from the job’s ownbackbone_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 readstate, never assumedetermined. The unset value isNone, never{}— a deliberate, test-pinned contract, not an oversight: unlikemetrics(), whose column carries only ONE absence (NULLand “not recorded yet” are the same state there, so{}loses nothing), this column’sNULLand 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.Noneis an honest absence of information. A present-but-malformed blob is NOT folded into it: that raisesjammi.errors.BackendErroron both transports). (Remote handles returnRemoteJobwith the samewait()/status()/progress()/cancel()/kind/output_model_id/job_id/metrics()/acceleration_report()surface —RemoteJob.acceleration_report()parsesJobStatusResponse.acceleration_report_jsonoff the wire into the same dict shape, and returns the sameNonewhen 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 | RemoteJobhands back a handle to a job this session never submitted — the embedded arm’sJob, the remote arm’sRemoteJob, every read verb (status()/progress()/metrics()/acceleration_report()/cancel()/wait()) working on either. Existence is resolved AT ATTACH (oneJobStatuscall on the remote arm, the catalog read itself on the embedded one), so ajob_idwith no row visible to this session’s tenant raises the typedjammi.errors.BackendError— identical in class on both arms — rather than returning a handle that fails on its first read.output_model_idreads 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 DETERMINISTICjammi:fine-tuned:{job_id}id, stamped at SUBMISSION time (it depends only onjob_id, never on the run’s outcome); the server resolves it viaresolve_model_id(crates/jammi_ai/src/fine_tune/training_job.rs) intoJobStatusResponse.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’sJobSummaryfield set —job_id,kind,status,base_model_id,output_model_id,created_at,error,claimed_by,ranks— witherrorempty unless the job failed,claimed_bythe instance holding (or last holding) its claim and empty while queued, andranksthe instance that ran each rank of the latest training attempt, in rank order (empty for a compute kind); none is mapped ontoNoneon 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), anddb.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 — readjob(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=Trueranks every query assearch(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 aJob;job.output_model_idafterjob.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"}; returnsaggregate(CRPS/NLL/adaptive_ece/sharpness/coverage),per_cohort,per_record.golden_sourceresolves in the engine’s default catalog, so pass the fully-qualified path"<source>.public.<source>", not the bare source id (the bare id raisestable not found). For"gaussian"the golden table carriesrecord_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 oflist_sources).db.describe_model(model_id) -> Optional[dict]— describe one model by id, orNoneif 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 withFAILED_PRECONDITIONwhile any reference still points at the model.version=Nonetargets the latest version;if_exists=Truemakes 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;schemais the column definition,primary_keythe upsert key.indexesdeclares secondary lookups,order_columnthe sort key,chunk_sizethe row-group size.db.drop_mutable_table(name, *, if_exists=False) -> None— drop a mutable table;if_exists=Truemakes 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 rowschema.db.drop_topic(name, *, if_exists=False) -> None— drop a topic;if_exists=Truemakes 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 Arrowbatchof 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;predicateis a SQL filter over the topic schema (a batch whose rows all filter out is dropped). By default the collect drains the backing table fromfrom_offsetand returns (nofrom_offsetreplays nothing), capped atmax_batcheswhen given.replay_only=Falsefollows the live tail after the replay and returns oncemax_batchesbatches arrive; it requiresmax_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 eachspinerow, attach thefactsrow valid as-of the spine row’s temporal key, within each equality group; returns the new table name (read it viasql).spine/factsare registered source ids; the*_by/*_timepairs name each side’s equality + temporal columns (an empty*_byis one global group).direction ∈ {"backward"(default, leakage-safe),"forward","nearest"};boundary ∈ {"inclusive"(default),"exclusive"}; at most one tolerance unit (tolerance_duration_microsortolerance_steps) may be given;tie_break_columnnames the secondary descending disambiguator (when omitted, a duplicate at the matched instant fails loudly). Left rows are always preserved; unmatched fact columns are null. MirrorsRemoteDatabase.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.jsonmanifest. 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 areadytable still the output of its recorded definition over its inputs’ current state?current_definitionis the hash of how the table is produced now. Returns{"staleness": "fresh" | "stale" | "undecidable" | "missing_manifest", ...}(stalecarriesreasons;undecidablecarriesunpinned+decided_reasons). Read-only.db.derives_from(table) -> list[dict]— the one-hop reverse-dependency edges of a result table: everyreadytable 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 viasql. MirrorsRemoteDatabase.recompute.
B.12 Not available in Python (do not call)
search_by_id— usesearchwith 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.