ARFC-1021: Challenge Attempt Limits

Status

Draft Draft Date: 2026-10-15 Version: 0.3

Abstract

This ARFC proposes that an instructor be able to place two independent limits on any challenge in an assignment: a test-run budget bounding the ungraded practice runs a student may execute against it, and a submission budget bounding the graded attempts a student may make. Each budget is unlimited by default, may be capped at a positive number, or may be disabled entirely, and may count either against each student individually or against a team’s shared pool. The platform enforces both budgets definitively at every entry point; students can see what remains and are refused with an explanation when a budget is exhausted; authorized staff can grant per-student or per-team accommodations. Version 1 deliberately leaves refunds for platform-caused failures, editing a challenge’s base budgets after an assignment is composed, and pooling the two budgets into one to later work.


Table of Contents

  1. Introduction
  2. Motivation
  3. Specification
  4. Version 1 Scope
  5. Security Considerations
  6. Backward Compatibility
  7. References
  8. Author
  9. Revision History

1. Introduction

The platform lets a student attempt a challenge as many times as they like. Each graded attempt is recorded, and the instructor’s chosen selection rule — first, best, or last — decides which single attempt counts (ARFC-1010, §3.4). The rule determines which attempt is read; nothing determines how many there may be.

That is the right default for most coursework, where practice is the point. It is the wrong setting for three situations the platform is now asked to support: an assessment where a student should get a small, known number of tries; a competition where a limited number of attempts is part of the format; and any challenge whose grading runs expensive sandboxed computation, where unbounded retries are a cost and a fairness problem. There is also a quieter gap: the ungraded practice round trip a student uses to check their work before submitting is entirely uncounted, so even an assessment that limited submissions would leave the practice loop unbounded.

This ARFC adds limits at the level where the other delivery decisions already live — the challenge as it is placed in an assignment — and states what counts, who they count against when a team works together, what a student sees, and how an institution adjusts a limit for one student or one team without changing anything for everyone else.


2. Motivation

Current State

A challenge placed in an assignment carries several instructor decisions: which attempt counts, how much it weighs toward the mission’s total, and whether it is required. Attempts themselves are not limited by anything. A student may make any number of graded submissions, and may run the ungraded practice round trip — which returns grading feedback without recording an attempt — any number of times as well.

Teams and leagues exist, and team-based scoring exists: a challenge played in a competition can contribute to a team’s standing, with selection rules that decide whose attempt is read. But the number of attempts a team may make is nowhere expressible.

Missing Capabilities

  1. No bound on graded submissions. An instructor cannot say “this is a one-submission exercise” or “three tries each.” Assessment formats that depend on a small, known number of attempts cannot be expressed.
  2. No bound on ungraded practice. The feedback-only round trip is uncounted, so a compute-heavy challenge can be exercised without limit even where a submission budget exists.
  3. No team budget. When a team works a challenge together, attempts are made by its members individually; there is no way to give the team a shared pool rather than each member a private one.
  4. No accommodation mechanism. An instructor or staff member cannot extend, narrow, or disable a limit for one student or one team as an accommodation.
  5. No visibility. A student cannot see how many runs remain before starting one; they discover a budget only by being refused.

Design Goals

  1. Two limits, chosen per challenge. Practice and submission are different acts with different costs, so an instructor bounds them separately, and different challenges in one assignment may carry different limits.
  2. Nothing changes until an instructor asks. The default is unlimited, and an assignment composed without limits behaves exactly as it does today.
  3. Enforcement is the platform’s. A limit holds against every entry point through which a student could exercise the challenge, and against a modified or non-standard client. Client surfaces inform; they never decide.
  4. Team work has a shared pool. A team-scoped budget is shared by its members, attributed to the team as it is used, and unambiguous about which team a student’s run belongs to.
  5. Accommodations are surgical. A limit can be adjusted for one student or one team without altering the challenge’s limits for anyone else, and the adjustment is attributable.
  6. Students see where they stand. Remaining budget is observable before and after a run, and a refusal explains itself.
  7. The failure story is honest. An attempt that begins counts; recovering runs lost to platform faults is follow-up work, stated as such rather than implied.

3. Specification

3.1 Core Principles

P1 — Practice and submission are two budgets, not one. The ungraded practice run and the graded submission are different acts: one returns feedback, the other becomes part of the record and is read by the instructor’s selection rule. An instructor may allow many of one and few of the other, or none of one and some of the other. One number cannot express those settings, and a single budget would couple decisions that belong apart.

