ECSS Packet Utilization — Request Sequence (space-systems/ecss/e7041-request-sequence)
Use when the task is the request sequence itself as defined by
ECSS-E-ST-70-41C clause 6.21.4 -- the named, ordered block of requests
the sequencing service holds, runs and releases, with the seven
normative items that clause places on its structure, its capacity and
its behaviour when a held request fails.
Domain quick reference
- A request sequence is a unit, not a list. It is named, held, run
and released whole, so everything the ground can do to it is
addressed by the identifier rather than by the requests inside it.
- The order is the sequence. A block of requests reordered is a
different procedure, which is why the order is validated and
preserved rather than recovered from timestamps at run time.
- Each held request has to be one the application would accept on its
own. A sequence is not a place where a malformed request becomes
acceptable by being carried with valid company.
- A sequence that loads, unloads or runs itself is refused. The
recursion has no bound on board and the store has no room to
discover that at run time.
- Size is measured with the headers, because that is what the store
actually spends. A capacity check against payload alone under-counts
by a header per request and overfills the store.
- The lifecycle is small and closed: absent, loaded, executing, then
loaded again or aborted. An out-of-lifecycle move is refused, not
forced through to whatever state was asked for.
- A run stops at the first failure and says where. Continuing past a
failed request runs the rest of a procedure whose preconditions the
failure has just removed.
- Reporting the index it stopped at is what makes the failure
recoverable. The ground can re-enter the procedure at that point
instead of re-running the part that already succeeded.
Workflow
- Normalize each held request first: application identifier, service
type and subtype in range, and a payload inside the packet limit.
- Reject a sequence with no requests, and reject any held request
that targets its own sequence through the sequencing service.
- Compute the loaded size as the payload plus the header of every
held request, and carry that with the sequence.
- Normalize the store: unique identifiers, and a used total that the
declared capacity can actually hold.
- Assess a candidate sequence against the store: identifier not
already held, and loaded size inside the free capacity.
- Police every state change through the closed lifecycle, and run a
sequence only from the loaded state.
- Run the held requests in order, stopping at the first failure and
returning the index, the count issued and the count left.
Pitfalls
- Sizing a sequence from its payloads alone. Every request also costs
a header, so the store fills before the capacity check says it will.
- Recovering the execution order from anything but the held order. A
procedure reordered by an implementation detail is a new procedure.
- Continuing a run past a failed request. The rest of the sequence
assumes an effect the failure prevented, and the damage is done
before the ground sees the first failure report.
- Reporting only that a run failed. Without the index, recovery has
to re-run requests that already succeeded.
- Allowing an executing sequence to be unloaded. The store frees a
block that the running procedure is still reading out of.
- Letting a sequence hold a request that loads itself. Nothing on
board bounds the recursion, and the fault appears as a full store
rather than as the bad sequence that caused it.
Behavior contract (gate 3)
The held-request normalization, the self-reference refusal, the
header-inclusive size, the store capacity check, the closed lifecycle
and the stop-at-first-failure run are exercised by the gate 3
contract test: scripts/test_e7041_request_sequence.py against
scripts/e7041_request_sequence_logic.py (stdlib unittest, offline).
Run: python3 scripts/test_e7041_request_sequence.py
Compliance
- ECSS standards are freely downloadable (ESA); cite the source and
paraphrase per standards-map.yaml.
- compliance: STANDARDS-REF, gated: false.
1---2name: e7041-request-sequence3description: "Model the on-board request sequence of ECSS-E-ST-70-41C clause 6.21.4 and decide whether one is well formed, holdable and runnable. Use when reasoning about a named block of requests the ground fires with a single command: keeping the identifier unique in the sequence store, insisting on at least one request and treating the held order as part of the sequence, checking each request would stand alone, refusing a sequence that loads or runs itself, fitting the loaded size to the declared store capacity, policing the absent to loaded to executing lifecycle, and stopping a run at the first failing request. Trigger: ecss, e-st-70-41-packet-utilization-scope, on-board-request-sequence, request-sequencing-service, request-sequence-store-capacity, request-sequence-lifecycle, request-sequence-self-reference."4license: Apache-2.05compliance: STANDARDS-REF6standards:7 - id: ecss8 reference-only: true9gated: false10domain: space-systems11pack: space-systems12compatibility: "agentskills.io SKILL.md; any SKILL.md host (Claude Code, Hermes, OpenClaw)"13metadata:14 source: https://skillmd.com/skills/ashfordeou/e7041-request-sequence15 domain: space-systems16 subdomain: ecss17 tags: [ecss, e-st-70-41-packet-utilization-scope, e7041-request-sequence, on-board-request-sequence, request-sequencing-service, request-sequence-store-capacity, request-sequence-lifecycle, request-sequence-self-reference]18 version: 0.1.019 author: Aero Agent Skills20---2122# ECSS Packet Utilization — Request Sequence (space-systems/ecss/e7041-request-sequence)2324Use when the task is the request sequence itself as defined by25ECSS-E-ST-70-41C clause 6.21.4 -- the named, ordered block of requests26the sequencing service holds, runs and releases, with the seven27normative items that clause places on its structure, its capacity and28its behaviour when a held request fails.2930## Domain quick reference3132- A request sequence is a unit, not a list. It is named, held, run33 and released whole, so everything the ground can do to it is34 addressed by the identifier rather than by the requests inside it.35- The order is the sequence. A block of requests reordered is a36 different procedure, which is why the order is validated and37 preserved rather than recovered from timestamps at run time.38- Each held request has to be one the application would accept on its39 own. A sequence is not a place where a malformed request becomes40 acceptable by being carried with valid company.41- A sequence that loads, unloads or runs itself is refused. The42 recursion has no bound on board and the store has no room to43 discover that at run time.44- Size is measured with the headers, because that is what the store45 actually spends. A capacity check against payload alone under-counts46 by a header per request and overfills the store.47- The lifecycle is small and closed: absent, loaded, executing, then48 loaded again or aborted. An out-of-lifecycle move is refused, not49 forced through to whatever state was asked for.50- A run stops at the first failure and says where. Continuing past a51 failed request runs the rest of a procedure whose preconditions the52 failure has just removed.53- Reporting the index it stopped at is what makes the failure54 recoverable. The ground can re-enter the procedure at that point55 instead of re-running the part that already succeeded.5657## Workflow58591. Normalize each held request first: application identifier, service60 type and subtype in range, and a payload inside the packet limit.612. Reject a sequence with no requests, and reject any held request62 that targets its own sequence through the sequencing service.633. Compute the loaded size as the payload plus the header of every64 held request, and carry that with the sequence.654. Normalize the store: unique identifiers, and a used total that the66 declared capacity can actually hold.675. Assess a candidate sequence against the store: identifier not68 already held, and loaded size inside the free capacity.696. Police every state change through the closed lifecycle, and run a70 sequence only from the loaded state.717. Run the held requests in order, stopping at the first failure and72 returning the index, the count issued and the count left.7374## Pitfalls7576- Sizing a sequence from its payloads alone. Every request also costs77 a header, so the store fills before the capacity check says it will.78- Recovering the execution order from anything but the held order. A79 procedure reordered by an implementation detail is a new procedure.80- Continuing a run past a failed request. The rest of the sequence81 assumes an effect the failure prevented, and the damage is done82 before the ground sees the first failure report.83- Reporting only that a run failed. Without the index, recovery has84 to re-run requests that already succeeded.85- Allowing an executing sequence to be unloaded. The store frees a86 block that the running procedure is still reading out of.87- Letting a sequence hold a request that loads itself. Nothing on88 board bounds the recursion, and the fault appears as a full store89 rather than as the bad sequence that caused it.9091## Behavior contract (gate 3)9293The held-request normalization, the self-reference refusal, the94header-inclusive size, the store capacity check, the closed lifecycle95and the stop-at-first-failure run are exercised by the gate 396contract test: scripts/test_e7041_request_sequence.py against97scripts/e7041_request_sequence_logic.py (stdlib unittest, offline).98Run: python3 scripts/test_e7041_request_sequence.py99100## Compliance101102- ECSS standards are freely downloadable (ESA); cite the source and103 paraphrase per standards-map.yaml.104- compliance: STANDARDS-REF, gated: false.