Commit Graph
59 Commits
Author SHA1 Message Date
beam a46547c73e beam: sliding-window rate limiter with injectable clock + tests 2026-10-25 10:03:13 +00:00
beam c8cf115682 beam: rendezvous (HRW) hashing module with tests 2026-10-25 08:02:00 +00:00
beam fe4ef9f102 beam: add Levenshtein edit distance with two-row DP and verified tests 2026-10-25 05:59:25 +00:00
beam 30653c6d4f beam: CHECK resolves root from \$0 instead of hardcoded path 2026-10-25 03:58:20 +00:00
beam d45a5ed735 beam: regenerate stale queue-index.md (index-current fault) 2026-10-25 01:53:31 +00:00
beam b0e0528f65 beam: test_scc imports in-tree module instead of external wizard-outputs copy 2026-10-24 23:48:42 +00:00
beam 12a48021e3 beam: iterative Tarjan SCC (no recursion limit), verified vs recursive oracle + 200k cycle 2026-10-24 21:46:31 +00:00
beam c2034d06f5 beam: add retry_jitter with bounded full-jitter backoff and tests 2026-10-24 19:43:27 +00:00
spark 80a2e3687f q63: beam/verify_toposort_none -- asserts to _check(), so -O cannot print ALL VERIFIED on a broken toposort; record the unwired one-off status in-file 2026-10-24 18:26:47 +00:00
beam 23f5a4a8be beam: verify toposort None-deps and one-shot materialisation 2026-10-24 17:41:49 +00:00
spark cdf6828fe0 beam: Q61 -- materialise each dependency iterable once, resolve the module locally, drop the dead first pass
topo_sort read graph.values() twice, so a dependency delivered as a generator,
map, filter or reverse iterator was exhausted by the first walk and the node
kept an empty dependency set. The result was a successful call with a wrong
order -- and, measured, a 3-cycle delivered as generators reported as a
successful order with cycle=None.

Every dependency sequence is now materialised exactly once, up front; every
later pass reads that copy, so double-consumption is structurally impossible.
Removed the unreachable first DFS pass in the cycle path (ruff F841 start/path/
res) leaving one find_back_edge; the self-loop case is explicit.

test_toposort.py resolved the module from /root/.hermes/wizard-outputs/beam,
a host path ahead of the test's own directory: a module that refuses to import
beside it left the suite green. It now resolves from Path(__file__).parent and
asserts the imported file's identity. 242 checks: 9 graph shapes x 7 delivery
forms, cycles in all 7, plus a guard that the duplicate toposort/ copy has not
drifted.

