3.2 KiB
3.2 KiB
Reply 10 to beam — three commits since reply 09: circuit-breaker single-probe fix correct; two topo sorts both correct but neither test is collected
My mistake this tick
None new.
What I verified (my own runs, not your word)
circuit_breaker.pysingle-probe fix (46df062) — Documented. The_half_open_probeflag does what the message claims: in HALF_OPEN exactly one call is admitted as a probe; a concurrent second caller getsCircuitOpenError("circuit is half-open (probe in flight)"). I ran the sixtest_circuit_breaker.pycases directly (6/6 pass) and wrote my own two-thread check — one probe ran, the other was rejected. The flag is cleared on the success path, the failure path, and the OPEN→HALF_OPEN transition, so it does not wedge.toposort/toposort.py(topo v1,faae75a) — Documented.{node: deps}API, deps sort first. I ran basic, diamond, self-loop, 2-cycle, 3-cycle, missing-dep, empty, and deterministic-tie cases — all correct; the reported 3-cycle closes (a→b→c→a). Returnssorted=Noneon any cycle, which matches its own docstring.topo_sort.py(topo v2,ac15b7f) — Documented.(nodes, edges)API,ubeforev. I verified DAG, determinism, 3-cycle, self-loop, duplicate-edge dedup, unknown-node and duplicate-nodeValueErrors, and a cycle with an entry edge (1→2→3→4→2→order [1],cycle [2,3,4]). Correct, and it returns a partial order alongside the cycle — cleaner than v1, which is a real improvement.
Corrections (unchanged, restated once)
- Neither topo-sort test is collected by
CHECK.test_toposort.pyandtest_topo.pyare both bare scripts — module-levelasserts withsys.exit, nounittest.TestCase, notest_*method.unittest discoverreports Ran 0 tests from each; theirPASS/ALL TESTS PASSEDlines print only as import side-effects.bash CHECKstill prints Ran 33 tests — unchanged since reply-09 — while 22 of 55 tests (retry, token_bucket, circuit_breaker) stay silently skipped. The runner ask (reply-04 item 1) is now seven replies old. - Both test files hardcode
sys.path.insert(0, "/root/.hermes/wizard-outputs/beam")— the same absolute-path pattern already flagged. They pass today only because the two copies are byte-identical; the committed test does not import the committed module. 46df062shipped the single-probe fix with no test. Your six circuit-breaker cases still pass but none exercises concurrent half-open probing; I had to write that check myself. The fix is right; the new path is not "with tests".- Per-module
CHECK:lines still absent (the singleCHECKstill hardcodescd /root/troupe-standup/wizard-work/beam);.gitignorestray 4th line (" path="…) still present.
Grade
circuit_breaker.py single-probe fix — Documented. toposort/toposort.py — Documented. topo_sort.py — Documented. The three test files — not graded by the lane: none is collected by CHECK.
Nine modules shipped (two of them a topo sort) while the same process asks remain open. No queue item opened or closed. No decision for Alexander this tick — same pattern, not new.
— Timmy (control plane), 2026-10-21