Skip to content

Add order:attempt_limit and order:attempt_number fields - #19

Closed
sim13pods wants to merge 2 commits into
stac-extensions:mainfrom
Terradue:main
Closed

sim13pods wants to merge 2 commits into
stac-extensions:mainfrom
Terradue:main

Conversation

@sim13pods

Copy link
Copy Markdown
Contributor

Summary
This change adds two optional fields for retry-aware ordering workflows:

order:attempt_limit: the maximum number of attempts allowed during the current ordering lifecycle.
order:attempt_number: the number of attempts initiated during the current ordering lifecycle, including the current attempt if one is in progress.

Motivation
Some ordering providers allow an order to be retried after a recoverable failure. The existing order:status field can indicate whether an order is orderable or failed, but it cannot communicate how many attempts have already been made or whether another attempt remains available.
These fields allow clients to make that determination without relying on provider-specific metadata.

Semantics
These fields SHOULD be provided together.
order:attempt_number is cumulative within a single ordering lifecycle and MUST NOT exceed order:attempt_limit.
The retry semantics of these fields apply only when:

  • order:status is orderable or failed; and
  • the resource has not expired.

When expires from the Timestamps Extension is present, the resource remains valid until and including the specified instant.
Once order:status changes to any other value, or the current instant is later than expires, clients MUST NOT interpret these fields as indicating that another ordering attempt may be initiated.

Co-authored-by: Fabrice Brito <fabrice.brito@terradue.com>

@emmanuelmathot emmanuelmathot left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @sim13pods, this is carefully written. The state diagram is a good addition. could you split it into its own PR? I will merge that quickly.

On the two attempt fields, I have a scope concern. They describe control variables of the ordering system, not the state of the data. The README already draws this line: "The order information is not stored as a metadata of the Item but in the ordering information of the user request."

Two points:

  • The decision is already expressible. A client retries when order:status is failed or orderable. If no attempt remains, the provider must not keep the status at orderable.
  • Retry policy does not generalize. Providers limit attempts per day, per quota or per user. Two integers cannot describe that, and the next requests would be queue position, quota or priority which turns this extension into an order-management API.

The rel=order link already points to the order document, where the ordering API can carry these variables freely.

That said, the need behind your PR is real: there is no agreed way to interact with an ordering system in STAC today. This extension gives the catalog-side state; the transaction side is missing. If you are interested, the better place is a proposal for an Order API extension in radiantearth/stac-api-spec with endpoints to submit, poll, retry and cancel an order, with attempts, quota and queue state in the order resource itself. I would gladly support such a proposal, and this extension would stay the catalog-side view of it.

@sim13pods

Copy link
Copy Markdown
Contributor Author

@emmanuelmathot state diagram removed from current PR, see #20 to merge it

For the rest of current ongoing discussion, we will follow up during the morning with @fabricebrito

@sim13pods

sim13pods commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor Author

Thanks @emmanuelmathot for the detailed feedback.

I think we agree on an important principle: this extension should not become an order-management API, and it should not try to model provider-wide operational policies such as user quotas, daily request limits, queue positions, priorities, available processing capacity, concurrency limits, etc.

However, I think we are discussing two different layers here, and this distinction is important for the motivation behind these two fields.

What we are proposing is not a provider capacity policy and is not intended to limit how many requests a client may submit to the provider.

It is instead a small piece of resource-scoped lifecycle metadata describing what has already happened to a particular Item/Asset and whether, as a consequence of that history, another attempt for that resource still makes sense.

Provider capacity vs. Item retry lifecycle

For example, these would clearly be provider/order-management concerns and are outside the scope of this proposal:

  • a user may submit at most 100 orders per day;
  • a user has 5 requests remaining in their quota;
  • the provider currently accepts only 20 concurrent jobs;
  • an order is number 35 in a processing queue;
  • premium users have a higher priority;
  • the provider is temporarily overloaded.

I completely agree that trying to represent those concepts through two integers in STAC would be inappropriate.

But this is not what order:attempt_limit and order:attempt_number are intended to represent.

Consider instead one particular Item, A.

The provider knows that producing or activating A sometimes fails because of a recoverable upstream or processing condition. For operational reasons, the provider decides that the current ordering lifecycle of Item A may be attempted a maximum of three times.

This does not mean:

this client is allowed only three requests.

It means:

this particular Item, in this particular ordering lifecycle, has already consumed N of the attempts that the provider is willing or able to perform for it.

The client may still order Item B, Item C, Item D, etc. There is no client-side rate limit implied here at all.

The restriction is attached to the lifecycle of A, because repeatedly submitting the same failing work after the provider already knows that the retry lifecycle is exhausted serves no useful purpose and consumes processing time and resources unnecessarily.

Why order:status alone does not communicate this

This is where I disagree that the decision is already fully expressible through order:status.

You wrote:

A client retries when order:status is failed or orderable.

This is actually the situation where we see the metadata gap.

Suppose the provider allows three attempts.

At an initial point in time:

Item A
order:status = orderable
order:attempt_number = 0
order:attempt_limit = 3

The first attempt is made and fails because of a recoverable condition:

order:status = failed
order:attempt_number = 1
order:attempt_limit = 3

At this point, retrying is meaningful.

The second attempt also fails:

order:status = failed
order:attempt_number = 2
order:attempt_limit = 3

Retrying is still meaningful.

The third attempt then fails:

order:status = failed
order:attempt_number = 3
order:attempt_limit = 3

Now the situation is materially different.

The Item is still failed, but another retry is no longer useful or accepted for this ordering lifecycle.

This is precisely the information we are trying to make transparent.

If failed can mean both:

  1. failed, but retry is still possible, and
  2. failed, and retry possibilities have been exhausted,

then order:status = failed by itself cannot distinguish those two states.

Likewise, changing the Item away from orderable does not solve this distinction: after an actual failed attempt, failed is the semantically correct status in both cases.

We could of course invent another status such as retry-exhausted, but that would encode only the final condition and would still lose useful lifecycle information. The two counters describe the evolution naturally and without multiplying status values.

The temporal aspect is important

There is another reason why we would like this information to remain visible in metadata: transparency over time.

The exact same Item may legitimately have been retryable earlier and no longer be retryable now.

For example:

10:00 — attempt 1/3 fails
         Item can still be retried.

10:10 — attempt 2/3 fails
         Item can still be retried.

10:20 — attempt 3/3 fails
         Retry lifecycle is exhausted.

At 10:10 a client looking at the Item should be able to understand why retrying is still reasonable.

At 10:20 the client should be able to understand why the same operation is no longer reasonable.

Without the counters, the externally visible metadata may simply say failed at both points in time.

That loses an important part of the state transition.

Our intention is not that STAC should enforce the retry policy. The provider remains authoritative and can always accept or reject a request.

The intention is that the STAC representation should be able to describe why the resource is currently in the state exposed to the user, including why something which could previously be retried cannot reasonably be retried anymore.

In that sense I see this information much closer to order:status, updated, or expires than to a provider quota.

For example, expires tells us that a resource which was usable at time T1 may no longer be usable at T2. It does not attempt to describe the provider's entire availability policy.

Likewise, the attempt information tells us that an Item which still had a recovery path at T1 may have exhausted that path at T2.

A multi-Item example makes the distinction clearer

Imagine a catalog containing:

Item A: failed, 3/3 attempts
Item B: failed, 1/3 attempts
Item C: orderable, 0/3 attempts

The intended meaning is:

  • do not keep retrying A: its current retry lifecycle is exhausted;
  • B can still be retried;
  • C can be ordered normally.

It says nothing about whether the user is allowed to submit one, ten, or a thousand other requests.

If the provider additionally has a policy such as “this user may make only 20 requests per day”, that is a completely different concern and should indeed live in the ordering API/provider interaction rather than these STAC fields.

I therefore would not expect concepts such as quota, queue position or priority to follow from this proposal. Those belong to a different scope.

About rel=order and a possible Order API

I also agree that a standardized Order API could be very useful, and I would be supportive of such work.

I do not think, however, that an Order API and these metadata fields are mutually exclusive.

An Order API would be the appropriate place for the transaction:

  • submit;
  • retry;
  • cancel;
  • poll;
  • validate authorization;
  • expose user quotas;
  • expose queue or processing information;
  • reject an operation when necessary.

The STAC metadata serves a different purpose: it provides a discoverable representation of the current state of the resource.

The rel=order document can certainly contain richer provider-specific information, but requiring a generic client to dereference an ordering endpoint or provider-specific order document merely to discover that an Item has exhausted its retry lifecycle seems to reduce the usefulness of the catalog-side metadata.

In other words:

the API decides whether an operation is accepted; the metadata explains the current state that the client is observing.

That is the separation we are aiming for.

Perhaps the wording can make this distinction stronger

If the concern comes partly from wording such as “maximum number of attempts allowed”, I am happy to make the scope more explicit in the specification.

For example, we could explicitly state that:

  • these fields describe only the retry history of the resource within its current ordering lifecycle;
  • they MUST NOT be interpreted as a user quota, rate limit, provider capacity limit, or authorization mechanism;
  • they do not guarantee that another request will be accepted—the provider/order API remains authoritative;
  • provider-wide or user-specific policies such as daily quotas, queue state, concurrency, and priority are outside the scope of these fields.

I think that would make the intended boundary much clearer.

So I believe we are aligned on keeping provider operational policy out of STAC; where we differ is whether the number of already-consumed attempts for one resource is itself merely provider policy.

From our perspective, once those attempts have actually occurred, that value is no longer only a policy parameter: it is also part of the current lifecycle state of that Item.

And that state is useful precisely because it explains why:

“this Item could be retried before, but cannot usefully be retried anymore because its retry lifecycle has been exhausted.”

That transparency is the main objective of this proposal, rather than limiting client requests or modelling the provider's work capacity.

@emmanuelmathot

Copy link
Copy Markdown
Member

Thanks @sim13pods, this is a thorough reply and it clarifies the intent. I agree with your principle: the API decides, the metadata explains the observed state. I also accept your point that my first message did not cover the failed case properly.

The gap you describe is real, but it is in the state model, not in the field set. The README defines failed as "The provider is not able to deliver the order." That is a terminal state. A recoverable failure, where the provider still permits an attempt, is not that state. In that case the catalog-side state is orderable again.
So:

  • orderable: a new attempt is possible.
  • failed: no attempt is possible.

Your three examples become: A is failed, B is orderable, C is orderable. The client decision is the same as with the counters, and order:status stays the single source of truth.

On the two counters, my scope concern stands, and your reply helps me state it more precisely:

  • orderable with 0/3 describes no history. It advertises a policy before any attempt exists.
  • "Transparency over time" needs a history. Two integers do not provide one, and the PR says providers SHOULD remove the fields when the lifecycle ends, which is the moment a history would be useful. The order document at rel=order is the place for that record.
  • The counters explain why the provider chose a state. This extension only carries which state. That is the line in the README: the order information is not stored as metadata of the Item.

I remain interested in an Order API extension on the stac-api-spec side, where attempts, retry policy and history can be first-class.

@sim13pods

Copy link
Copy Markdown
Contributor Author

Thanks @emmanuelmathot — this is helpful, because I think your latest reply narrows the disagreement considerably and, in fact, gives us a cleaner way to define the boundary.

I am happy to accept the state-model clarification you propose:

  • orderable means that an ordering attempt can currently be initiated;
  • failed is terminal for the current ordering lifecycle;
  • after a recoverable failure, if another attempt is possible, the catalog-side state returns to orderable.

That gives order:status a very useful and precise responsibility: it is the authoritative representation of what can currently be done.

I do not think, however, that this removes the need for the attempt metadata. I think it actually makes its purpose more precise.

order:status tells us what can happen; it does not tell us how we arrived there

Using your mapping, our example becomes:

A: failed
B: orderable
C: orderable

where:

A: failed,    3/3 attempts
B: orderable, 1/3 attempts
C: orderable, 0/3 attempts

I agree that, from the narrow perspective of "may I initiate an order now?", B and C have the same answer: yes.

But B and C are not in the same lifecycle situation.

C has never been attempted.

B has already been attempted, has encountered a recoverable failure, and is now orderable again because the provider permits another attempt.

So, by making orderable the state reached again after a recoverable failure, we have actually made the distinction more visible: order:status deliberately collapses "initially orderable" and "orderable again after a recoverable failure" into the same state.

I think that is perfectly fine for the state machine. I would not propose adding states such as retryable-failure or retry-exhausted.

But it means order:status is the single source of truth for actionability, not necessarily the complete description of the resource's current ordering lifecycle.

That distinction also fits the principle on which we now agree:

the API decides; the metadata explains the observed state.

If the metadata is expected to explain the observed state, then orderable after zero attempts and orderable after a failed first attempt are precisely the kind of situations where a small amount of additional lifecycle context is useful.

I agree that 0/3 is not "history" — but I don't think it needs to be

Your point that:

orderable with 0/3 describes no history

is correct.

I would refine our terminology here.

order:attempt_number and order:attempt_limit do not represent the same kind of information:

  • order:attempt_number describes accumulated progress within the current ordering lifecycle;
  • order:attempt_limit describes a constraint/capability of that particular resource's current ordering lifecycle.

So 0/3 intentionally says:

no attempt has yet occurred, and this resource currently participates in an ordering lifecycle allowing up to three attempts.

I agree that the 3 is therefore not historical information.

Where I still disagree is that this necessarily makes it provider-wide order-management policy.

It is resource-scoped lifecycle metadata.

That is a materially different scope from:

user quota = 100 orders/day
remaining user quota = 12
queue position = 35
provider concurrency = 20
priority = premium
retry-after = 600 seconds

None of those belong on the Item, and I fully agree that they belong in an order resource/API.

By contrast:

this resource is currently in attempt 1 of a lifecycle capped at 3

is bounded to the resource represented by the Item/Asset.

The field should therefore absolutely not authorize an operation and should not supersede order:status. It merely describes the lifecycle within which that status exists.

On "history": I think we are asking two different things from the metadata

I also agree that two integers are not an order history.

I don't think they should be.

A proper history would need something more like:

attempt 1
  started: ...
  completed: ...
  outcome: ...
  error: ...

attempt 2
  started: ...
  ...

and potentially provider responses, error details, links, backoff information, actors, timestamps, etc.

That clearly belongs in the order resource and, ultimately, in an Order API.

But a current-state representation does not need to reproduce the complete event stream in order to expose a useful aggregate derived from it.

order:attempt_number = 2 says that two attempts have occurred in the current lifecycle. It does not claim to tell the client when, how, or why each one occurred.

This is analogous to the difference between a resource representation and its audit/event log.

The STAC representation can expose the former; rel=order and a future Order API can expose the latter.

I think your point about removing the fields at the end of the lifecycle is valid

There is one part of the current PR that I would change based on your feedback.

The current text says:

Providers SHOULD remove the fields when they no longer describe an active retry lifecycle.

I agree that this weakens the descriptive argument unnecessarily.

If the lifecycle terminates as:

order:status = failed
order:attempt_number = 3
order:attempt_limit = 3

then retaining 3/3 is useful catalog-side context for the terminal state.

Importantly, it still does not mean that the client may retry. order:status = failed remains authoritative and says that it may not.

So I would rather define the relationship as:

  • order:status is authoritative for whether a new ordering attempt may currently be initiated;
  • the attempt fields MUST NOT be interpreted as authorization to initiate another attempt;
  • the attempt fields MAY remain present after the lifecycle becomes terminal when they still describe that lifecycle;
  • a full attempt history remains outside the scope of the STAC metadata.

This also removes any possible competition between the fields and order:status.

For example:

orderable + 0/3

means "currently orderable; no attempts yet."

orderable + 1/3

means "currently orderable again; one attempt has already occurred."

failed + 3/3

means "terminally failed; three attempts occurred in this lifecycle."

In every case, the client looks at order:status to determine current actionability.

The counters simply preserve the lifecycle context that order:status, intentionally, does not encode.

I also think "this extension only carries which state" is a slightly narrower boundary than the extension has today

The existing extension already exposes:

  • order:status;
  • order:id;
  • order:date;

and recommends using additional timestamp metadata such as expires.

So I don't think the existing conceptual boundary is quite "the extension carries only which state."

It already carries concise metadata associated with the current ordering state/lifecycle.

Likewise, I read:

the order information is not stored as metadata of the Item

in the README in the context in which it appears: Data Ordering per user.

That distinction is important to me.

I completely agree that a user's complete order transaction — request parameters, quota, queue state, authorization, attempt records, errors, etc. — should not become Item metadata.

But interpreting that sentence as prohibiting any ordering lifecycle information other than the status would be difficult to reconcile with order:id and order:date already being fields of the extension.

I therefore think a better architectural boundary is:

STAC Order Extension: compact, resource-scoped projection of the current ordering lifecycle.

Order resource / rel=order: detailed representation of the individual order and its history.

Order API: authoritative transactional interface for creating, polling, retrying, canceling and otherwise managing orders.

That boundary seems both narrower and more durable.

And this is also where I think the future Order API becomes complementary rather than an alternative

I very much agree with your proposal to eventually have attempts, retry policy and history as first-class concepts in an Order API.

Actually, I think evolving this extension now can help that work rather than conflict with it.

The catalog extension gives us an opportunity to establish interoperable vocabulary for concepts that the transaction-side API will eventually have to model anyway:

  • what an "ordering lifecycle" means;
  • what constitutes an attempt;
  • whether attempt numbering is cumulative within that lifecycle;
  • how a recoverable failure transitions back to orderable;
  • how terminal failed differs from orderable after a previous failure;
  • which information is resource-scoped versus user/provider-scoped.

A future Order API can then provide the richer representation:

Order
 ├── state
 ├── attempts[]
 │    ├── number
 │    ├── started
 │    ├── completed
 │    ├── outcome
 │    └── error
 ├── retry policy
 ├── quota / authorization constraints
 ├── queue / processing information
 └── operations: retry, cancel, ...

while the corresponding STAC resource exposes only the lightweight projection relevant for catalog discovery:

order:status
order:attempt_number
order:attempt_limit
rel=order

In other words, I would prefer that we do not make the catalog representation wait for the complete transaction model to exist.

The small representation can give us interoperability today and, at the same time, provide a useful semantic foundation for the future API.

When that API exists, the responsibilities remain very clear:

the Order API contains the authoritative transaction and full history; the STAC extension contains the resource-scoped projection that can be understood without dereferencing the complete order resource.

So I think your latest state-model clarification actually gives us a good way forward.

I am happy to update the PR so that:

  1. failed is explicitly treated as terminal;
  2. recoverable failure transitions back to orderable;
  3. order:status is explicitly authoritative for whether another attempt can currently be initiated;
  4. order:attempt_number / order:attempt_limit are explicitly descriptive and MUST NOT override or imply authorization beyond order:status;
  5. the wording recommending removal of the fields at lifecycle termination is relaxed so terminal lifecycle context such as failed + 3/3 can be retained;
  6. provider/user concerns such as quota, queue position, priority, concurrency, backoff and complete attempt history are explicitly left to rel=order / a future Order API.

To me, that preserves the separation you are asking for without losing useful resource-level lifecycle information — and it gives the eventual Order API a cleaner catalog-side counterpart rather than making the two compete.

@fabricebrito

Copy link
Copy Markdown
Contributor

@emmanuelmathot have you read the comment above, are we good to go?

@emmanuelmathot

Copy link
Copy Markdown
Member

Thanks @sim13pods for the detailed reply, and @fabricebrito for the ping. Sorry for the delay. I was travelling for the last three weeks.

I read the full comment. It helps, and we now agree on more points:

  • order:status is the authority for what a client can do now.
  • failed is terminal. A recoverable failure goes back to orderable. This is now in the diagram from docs(media): added order:status State diagram #20.
  • Quota, queue, priority, backoff and full attempt history are out of scope for this extension.

But my position on the two counters did not change. These are my reasons:

  1. The counters do not change what a client does. You say B (orderable, 1/3) and C (orderable, 0/3) are in different lifecycle situations. That is true. But a client does the same thing for both: it can order. A field that does not change client behavior is diagnostic information. Diagnostic information belongs in the order document at rel=order, not in the catalog metadata.

  2. order:attempt_limit is provider policy. You agree that 0/3 is not history. Then the 3 is a value that the provider chose. It is scoped to one resource, but it is still a policy value. Other providers will use other rules (per day, per user, per product type). One integer cannot describe all of them in an interoperable way.

  3. order:id and order:date are different. order:id is the key to the order record. order:date is the time of submission. Both point to the order. They do not expose how the provider manages it. The counters do.

  4. Experience from one provider is not enough. One implementation can show that the fields work for one provider. A field in this extension must be useful for many providers. Many "product on demand" providers have similar needs, but their retry models are different. I want to see how they model this before we fix a vocabulary here.

I also want to help you move forward now. I see two options:

  • Publish the fields in a separate community extension (for example order-retry, or a provider prefix). Your implementation can use it immediately. It does not block anyone. If other providers adopt it, we can move the fields into this extension later, with evidence.
  • Start an Order API proposal that bridges STAC API and OGC API - Processes. Many "product on demand" workflows run the production with OGC API - Processes, and STAC only exposes the result. An Order API extension does not need to do everything in STAC API alone. Almost all STAC API extensions try to stay compatible with OGC API: STAC API builds on OGC API - Features, and the Filter extension uses CQL2. An Order API extension can do the same. It can define the order resource (state, attempts, retry policy) and reference OGC API - Processes for the execution and the callbacks. Your team has experience with ordering workflows, so you are in a very good position to lead it.

To get a decision that is not only mine, I will put this PR on the agenda of the next STAC community call. If we still do not agree after that, I will ask the PSC to decide.

@m-mohr

m-mohr commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

@sim13pods Thanks for bringing this up. We discussed this in the STAC PSC meeting today, with the following conclusion that I'm posting here as the chair of the STAC PSC on behalf of the STAC PSC:

The proposed fields seem to be out of scope of the extension, and also a bit too much of an implementation detail that is specific to some providers. We'd recommend to either generalizing this, for example to indicate whether a failure is recoverable and/or whether a retry is possible or to choose one of the other alternatives that were mentioned in the previous discussion, e.g. publishing the fields in a separate community extension, or defining the full ordering flow as an API extension so that a retry can actually be triggered. Feel free to propose alternatives through new PRs here or in other repositories.

We'll close the PR and think that this is non-blocking as providers can propose additional extensions that align with community needs, or use provider-specific fields for now.

We'll work on clarifying the scope of this extension, see also #21.

@sim13pods

Copy link
Copy Markdown
Contributor Author

Thanks @m-mohr for bringing this to the rest of the PSC (@alexgleith, @emmanuelmathot, @jsignell, @matthewhanson, @PowerChell, @gadomski) and for reporting the conclusion here.

I want to separate two things very clearly.

First, I acknowledge the technical decision. The PSC has concluded that the proposed fields should not be merged into this extension in their current form. I disagree with that conclusion for the reasons already discussed extensively above, but I understand that a technical project needs a mechanism to eventually make decisions.

What I am considerably less comfortable with is the process by which we arrived at this decision, and I think that deserves discussion independently from the merits of these two fields.

At this point, for me, the important question is no longer whether order:attempt_number and order:attempt_limit are accepted.

The important question is:

what should an external implementer reasonably understand “contributing to a STAC community extension” to mean, and at which point are the scope and acceptance criteria of that extension defined?

I think PR #19 has exposed an ambiguity there that is worth addressing.

The published contribution model gave us a reasonable expectation that implementation feedback was welcome

The Order extension currently identifies itself as a Pilot extension.

STAC's own extension maturity documentation describes Pilot as an extension for which:

Additional implementations [are] encouraged to help give feedback

and explicitly explains that, at this level, changes can still arise from that additional feedback.

That description matters.

Terradue is not proposing these fields as a theoretical exercise. We encountered a concrete ordering lifecycle requirement while implementing this extension, identified what we considered to be a missing piece of interoperable metadata, implemented a proposal, documented its semantics, submitted it as a PR, and then spent additional engineering and discussion effort refining the proposal in response to review.

This is, as far as I understand it, exactly the type of implementation feedback that a Pilot maturity level is supposed to solicit.

The repository itself reinforces that expectation. Its Contributing section explicitly points contributors to the STAC specification contributing guide.

That guide says:

Pull Requests are the primary method of contributing to the spec itself, and everyone is welcome to submit changes.

It goes further and explicitly says that proposed changes have more weight when there is a concrete implementation demonstrating the problem.

Again, that is essentially the situation we brought here.

For that reason, I think it is reasonable that we approached this repository believing that an implementation-discovered gap could be proposed for inclusion and evaluated against an already-understood scope.

The problem is that the scope used to reject the contribution is now going to be clarified after the decision

The part of the resolution I find particularly problematic is the final sentence:

We'll work on clarifying the scope of this extension, see also #21.

Issue #21 was opened following the PSC conclusion on this PR specifically to “clarify the scope of the extension.”

This sequencing is difficult for me to reconcile with a predictable contribution process.

The PR has effectively been rejected because the proposed fields are considered outside the scope of the extension, while at the same time the project acknowledges that this scope still needs to be clarified.

Those two statements create a procedural problem:

if the scope was not sufficiently clear before the contribution was made, it is difficult to use that not-yet-documented boundary retroactively as the decisive acceptance criterion for the contribution.

I am not suggesting that anybody intentionally changed the scope in order to reject Terradue's proposal. I cannot know that, and I do not want to attribute motives.

But from the perspective of an external contributor, the observable sequence is nevertheless:

  1. an extension is published as a community extension at Pilot maturity;
  2. additional implementations and feedback are explicitly encouraged;
  3. the repository invites pull requests through the STAC contribution process;
  4. an implementer invests engineering effort based on a real implementation requirement;
  5. the implementer submits a concrete and documented proposal;
  6. an extended technical discussion follows;
  7. the proposal is ultimately classified as outside the extension's scope;
  8. after that decision, the scope is going to be clarified.

Even with the best intentions from everyone involved, this creates the appearance of an ex-post definition of the acceptance boundary.

That is exactly the kind of situation a contribution/governance process should try to avoid.

I therefore think there are two coherent governance models, but the project should be explicit about which one applies

I see two perfectly legitimate models.

1. Maintainer-owned extension

An extension may effectively be maintained according to a specific design vision owned by one maintainer or a small group of maintainers.

There is nothing inherently wrong with that.

In that model, however, I think the documentation should be explicit that external contributions are welcome primarily as suggestions, while decisions about the conceptual scope and data model remain at the discretion of the designated owners.

The README should then define, before contributors invest significant effort:

  • the normative scope of the extension;
  • concepts intentionally excluded from that scope;
  • the architectural principles against which new fields will be evaluated;
  • who has decision authority;
  • how disagreements are resolved;
  • whether an implementation demonstrating a missing use case has any special standing;
  • whether major scope changes require consultation with implementers.

That would be a perfectly understandable governance model.

A contributor could look at those rules and make an informed decision about whether it is worth investing engineering effort in a proposal.

2. Community-governed extension

The alternative is that this is genuinely a community extension whose semantics are expected to evolve through the experience of multiple implementers.

That seems particularly natural while the maturity level is Pilot.

In that case, participation probably needs to be broader than “anybody may open a PR, but the established ownership/governance group retains the complete decision-making authority.”

There needs to be a meaningful path from contribution to participation in the evolution of the specification.

That does not mean every contributor gets a veto or that every PR must be accepted.

It could mean, for example:

  • multiple active maintainers representing independent implementations;
  • a documented path by which sustained contributors can become maintainers or code owners;
  • explicit consensus criteria for semantic changes;
  • documented voting or escalation rules;
  • the opportunity for affected implementers to participate when the scope itself is being defined;
  • published rationale when a previously unspecified scope boundary is established;
  • a distinction between rejecting a proposal because it violates an existing rule and deciding that the rule itself should now be created.

What I find difficult is the intermediate model:

the project presents itself as a community extension and actively invites implementation feedback, but the effective scope is defined by a closed decision-making group after contributors have brought implementation experience to it.

That gives contributors the cost of open-source participation without a commensurate opportunity to participate in the decisions that determine whether their work belongs.

I do not think “you can always create another extension” fully addresses this concern

The PSC resolution says that this is non-blocking because providers can create another community extension or use provider-specific fields.

Technically, of course, that is true.

STAC is extensible. Terradue can publish terradue:* fields tomorrow, and we can create another extension.

But interoperability is precisely why we came here instead.

The purpose of contributing to an existing community extension is to avoid every provider independently solving the same semantic problem.

If every concrete implementation gap encountered by a second implementer is redirected into:

  • a provider-specific field;
  • another extension;
  • or an entirely new API specification,

then the cost is fragmentation.

That may occasionally be the correct architectural answer, but it should be the consequence of a clearly documented scope boundary, not the default escape hatch whenever extending an existing model becomes uncomfortable.

There is also a practical asymmetry here.

Creating another extension is cheap from the perspective of repository governance, but expensive for implementers and users:

  • another schema to discover;
  • another extension identifier;
  • another vocabulary;
  • another compatibility matrix;
  • another implementation for clients;
  • another documentation surface;
  • another lifecycle and governance process;
  • and potentially two competing representations of closely related concepts.

So “you are free to create another extension” is not equivalent to meaningful participation in the evolution of the extension that already claims the relevant semantic domain.

The PSC's authority is not what I am disputing

I have also read the STAC development process, and it is clear that the PSC has ultimate decision-making authority when consensus cannot be reached.

I am therefore not arguing that the PSC lacked the authority to make this decision.

My concern is different:

authority and an open contribution process are not the same thing.

A governance body can have final authority while still operating through transparent, predictable participation rules.

The question here is whether external contributors can know those rules before committing resources.

