GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — slots observe: one count per agent, stored held slots, seams list, tests (#353) by scuttletoby · Pull Request #371 · scuttletoby/t3code Conversation
Owner
What and whyFollow-ups from the correctness lens on #332 (DS3: 1. Slots off counted one agent twice (fixed)
Fix: while the gate keeps no records (slots off, or on with no limit), an allowed
Only a start the gate did not record gets a rule token (
Change in behaviour: in observe mode with slots off, 2. Held slots in the wait store were not counted (fixed)The observer got only the gate's in-memory held slots. The gate's real count ( Fix: I did not take the lens's "read under the semaphore, before the decision". The store read takes the wait service's lock. With slots off and observe as the new default, that would put a lock wait in front of every Also fixed: 3.
|
| Guard broken | Failed |
|---|---|
| 1: no rule token while slots are off | 3 (default mode, start-grace, two decisions) |
| 1: no re-read of starts by token at read time | 1 (child named while the observation waits) |
| 1: a dispatch with no child keeps counting | 6 (dispatch with no child, probe, start-grace, …) |
| 1: no drop once a child shows a run | 1 (run showed and ended inside the grace) |
| 2: wait store not read | 5 (restart case, hang, three existing store tests) |
| 2: caller's own held slot counted | 1 (restart case: the holder) |
| 2: store read with waits off | 2 (waits off, both files) |
| 2: no read time limit | 1 (hanging store read) |
3: slotRule not added to wait_list |
1 (the new wait_list test) |
5: startImmediately: true |
2 (starts after the decision; child named while waiting) |
Item 4: with main's seams list, a stray fork line in agentScope.ts passes the seam check. With the new list it is refused, against both main and the upstream merge-base. The clean tree passes (fork-seam-check.test.cjs: 10 pass).
started/release again changes nothing more (same as the gate's own entries).release counts for DISPATCH_SAFETY_MS (10 min), the gate's own limit.slow. The decision never waited for it (tested).release with an old rule token matches nothing in either list. fixed mode returns null tokens and reads nothing (existing tests).All general: fork server code and the fork's seam list. No project facts, paths or machine names.
Fixes #353
🤖 Generated with Claude Code
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…sts (#353) - Slots off: each allowed start gets a token of the capacity rule's own, so started/release reach it. A start counts until its dispatch ends, then for the start grace unless its child shows a run (then once, as that run). A dispatch with no child stops counting at once. - Held slots in the wait store count as the gate counts them, read in the observer's fiber with the read time limit, never on the decision path. The acquiring thread's own held slot is not counted twice. - The observer fiber starts after the decision returns. - Test for slotRule in wait_list (observe mode only). - fork-seams.json lists AgentScope.ts and agentScope.ts (ownScope). Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
lens: correctness verdict: SAFE (head a9502ed) Correctness and state lens: one reviewer, read only. No blocker and no major. One minor finding: the observe data counts one agent twice in a rare state. One nit. The seam check will go red once this PR is updated onto current main (see the seam check section below). Findingsminor: slots off, a holder's start is counted twice for up to
minor (note): the store part of nit: the prune of Paths checked (no finding)
Seam check on current main (#277 merged after this PR's CI)I ran main's The list is now read from the base, so the new entries do not count until they are on main. The only line this PR adds to an upstream file is the
Tests
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…main Main's seam check reads the allow list from main, so a new line in an upstream file cannot be allowed by the same PR's list entry. The entry stays; the marker comes back in a follow-up once the entry is on main. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The marker line left the file in 485b92c; the list must match the file. It comes back with the line in #381. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was an error while loading. Please reload this page.
…#381) (#394) With slots off the gate never uses a held slot up, so it stayed in the wait store and counted beside the holder's own start: one agent counted twice until the hold ended. The rule now marks the holds of the threads its own starts are for as used, by key, until they end, as the gate's useUp does with slots on. Observe data only; no decision changes. Also: the held slots doc says the wait store is read when the observation runs, not at the decision; tests for the rule's memory cleanup (own starts, used holds; mutation M10 of the #371 lens). Co-authored-by: Claude Opus 5.5 <[email protected]>
…sts (#353) (#371) * slots observe: one count per agent, stored held slots, seams list, tests (#353) - Slots off: each allowed start gets a token of the capacity rule's own, so started/release reach it. A start counts until its dispatch ends, then for the start grace unless its child shows a run (then once, as that run). A dispatch with no child stops counting at once. - Held slots in the wait store count as the gate counts them, read in the observer's fiber with the read time limit, never on the decision path. The acquiring thread's own held slot is not counted twice. - The observer fiber starts after the decision returns. - Test for slotRule in wait_list (observe mode only). - fork-seams.json lists AgentScope.ts and agentScope.ts (ownScope). Co-Authored-By: Claude Opus 5.5 <[email protected]> * slots: drop the agentScope.ts marker line until its seam entry is on main Main's seam check reads the allow list from main, so a new line in an upstream file cannot be allowed by the same PR's list entry. The entry stays; the marker comes back in a follow-up once the entry is on main. Co-Authored-By: Claude Opus 5.5 <[email protected]> * slots: drop the agentScope.ts marker line from its seam entry too The marker line left the file in 485b92c; the list must match the file. It comes back with the line in #381. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…#381) (#394) With slots off the gate never uses a held slot up, so it stayed in the wait store and counted beside the holder's own start: one agent counted twice until the hold ended. The rule now marks the holds of the threads its own starts are for as used, by key, until they end, as the gate's useUp does with slots on. Observe data only; no decision changes. Also: the held slots doc says the wait store is read when the observation runs, not at the decision; tests for the rule's memory cleanup (own starts, used holds; mutation M10 of the #371 lens). Co-authored-by: Claude Opus 5.5 <[email protected]>
…sts (#353) (#371) * slots observe: one count per agent, stored held slots, seams list, tests (#353) - Slots off: each allowed start gets a token of the capacity rule's own, so started/release reach it. A start counts until its dispatch ends, then for the start grace unless its child shows a run (then once, as that run). A dispatch with no child stops counting at once. - Held slots in the wait store count as the gate counts them, read in the observer's fiber with the read time limit, never on the decision path. The acquiring thread's own held slot is not counted twice. - The observer fiber starts after the decision returns. - Test for slotRule in wait_list (observe mode only). - fork-seams.json lists AgentScope.ts and agentScope.ts (ownScope). Co-Authored-By: Claude Opus 5.5 <[email protected]> * slots: drop the agentScope.ts marker line until its seam entry is on main Main's seam check reads the allow list from main, so a new line in an upstream file cannot be allowed by the same PR's list entry. The entry stays; the marker comes back in a follow-up once the entry is on main. Co-Authored-By: Claude Opus 5.5 <[email protected]> * slots: drop the agentScope.ts marker line from its seam entry too The marker line left the file in 485b92c; the list must match the file. It comes back with the line in #381. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…#381) (#394) With slots off the gate never uses a held slot up, so it stayed in the wait store and counted beside the holder's own start: one agent counted twice until the hold ended. The rule now marks the holds of the threads its own starts are for as used, by key, until they end, as the gate's useUp does with slots on. Observe data only; no decision changes. Also: the held slots doc says the wait store is read when the observation runs, not at the decision; tests for the rule's memory cleanup (own starts, used holds; mutation M10 of the #371 lens). Co-authored-by: Claude Opus 5.5 <[email protected]>
…sts (#353) (#371) * slots observe: one count per agent, stored held slots, seams list, tests (#353) - Slots off: each allowed start gets a token of the capacity rule's own, so started/release reach it. A start counts until its dispatch ends, then for the start grace unless its child shows a run (then once, as that run). A dispatch with no child stops counting at once. - Held slots in the wait store count as the gate counts them, read in the observer's fiber with the read time limit, never on the decision path. The acquiring thread's own held slot is not counted twice. - The observer fiber starts after the decision returns. - Test for slotRule in wait_list (observe mode only). - fork-seams.json lists AgentScope.ts and agentScope.ts (ownScope). Co-Authored-By: Claude Opus 5.5 <[email protected]> * slots: drop the agentScope.ts marker line until its seam entry is on main Main's seam check reads the allow list from main, so a new line in an upstream file cannot be allowed by the same PR's list entry. The entry stays; the marker comes back in a follow-up once the entry is on main. Co-Authored-By: Claude Opus 5.5 <[email protected]> * slots: drop the agentScope.ts marker line from its seam entry too The marker line left the file in 485b92c; the list must match the file. It comes back with the line in #381. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…#381) (#394) With slots off the gate never uses a held slot up, so it stayed in the wait store and counted beside the holder's own start: one agent counted twice until the hold ended. The rule now marks the holds of the threads its own starts are for as used, by key, until they end, as the gate's useUp does with slots on. Observe data only; no decision changes. Also: the held slots doc says the wait store is read when the observation runs, not at the decision; tests for the rule's memory cleanup (own starts, used holds; mutation M10 of the #371 lens). Co-authored-by: Claude Opus 5.5 <[email protected]>
…sts (#353) (#371) * slots observe: one count per agent, stored held slots, seams list, tests (#353) - Slots off: each allowed start gets a token of the capacity rule's own, so started/release reach it. A start counts until its dispatch ends, then for the start grace unless its child shows a run (then once, as that run). A dispatch with no child stops counting at once. - Held slots in the wait store count as the gate counts them, read in the observer's fiber with the read time limit, never on the decision path. The acquiring thread's own held slot is not counted twice. - The observer fiber starts after the decision returns. - Test for slotRule in wait_list (observe mode only). - fork-seams.json lists AgentScope.ts and agentScope.ts (ownScope). Co-Authored-By: Claude Opus 5.5 <[email protected]> * slots: drop the agentScope.ts marker line until its seam entry is on main Main's seam check reads the allow list from main, so a new line in an upstream file cannot be allowed by the same PR's list entry. The entry stays; the marker comes back in a follow-up once the entry is on main. Co-Authored-By: Claude Opus 5.5 <[email protected]> * slots: drop the agentScope.ts marker line from its seam entry too The marker line left the file in 485b92c; the list must match the file. It comes back with the line in #381. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…#381) (#394) With slots off the gate never uses a held slot up, so it stayed in the wait store and counted beside the holder's own start: one agent counted twice until the hold ended. The rule now marks the holds of the threads its own starts are for as used, by key, until they end, as the gate's useUp does with slots on. Observe data only; no decision changes. Also: the held slots doc says the wait store is read when the observation runs, not at the decision; tests for the rule's memory cleanup (own starts, used holds; mutation M10 of the #371 lens). Co-authored-by: Claude Opus 5.5 <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
slots observe mode: double count when slots are off, stored held slots, seams list, tests (#332 follow-ups)
There was an error while loading. Please reload this page.