GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(nixos): gate PM aggregator proxy on backend readiness by developing-today-fleet[bot] · Pull Request #15972 · developing-today/code

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 27, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Refs #10383

Summary

  • Gate the socket-activated PM aggregator proxy on a successful TCP connect to its private backend port. Type=simple previously let systemd start the proxy before Bun had bound the backend, so a cold first request could be reset.
  • Add a bounded readiness helper and a regression test for delayed backend availability, timeout, and strict argument validation; register it in the PM stack test workflow.

Evidence

  • Before: warm /program returned 200 in 0.215s. After restarting pm-aggregator.service, the first request through 127.0.0.1:4870 failed with connection reset (HTTP 000, 0 bytes, 0.0018s); systemd logs show the proxy tried at 00:15:02 and the backend first listened at 00:15:04. The next request returned 200 in 10.015s.
  • Failing-first: Fleet run 45951976554 failed because the readiness gate and helper were absent.
  • After implementation: focused readiness test passed on Fleet run 45953308285. bash -n, nix-instantiate --parse nixos/services/pm-stack/default.nix, and git diff --check also passed.
  • The broader check-suite-registry.sh invocation reported 38 uncovered suites under pkgs/id and pkgs/mcpx; none were this readiness test, whose registry entry parsed and matched its workflow. Those unrelated entries are outside this change.
  • Evidence level: test ran on a Fleet GitHub-hosted Linux runner; Nix expression parse ran locally. The live service has not been rebuilt or restarted with this branch.

Merge Danger

The gate is enabled only with aggregatorSocketActivation. It waits at most 30 seconds; if the backend does not bind, service startup fails closed and the proxy remains unavailable. This slice prevents the startup reset; #10383 stays open until the deployed cold-restart /program probe returns a successful response.

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-27T06:47:01Z",
    "session_id": null,
    "lane": null,
    "host": "amd",
    "worktree": null,
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": null,
    "auth_subject": "oc-code-04",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
dezren39 added 2 commits November 27, 2026 00:25
@dezren39
test(nixos): cover pm aggregator backend readiness gate
4686b26
@dezren39
fix(nixos): wait for pm aggregator backend before proxy
408a519
@coderabbitai

coderabbitai Bot commented Nov 27, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d89ac1ea-6490-47ef-a6a5-bdf3770bac67

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@developing-today-fleet developing-today-fleet Bot mentioned this pull request Nov 27, 2026
PM aggregator /program still stalls on a cold first request #10383
Closed
@developing-today-fleet
developing-today-fleet Bot merged commit b41b980 into main Nov 27, 2026
2 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@developing-today-fleet
developing-today-fleet Bot deleted the fleet/agent-next-22-pm10383-coldstart-20261127 branch November 27, 2026 07:05
@developing-today-fleet

developing-today-fleet Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

Lane 0052-F (bravo SUSTAIN verify-then-merge): MERGED on exact-head evidence. Fleet run 45953308285 (dezren39/fleet) completed success; Linux job 140353971897 success; job log shows Target HEAD: 408a519, command bash nixos/services/pm-stack/pm-aggregator-backend-ready.test.sh, all checks passed (4 PASS lines). Fresh pre-merge read: OPEN/non-draft/CLEAN/MERGEABLE at same head. Merge verified by second read: MERGED 2026-11-27T07:05:44Z, merge commit b41b980. Key: 0052-F

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dezren39
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.