Repository navigation
Conversation
Co-authored-by: Fabrice Brito <fabrice.brito@terradue.com>
There was a problem hiding this comment.
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:statusisfailedororderable. If no attempt remains, the provider must not keep the status atorderable. - 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.
|
@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 |
|
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 lifecycleFor example, these would clearly be provider/order-management concerns and are outside the scope of this proposal:
I completely agree that trying to represent those concepts through two integers in STAC would be inappropriate. But this is not what Consider instead one particular Item, The provider knows that producing or activating This does not mean:
It means:
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
|
|
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 The gap you describe is real, but it is in the state model, not in the field set. The README defines
Your three examples become: A is On the two counters, my scope concern stands, and your reply helps me state it more precisely:
I remain interested in an Order API extension on the stac-api-spec side, where attempts, retry policy and history can be first-class. |
|
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:
That gives I do not think, however, that this removes the need for the attempt metadata. I think it actually makes its purpose more precise.
|
|
@emmanuelmathot have you read the comment above, are we good to go? |
|
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:
But my position on the two counters did not change. These are my reasons:
I also want to help you move forward now. I see two options:
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. |
|
@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. |
|
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 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 welcomeThe Order extension currently identifies itself as a Pilot extension. STAC's own extension maturity documentation describes Pilot as an extension for which:
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:
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 decisionThe part of the resolution I find particularly problematic is the final sentence:
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:
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 appliesI see two perfectly legitimate models. 1. Maintainer-owned extensionAn 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:
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 extensionThe 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:
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 concernThe 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 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:
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:
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 disputingI 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 discussionI 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:
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:
and:
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 scopeI 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:
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 forkTerradue can obviously maintain its own extension or provider-specific vocabulary. That is not the outcome I would prefer. We came to The discussion in this PR also showed that there is useful common ground. We converged on several semantic distinctions, clarified the meaning of terminal 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. |
|
@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. |
|
Thanks @m-mohr take care and get well soon! |
|
@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. 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. |
|
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:
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. |
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:statusfield can indicate whether an order isorderableorfailed, 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_numberis cumulative within a single ordering lifecycle and MUST NOT exceedorder:attempt_limit.The retry semantics of these fields apply only when:
order:statusisorderableorfailed; andWhen expires from the Timestamps Extension is present, the resource remains valid until and including the specified instant.
Once
order:statuschanges 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.