P2 — A limit bounds how many attempts may exist; it never decides which one counts or how one is scored. Selection remains the per-placement rule of ARFC-1010 §3.4; scoring and roll-up remain ARFC-1012. A limit is upstream of both: it determines what evidence can exist, not what the evidence is worth.

P3 — A limit is a property of the delivery, not of the content. Limits belong to a challenge as it is placed in an assignment. The same challenge may carry “one submission” in an assessment section and “unlimited” in a practice section, and republishing the lesson does not carry limits with it.

P4 — Enforcement belongs to the platform, not the client. Every run a student can start — through the standard command, the API, or a job they construct themselves — is checked against the budget by the platform before it begins. What a client displays is a convenience; a client that ignores it changes nothing.

P5 — Consumption happens when a run begins. A run counts when it is accepted, not when it succeeds. A submission that fails to produce a score has been used. Refunding runs lost to platform faults is deliberately not part of Version 1 (§4); the honest description of the rule is “you have it until you use it.”

P6 — A team budget is shared, and attributed at the moment of use. When a budget counts against a team, it is one pool drawn on by all its members: one member’s run reduces what their teammates have. A run belongs to the team the runner was on when they made it — not to the team they later join, and not away from the team they later leave. And a run can be a team’s only if the runner had a team to attribute it to: where the platform cannot resolve exactly one team, the run is refused rather than attributed by guess.

P7 — Unlimited until an instructor says otherwise. No limit applies unless one was chosen when the challenge was placed. Existing assignments, existing students, and existing integrations see no change at all.

3.2 The Two Budgets

  Test-run budget Submission budget
What it bounds Ungraded practice runs that return grading feedback without recording an attempt Graded submissions that become recorded attempts
Typical command merlin test merlin submit
What consumes it A practice run accepted for execution — including a job the student starts against the challenge by any other route A submission accepted for grading — under every grading strategy the platform offers
Default Unlimited Unlimited
flowchart LR
    S(["A student"]) -->|practice run| TB{"Test-run budget"}
    S -->|submission| SB{"Submission budget"}
    S -->|"a job started directly<br/>against the challenge"| TB
    TB -->|remaining| P["Feedback — no attempt recorded"]
    TB -->|exhausted| R1(["Refused"])
    SB -->|remaining| A["Attempt recorded — graded"]
    SB -->|exhausted| R2(["Refused"])

The two budgets are independent. Each is unlimited, disabled, or capped on its own. Representative settings:

Setting Test runs Submissions Reading
Default unlimited unlimited Today’s behavior; practice and retry freely
Practice freely, submit once unlimited 1 An exercise with unlimited rehearsal and one graded performance
Rehearsal then assessment 5 3 Enough practice to learn the tooling; a small number of graded tries
Single-shot (assessment) 0 1 The practice command is refused; the submission is the first and only run — the “no unlimited retries” condition ARFC-1010’s motivation describes
Closed 0 0 Both surfaces refused; used where a challenge must be present but not attempted

Read the budget and the selection rule together. The two decisions interact, and the same number means different things under each rule (ARFC-1010, §3.4):

3.3 Where a Budget Is Set

A budget is set per challenge as it is placed in an assignment, by the instructor composing the assignment, in the same step where they already choose which attempt counts, the challenge’s weight, and whether it is required.

Two similar names, two different things. An assignment challenge is the challenge’s placement in an assignment — what a budget belongs to, shared by every student in the placement. A challenge assignment is one student’s own dealt copy of that placement — what a run is made against. The API spells them assignmentChallengeEID and challengeAssignmentEID; the budget endpoints name the former, the run endpoints the latter, and the difference is deliberate rather than a typo.

3.4 Budget Values

A budget is exactly one of:

Value Meaning
Unlimited (default) No bound; runs are recorded but never refused
Disabled — zero No run of that kind is accepted at all
Capped — a positive number N The first N accepted runs per student (or per team) are allowed; the next is refused

A positive cap of N counts N runs as allowed: the refusal comes when a further run would exceed it. On the wire a budget value is -1 for unlimited, 0 for disabled, or a positive number for a cap. In composition inputs the budgets are optional, and an omitted budget means unlimited; -1 is how unlimited is stated explicitly where omission means something else instead — an accommodation, where an absent value means inherit (§3.7). A value below -1 is not valid and is refused as invalid input.