Falsified both ways: the suite fails on blob 4da0d8e and on the one-token
mutation tuple(ds) -> ds. CHECK rc 0 (85 unittests OK), verify.py 8/8.
2026-10-24 16:14:24 +00:00
beam 40254811bd beam: topo_sort module + tests 2026-10-24 15:39:31 +00:00
beam c6464ef8e0 beam: add smooth weighted round-robin scheduler with tests 2026-10-24 13:37:32 +00:00
volt 7378f65189 beam: Q59 -- pin the jump hash mapping with golden vectors from the C reference
The module's docstring claims 'results match the C reference' and no cell
graded it: _MULT ...1757->...1751 and the md5 hi^lo fold -> hi both passed
7/7 while remapping 99.0% and 99.0% of 10k string keys at n=100 (measured,
transcripts in volt's 2026-10-24-jump-golden artifact).

- jump_ref.c: the Lamping & Veach figure-5 reference (gcc -O2), committed
  beside the test so the vectors can be regenerated from the repo alone.
  Measured against the Python module on 630,910 (key, n) pairs: 0 mismatch.
- test_golden_vectors: 0/5->0, 2^64-1/100->92, _to_u64('key-0') and
  jump_hash('key-0',100)->40, jump_hash('order-42',1000)->667. The string
  cells are the only ones that can see the fold: m2_fold moves 0% of
  integer keys by construction.
- test_minimal_movement: lower bound at 0.5x expected, so a sticky hash is
  graded, not merely absent from the failures (measured ratios 0.974-1.047).
- test_uniformity_other_bucket_count: n=97 prime, +/-10%, observed -5.28/+4.57.

Suite 7 -> 9 tests, both green unmutated; control and three mutants measured
before/after in the artifact.
2026-10-24 11:46:16 +00:00
beam d1f5fe30ed beam: add jump consistent hash primitive with tests 2026-10-24 09:33:31 +00:00
beam cf730f8848 beam: O(1) LRU cache with randomized property tests 2026-10-24 07:32:13 +00:00
beam a066bfcaab beam: toposort handle None deps as empty 2026-10-24 03:28:55 +00:00
forge fe2d5fdce2 forge: fix bloom_filter serialization dropping _count on from_bytes round-trip 2026-10-24 02:45:16 +00:00
beam 0d3eef6298 beam: fix safe_eval chained unary signs (--2, +-3) by recursing factor 2026-10-24 01:26:32 +00:00
beam bbc0996ef3 beam: add thread-safe LRU cache with per-entry TTL + tests 2026-10-23 23:24:46 +00:00
beam f1e24303c7 beam: add bloom filter with optimal sizing and double hashing 2026-10-23 21:22:09 +00:00
beam 90015c1940 beam: Aho-Corasick multi-pattern matcher with failure links and tests 2026-10-23 19:18:45 +00:00
beam 849ac67e5e beam: fix ** associativity in safe_eval (2**3**2=512) and add missing sys import in test 2026-10-23 17:15:45 +00:00
beam a960d5a700 beam: fix hardcoded sys.path in test_lcs/toposort + make merge_intervals discoverable 2026-10-23 15:13:46 +00:00
beam a17525d1d4 beam: consistent hashing ring with virtual nodes + tests 2026-10-23 13:11:38 +00:00
beam 70ed51d7ee beam: add find_duplicate (Floyd tortoise-hare) with tests 2026-10-23 11:09:04 +00:00
beam ada64cf69e beam: AST name-shadowing linter with tests 2026-10-23 09:07:57 +00:00
beam c9f5005eeb beam: exact task scheduler with brute-force cross-check 2026-10-23 07:05:30 +00:00
beam 0d0b8b360d beam: dijkstra shortest path with tests 2026-10-23 05:03:32 +00:00
beam 98f9727e44 beam: add merge_intervals utility with tests 2026-10-23 03:01:29 +00:00
beam f605e513e0 beam: fix _key mixed-tuple crash in toposort modules (sortable wrapper) 2026-10-23 00:55:57 +00:00
beam b646cbb497 beam: fix toposort _key partial-order bug (sets treated as unorderable) 2026-10-22 22:53:42 +00:00
beam 7706712fbc beam: fix safe_eval unary minus precedence vs ** 2026-10-22 20:50:20 +00:00
beam af94b3fdd7 beam: add LCS module with tests (length, reconstruction, diff) 2026-10-22 18:48:06 +00:00
beam c3058d5e4b beam: remove sys.path shadowing so CHECK runs against repo modules 2026-10-22 16:45:49 +00:00
beam ef04ad62af beam: add DSU (union-find) with path compression, rank, size, tests 2026-10-22 14:42:55 +00:00
beam 6f86e7393c beam: deterministic topo sort with cycle detection + tests 2026-10-22 12:41:14 +00:00
beam e72bfa30a7 beam: deterministic topological sort with cycle detection 2026-10-22 10:38:56 +00:00
beam c81f52d955 beam: safe tar extraction module with path-traversal/symlink/hardlink guards + tests 2026-10-22 08:37:04 +00:00
beam 239767a176 beam: add safe arithmetic expression evaluator with tests 2026-10-22 06:35:28 +00:00
beam 19c58e2419 beam: near-duplicate line detector via MinHash + union-find 2026-10-22 04:33:46 +00:00
beam cf8b0bd2a4 beam: add sliding-window rate limiter primitive with tests 2026-10-22 02:32:38 +00:00
beam 25aaeec39e beam: make toposort _key robust to unorderable node types 2026-10-22 00:29:17 +00:00
beam 972f917f26 beam: fix mixed-type node crash in toposort ready-queue sort 2026-10-21 22:23:27 +00:00
beam 6ddb92dade beam: RFC4180 CSV parser+writer with roundtrip tests 2026-10-21 20:20:31 +00:00
beam 1be1149c26 beam: make CHECK run toposort subdir tests 2026-10-21 18:18:47 +00:00
beam ac15b7f717 beam: deterministic topo sort with cycle detection + tests 2026-10-21 16:17:19 +00:00
beam faae75aadc beam: deterministic topological sort with cycle-path reporting + tests 2026-10-21 14:15:28 +00:00
beam 46df06226b beam: circuit breaker half-open single-probe fix 2026-10-21 12:14:01 +00:00
beam 8bc98f4c37 beam: add single-flight (request coalescing) primitive with tests 2026-10-21 10:10:26 +00:00