ace-assign 0.73.4 → 0.73.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/docs/usage.md +13 -8
- data/lib/ace/assign/models/queue_state.rb +24 -4
- data/lib/ace/assign/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: af4b497476e8f0a2605d3d15b1c8cd7bcfb1bb69d0fd358ec157bc18e6e42d13
|
|
4
|
+
data.tar.gz: 992ebc5fadfc6b79bea229c2d07619805ea5198c96719c23d99fe3bd355e200a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3a559925ce7391c7dfba7465a8b2f845f441529f9826ed16aff1cf42aab8d123f4c0f82a60f07e53ff221208a189d563292824445d297ccf6285d285e0de8210
|
|
7
|
+
data.tar.gz: 13991011045924104f4452b16bc85bb098070e81f61d4589a2deba413ce9bea427d60073d40ce8509af0c78f26cfeb6757e785eab9346b6d998b89451fd17aee
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.73.5] - 2026-11-17
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Managed-recovery eligibility (`QueueState#recovery_eligible?` and the `recovery` field of `ace-assign status --format json`) no longer requires every pending step to be a linked retry: a failed assignment with a pending linked retry stays recovery-eligible when every other pending step sorts strictly after the first pending linked retry in step-sequence order — downstream steps (e.g. a publish-approval gate) are legitimately gated behind the retried work and do not defeat recovery. Pending work that is not a linked retry — including an unlinked retry of a done step — sorting at or before the retry point still defeats eligibility, and failed history, active-step exclusion, and the required pending linked retry are unchanged. That step-sequence ordering uses the canonical `Atoms::StepSorter` numeric order — the same order the queue scanner establishes — so verbatim unpadded job.yaml numbers (e.g. `"10"`) compare correctly against padded retry numbers (e.g. `"040"`) instead of raw String ordering misclassifying earlier work as downstream.
|
|
15
|
+
- `QueueState#recovery_eligible?` and the `recovery` field of `ace-assign status --format json` no longer crash with `NoMethodError` when a pending step has no step number (operator-created unnumbered `*.st.md` strays scan in with `number: nil`; review finding 8yfzdwqm): unorderable steps are excluded from the retry-boundary comparison — they neither establish nor defeat eligibility, the first-retry anchor is chosen among numbered linked retries only, a failed assignment with a pending linked retry stays recovery-eligible with a stray present, and pending non-retry work at or before the retry point still defeats eligibility.
|
|
16
|
+
|
|
10
17
|
## [0.73.4] - 2026-11-16
|
|
11
18
|
|
|
12
19
|
### Fixed
|
data/docs/usage.md
CHANGED
|
@@ -196,14 +196,19 @@ delete steps to hide a failure.
|
|
|
196
196
|
|
|
197
197
|
Aggregate states and managed recovery: a terminal aggregate containing failed
|
|
198
198
|
steps reports `failed`, never `completed` (so it also stays visible in `list`
|
|
199
|
-
and fail-closed non-prunable). Once
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
199
|
+
and fail-closed non-prunable). Once a failed step has a pending linked retry
|
|
200
|
+
and every other pending step sorts strictly after the first pending linked
|
|
201
|
+
retry in step-sequence order (canonical `StepSorter` order), the assignment
|
|
202
|
+
is recovery-eligible (`status --format json` exposes `assignment.recovery`)
|
|
203
|
+
and the overseer may re-enter it as an explicit managed recovery on the SAME
|
|
204
|
+
assignment — downstream steps (e.g. a publish-approval gate) gated behind the
|
|
205
|
+
retried work do not defeat eligibility, while pending work that is not a
|
|
206
|
+
linked retry sorting at or before the retry point still does. When every
|
|
207
|
+
failed step holds a done linked retry, the aggregate reports `completed`
|
|
208
|
+
again (recovered success — the failed rows stay `failed` for history) and
|
|
209
|
+
`status --format json` steps carry `added_by` for linkage verification. Under
|
|
210
|
+
`--scope`, `state` and `recovery` reflect the scoped subtree, matching the
|
|
211
|
+
endpoint's scoped semantics.
|
|
207
212
|
|
|
208
213
|
### Multi-assignment management
|
|
209
214
|
|
|
@@ -167,9 +167,23 @@ module Ace
|
|
|
167
167
|
# recovery selection by the overseer): the assignment reached an
|
|
168
168
|
# unsuccessful terminal state — failed steps, nothing active —
|
|
169
169
|
# and the owner recorded a pending linked retry of a failed step
|
|
170
|
-
# while
|
|
171
|
-
#
|
|
172
|
-
#
|
|
170
|
+
# while every other pending step sorts strictly after the first
|
|
171
|
+
# pending linked retry in step-sequence order (canonical
|
|
172
|
+
# Atoms::StepSorter order — the same order the queue scanner
|
|
173
|
+
# establishes; downstream steps legitimately gated behind the
|
|
174
|
+
# retried work do not defeat recovery). Eligibility never
|
|
175
|
+
# reinterprets the aggregate: the failed history stays failed; the
|
|
176
|
+
# pending linked retry is the owner's explicit re-entry decision.
|
|
177
|
+
# Pending work that is not a linked retry — including an unlinked
|
|
178
|
+
# retry of a done step — sorting at or before the retry point means
|
|
179
|
+
# the queue is not simply "failed step retried, downstream waiting"
|
|
180
|
+
# and defeats eligibility.
|
|
181
|
+
#
|
|
182
|
+
# Unnumbered steps — operator-created stray files whose filenames
|
|
183
|
+
# carry no step number (StepFileParser -> number: nil) — are
|
|
184
|
+
# unorderable in step-sequence terms: they neither establish nor
|
|
185
|
+
# defeat eligibility and never crash the check; the retry boundary
|
|
186
|
+
# is decided among numbered steps only (review finding 8yfzdwqm).
|
|
173
187
|
#
|
|
174
188
|
# @return [Boolean]
|
|
175
189
|
def recovery_eligible?
|
|
@@ -179,7 +193,13 @@ module Ace
|
|
|
179
193
|
linked = pending_linked_retries
|
|
180
194
|
return false if linked.empty?
|
|
181
195
|
|
|
182
|
-
|
|
196
|
+
numbered_linked = linked.select { |step| step.number }
|
|
197
|
+
return false if numbered_linked.empty?
|
|
198
|
+
|
|
199
|
+
first_retry = numbered_linked.min_by { |step| Atoms::StepSorter.number_key(step.number) }
|
|
200
|
+
pending.reject { |step| linked.include?(step) }
|
|
201
|
+
.reject { |step| step.number.nil? }
|
|
202
|
+
.none? { |step| Atoms::StepSorter.compare(step.number, first_retry.number) <= 0 }
|
|
183
203
|
end
|
|
184
204
|
|
|
185
205
|
# Check if any active step has recent activity.
|
data/lib/ace/assign/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ace-assign
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.73.
|
|
4
|
+
version: 0.73.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michal Czyz
|
|
8
8
|
bindir: exe
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2026-11-
|
|
10
|
+
date: 2026-11-17 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: ace-llm-providers-cli
|