## Summary One bounded collector per poller reads what is due and keeps the cache consistent. ## Requirements - **REQ-COLL-001** The collector MUST start from `poller_bottom` through `exec_background()` and run as one `register_process_start()` process per poller. - **REQ-COLL-002** It MUST handle only accounts whose poller matches its own. - **REQ-COLL-003** It MUST stop starting new work before a time budget below the poller interval. - **REQ-COLL-004** Each account's work MUST hold a lease, and every write MUST check it. - **REQ-COLL-005** It MUST read metrics only for enabled Cacti data sources created by the plugin. - **REQ-COLL-006** Discovery MUST run on its own interval and MUST NOT read metrics. ## Acceptance criteria - [ ] A second collector start exits at once. - [ ] A run killed mid-account leaves the cache consistent and the next run continues. ## References - [Plan: Collection and measurement state](https://github.com/somethingwithproof/plugin_cloud/blob/main/docs/PLAN.md#collection-and-measurement-state) - [ADR 0005](https://github.com/somethingwithproof/plugin_cloud/blob/main/docs/decisions/0005-collect-only-what-is-graphed.md) ## Dependencies - Part of #2.
Activity
fix: address review findings on the M2 foundation
test: second collector start and a run killed mid-account
fix: count a run as due within a small slack of its interval
test: hold the collector slot with a process running poller_cloud.php
somethingwithproof commentedon Nov 15, 2026
Done in #81 (merged as b3730b1).