Skip to main content

Module keys

Module keys 

Source

Structs§

BudgetKeyContext
Key context for budget partition keys.
ExecKeyContext
Pre-computed key context for all keys on an execution’s partition. Created once per operation and reused for all key construction.
FlowIndexKeys
Flow-partition index keys.
FlowKeyContext
Key context for flow-structural partition keys.
IndexKeys
Index keys scoped to a single execution partition.
QuotaKeyContext
Key context for quota partition keys.

Constants§

USAGE_DEDUP_KEY_PREFIX
Shared prefix for the usage-dedup keyspace. Must match the ff:usagededup: literal referenced in lua/**.lua (notably lua/budget.lua:99, the ff_report_usage_and_check function). Grep ff:usagededup: to find all producers, consumers, and test fixtures in one search.

Functions§

budget_attach_key
Budget attachment key (not budget-ID scoped).
budget_policies_index
Budget policies index — SET of budget IDs on this partition. Used by the budget reconciler for cluster-safe discovery (replaces SCAN).
budget_resets_key
Budget reset schedule index.
global_config_partitions
Partition configuration — ff:config:partitions (§8.3). Validated on startup; created on first boot.
idempotency_key
ff:idem:{p:N}:<namespace>:<idempotency_key>
lane_config_key
Lane configuration key.
lane_counts_key
Lane counts key.
lanes_index_key
Lane registry.
namespace_executions_key
ff:ns:<namespace>:executions
noop_key
Placeholder key that shares a hash tag with other KEYS in the same FCALL.
quota_attach_key
Quota attachment key.
quota_policies_index
Quota policy index — SET of policy IDs on this partition. Used by the quota reconciler for cluster-safe discovery (replaces SCAN).
tag_index_key
ff:tag:<namespace>:<key>:<value>
usage_dedup_key
Build a usage-dedup key: ff:usagededup:<hash_tag>:<dedup_id>.
waitpoint_key_resolution
Waitpoint key resolution — ff:wpkey:{p:N}:<waitpoint_key>
worker_caps_key
Non-authoritative capability advertisement STRING for a worker (sorted CSV). Written by ff-sdk::FlowFabricWorker::connect, read by the engine’s unblock scanner to decide whether a blocked_by_route execution has a matching worker. Cluster mode: the key lands on whatever slot CRC16 hashes to — enumeration goes through workers_index_key() rather than a keyspace SCAN, which would only hit one shard in cluster mode.
worker_key
Worker registration key.
workers_capability_key
Worker capability index.
workers_index_key
Global worker index — SET of connected worker_instance_ids. Single slot in cluster mode (no hash tag; CRC16 of the literal key). SADD on connect, SREM on empty-caps restart; SMEMBERS gives the enumerable universe the unblock scanner walks. Separate from ff:worker:{id} registration keys to keep the index membership cheap to read and independent of per-worker hash details.