Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
98 commits
Select commit Hold shift + click to select a range
05175c7
feat(dispatch): let a repository preserve the run already in flight
waynesun09 Sep 4, 2026
4df8ce2
feat(run): export this run's baseline into the sandbox
waynesun09 Sep 4, 2026
16b583d
docs(contributing): record who decides whether an agent run is cancelled
waynesun09 Sep 4, 2026
e466ad1
fix(run): export the run facts after .env.d is sourced
waynesun09 Sep 4, 2026
783a7ea
docs: say what preserving a run gives up for poll dispatch
waynesun09 Sep 4, 2026
55a6c6b
test(scaffold): pin all seven stage jobs and the scalar types
waynesun09 Sep 4, 2026
102cc27
docs: document FULLSEND_PRESERVE_RUNS for the people who set it
waynesun09 Sep 4, 2026
58491ae
fix(run): capture the run start before the work that precedes it
waynesun09 Sep 4, 2026
204c656
fix(run): report a GitLab merge request head on ordinary MR pipelines
waynesun09 Sep 6, 2026
434871e
docs: list the run facts among the variables the runner injects
waynesun09 Sep 11, 2026
263fc66
fix(cli): let github set accept FULLSEND_PRESERVE_RUNS
waynesun09 Sep 11, 2026
86c7a0f
fix(run): gate the GitLab head fallback on the merge request, not the…
waynesun09 Sep 11, 2026
4a04533
docs(cli): give the run baseline its own subsection in the run reference
waynesun09 Sep 11, 2026
a37a8f5
docs(adr): ADR 0101 — preserve the agent run in flight on work-item u…
waynesun09 Sep 12, 2026
0b679db
feat(dispatch)!: never cancel the agent run in flight on a work-item …
waynesun09 Sep 16, 2026
748786e
refactor(cli): drop the preserve-runs repository variable
waynesun09 Sep 16, 2026
61c3864
docs(adr): ADR 0101 records preserving the run unconditionally
waynesun09 Sep 16, 2026
19ec8df
docs(adr): record ADR 0101 as the GitHub implementation of ADR 0106
waynesun09 Sep 16, 2026
163f73e
docs(adr): renumber the preserve decision to 0101 so the stack sorts
waynesun09 Sep 16, 2026
8b8d4fe
refactor(runtime): add Steerer contract for mid-run updates
waynesun09 Sep 3, 2026
f8ac15c
refactor(runtime): add RunParams.Steerable and RunMetrics.SessionID
waynesun09 Sep 3, 2026
8f584db
refactor(runtime): capture the runtime session id in RunMetrics
waynesun09 Sep 3, 2026
4c0238e
feat(runtime): steer a running Claude Code session through a mailbox
waynesun09 Sep 3, 2026
27a2310
feat(runtime): steer a running codex thread by interrupt and resume
waynesun09 Sep 3, 2026
03d59c8
feat(runtime): steer a running pi session over --mode rpc
waynesun09 Sep 3, 2026
8acd4f5
docs(runtime): name the steer mailbox and pid file residuals
waynesun09 Sep 3, 2026
1f83642
feat(harness): add steer config for the follow-up run watcher
waynesun09 Sep 3, 2026
07f2bf2
feat(statuscomment): carry a steer marker on the terminal comment
waynesun09 Sep 3, 2026
47573a6
feat(steerwatch): follow-up run watcher with provenance checks
waynesun09 Sep 3, 2026
2916ce2
feat(run): wire the steer watcher, skip check, and run baseline
waynesun09 Sep 3, 2026
3c40fc1
feat(dispatch)!: gate cancel-in-progress on FULLSEND_STEER and add /f…
waynesun09 Sep 3, 2026
65bb508
feat(cli): add fullsend steer to update a run already in flight
waynesun09 Sep 3, 2026
1c17cad
docs: ADR 0113 and the steer entries in the runtime and harness refer…
waynesun09 Sep 3, 2026
5cf362b
fix(steerwatch): resolve the work item from the forge, not the enviro…
waynesun09 Sep 3, 2026
2e4e1c1
fix(steerwatch): compare the dispatch chain by path and ref, and floo…
waynesun09 Sep 3, 2026
53782f2
fix(harness): inherit the steer block through base composition
waynesun09 Sep 3, 2026
a74101f
refactor(steerwatch): read run records through the forge adapter
waynesun09 Sep 3, 2026
55320f0
fix(steerwatch): advance the issue baseline only after a delivered steer
waynesun09 Sep 3, 2026
6d14e00
fix(steerwatch): build the marker from acknowledged deliveries only
waynesun09 Sep 3, 2026
2ad1f27
refactor(cli): post the steer comment through the shared forge client
waynesun09 Sep 3, 2026
4c762d5
docs: record the steer surfaces in the contributor references
waynesun09 Sep 3, 2026
b524116
docs(adr): position 0113 as an extension of ADR 0098
waynesun09 Sep 3, 2026
165d8be
test(cli): compute the steer marker from data, not a test-only export
waynesun09 Sep 3, 2026
04422ee
docs(adr): settle the FULLSEND_STEER gate as interim until ADR 0098 m…
waynesun09 Sep 3, 2026
bf0e0f6
fix(runtime): record a codex steer only once the resume opens the thread
waynesun09 Sep 3, 2026
aacb7e1
fix(steerwatch)!: attribute each delta item to its own author
waynesun09 Sep 3, 2026
d0e5003
fix(steerwatch): withhold the receipt unless the run earned it
waynesun09 Sep 3, 2026
d157e7a
perf(steerwatch): filter the comment listing server-side
waynesun09 Sep 3, 2026
b96ef51
fix(runtime): give the codex steer interrupt a longer TERM grace
waynesun09 Sep 3, 2026
274bc1e
fix(runtime): publish the codex thread id mid-stream and split the en…
waynesun09 Sep 3, 2026
0f89fa1
docs(adr): state the steer text's argv exposure precisely
waynesun09 Sep 3, 2026
159068e
fix(runtime): interrupt a codex turn only when one is actually running
waynesun09 Sep 3, 2026
9cd8dac
docs(runtime): align the codex prompt comment with the argv correction
waynesun09 Sep 3, 2026
f3d2bc4
fix(steerwatch): take amendment authority only from issue_comment runs
waynesun09 Sep 4, 2026
e5977f3
fix(statuscomment): scope the steer receipt to the run's own status c…
waynesun09 Sep 4, 2026
9cfbf8e
docs(adr): treat ADR 0098 as parallel work, not a design this implements
waynesun09 Sep 4, 2026
2ff51f3
fix(steerwatch): bind an amendment to the comment that authorized it
waynesun09 Sep 4, 2026
86a02f2
docs(adr): make authenticated receipts a precondition for enabling st…
waynesun09 Sep 4, 2026
b339388
docs(adr): document the amendment boundary and correct two authority …
waynesun09 Sep 4, 2026
9ffb873
docs: split the gate into preserving the run and steering it
waynesun09 Sep 4, 2026
b735d3e
fix(runtime): match a steer echo to its message instead of counting
waynesun09 Sep 4, 2026
3f956bf
fix(cli): decline steering unless the repository preserves runs
waynesun09 Sep 4, 2026
9d73548
fix(scaffold): give this repository's own shim the steer run-name
waynesun09 Sep 4, 2026
fda0710
fix(sticky): strip the trusted marker before neutralizing the history
waynesun09 Sep 4, 2026
90bd43e
docs: say the receipt check is trusted, and name the default's switch
waynesun09 Sep 4, 2026
0140656
fix(runtime): take the steered run's reasoning total instead of summi…
waynesun09 Sep 4, 2026
f3cc38a
fix(steerwatch): let the envelope own the steer opening line
waynesun09 Sep 4, 2026
6823c6c
fix(run): judge a steered run against the budget that bounded it
waynesun09 Sep 5, 2026
50ce4b5
docs: correct four review findings on the steer surface
waynesun09 Sep 6, 2026
06cde4b
docs(statuscomment): restore the receipt precondition on the KNOWN GAP
waynesun09 Sep 6, 2026
0dbcd55
fix(steerwatch): stop two panics that take the run down with them
waynesun09 Sep 6, 2026
bbcde5a
fix(steerwatch): bind an amendment to the text that earned authorization
waynesun09 Sep 6, 2026
93f2e32
fix(steerwatch): withhold the receipt from a clipped amendment
waynesun09 Sep 6, 2026
d499406
fix(steerwatch): keep the baseline honest and pending runs re-judgeable
waynesun09 Sep 6, 2026
05fe71d
fix(steerwatch): claim authorization only for the actor it was checke…
waynesun09 Sep 6, 2026
1617e0e
fix(run): measure a steered run's clock from the run's start
waynesun09 Sep 6, 2026
e728775
docs(adr): name the clock the exported run start comes from
waynesun09 Sep 10, 2026
c5bc257
feat(dispatch)!: drop /fs-steer for the stage commands that already e…
waynesun09 Sep 11, 2026
31a119c
fix(steerwatch): require a command token to be a command, not a prefix
waynesun09 Sep 11, 2026
33964c2
fix(cli): resolve the work item's kind from the forge, not the URL
waynesun09 Sep 11, 2026
c758b48
fix(cli): render a steered run, and tell the sandbox the real deadline
waynesun09 Sep 11, 2026
6f12562
fix(cli): budget a steered run per run, not per iteration
waynesun09 Sep 11, 2026
109574c
fix(forge): paginate the follow-up workflow run listing
waynesun09 Sep 11, 2026
88d8148
refactor(runtime): name the steer envelope's opening line
waynesun09 Sep 11, 2026
8d906c1
fix(steerwatch): stop a context body counterfeiting the envelope
waynesun09 Sep 11, 2026
920c1c6
docs: the steer contract, the per-run cap, and a misplaced godoc
waynesun09 Sep 11, 2026
073146c
fix(steerwatch): defang the context block after the sanitizer, not be…
waynesun09 Sep 11, 2026
fdc60f2
docs(adr): make ADR 0113 stand alone
waynesun09 Sep 12, 2026
5c91dc0
docs(adr): trim ADR 0113 to its decision, move the mechanics out
waynesun09 Sep 12, 2026
35cc634
docs: point the citations of moved sections at their new homes
waynesun09 Sep 12, 2026
cdb71ae
docs: tighten the envelope contract and one dangling reference
waynesun09 Sep 12, 2026
bcb4a9d
docs(adr): retitle ADR 0113 to the decision it now records
waynesun09 Sep 12, 2026
4bceab3
fix(steer): drop the preserve-runs gate now that runs are always pres…
waynesun09 Sep 16, 2026
137d723
refactor(forge): put the steer watcher's reads on forge.Client
waynesun09 Sep 16, 2026
0f9bb0c
docs(adr): renumber the steering decision to 0113 so the stack sorts
waynesun09 Sep 16, 2026
8c5d80c
fix(cli): authenticate the steer receipt with the job token
waynesun09 Sep 16, 2026
bc7d064
fix(cli): receipt only what was absorbed, under a credential the agen…
waynesun09 Sep 16, 2026
015e163
docs(adr): describe the receipt ADR 0113 now decides
waynesun09 Sep 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/fullsend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@
# stage jobs with -agent- suffix. Roles operate independently (#2452).
name: fullsend

