pgg-engineering commited on
Commit
71cb808
·
verified ·
1 Parent(s): 04c4953

Clarify the product card and link the runnable example

Browse files
Files changed (2) hide show
  1. README.md +14 -10
  2. art/share.png +0 -0
README.md CHANGED
@@ -1,25 +1,29 @@
1
  ---
2
- title: Guardshift
3
  emoji: 🟩
4
- colorFrom: green
5
- colorTo: gray
6
  sdk: static
7
  app_file: index.html
8
  license: mit
9
- short_description: Wake live agents only when their numeric guards change truth
10
  tags:
11
  - multi-agent
12
  - streaming
13
  - event-processing
14
  - cpp
 
 
 
 
15
  ---
16
  # Guardshift
17
 
18
- Wake a worker when its conditions change. Feed Guardshift one batch of live signal updates and get the sorted IDs of guards that entered or exited. A queue crossing its dispatch threshold while the last worker goes offline produces zero spurious wakeups.
 
 
19
 
20
- **153 ns per four-signal patch across 8,192 guards** on one AMD EPYC core in the sparse synthetic benchmark. The independent sorted-endpoint implementation took 286 ns. On an Azure-derived replay, Guardshift took 1.29 µs to return about 117 transitions per patch. A dedicated bitmap implementation took 1.24 µs. In a separate head-to-head using four adapters for the published SuperIntervals C++ library, Guardshift was 2.23× faster for sparse four-field patches at 8,192 guards and 1.68× faster at 32,768. SuperIntervals won the heterogeneous million-guard jump test. [External benchmark](bench/external.md) Both results are native in-process times.
21
 
22
- [Try the guard explorer](https://guardshift.tancurl3.chatgpt.site/) · [Download the standalone source](https://huggingface.co/spaces/pgg-engineering/guardshift/resolve/main/packages/guardshift-0.1.0.zip) · [Benchmark and raw results](bench/README.md) · [Replay your own trace](bench/REPLAY.md)
23
 
24
  ## Try it
25
 
@@ -55,7 +59,7 @@ c++ -O3 -std=c++17 -Iinclude examples/dispatch.cpp -o /tmp/dispatch
55
  /tmp/dispatch
56
  ```
57
 
58
- [Async worker dispatch](examples/dispatch.py) · [Dispatch on a ChronoSieve alarm and available capacity](examples/chronosieve_routing.py)
59
 
60
  ## When to use it
61
 
@@ -78,10 +82,10 @@ make test
78
  make quick
79
  ```
80
 
81
- The benchmark checks the IDs, order, resulting truth and final state against full recomputation. Raw JSONL includes the seed, build cost, mean, p50, p99 and output checksum. The Azure signals come from a public production trace of inference requests. The guard definitions are synthetic. A replay times native dispatch only. [Benchmark methods](bench/README.md) · [Azure provenance](replay/README.md)
82
 
83
  To report a crossover, include CPU, compiler, guard count, fields per patch, repeat count and the anonymized aggregate results. Private trace contents can stay on your machine. [Report a result or integration](https://github.com/pgg898200-ship-it/chronosieve/issues/3)
84
 
85
  ## License
86
 
87
- Original software and documentation use the [MIT license](LICENSE). The derived Azure fixture uses [CC BY 4.0](replay/README.md). The optional external comparator retains its upstream license.
 
1
  ---
2
+ title: Guardshift · Threshold alerts
3
  emoji: 🟩
 
 
4
  sdk: static
5
  app_file: index.html
6
  license: mit
7
+ short_description: Find which rules changed after a batch of signal updates
8
  tags:
9
  - multi-agent
10
  - streaming
11
  - event-processing
12
  - cpp
13
+ - threshold-alerts
14
+ colorFrom: gray
15
+ colorTo: gray
16
+ thumbnail: https://huggingface.co/spaces/pgg-engineering/guardshift/resolve/main/art/share.png
17
  ---
18
  # Guardshift
19
 
20
+ Use Guardshift between a telemetry stream and a worker scheduler. Define each rule as a set of integer ranges, apply one batch of signal updates, and receive the sorted rule IDs that became true or false. If queue depth rises while the last worker goes offline in the same batch, the dispatch rule stays false and the worker gets no wakeup.
21
+
22
+ ![Guardshift reports which registered conditions switched on or off after a batch of signal changes.](https://huggingface.co/spaces/pgg-engineering/guardshift/resolve/main/art/share.png)
23
 
24
+ **153 ns per four-signal patch across 8,192 guards** on one AMD EPYC core in the sparse synthetic benchmark. The independent sorted-endpoint implementation took 286 ns. On an Azure-derived replay, Guardshift took 1.29 µs to return about 117 transitions per patch. A dedicated bitmap implementation took 1.24 µs. In a separate head-to-head using four adapters for the published SuperIntervals C++ library, Guardshift was 2.23× faster for sparse four-field patches at 8,192 guards and 1.68× faster at 32,768. SuperIntervals won the heterogeneous million-guard jump test. [External benchmark](https://huggingface.co/spaces/pgg-engineering/guardshift/blob/main/bench/external.md) Both results are native in-process times.
25
 
26
+ [Try the guard explorer](https://pgg-engineering-guardshift.static.hf.space/index.html) · [Download the standalone source](https://huggingface.co/spaces/pgg-engineering/guardshift/resolve/main/packages/guardshift-0.1.0.zip) · [Benchmark and raw results](https://huggingface.co/spaces/pgg-engineering/guardshift/blob/main/bench/README.md) · [Replay your own trace](https://huggingface.co/spaces/pgg-engineering/guardshift/blob/main/bench/REPLAY.md)
27
 
28
  ## Try it
29
 
 
59
  /tmp/dispatch
60
  ```
61
 
62
+ [Async worker dispatch](https://huggingface.co/spaces/pgg-engineering/guardshift/blob/main/examples/dispatch.py) · [Dispatch on a ChronoSieve alarm and available capacity](https://huggingface.co/spaces/pgg-engineering/guardshift/blob/main/examples/chronosieve_routing.py)
63
 
64
  ## When to use it
65
 
 
82
  make quick
83
  ```
84
 
85
+ The benchmark checks the IDs, order, resulting truth and final state against full recomputation. Raw JSONL includes the seed, build cost, mean, p50, p99 and output checksum. The Azure signals come from a public production trace of inference requests. The guard definitions are synthetic. A replay times native dispatch only. [Benchmark methods](https://huggingface.co/spaces/pgg-engineering/guardshift/blob/main/bench/README.md) · [Azure provenance](https://huggingface.co/spaces/pgg-engineering/guardshift/blob/main/replay/README.md)
86
 
87
  To report a crossover, include CPU, compiler, guard count, fields per patch, repeat count and the anonymized aggregate results. Private trace contents can stay on your machine. [Report a result or integration](https://github.com/pgg898200-ship-it/chronosieve/issues/3)
88
 
89
  ## License
90
 
91
+ Original software and documentation use the [MIT license](https://huggingface.co/spaces/pgg-engineering/guardshift/blob/main/LICENSE). The derived Azure fixture uses [CC BY 4.0](https://huggingface.co/spaces/pgg-engineering/guardshift/blob/main/replay/README.md). The optional external comparator retains its upstream license.
art/share.png ADDED