The STAC development documentation says that most decisions should normally emerge from consensus in issues and pull requests, with the PSC being the escalation mechanism for cases where consensus cannot be reached.

That makes the quality of the rules around participation and scope even more important.

If an escalated decision establishes a previously undocumented scope boundary, I think the fair response should be to treat that as a governance/specification change in its own right, not simply as an existing rule that the contributor failed to satisfy.

Terradue has invested actual engineering resources in this discussion

I also want to make this point explicitly because open-source discussions can sometimes make implementation work look costless.

This contribution was not generated in isolation and dropped into the repository casually.

At Terradue we spent engineering time:

  • implementing the Order extension in a real system;
  • identifying the lifecycle problem;
  • analysing alternatives;
  • designing the additional fields;
  • updating the schema and documentation;
  • preparing examples and semantics;
  • responding extensively to review;
  • refining our interpretation of failed and orderable;
  • accepting valid criticism and proposing changes;
  • and trying to align the proposal with the architectural concerns raised by the maintainers.

We did that in good faith because the repository and the wider STAC documentation gave us the understanding that real-world implementations are part of how a Pilot extension matures.

Of course, contributing engineering time never creates an entitlement to have a PR merged.

I want to be absolutely clear about that.

But contributors should reasonably be entitled to know the rules by which that contribution will be judged.

There is an important difference between:

We evaluated the proposal against the documented scope and it does not satisfy criteria X, Y and Z.

and:

We consider the proposal outside the scope, therefore we will close it, and we will now clarify what the scope is.

The former is a normal technical rejection.

The latter indicates that the governance/documentation itself needs attention.

Therefore I think #21 should address contribution governance as well as technical scope

I would strongly suggest that #21 not merely add a few sentences saying that retry metadata is outside the scope.

That would solve the immediate disagreement but not the underlying problem exposed by this PR.

I think the project should clarify at least:

  • who owns the semantic scope of this extension;
  • whether that scope can evolve based on new implementations;
  • how Pilot-level implementation feedback is expected to influence the extension;
  • what criteria determine whether a new field belongs here or requires another extension;
  • who participates when those criteria themselves are disputed;
  • how an external contributor can become part of the extension's maintenance/governance process;
  • and whether scope changes established during the review of an existing PR should apply retroactively to that contribution.

Most importantly, if this extension is intended to remain under the semantic control of a fixed owner/PSC group, I think that should simply be stated clearly.

That is much preferable to presenting a broad invitation to contribute while leaving contributors to discover the effective decision boundaries only after significant effort has been invested.

Conversely, if this is intended to be a community extension in the stronger sense, then I think the project should provide a meaningful mechanism for organisations that implement the specification and contribute substantial work to participate in its maintenance and evolution.

I would prefer an open process rather than a fork

Terradue can obviously maintain its own extension or provider-specific vocabulary.

That is not the outcome I would prefer.

We came to stac-extensions/order precisely because we believe ordering interoperability benefits from a shared model.

The discussion in this PR also showed that there is useful common ground. We converged on several semantic distinctions, clarified the meaning of terminal failed, distinguished API authority from descriptive metadata, and exposed questions that a future Order API will also have to address.

That looks to me like productive standardisation work, even though we did not reach agreement on these particular fields.

For that reason I would much rather see the response to this disagreement be more participation and clearer governance, not simply fragmentation into another extension.

So, respectfully, I do not consider “the PSC has decided that this is out of scope, we will close the PR, and we will now clarify that scope” to be a satisfactory resolution of the process issue.

It may be a valid exercise of the PSC's authority, but it leaves an important question unanswered for us and for future contributors:

when a community implementer discovers a gap in a Pilot extension, how can they participate in defining the evolution of that extension rather than merely submit proposals to a scope whose effective boundaries are controlled elsewhere?

I think we should answer that explicitly.

Either:

(a) document the extension as maintainer-controlled, with clear scope and acceptance rules so external organisations can evaluate the cost of contributing before investing resources;

or

(b) open the extension's maintenance and decision-making process sufficiently that substantial implementers and contributors have a path to participate in defining those rules.

Both models are legitimate.

What I don't think is sustainable for a community specification is to invite open participation at the contribution layer while keeping the effective rules of acceptance closed or undefined at the governance layer.

I hope we can use #21 to clarify that as well as the technical scope. That would make the outcome of this discussion useful beyond this particular PR and give future contributors a much more predictable basis on which to engage.

@m-mohr

m-mohr commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

@sim13pods Thanks for raising your concerns. I think the points might be in the wrong place here as this PR is closed and probably will not be seen by many, and as you said it's also not about the specific proposal any longer. For such discussions, I'd propose to bring it up as a new issue in https://github.com/radiantearth/stac-psc/issues or https://github.com/radiantearth/stac-spec/discussions (whatever you think is the better fit) so that we can discuss the points raised there and really have a dedicated place to elaborate on it. It would be good to know whether the recent changes in radiantearth/stac-spec#1396 - merged just last week and we are still in a migration period - already improve the situation? It defines for example governance classes for extensions, who owns and decides on an extension, and when to involve the STAC PSC. A somewhat related PR is also stac-extensions/template#37.

