Skip to content

Keep PM planning in one canonical doc - #5

Merged
JulioMCruz merged 1 commit into
mainfrom
agent/keep-pm-plan-canonical
Jul 17, 2026
Merged

Keep PM planning in one canonical doc#5
JulioMCruz merged 1 commit into
mainfrom
agent/keep-pm-plan-canonical

Conversation

@JulioMCruz

Copy link
Copy Markdown
Contributor

What changed

  • Inject PerkOS-Chat internal ingress configuration into the Platform Tools deployment.
  • Make createDoc(type: plan) idempotent for an existing active, unmaterialized plan.
  • Atomically mark a newly created plan as the active plan.

Why

In the real Hermes PM E2E, the model sometimes called plan tools out of order or omitted docId. That split groups, tasks, and proposal state across an empty active plan and a separate PM draft. Reusing the active plan keeps the workflow in one canonical document regardless of call ordering.

Impact

PM-created plans no longer drift into duplicate/empty documents, and Platform Tools can publish structured project workflow messages through PerkOS-Chat.

Validation

  • npm test: 35/35 passing.
  • npm run build: passing.
  • Built and deployed the updated container on the VPS; health check is passing.
  • Real E2E reproduced the original split-document behavior and verified the service now keeps plan creation on the active document.

@JulioMCruz
JulioMCruz marked this pull request as ready for review July 17, 2026 23:32
@JulioMCruz
JulioMCruz merged commit 5a748bc into main Jul 17, 2026
2 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