Skip to content

Discover optional Lerwatt advice without manual integration setup - #8

Merged
Denny-Lin merged 2 commits into
mainfrom
automatic-peer-discovery
Nov 2, 2026
Merged

Denny-Lin merged 2 commits into
mainfrom
automatic-peer-discovery

Conversation

@Denny-Lin

Copy link
Copy Markdown
Owner

New Lertick services and normal foreground helper runs use best-effort Lerwatt discovery without integration on. Automatic mode preserves the governor-based CPUperf default, refuses to clear existing pins and disables BPF advice consumption if publication fails, while local scheduling continues. Strict legacy diagnostics remain available.

New installations discover a compatible running peer automatically while each project keeps its own model, controls and lifecycle. Package/file presence is not treated as a connected peer. Version, topology, session and freshness checks remain ABI 2.

The counterpart is not installed, started, stopped or retrained. Either startup order works; fresh advice reconnects after independent restarts and expires safely when a publisher stops. Saved settings, including off opt-outs, remain preserved. Prediction selection is independent of discovery; enabling the link does not imply better model accuracy.

Validation: native ARM64 Ubuntu 24.04.5 VM, kernel 7.0.0-38-generic, eight vCPUs and real sched_ext/BPF plus PID 1. Both projects' deployment/ABI tests passed. The paired test proves real contract consumption, both startup orders, expiry/resumption, independent model-method changes, restoration and a conflicting test-owned pin preserved during independent scheduling. Hardware controls use simulated files. Development failures are retained in results/automatic-discovery.

Known limits: two prior cooperative finite-work pairs still regress by 0.02/0.07 seconds; no energy or accuracy improvement is claimed. A conflicting/unavailable local publication environment needs local repair/restart, while an absent peer joins later without restart. Existing saved off configurations remain off on upgrade.

Default new services and foreground helpers to best-effort discovery. Keep scheduling models, CPUperf selection and saved service choices independent of peer presence.

Preserve existing pins in automatic mode and disable BPF advice consumption if publication fails. Validate real kernel startup orders, expiry, reconnection, recovery and conflicting-pin fallback.
Raise the test-only subprocess budget from 15 to 45 seconds and include recent stub events on timeout. Preserve the failed CI evidence and all transaction assertions; production watchdog and thermal limits are unchanged.
@Denny-Lin
Denny-Lin merged commit ccfe5b3 into main Nov 2, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant