mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-11-07 05:12:20 +00:00
runtime: refill continuation slots and escalate unchanged work
This commit is contained in:
1 parent
f4253e6f5d
commit
512b5b6e16
5 files changed
+179
-24
No files matched your search
@@ -1,5 +1,38 @@
|
||||
# Test Integrity Notes
|
||||
|
||||
## 2026-10-03 — Rolling continuation and bounded no-progress escalation
|
||||
|
||||
```yaml
|
||||
test_integrity_note:
|
||||
change_type: new_tests
|
||||
scenarios:
|
||||
- id: SCN-runtime-continuation-refill
|
||||
given: "A long manager turn and a short specialist turn occupy two slots; a third identity waits"
|
||||
when: "Only the short turn completes"
|
||||
then: "The third starts before manager completion and the daily attempt cap still holds"
|
||||
- id: SCN-runtime-continuation-no-progress
|
||||
given: "An unchanged unfinished eligible assignment"
|
||||
when: "Two successful executor turns make no recorded task progress"
|
||||
then: "Exactly two specialist turns occur, one durable coordination request is sent, unchanged-work repeats stop, new revisions may resume and unmet dependencies remain ineligible"
|
||||
- id: SCN-runtime-continuation-capacity
|
||||
given: "An owner-started executor already occupies the configured automatic capacity"
|
||||
when: "The continuation controller runs"
|
||||
then: "No additional automatic turn starts and no attempt is charged"
|
||||
observable_outcomes:
|
||||
- "Actual launch ordering, daily charges, coordination messages and explicit held-work reason"
|
||||
determinism_controls:
|
||||
- "Hermetic installed Git projects, manually resolved provider promises and task fixtures; no sleep, network or live model"
|
||||
anti_cheat_rationale:
|
||||
prevents:
|
||||
- "Replacing the batch barrier by raising concurrency"
|
||||
- "Claiming refill only after all turns finish"
|
||||
- "Spending unlimited turns on unchanged work or ignoring dependency gates"
|
||||
- "Ignoring physical executors started outside the controller"
|
||||
relaxation:
|
||||
did_relax_any_assertion: false
|
||||
if_true_explain_spec_basis: ""
|
||||
```
|
||||
|
||||
## 2026-10-03 — Process-verified runtime presence
|
||||
|
||||
```yaml
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
# Rolling continuation without a whole-batch barrier
|
||||
|
||||
Owner-requested fix for `TASK-d95e72d0-816d-4fc2-acaf-b73642fd4881`.
|
||||
|
||||
The serialized controller reserves and charges each launch before dispatch. It waits for the first pending turn to complete, records its outcome, re-reads current policy/backlog/messages and immediately fills any available slot. A long manager turn no longer prevents other eligible identities from running. The controller lock still excludes competing automatic controllers; pending launches and all observed physical turn guards count toward automatic capacity. Owner-requested manual batches are separate authorization and are not silently included in the daily automatic attempt ledger.
|
||||
|
||||
The same approved roster, per-identity mutex, pause, detached state and daily cap remain authoritative. A pause prevents additional launches and never kills an already-started turn. Unknown or failed executor outcomes are not silently retried. Retained crashed guards/controller locks remain fail-closed and require supported recovery.
|
||||
|
||||
Successful turns may continue unchanged assigned/in-progress work if recorded dependencies are complete. After two consecutive successful turns leave the same task IDs/revisions unchanged, further unchanged-work retries are held and one durable request asks the Manager to resolve the blocker. New task revisions or fresh messages can justify another bounded turn. This is a conservative no-progress signal, not proof that no files changed or that a task is done; the Manager must inspect evidence. Waiting, blocked, unassigned, completed or unmet-dependency work is not automatically converted into implementation work. Existing one-assignment rules and self-claim policy are not changed.
|
||||
|
||||
Resume instructions now request eligible implementation/verification/coordination rather than just a status report. They do not grant additional ownership or approval authority. All output completion remains exact-evidence gated.
|
||||
|
||||
Status exposes occupied guard identities and no-progress holds. Installed release and reboot persistence remain unqualified. Existing native pilot service executes this source candidate on its next activation; the daily limit remains 12 automatic attempts, not a token-cost governor.
|
||||
|
||||
Deterministic acceptance scenarios and anti-cheat notes are in docs/TEST_INTEGRITY.md. Independent live qualification remains necessary; do not close broader event-driven or persistent-operations umbrellas based on this source fix alone.
|
||||
Reference in new issue
Block a user