# run-name carries the work item this run is about, which the Actions API
# returns as display_title (ADR 0113). issue_comment and issues runs expose
# no pull_requests[], so without this an in-flight agent run has no
# server-side way to tell a follow-up run on its own work item from one on
# another. For a comment on a PR, github.event.issue.number IS the PR number,
# so the pair covers every event this shim listens for.
#
# This repository's shim is not reached by scaffold sync, so it carries the
# same line as templates/shim-per-repo.yaml by hand;
# TestOwnShimMatchesTemplateRunName keeps the two from drifting.
run-name: ${{ github.repository }}#${{ github.event.issue.number || github.event.pull_request.number }}

on:
issues:
types: [opened, edited, labeled]
Expand Down
49 changes: 39 additions & 10 deletions .github/workflows/reusable-dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,31 @@
# caller-provided matrix. This enables reuse without extracting separate workflows
# while preserving ADR 62's inlining decision.
#
# Concurrency: each stage job declares a per-role cancel-in-progress group
# (fullsend-{stage}-…). Roles operate independently — review dispatches do
# not cancel triage, code, fix, etc.
# Concurrency: each stage job declares a per-role group (fullsend-{stage}-...).
# Roles operate independently: a review dispatch does not cancel triage, code,
# fix, and so on.
#
# A second event on the same work item never cancels the run already working
# on it. Every stage job carries cancel-in-progress: false, so the run in
# flight finishes and one run waits behind it: GitHub Actions keeps a single
# pending run per group, the last one to queue, which is normally but not
# necessarily the newest event, since a stage job queues only after route
# completes. Either way the pending run works from the work item's current
# state rather than the state that dispatched it. That reconciliation is the
# agent's side of the bargain, and is why the runner exports
# FULLSEND_RUN_HEAD_SHA and FULLSEND_RUN_STARTED_AT (ADR 0101).
#
# What that gives up: ADR 0063 names per-stage cancel-in-progress as the second
# of two layers protecting poll dispatch from duplicate side effects, and that
# layer is now gone everywhere, leaving the first — the poller's own lock —
# plus whatever idempotency the agent has. The duplicate-poll case is where
# this costs most: two duplicate dispatches are the same work rather than a
# newer state superseding an older one, so both run to completion instead of
# one replacing the other.
#
# queue: max is deliberately not used: it is incompatible with
# cancel-in-progress: true, so it cannot be expressed here, and N pending full
# runs is the failure mode preserving the active run exists to remove.
#
# Flow: shim (per-repo) → reusable-dispatch.yml (route + inlined stage logic)
# Or: custom poller → reusable-dispatch.yml (pre-computed matrix → harness-run)
Expand Down Expand Up @@ -587,9 +609,13 @@ jobs:
needs: route
if: needs.route.outputs.stage == 'triage'
runs-on: ${{ inputs.runner_image }}
# The run in flight is never cancelled (see Concurrency above). Where the
# agent has steering enabled, it also absorbs the update through the
# runner's follow-up run watcher; one run still waits behind it as the
# single pending run (ADR 0113).
concurrency:
group: fullsend-triage-${{ github.repository }}-${{ github.event.issue.number || github.event.pull_request.number }}
cancel-in-progress: true
cancel-in-progress: false
permissions:
actions: write
contents: read
Expand Down Expand Up @@ -698,7 +724,7 @@ jobs:
runs-on: ${{ inputs.runner_image }}
concurrency:
group: fullsend-code-${{ github.repository }}-${{ github.event.issue.number || github.event.pull_request.number }}
cancel-in-progress: true
cancel-in-progress: false
permissions:
actions: write
contents: write
Expand Down Expand Up @@ -837,7 +863,7 @@ jobs:
runs-on: ${{ inputs.runner_image }}
concurrency:
group: fullsend-review-${{ github.repository }}-${{ github.event.pull_request.number || github.event.issue.number }}
cancel-in-progress: true
cancel-in-progress: false
permissions:
actions: write
contents: read
Expand Down Expand Up @@ -965,7 +991,7 @@ jobs:
runs-on: ${{ inputs.runner_image }}
concurrency:
group: fullsend-fix-${{ github.repository }}-${{ github.event.pull_request.number || github.event.issue.number }}
cancel-in-progress: true
cancel-in-progress: false
permissions:
actions: write
contents: write
Expand Down Expand Up @@ -1099,6 +1125,9 @@ jobs:
if [[ ! "${TRIGGER_SOURCE}" =~ \[bot\]$ ]]; then
COMMENT_BODY="$(echo "${EVENT_PAYLOAD}" | jq -r '.comment.body // empty' | tr -d '\r')"
if [[ -n "${COMMENT_BODY}" ]]; then
# The command that routed the comment here is routing, not
# instruction, so it is stripped before the text reaches the
# agent.
INSTRUCTION="${COMMENT_BODY#/fs-fix}"
INSTRUCTION="$(printf '%s\n' "${INSTRUCTION}" | sed 's/^[.,;:!?]*//')"
INSTRUCTION="${INSTRUCTION#"${INSTRUCTION%%[![:space:]]*}"}"
Expand Down Expand Up @@ -1245,7 +1274,7 @@ jobs:
runs-on: ${{ inputs.runner_image }}
concurrency:
group: fullsend-retro-${{ github.repository }}-${{ github.event.pull_request.number || github.event.issue.number }}
cancel-in-progress: true
cancel-in-progress: false
permissions:
actions: write
contents: read
Expand Down Expand Up @@ -1355,7 +1384,7 @@ jobs:
runs-on: ${{ inputs.runner_image }}
concurrency:
group: fullsend-prioritize-${{ github.repository }}-${{ github.event.issue.number || github.event.pull_request.number }}
cancel-in-progress: true
cancel-in-progress: false
permissions:
actions: write
contents: read
Expand Down Expand Up @@ -1610,7 +1639,7 @@ jobs:
matrix: ${{ fromJSON(inputs.matrix != '' && inputs.matrix || (needs.harness-dispatch.outputs.matrix != '' && needs.harness-dispatch.outputs.matrix || '{"include":[]}')) }}
concurrency:
group: fullsend-harness-${{ matrix.agent }}-${{ github.repository }}-${{ matrix.status_repo }}-${{ matrix.status_number }}
cancel-in-progress: true
cancel-in-progress: false
runs-on: ${{ inputs.runner_image }}
permissions:
actions: write
Expand Down
1 change: 1 addition & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ Detailed guidance lives in `docs/contributing/` and topic-specific guides under
| [Go Code](docs/contributing/go-code.md) | Changing Go code under `cmd/` or `internal/` — covers mint sync, coverage, vet, e2e tests, concurrency testing, suite-timeout policy, WASM binary size constraints, credential redaction for external content, and preferring `go run` for the CLI |
| [Behaviour Testing](docs/guides/dev/behaviour-testing.md) | Modifying behaviour test repo provisioning, fork handling, or workflow dispatch — covers forge API constraints (`auto_init`, fork name derivation, Actions readiness, CI timeout budgeting) |
| [Workflow Contracts](docs/contributing/workflow-contracts.md) | Changing GHA reusable workflows — covers dispatch sync, secret/input threading across installation-mode chains, and review rules |
| [Steering a run in flight](docs/contributing/steering.md) | Changing `internal/steerwatch/`, `runtime.Steerer`, or the steer skip check — covers the two concurrency switches, the provenance checks on a follow-up run, the amendment/context split, settle, ceilings, the receipt, and rollout order |
| [Shell Scripting](docs/contributing/shell-scripting.md) | Writing or reviewing shell scripts — covers `gh api --paginate` pitfalls, jq patterns, and stdout contamination in command substitution |
| [Forge Abstraction](docs/contributing/forge-abstraction.md) | Adding forge operations — covers `forge.Client` interface rules |
| [Harness Composition](docs/contributing/harness-composition.md) | Changing merge functions in `internal/harness/` — covers the invariant between compose and forge merge functions |
Expand Down
7 changes: 6 additions & 1 deletion docs/ADRs/0063-polling-based-work-discovery.md
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,12 @@ event-driven dispatch already assumes under `cancel-in-progress`.
> **Update (2026-09):** [ADR 0106](0106-serialize-agent-runs-and-coalesce-subsequent-events.md)
> replaces automatic cancellation with serialized runs and platform-native
> pending-run coalescing. Source-native locks and agent idempotency remain
> defense in depth for duplicate dispatch and side effects.
> defense in depth for duplicate dispatch and side effects. On GitHub,
> [ADR 0101](0101-preserve-the-agent-run-in-flight-on-work-item-updates.md)
> implements this: stage jobs no longer cancel the run in flight, so layer 2
> above is gone, and the duplicate-poll case is where that trade is least
> favourable, because two duplicate dispatches are the same work rather than a
> newer state superseding an older one.

Property keys are namespaced by target repo to avoid collisions when multiple
repos poll the same Jira project:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
---
title: "101. Preserve the agent run in flight on work-item updates"
status: Accepted
relates_to:
- flapping-convergence
- operational-observability
- agent-architecture
topics:
- concurrency
- dispatch
---

# 101. Preserve the agent run in flight on work-item updates

Date: 2026-09-14

## Status

Accepted

## Context

Every agent stage job in `reusable-dispatch.yml` runs in a concurrency group keyed on the
work item with `cancel-in-progress: true`. A second push, comment, label or title edit on
the same item cancels the job already running on it, and a fresh job starts over: sandbox
provisioning and bootstrap before the model reads a line, then the whole item again from
cold. On a review minutes from posting that is the entire spend lost; on a spaced burst of
pushes every intermediate review completes and is superseded, the waste behind
[#1014](https://github.com/fullsend-ai/fullsend/issues/1014), [#4960](https://github.com/fullsend-ai/fullsend/issues/4960),
[#1422](https://github.com/fullsend-ai/fullsend/issues/1422) and [#6573](https://github.com/fullsend-ai/fullsend/issues/6573).
Review shows it most, but triage, code, fix, retro and prioritize all cancel the same way.

Cancellation was chosen deliberately once: [ADR 0063](0063-polling-based-work-discovery.md) counts
per-stage `cancel-in-progress` among its mitigations against duplicate dispatch from polling,
alongside the source-native lock and agent idempotency, so any change here has to say what it
gives up there. [ADR 0106](0106-serialize-agent-runs-and-coalesce-subsequent-events.md) has since
decided for preserve-and-coalesce and states that the reusable workflows must move to
`cancel-in-progress: false`; this ADR is its GitHub side and records the two run facts it needs.

## Options

**Keep cancelling.** The newest event always wins and nothing is worked from stale input,
the property ADR 0063 leans on — at the price of discarding a run's whole spend for an event
that usually does not invalidate the work in progress.

**Preserve behind a repository variable.** Backward compatible, and a compatibility toggle:
two behaviours for one workflow, selected per repository. The team decided against it on
2026-09-14 — the record on [#6957](https://github.com/fullsend-ai/fullsend/issues/6957) is
run continuation as the default, with no feature flag. It was built first on this branch and
is reversed here, before it reached a release.

**Preserve unconditionally.** Chosen. One behaviour to reason about, in the dispatch workflow
rather than each repository's configuration, at the cost of changing every repository on release.

## Decision

No stage job cancels the run in flight. All seven in `reusable-dispatch.yml` carry
`cancel-in-progress: false`, so the run already working on an item finishes and the last run to
queue waits as the single pending run GitHub keeps per group, normally but not necessarily the
newest event, then works from the item's current state. The value is identical on every one on
purpose: one role cancelling while another queues on the same item is harder to reason about than
either behaviour alone. The change ships with a release, needing no consumer scaffold sync;
cancelling a specific run by hand remains available, and is outside this decision.

So that an agent can tell whether the item moved underneath it, the runner exports two run
facts into the sandbox: `FULLSEND_RUN_HEAD_SHA`, the pull request's head at run start and
empty for an issue, and `FULLSEND_RUN_STARTED_AT`, RFC 3339 UTC. Both are written after the
harness's `.env.d` files and `env.sandbox` are applied, so a harness cannot shadow them —
position is what protects them, since `reservedSandboxKeys` covers `env.sandbox` only. The
start instant is the runner's own clock at the top of `fullsend run`, not the workflow's
`created_at`; the gap is the setup that precedes it, and it is one-directional: an agent
re-checking against this value looks at a slightly narrower window than the run spans,
never a wider one, so it can miss an update that landed during setup but cannot invent one.

This decision needs no receipt or skip check. When nothing tells the run in flight what
changed, the pending run simply does the work, so there is nothing to skip. Delivering the
update *into* the running agent is a separate, opt-in decision that builds on this one,
recorded as ADR 0113, the steering decision stacked on this change.

## Consequences

- Every repository changes behaviour on the release that carries this, with no opt-out: it
stops paying a fresh provision and a cold re-read for every intermediate event, and the
queued run works from current state.
- The run in flight may finish on input that is already stale and post output the item has
moved past; the pending run corrects it, at the cost of doing the work again.
- The per-stage cancellation ADR 0063 relies on against duplicate dispatch is gone
everywhere, leaving the source-native lock and agent idempotency; the duplicate-poll case
is the least favourable, two duplicate dispatches being the same work rather than a newer
state superseding an older one.
Loading
Loading