Skip to content

feat: add bounded local capacity telemetry - #73

Draft
Nickfost wants to merge 9 commits into
mainfrom
feat/issue-50-capacity-telemetry
Draft

feat: add bounded local capacity telemetry#73
Nickfost wants to merge 9 commits into
mainfrom
feat/issue-50-capacity-telemetry

Conversation

@Nickfost

@Nickfost Nickfost commented Aug 16, 2026

Copy link
Copy Markdown
Member

Implements the repository-owned portion of #50.

  • sample host CPU/RAM/swap/disk/inodes and anonymous per-runner CPU/RAM only while runners are active
  • group by declared logical pool, retain eight days, compacting 26,000 records to 24,000 mode-0600 local samples
  • provide an on-host seven-day nearest-rank p50/p95 JSON report
  • keep sampled data out of status/heartbeat payloads, document redaction and operator workflow, and remove fleet-owned history on uninstall

Validation:

  • python3 scripts/test_health.py
  • python3 scripts/test_desired_state.py
  • scripts/test-install-worker-controller.sh
  • shellcheck, doc-link check, committed-secret scan, diff check

Draft/external gate: the required reviewed capacity-planning PR in the private rd-delivery-config repository is outside this marathon authorization. This PR does not create or mutate that external configuration and must remain unmerged until that acceptance evidence is available.

@Nickfost

Copy link
Copy Markdown
Member Author

@codex review

Focused exact-head review at 1b5430d. Verify sampling activation, resource-only/redacted schema, local-only behavior, file trust boundary, retention bounds, per-pool and anonymous runner aggregation, nearest-rank p50/p95 report, failure behavior, uninstall cleanup, and tests. The external private-config planning PR remains explicitly out of scope.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1b5430d072

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/health.py Outdated
Comment thread scripts/health.py Outdated
Comment thread scripts/health.py Outdated
Comment thread scripts/health.py Outdated
Comment thread scripts/health.py Outdated
Comment thread scripts/health.py Outdated
@Nickfost

Copy link
Copy Markdown
Member Author

@codex review

Focused exact-head confirmation at d3ab11b. Verify the six accepted telemetry root causes: 30-second/event-representative sampling, interval CPU, atomic schema validation, idle retention pruning, fail-closed Docker stats, and protected history paths. Also review legacy-engine compatibility and installer rollback.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d3ab11b15d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/health.py Outdated
Comment thread scripts/health.py
Comment thread scripts/install-worker-controller.sh
Comment thread scripts/health.py
Comment thread scripts/health.py Outdated
Comment thread scripts/desired_state.py Outdated
@Nickfost

Copy link
Copy Markdown
Member Author

@codex review

Please confirm exact head e76754a after all twelve accepted telemetry findings: consecutive CPU baseline, strict records, rollback timer state, status schema, full-week retention, legacy-engine capability gating, sampler cadence, bounded retention, and collection failure handling.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e76754a3e3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/health.py Outdated
Comment thread scripts/health.py
Comment thread scripts/install-worker-controller.sh
Comment thread scripts/health.py Outdated
@Nickfost

Copy link
Copy Markdown
Member Author

@codex review

Please confirm exact head 4a68764 after the accepted read-side-effect, bounded append/compaction, service-stop, and optional-capability fixes.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4a6876496b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/install-worker-controller.sh
@Nickfost

Copy link
Copy Markdown
Member Author

@codex review

[lane-b:pr73:review:60b64ee6] Please perform an exact-head review of 60b64ee, including the accepted legacy-downgrade service-stop root cause, timer/service ordering, installer regression, rollback/idempotence, and the complete capacity telemetry contract. The private desired-state acceptance item remains outside authorization.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 60b64ee6cc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/install-worker-controller.sh
Comment thread scripts/install-worker-controller.sh Outdated
Comment thread scripts/health.py Outdated
Comment thread scripts/install-worker-controller.sh Outdated
Comment thread docs/CAPACITY-TELEMETRY.md
@Nickfost

Copy link
Copy Markdown
Member Author

@codex review

[lane-b:pr73:review:3df6cb4] Exact-head review requested for 3df6cb4. Verify all five accepted root causes: legacy-to-current round-trip with a forward-compatible manager and runtime-owned units, fail-closed service stop/rollback, dangling history symlink rejection, capability-to-artifact enforcement, and read-only report bytecode behavior. Full mocked installer lifecycle and focused validation pass. The private desired-state acceptance item remains outside authorization.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3df6cb4d48

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/install-worker-controller.sh Outdated
@Nickfost

Copy link
Copy Markdown
Member Author

@codex review

[lane-b:pr73:review:71f56fb] Please confirm exact head 71f56fb after the accepted rollback stop-propagation fix. Verify that a failed capacity-service stop returns before unit deletion in candidate downgrade, uninstall, and rollback set +e contexts, and that the existing telemetry lifecycle guarantees remain intact.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 71f56fb85b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

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