Usage is recorded even while a budget is unlimited. The platform keeps an honest count of runs regardless of the limit in force, so that:

Base budgets are fixed when the challenge is placed (§3.3), so an accommodation is the only way a different budget comes into force mid-assignment in Version 1 — and it reads the same record everything else does. The rule is stated generally, because it will govern any future mechanism that brings a budget into force.

A budget of zero refuses every run: zero is a stated budget, not an unset one.

3.5 What Consumes a Budget

Submissions. A submission counts when it is accepted for grading. The rule is the same for every grading strategy the platform offers, and it does not depend on the outcome: a submission that runs and fails, a submission whose grading fails to produce a score, and a submission that scores are all consumed alike. The alternative — counting only successful results — would let a broken submission be retried without bound, which is the opposite of what a submission budget is for.

Test runs. A practice run counts when it is accepted for execution. It counts whether it is started through the standard practice command or through any other route that starts a job against the challenge — a student who constructs their own job against their challenge uses the same budget the practice command uses. Without that rule the test-run budget would be a courtesy that the first sophisticated student could ignore.

What makes a job a run against the challenge. A job belongs to a challenge by the challenge reference it names — the runner’s own challenge assignment — not by the path it is submitted under; a request path neither confers nor avoids belonging. That same reference is what scopes the challenge’s material to the job, so there is no pathname by which a run reaches a challenge’s material while escaping its budget. The platform’s own grading job for a submission is excluded by definition: it is part of that submission, which has already consumed a submission, and it never draws on a test-run budget. Work the platform performs on its own behalf is not a run.

Every other run counts against the runner’s own budget. Whoever runs it — a student, a staff member previewing, anyone — a run against their own challenge draws on the budget that applies to them. Version 1 has no surface by which one person starts a job against another person’s challenge (§3.11); facilities that would act on a student’s challenge on someone else’s behalf — regrades, administrative reruns, previews of another’s dealt copy — do not exist, and when introduced each must be classified explicitly rather than silently charged.

Acceptance is a single step. Checking a run against its budget and recording the run the check accepts are one indivisible decision: two runs that arrive at the same moment cannot both be accepted for the last remaining unit. This holds for one student’s own runs and, where a budget counts per team, for runs made concurrently by different members of the team — there is no moment at which two members can both take the team’s last remaining unit.

What acceptance means, precisely. A submission is consumed at the transition where the platform records the attempt: the acceptance of the submission offering itself, whether it returns a score immediately or an attempt whose grading continues. A practice run is consumed at the equivalent transition — the acceptance of the practice request for execution. Nothing before those transitions consumes anything: a budget or window refusal, a rejected payload, an authorization failure, or a request that never reached the platform leaves the budget untouched. Everything after them — staging the submitted content, dispatching the run, grading it, delivering the response — is the platform’s side, and a failure there does not return the run. A failure on the student’s side after acceptance counts exactly as a platform fault does: if a connection drops once the run has been accepted, the run is used, and the student sees it in their usage.

Recording is separate from scoring. A practice run never creates an attempt and never reaches the record; a submission that is consumed is recorded as an attempt even when it produces no score (P5). Consumption is about how many tries were granted; recording is about what the run produced.

The record that already exists. Nothing is imported or reconstructed when a budget first applies: the count is the record the platform has kept all along. Graded submissions have always been recorded, so submissions made before this capability existed count the moment a budget applies to them. Practice has no comparable history — no run of that kind was ever recorded — so the test-run count begins at zero: runs made before this capability existed never reduce a test-run budget. And attribution is settled when a run is accepted, not reconstructed later: every run on a team-scoped challenge is attributed to the team its runner is on at that moment, and that attribution is never revisited (P6).

Budgets and the submission window are two independent gates. The assignment’s own window says when a submission is accepted; a budget says how many. Both must allow a run: a submission inside the window but over budget is refused, and a submission within budget but after the window is refused. Neither gate excuses the other.

flowchart TB
    A(["A submission is offered"]) --> W{"Within the assignment's window?"}
    W -->|no| R1(["Refused — window"])
    W -->|yes| B{"Within the submission budget?"}
    B -->|no| R2(["Refused — budget"])
    B -->|yes| ACC(["Accepted; the run counts"])