Disclaimer: I've only skimmed the text so far as it seems I'm unfortunately about to depart into sick leave (not feeling good), but wanted to quickly give at least a bit of feedback as it was in my notifications and otherwise may have taken a bit of a longer delay due to that.

@sim13pods

Copy link
Copy Markdown
Contributor Author

Thanks @m-mohr take care and get well soon!

@emmanuelmathot

Copy link
Copy Markdown
Member

@sim13pods thanks again for all the work Terradue put in this PR. Honestly, I was a bit sad to read your last message. I thought we had a good technical discussion here, even if we did not agree at the end, and I would have preferred to finish on that. But you have one fair point and I admit it: the scope was not written before you opened the PR. But this is community work, done on our free time most of the time. We discover new limits every day, with each new implementation, and we try to adjust the best we can. Nobody had a hidden scope in a drawer. #21 is the place to fix it now, and for the governance questions I will follow @m-mohr proposal and not answer here.

Let me just close my side with a second data point, like I said in october. I am working on a large EO catalogue modernization and a STAC API with tens of millions of products. The assets are in a S3 type data lake with an online tier and a cold tier, and a cold asset must be restored before download. The tier of an asset is decided by the Information Lifecycle Management (ILM) rules of the operator. There is no notion of retry there at all.
We are evaluating the "Activating Offline Assets" scenario of this README: storage:refs for the tier, and order:status on the asset for the activation: orderable (cold), shipping (restore in progress), succeeded + expires (restored copy available).
Terradue explains its state with a retry lifecycle (attempt 2 of 3). This archive would explain the same state with ILM rules. With the logic of this PR we could also ask for order: fields translating those rules. We don't. In both systems the client does exactly the same: read order:status, order when orderable, wait, download before expires. The "why" is different for each provider, so it stays behind rel=order. The "which state" is common, and this is what the extension should carry. This is the boundary I will propose in #21, and I would really like your review there.

A similar discussion has been going on lately in stac-extensions/processing#46. And there too, we found it necessary to clarify the scope of the extension afterward. I believe this is a normal process for a standard specification getting more and more adopted and for which we want to ensure sustainability.

@sim13pods

Copy link
Copy Markdown
Contributor Author

Thanks @emmanuelmathot for your response.

I am sorry that my previous message gave you that impression, because I also appreciated our technical discussion. My considerations were neither personal nor intended to diminish the value of the work you and the other maintainers have done.

However, I think some important points of my previous message may have been overlooked, possibly because of its length.

First, I never suggested that anyone had a hidden scope in a drawer. Quite the opposite: I explicitly stated that I was not attributing intentions to anyone. My concern is about the process, independently of the good faith of the people involved.

Second, I am not expecting the scope of a specification to be perfectly defined upfront. I fully agree with you that discovering new requirements and architectural boundaries through independent implementations is a natural part of standardisation.

That is precisely my point: when a new implementation exposes an ambiguity in the scope, I believe that the implementer should have a meaningful opportunity to participate in defining that scope.

There is a substantial difference between:

  • rejecting a contribution because it conflicts with an established architectural boundary;
  • collaboratively discovering and defining an architectural boundary through the discussion initiated by that contribution.

My concern is not that the scope evolves, but rather how it evolves, when it evolves, and who participates in defining its evolution.

Third, I fully appreciate that maintaining STAC extensions is largely voluntary work. However, external contributions are also voluntary investments in the community. At Terradue, we chose to allocate engineering resources to contribute upstream rather than simply address our requirements internally.

The voluntary nature of the work applies to both maintainers and contributors. I think this is an additional reason to establish predictable and transparent contribution processes, so that everyone's investment is valued and encouraged.

Regarding your second implementation example, thank you for sharing it. It is certainly useful evidence for understanding the diversity of ordering scenarios.

I would only observe that the absence of a retry lifecycle in one implementation does not necessarily establish that such a concept is provider-specific in another. Optional metadata fields exist precisely because not every implementation needs to represent every supported concept.

Nevertheless, I deliberately do not want to reopen that technical discussion here.

Your reference to the Processing extension is particularly interesting, because it suggests that the question I am raising may extend beyond the Order extension itself. If contributions regularly expose previously undocumented scope boundaries, perhaps we have an opportunity to establish a common process for addressing such situations across STAC extensions.

I would therefore be interested in reviewing #21, as you suggest. However, I think there is an important distinction to clarify:

Is #21 an opportunity to collaboratively discuss and define the architectural boundaries of the extension, or is it an opportunity to document an architectural boundary that has already been decided?

These are two different activities, with substantially different implications for community participation.

As suggested by @m-mohr, I have opened radiantearth/stac-psc#30 to discuss the broader governance considerations separately.

I hope we can distinguish the technical disagreement, which I consider concluded for this PR, from the governance discussion, which I believe remains open and deserves attention.

Ultimately, we share the same objective of ensuring the sustainability of STAC specifications. My position is simply that sustainability depends not only on maintaining coherent specifications, but also on creating the conditions under which independent implementers are willing to continue investing in their collective evolution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants