Agents Scenarios
Model calls, context, tools, and coordinated agent execution.
Source locations
- Inputs and calculations:
mlsysim/engine/scenario_definitions/agents.py. - Named configurations:
mlsysim/engine/scenario_catalog/agents/. - Result schemas:
mlsysim/engine/result_types/agents.py.
Public imports and existing class reference URLs remain stable.
Scenario contracts
- AcceptedTaskCostScenario: An attempt of model tokens plus other cost, retried until accepted; optional levers on it.
- AllocationAxesScenario: One output
ceilingspent as one chain,candidatesstreams, orroundsof feedback. - AnnFootprintScenario: Resident bytes of a graph index and of product-quantization codes over one corpus.
- AppendOnlyContextScenario: A trajectory that appends each turn to its prompt and resends the whole history.
- ApprovalEscrowScenario: Approval escrow for a long-running workload (held resources) and an urgent one (time).
- ArgmaxNoiseScenario: Argmax over equally good candidates with Gaussian score noise; a rare loophole in the pool.
- AttentionDilutionScenario: One attention head with fixed logits: a target among background keys, optionally look-alikes.
- BestOfNPoolScenario: Pools of independent candidates at
pass_rate, and a mixed workload with the same average. - BlindRetryScenario: Mutating calls retried once after any timeout, with independent request and reply loss.
- Bm25PairScenario: One query term scored by BM25 in a short and a long document of one corpus.
- BoundedLiabilityAdmissionScenario: The next model call of a trajectory, tested against its dollar allowance.
- CheckerPosteriorScenario: A fallible check over candidates,
defect_rateof which violate the property. - CohortArmRecord: One policy’s outcomes and settled usage over a cohort of attempted tasks.
- CompactionCadenceScenario: Compaction between a trigger and a target watermark over a turn budget.
- ContextAdmissionScenario: A serialized request (text plus an image charge) against a window with a reserved reply.
- ContextBudgetScenario: A request budgeted by role, appending each tool result against selecting a fixed share.
- ContextInvalidationScenario: A superseded excerpt right after the reused prefix: remove, replace, or append a notice.
- ControlledBranchScenario: Fresh continuations from one saved prefix under several branches, counted by outcome; the Wilson bound a clean branch leaves and the clean runs a
target_boundneeds. - CorrelatedReviewersScenario: Reviewers who each falsely approve with the same marginal rate, independent or correlated.
- CounterfactualSearchScenario: Replay paths that blame for a failure must search: a whole horizon, or one checked window.
- CreditWindowScenario: A producer feeding a slower model consumer, unbounded or behind a credit window.
- DeadlinePolicyScenario: One candidate,
breadthin parallel, or feedback, for one task under onedeadline. - DeficitRoundRobinScenario: Backlogged request classes sharing model calls under weighted deficit round-robin.
- DelegationCohortScenario: A single controller and a delegated design on one matched cohort, priced alike.
- DelegationTokenBreakEvenScenario: Delegation at a token multiple m per attempt: cost per accepted task scales by m p_single / p_multi.
- DependencyScheduleScenario: A dependency graph on interchangeable slots: aggregate work, the critical path, and both bounds.
- EnvelopeAmortizationScenario:
callssequential calls ofwork_per_call, with envelope setup paid per call or once. - ExactScanScenario: An exact vector scan on one host: bytes, intensity, and the bandwidth floor.
- FanoutDeadlineScenario: A fan-out whose workers each finish by the deadline with one probability, independently.
- GraphNeighborhoodScenario: A typed traversal’s exact-tree neighborhood against a call’s retrieval allowance.
- HeadSamplingMissScenario: Head sampling keeps each trial with
retention_probability, decided before its outcome; a failure mode that occursoccurrencestimes leaves no detailed trace withmiss. - HorizonCompoundingScenario: Independent, unchecked steps each right with
step_success; success at each horizon. - IndexMaintenanceScenario: One edit’s synchronous re-indexing against exclusion of the stale entries.
- InjectionExposureScenario: Workloads reading
readsuntrusted items each, a fractionpayload_fractioncarrying a payload, with and without a screen that missesmiss_rateof payloads. - ModelCallScenario: One call of
prompt_tokens(+instruction_tokens) in andoutput_tokensout atfloors. - ModelPollingScenario: A model that checks a pending job at a fixed interval until it completes.
- ObservationCarryScenario: A raw tool output sized in windows, and its shaped view carried by later calls.
- PartitionScreenScenario: A fixed partition screened over worker counts: (1 - p) + p / N + c (N - 1) of the serial time.
- PolicyComparisonScenario: Two policies, each run on
attackedattacked andbenignseparate benign episodes. - PrefixLayoutBillScenario: A trajectory of root, trunk, and leaf requests, billed volatile-first and zoned.
- ProbeVsAnswerScenario: A generated explanation of
answer_tokensagainst a prepared test ofprobe_time. - ProtectedFieldCheckScenario: Constraints lost independently across compaction rounds, with and without a host check.
- PrunedSearchTreeScenario: A search tree of
branchingchildren per node whose step check rejectsrejection_rate. - ReferencePassingScenario: Children handed a pasted repository slice, or a reference and the files they then read.
- ResidualViolationScenario: A residual per-step rate of violating proposals over
horizonsteps, for a day’s trajectories. - RetrievalPayloadScenario: Whole serialized records staged in what a call’s window leaves for retrieval.
- SamplingScenario: One fixed logit vector at a base and a sharpened temperature, then top-p at the base.
- SandboxPoolReserveScenario: A warm sandbox pool under steady arrivals: active leases, a standby reserve, and memory.
- ScalabilityLawScenario: Relative capacity N / (1 + sigma (N - 1) + kappa N (N - 1)) over integer worker counts.
- ScopedRevisionScenario: A candidate plan of equal nodes,
replaced_nodesof which a refuted premise invalidates. - SearchAccountsScenario: Flat best-of-N against beam search over the same task, kept as separate accounts.
- SequentialCanaryScenario: A canary monitor: Wald’s SPRT between acceptance
p_baseand a specified degradedp_degradedat targetsalpha(false hold) andbeta(missed degradation), onfractionof eligible tasks arriving atarrival_rate, labelslabel_delaylate. - SerialTailExposureScenario: Serial calls that each exceed their own tail latency independently.
- SharedWriteScenario: Workers each writing
writes_per_workeroffilesfiles, uniformly and independently. - ShortenedWindowScenario: An observation window cut to
window_shareof its adopted length; samples scale with it. - SpanCriticalPathScenario: One trial’s observed spans on a shared clock, the spans each waits for, and one intervention.
- StorageAmplificationScenario: Auxiliary bytes and re-index time of a lexical-plus-graph and a lexical-plus-dense store.
- StreamCancelScenario: A streamed reply with
output_allowancetokens, rejected and canceled atreject_step. - SyscallTaxScenario:
callsordinary system calls priced by the terms each isolation envelope pays. - ToolCatalogSelectionScenario: A registered tool catalog staged whole or as a selected subset with overhead.
- ToolDriftScenario: Baseline and candidate distributions of tool calls over the same tools, compared by the Jensen-Shannon divergence (natural logarithms).
- ToolkitGranularityScenario: Structured tools against one shell tool, judged by cost per accepted task.
- TraceRetentionScenario: One cohort period of trials in disjoint verdict classes, each with a
trace_sizebody, retained overwindowby keeping everything, head sampling, or verdict-aware selection. - TrajectoryBudgetMeterScenario: An append-only trajectory metered against turns, tokens, time, and dollars.
- TrajectoryResendScenario: A trajectory of
turnscalls that each resend the whole history (TrajectoryResendModel). - VerifiedPoolScenario: A pool of
pool_sizecandidates, first passing one returned, under a fallible check. - WorkspaceProvisioningScenario:
workspaceson one pinned base, provisioned by copy or copy-on-write, then a first write.