Practice and the window. The window does not gate practice runs: it governs graded work, and a practice run records nothing for it to govern. Practice is accepted wherever the challenge is reachable for the student, bounded by its budget rather than the clock — matching the platform’s existing treatment of the practice path as non-persisting and ungated. An instructor who wants practice unavailable, during an assessment or after it, says so with the test-run budget — including disabling it.

3.6 Team Budgets

A budget counts either per student (the default) or per team. A team budget is one shared pool for the challenge: the members of a team draw on the same allowance, and a run by any member reduces what remains for all of them.

A team-scoped challenge names its league. For the platform to attribute a run to a team, the placement states which league’s teams compete for it. This makes attribution unambiguous rather than inferred: only teams in the named league can hold a budget for the challenge, and a student’s team is the one they are a current member of in that league — the one-team-per-user rule that league membership already follows makes this exactly zero or one team. The counting basis and the league are chosen when the challenge is placed, together with the budgets, and none of the three changes afterward (§3.7).

A run belongs to the team the runner was on when they made it. Consequences, all stated as behavior:

Fail-closed attribution. Where the budget counts per team, a run requires exactly one attributable team. The platform refuses — with an explanation different from “budget exhausted” — when the runner:

Who counts as a team member is the same question scoring already answers. The membership rule a team budget uses to attribute a run is the rule team scoring uses to decide whether an attempt counts for the team (ARFC-1004 establishes teams and leagues; see also ARFC-1012). In particular, a member the rules treat as eligible to contribute to the team’s result draws on the team’s budget as well — the budget and the score cannot disagree about who was there.

3.7 Accommodations

An accommodation adjusts a budget for one student or one team without changing the challenge’s budget for anyone else. This is the supported way to meet a live need in Version 1 (§3.3).

An accommodation is managed per challenge-per-assignment, at one of two grains:

Grain Applies to Adjusts
A student Challenges whose budget counts per student That student’s two budgets
A team Challenges whose budget counts per team That team’s two budgets

The grain always matches the challenge’s counting basis: a student-grain accommodation on a team-scoped challenge, or a team-grain accommodation on a student-scoped one, is refused as invalid input rather than accepted and set aside.

Each of the two budgets in an accommodation is independently one of three things: inherited (use the challenge’s budget), unlimited, or a value (zero or a positive cap). A value replaces the challenge’s budget for its subject — it is not an increment, so granting two more on a challenge that allows two means setting four. An accommodation therefore expresses “four submissions for this student, where the challenge allows two,” “no practice runs for this student,” or “unlimited rehearsal for this team” — without disturbing anyone else.

Accommodations take effect as soon as they are set, and the challenge’s usage history still counts against them. A value set below what the subject has already used is not an error — the remaining budget is simply zero, and the next run is refused. They never change what kind of budget a challenge has — a team-scoped challenge stays team-scoped — and they are attributable: each records who set it and may carry a note explaining why, so that an accommodation made for an individual can be understood later.

3.8 What the Student Experiences

Before a run. The student’s own view of a challenge reports each budget and how much of it has been used, so remaining can be seen without attempting anything. The standard command-line tools refuse locally — with a clear message — when the reported budget is already exhausted, before doing any work. What a student sees is the budget that applies to them — an accommodation’s effect included — and never its note.

At a run. When a run would exceed a budget, the platform refuses it with an explanation that names the budget, states how many runs were allowed and how many have been used, and says whether the budget counted per student or per team. A team-attribution failure explains which of the fail-closed cases applies. Refusals happen at the point the student offers the run, not after minutes of preparation.

After a run. Once a run is accepted, the student is shown what remains, so the cost of using it is visible immediately.

Refusals are ordinary, expected outcomes. Running out of a budget is not an error condition to be escalated; the refusal message is written for the student, states what the budget was, and implies no fault.

3.9 API Endpoints

Changed operations. No existing operation changes its method, path, or response shape; the changes are the optional new inputs and the new refusals and reported fields.

Method Path operationId Change
POST /v2/assignments createAssignmentV2 Accepts, per challenge: the optional test-run and submission budgets, the counting basis (per student by default, or per team), and — required when the basis is per team — the league whose teams compete for it
POST /v2/assignments/bulk batchCreateAssignmentsV1 The same per-challenge inputs as createAssignmentV2
POST /v2/assignments/{assignmentEID}/challenges createAssignmentChallengeV2 The same per-challenge inputs, for the single added challenge
POST /v2/assignments/{assignmentEID}/students/{studentEID}/challenges/{challengeAssignmentEID}/attempts createChallengeAttemptV2 Refused when the submission budget is exhausted
POST /v2/assignments/{assignmentEID}/students/{studentEID}/challenges/{challengeAssignmentEID}/test createChallengeTestV2 Refused when the test-run budget is exhausted
POST /v2/jobs/{pathname+} createJobV2 A job naming the caller’s own challenge assignment is a practice run — counted against the test-run budget and refused when exhausted — except the platform’s own grading job for a submission, which is part of that submission and never draws on the test-run budget. Jobs naming no challenge are unaffected.
GET /v3/assignments/{assignmentEID}/students/self/challenges listChallengeAssignmentsV3 Reports each challenge’s budgets, usage, and per-student/per-team basis for the caller (additive fields)

New operations — accommodations.

Method Path operationId Description
GET /v2/assignments/{assignmentEID}/challenges/{assignmentChallengeEID}/accommodations listAssignmentChallengeAccommodationsV1 List accommodations for a challenge in an assignment
GET /v2/assignments/{assignmentEID}/challenges/{assignmentChallengeEID}/accommodations/students/{studentEID} readAssignmentChallengeStudentAccommodationV1 Read a student’s accommodation view: the challenge’s budgets, the effective budgets (inherited where no accommodation exists), and the student’s usage
PUT same path as above setAssignmentChallengeStudentAccommodationV1 Set or replace one student’s accommodation
DELETE same path as above clearAssignmentChallengeStudentAccommodationV1 Clear one student’s accommodation (all inherited)
GET /v2/assignments/{assignmentEID}/challenges/{assignmentChallengeEID}/accommodations/teams/{teamEID} readAssignmentChallengeTeamAccommodationV1 Read a team’s accommodation view: the challenge’s budgets, the effective budgets (inherited where no accommodation exists), and the team’s usage
PUT same path as above setAssignmentChallengeTeamAccommodationV1 Set or replace one team’s accommodation
DELETE same path as above clearAssignmentChallengeTeamAccommodationV1 Clear one team’s accommodation (all inherited)

An accommodation’s payload carries the two budgets; each is inherited when absent from the payload, -1 for unlimited, or a value (zero or a positive cap) that replaces the challenge’s budget for its subject. Setting an accommodation requires at least one budget to be specified; clearing removes it entirely, returning the subject to the challenge’s own budgets. A read returns more than the adjustment: the challenge’s own budgets, the effective budgets its subject is held to, and how much of each has been used — the base, the adjustment, and the record in one place, so a staff member can size a change against what has actually happened. A read does not require an accommodation to exist: for an authorized caller, a subject with none returns the challenge’s budgets as both effective budgets — inherited, not missing — together with the subject’s usage, which is exactly the view needed before deciding what, if anything, to grant. An authorized read is uniform whether or not an accommodation exists; concealment belongs to unauthorized callers only (§3.11).

3.10 Command-Line Surface

Two existing commands gain behavior, and one new command is added.

Command Change
merlin test Refused before the round trip, with an explanation, when the test-run budget is exhausted; otherwise unchanged. On completion, reports what remains of the test-run budget.
merlin submit Refused before the round trip, with an explanation, when the submission budget is exhausted; otherwise unchanged. On completion, reports what remains of the submission budget.
merlin show budget New. Reports the current challenge’s budgets and usage — remaining test runs and submissions, each labeled as per-student or per-team. Reaches the same challenge the other commands do, from the challenge’s directory; like them, it only reads.

The commands resolve the challenge they already resolve; the budget preflight uses the same information, so a student sees a budget refusal without first spending the minutes a practice run or submission takes. A client that ignores the preflight is refused by the platform exactly the same way.

3.11 Authorization Model

Setting limits. The ability to choose a challenge’s budgets is part of composing the assignment, and is held by exactly those who may compose it. No separate permission distinguishes it; an instructor cannot set limits on a challenge they could not place.

Administering accommodations. Accommodations are managed with new realm-scoped permissions — read, set, and clear — held by staff who already manage assignments in the realm. A caller without them may neither read nor change any student’s or team’s accommodation, and is refused without learning whether the accommodation exists. Accommodation changes are attributable: each records who made it and when, and may carry a note.

Being subject to limits. Every student is subject to whatever budgets apply to them, and may read their own budgets and usage through the ordinary challenge surfaces. No scope, role, or request option lets a caller grant themselves budget, declare a run to be a different kind, or inspect another student’s usage.

A run is always the runner’s own. The routes through which runs are offered address a student, and the platform refuses any request whose addressed student is not the caller; no staff role carries an exemption. A staff member previewing a challenge runs it as themselves, against their own dealt copy, on their own applicable budget — a preview is capped or refused exactly as a student’s run would be, deliberately, since a preview exercises what a student would experience. Staff who need more room on their own copy take an accommodation through the same permission as anyone else.

Team attribution is not a permission. A student cannot choose which team a run counts against; the platform derives it from membership in the challenge’s league (§3.6). A student with no attributable team is refused, and the refusal does not depend on any team’s budget state.

3.12 Error Handling

Situation What the user sees
A submission is offered and the submission budget is exhausted Refused, naming the submission budget, the number allowed, the number used, and whether it counted per student or per team
A submission is offered and the submission budget is disabled (zero) Same as above, with “none are allowed”
A practice run is offered and the test-run budget is exhausted Refused, naming the test-run budget with the same detail
A practice run is offered and the test-run budget is disabled (zero) Same as above
A job is submitted against a challenge whose test-run budget is exhausted Refused identically to a practice run — the budget does not distinguish the route
A submission or practice request fails after acceptance (connection drops, response never arrives) The run is used and appears in the student’s usage — the same treatment as a platform fault (§4)
A submission is offered after the assignment’s window has closed Refused as today; the budget’s state is not disclosed beyond the caller’s own summary
A team-scoped run is offered by a student with no team in the challenge’s league Refused, saying the challenge counts per team and the student has no team in that league
A team-scoped run is offered by a student on more than one team in that league Refused, saying the team could not be resolved; the refusal does not choose a team
A team-scoped run is offered by a student whose team disbanded Refused, saying the team no longer stands
A challenge is placed with a per-team counting basis but no league Refused as invalid input at composition, naming the challenge and the missing league
A challenge is placed with a per-student counting basis but a league named Refused as invalid input at composition — a league has no meaning for a per-student budget
A challenge names a league the caller cannot reach Refused as invalid input at composition, naming the league; a league the caller cannot reach is refused indistinguishably from one that does not exist
A budget is specified with a value below -1 Refused as invalid input, naming the budget and the value
An accommodation is set or read by a caller without the permission Refused as unauthorized, without revealing whether the accommodation or the challenge exists
An accommodation payload specifies no budget at all Refused as invalid input; clearing is a delete, not an empty set
An accommodation’s grain does not match the challenge’s counting basis Refused as invalid input, naming the challenge’s basis

4. Version 1 Scope

Included

  1. Two independent budgets per challenge as placed in an assignment: a test-run budget and a submission budget, each unlimited (default), disabled, or capped at a positive number.
  2. Setting budgets through all three assignment-composition paths, with different values per challenge; no inheritance from published content.
  3. Server-side enforcement at every entry point: graded submissions under every grading strategy, the standard practice round trip, and jobs submitted directly against a challenge.
  4. Honest usage recording regardless of the limit in force, so a budget that comes into force later — in Version 1, an accommodation — counts the record that already exists.
  5. Per-student and per-team budgets, with team budgets scoped to a named league, attributed at the moment of use, fail-closed on unresolved teams.
  6. Accommodations at the student and team grains, with inherited/unlimited/value per budget, managed through new realm-scoped permissions with attribution and an optional note; a read returns the challenge’s budgets, the effective budgets, and the subject’s usage.
  7. Student-visible budgets and usage on the challenge listing; budget preflight and post-run remaining reporting in merlin test and merlin submit; merlin show budget.

Excluded

  1. Refunding runs lost to platform faults. In Version 1, a run that begins is used even when the failure was the platform’s. Recovering such runs is deliberate follow-up work; the rule is stated plainly (§3.5) so that instructors size budgets knowing it, and so its absence is a decision rather than an omission.
  2. Editing a challenge’s base budgets after the assignment is composed. The adjustment path for a live need is an accommodation. A general post-composition edit is deferred until the editing story for the other composition decisions is settled together.
  3. Pooling the two budgets. A combined “N runs of any kind” allowance is not expressible; the two budgets are independent by design (P1).
  4. Event-wide or league-wide limit policies. Limits are chosen per challenge; nothing applies a policy across a section, an event, or a league automatically.
  5. Instructor-facing usage reporting. How much a challenge has been exercised, by whom, and how much budget remains mid-assignment is recorded; beyond the per-subject usage an accommodation read returns (§3.9), it is not surfaced in Version 1.
  6. Rate limiting changes. Budgets are not rate limits; burst abuse of endpoints is governed by the platform’s existing limits and is unchanged here.
  7. Per-student overrides of dates or other composition decisions. Accommodations adjust budgets only; the platform’s unrelated per-student date overrides remain unhonored and untouched.
  8. Relative accommodation values. Adjustments are absolute — a value replaces the challenge’s budget — so “grant two more” is expressed by setting the budget to the base value plus two. A relative form needs its own answers for repeated application and simultaneous grants, and is deliberate follow-up work.
  9. An individual’s own allowance on a team-scoped challenge. Where a budget counts per team, an accommodation adjusts the team’s pool, not one member’s share of it — so a student who needs individual relief on a team-scoped challenge receives it by extending what the whole team draws on. That is a real limitation, particularly where an accommodation is granted for individual reasons, and it is stated here rather than discovered in a case: a personal allowance layered inside a shared pool is a second allowance mechanism with its own counting rules, and is deferred.
  10. Bulk accommodation changes. Accommodations are set one subject at a time. A bulk form — adjusting many students or teams in one call — is the natural companion to the repair side of the refund gap when a fault has to be answered at scale, and is named as the first follow-up rather than built here.

5. Security Considerations

The platform decides, always. Budget checks live where runs begin, not where they are displayed. A client — including one that ignores the preflight, alters its requests, or is not the standard tool — cannot declare a run to be of a different kind, claim remaining budget, or bypass a team attribution, because no request carries those assertions: the challenge, the run’s kind, the applicable budget, and the team are all derived by the platform.

A budget cannot be raced. Concurrency is the obvious way to defeat a count: two submissions from one student, or from two members of one team, that each observe the same remaining budget and both proceed. Acceptance is therefore one indivisible decision (§3.5): a run is checked and counted as a single act, so simultaneously arriving runs are answered as if they had arrived in order — one is accepted, the next is refused. A pool of one accepts exactly one run, however many members offer one at once, and a student cannot manufacture extra tries by submitting in parallel.

Limits do not touch the integrity of scoring. What a run is worth, which attempt counts, and how scores roll up are unchanged; this ARFC is upstream of all three (ARFC-1010, ARFC-1012). A student cannot use a limit, an accommodation, or a refusal to affect anyone’s score.

Team attribution fails closed. Refusing an unresolved team — rather than picking one, or falling back to a per-student count — is what keeps a shared pool from being a suggestion. The degenerate ways to be team-less are all refused rather than absorbed.

Accommodations are privileged and attributable. Reading or changing another person’s accommodation requires a realm-scoped permission, refusals do not disclose existence, and every change records who made it and an optional note. An accommodation can widen or narrow a student’s budget; it cannot change the challenge’s kind, its scoring, or anything else.

Refusals disclose only the caller’s own position. A refusal to a student reports that student’s own budget and usage. It never reveals other students’ usage, other teams’ budgets, or anything about accommodations made for others.

Cost is a first-class concern. One reason these budgets exist is that graded and practice runs consume real sandboxed computation. The no-alternate-route rule for practice runs (§3.5) and the honest usage recording (§3.4) are the properties that make a budget a real bound on cost rather than a display preference.

The refund gap is a risk to state, not to hide. A platform fault that burns a strictly limited budget can end an assessment unfairly. Version 1 accepts this and says so (§4); instructors placing tight budgets should weigh it, and the follow-up work that recovers such runs is named rather than assumed away.


6. Backward Compatibility

Nothing changes until an instructor sets a budget. With both budgets unlimited — the default, and the state of every existing placement — submissions and practice runs behave exactly as they do today: no refusals, no new fields to handle, no change in any response a client already relies on. An institution that never sets a budget cannot observe this feature.

