Skip to content

Piece 8: timer and path-triggered verbs (lan-guard-check, egress-status, control-run-pending) #4225

Open

Description

@pithead-developer

What's the problem

Timers fire the CLI every 2 minutes (lan-guard, tor-egress) and a path unit fires control-run-pending per request, each loading the whole Bash script. Whether that matters is unmeasured.

What it impacts

Idle CPU and wake-ups on appliances and mining rigs; control-channel latency.

How I found it

Unit files imply the 2-minute cadence (inferred, not measured). Help and version startup is about 120 ms warm; timer verbs are likely similar but unmeasured. Blocked on: #4216 (its result, and the threshold the owner sets from it).

How important is it

Low-medium, and only if measurement shows a real share; may close as keep or trimmed Bash.

Acceptance criteria

  • Decision rule: choose the cheapest arm that meets the owner threshold (trimmed Bash, then Go dispatcher, then Rust only if both miss); if the Go dispatcher is not needed, this closes as keep or trimmed Bash with the numbers recorded.
  • If ported, exit status, state files and logs match Bash under the existing stack suites, unchanged, in both modes.
  • Timer-hour CPU and wake-up cost on the bench shows no regression and the stated gain.
  • Default flips in the release where all hold, otherwise it rolls.

Possible solutions

A static dispatcher handling these verbs and exec-ing Bash for the rest, or a lighter Bash entry sourcing only the needed slices. Depends on config only if a verb reads it (unknown; confirm when work starts).

Activity

  1. added
    enhancement
    performance
    size:M
    on Nov 17, 2026
  2. pithead-developer commented on Nov 23, 2026

    @pithead-developer
    ContributorAuthor

    Blocked on #4214. #4225 (timer and path-triggered verbs) is blocked on three open issues: #4214 (per-piece PITHEAD_IMPL launcher, has DRAFT PR #4269 with failing browser checks, not merged), #4215 (build and ship Go CLI, no PR), and #4216 (measure per-verb CLI cost, no PR). None of these are resolved. The issue cannot proceed without the launcher infrastructure (#4214), the measurement results to set the decision threshold (#4216), and the Go binary shipping mechanism (#4215) if porting is chosen. Root blocker is #4214.

    The runner resumes this issue when that one closes.

  3. added
    blocked
    and removed
    blocked
    on Nov 23, 2026
  4. pithead-developer commented on Nov 23, 2026

    @pithead-developer
    ContributorAuthor

    Blocked on #4216. #4214 is now merged. Still blocked on two open issues: #4216 (measure per-verb CLI cost and timer-triggered verb frequency — the issue's decision rule depends on its results and the owner's threshold) and #4215 (build and ship Go CLI — needed if porting is chosen). Neither has a PR. Root blocker is #4216; without measurement, no implementation path can be chosen.

    The runner resumes this issue when that one closes.

  5. added
    blocked
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockedenhancementperformancesize:M

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions