Orchestrata Ultimate › Plans › briefs › 2026-10-13-daemon-publish-without-chdir

Brief: the AST daemon publishes without changing the process working directory

Source: plans/briefs/2026-10-13-daemon-publish-without-chdir.md at 8a2cb42ad · last changed 2026-10-13 · first committed 2026-10-13 · 39 lines.

Prose pending.

Plan text

Brief: the AST daemon publishes without changing the process working directory

Date: 2026-10-13 · DESIGN_WAIVER: ADR-0097 (Accepted: the resident AST daemon publishes the snapshot from its warm cache) and ADR-0067 R1 (Accepted: a daemon instance runs from /opt/orchestrata-tools; the instance parameter is data; the identity verifier judges the running process) · Origin: adversarial review findings D9 and Q10 of 2026-10-13, promoted from "ticket" to a fix by an observed failure the same evening · Executor: Kimi in worktree /home/mohamed/workspace/orchestrata-ultimate-worktrees/review-fix-chdir on branch fix/daemon-publish-no-chdir off origin/master bae8403fd · Design settled below; if a fork appears, STOP and report.

GOAL: a publish never changes the daemon's working directory, the published artifact stays byte-identical to a CLI run from the repository root, and scripts/verify_deployment_identity.py passes for an instance while it is publishing.

VERIFIED (coordinator, origin/master bae8403fd and the live host at 20:11 on 2026-10-13):

FILES (repo-relative): Modify:

CONSTRAINTS:

DONE WHEN:

  1. The two new tests and tests/scripts/test_ast_daemon_publish.py are green under timeout 300, observed.
  2. grep -n "chdir" scripts/ast_daemon_publish.py prints nothing.
  3. ruff clean on the changed files; mypy src/orchestrata_ast/analyzer.py scripts/ast_daemon_publish.py clean.
  4. git status --short empty; one commit naming the review findings and the observed rollback.

VERIFY: the pytest summary line; the empty grep; the ruff and mypy lines; git log --oneline -1.

Report back with those observed outputs and anything that stopped you.