Additive fields, additive endpoints. The challenge listing reports budgets and usage as new fields; existing readers ignore them. Accommodation operations are entirely new. No field is removed, renamed, or given a new meaning.

Two behaviors change visibly only where a budget is set:

  1. Practice runs become bounded. Today the practice round trip is uncounted and unrestricted. Under a test-run budget it counts and may be refused. Instructors who relied on unlimited rehearsal should leave the budget unlimited (the default) or choose a value that reflects that intent. Runs made before this capability existed never reduce a test-run budget (§3.5).
  2. Self-constructed jobs against a challenge count as practice. A student who today starts a job directly against their challenge draws on the test-run budget where one is set. Against an unlimited budget (the default) nothing changes; against a limited one, the budget is the platform’s answer to why the practice command is bounded.

An accommodation applied after use counts that use. A budget that comes into force later — in Version 1, an accommodation — counts the record that already exists (§3.4, §3.5): an accommodation of three submissions set after two have been made leaves one, and the same holds for a team’s pool. This is stated rather than left to discovery, because it is what makes a mid-assignment adjustment honest.

Integrators. The new listing fields and refusals appear only in scenarios an integrator opted into by setting a budget; there is no change to request shapes beyond the optional inputs. The new accommodation operations are additional surface.


7. References


8. Author

David Ben-Yaakov, M.Ed.


9. Revision History

Version Date Change
0.1 2026-10-15 Initial draft
0.2 2026-10-15 Review revisions addressing sixteen findings — enumerated under “Changes in 0.2” below.
0.3 2026-10-15 Second review round: cross-person confirmation, empty accommodation reads, acceptance-settled attribution, staff-preview consequence, and editorial fixes — enumerated under “Changes in 0.3” below.

Changes in 0.2

  1. Retroactive counting reframed around accommodations, the only V1 budget that comes into force mid-assignment (§3.4, §6).
  2. Historical data stated: submissions count from the existing record, practice counts from zero, pre-existing submissions attribute by membership at the time of submission (§3.5, §6).
  3. Check-and-consume atomicity stated as an invariant (§3.5) and as a security property (§5).
  4. “Accepted” pinned to specific transitions — the recording of the attempt, acceptance of the practice request — with pre-acceptance failures consuming nothing and post-acceptance failures consuming on either side (§3.5, §3.12).
  5. Job belonging defined by the challenge reference, not the request path; the platform’s grading job excluded by definition; every other run charged to its runner; cross-person facilities declared absent (§3.5, §3.9).
  6. Composition inputs gain the counting basis and league, with validation errors (§3.6, §3.9, §3.12).
  7. The recovery-room claim replaced by one sentence per selection rule — recovery, improvement, revision (§3.2).
  8. Accommodation values stated as absolute replacements with a worked example; below-usage behavior specified; relative values excluded (§3.7, §3.9, §4).
  9. Individual-versus-team grain limitation stated, grain mismatches refused (§3.7, §3.12, §4).
  10. Practice stated as not window-gated; the test-run budget is the instrument (§3.5).
  11. Per-subject usage pulled into the accommodation read; bulk accommodation changes named as first follow-up; student visibility stated (§3.8, §3.9, §4).
  12. Assignment-challenge and challenge-assignment names defined (§3.3).
  13. API resource renamed to accommodations, aligning prose, paths, and operationIds (§3.9).
  14. -1 rationale corrected for optional inputs; below--1 values refused (§3.4, §3.12).
  15. Duplicate 0/1 settings rows merged (§3.2).
  16. Small fixes: zero wording, stray citation spaces, grain header (§3.4, §3.5, §3.6, §3.7).

Changes in 0.3

  1. Cross-person runs confirmed in the authorization model: the submission and practice routes refuse any request whose addressed student is not the caller; no staff role is exempt; a staff preview draws on the previewer’s own budget, with a self-accommodation as the remedy (§3.5, §3.11).
  2. Accommodation reads made uniform: an authorized read of a subject with no accommodation returns the base budgets, the inherited effective budgets, and usage — concealment applies to unauthorized callers only (§3.9).
  3. The unreachable pre-feature team-attribution clause removed; in its place, team attribution is stated as settled when a run is accepted and never revisited (§3.5).
  4. §4 Included item 4 matched to the accommodation framing of §3.4 and §6 (§4).
  5. Revision history restructured into one-line rows with per-revision detail subsections, and the editorial fixes applied (§9).