Fix static fresh-start pidcheck so health loop stays alive #453

Merged
weichen merged 4 commits from fix/svc-static-pidcheck-fresh-start into main 2026-10-12 08:40:33 +00:00
Owner

Summary

  • pid_alive now prefers in-memory SVC_PIDCHECK before svc.env / agent-system.
  • write_static_reg persists pidcheck=--directory <htdocs> so first-boot health probes do not misread python http.server as exited.
  • Regression: test_static_fresh_deploy_registers_pidcheck_and_starts.

Why

Fresh static --dir deploy called pid_alive before record_state; missing pidcheck fell back to agent-system and failed with 「进程即退」.

Evidence

  • SELF: python3 -m unittest tests.test_svc -v 17/17 PASS (on card)

Test plan

  • New static fresh-deploy case
  • Dev CI green

Refs: .task/fix-svc-static-pidcheck-fresh-start.md (independent of #450)

## Summary - `pid_alive` now prefers in-memory `SVC_PIDCHECK` before `svc.env` / `agent-system`. - `write_static_reg` persists `pidcheck=--directory <htdocs>` so first-boot health probes do not misread `python http.server` as exited. - Regression: `test_static_fresh_deploy_registers_pidcheck_and_starts`. ## Why Fresh static `--dir` deploy called `pid_alive` before `record_state`; missing pidcheck fell back to `agent-system` and failed with 「进程即退」. ## Evidence - SELF: `python3 -m unittest tests.test_svc -v` 17/17 PASS (on card) ## Test plan - [x] New static fresh-deploy case - [ ] Dev CI green Refs: `.task/fix-svc-static-pidcheck-fresh-start.md` (independent of #450)
weichen added 4 commits 2026-10-12 08:36:23 +00:00
Why: establish the authorized task workspace and its initial baseline.

Evidence: preserved precheck receipt in .task/fix-svc-static-pidcheck-fresh-start.md; R0=0d224ffcab82cab7def2c0b0cc36d2e6d02ce3dd.

Impact: task metadata only; the feature workspace starts at 0d224ffcab.

Refs: .task/fix-svc-static-pidcheck-fresh-start.md
Why: write_static_reg omitted pidcheck and pid_alive ignored in-memory
SVC_PIDCHECK, so first-boot curl probes fell back to agent-system and
misread python http.server as exited.
Evidence: python3 -m unittest tests.test_svc -v (17/17, new static case)
Impact: Static --dir deploy survives the pre-record_state health loop.
Refs: fix/svc-static-pidcheck-fresh-start

Co-authored-by: Cursor <cursoragent@cursor.com>
Why: bind the task validation checkpoint to the latest integration baseline.

Evidence: SELF recursive component checks; sync_base=0d224ffcab82cab7def2c0b0cc36d2e6d02ce3dd; candidate=6056838b480faf9578dc8b8e65562010a63fdde7.

Impact: task metadata only.

Refs: .task/fix-svc-static-pidcheck-fresh-start.md
Record sync and post-fix evidence on task card
ci / test-pg (pull_request) Successful in 1m42s
ci / test (pull_request) Successful in 3m43s
345630e3d0
Why: Refresh SELF receipts after the fix commit for delivery gates.
Evidence: make task-sync; unittest static fresh deploy case exit 0
Impact: Task card only.
Refs: fix/svc-static-pidcheck-fresh-start
Co-authored-by: Cursor <cursoragent@cursor.com>
weichen merged commit 4c5dd3d6df into main 2026-10-12 08:40:33 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: weichen/Agent-System-Dev#453