Repository navigation
Description
Finding
The roadmap-annotations store still lands inside the git checkout on the
install.sh deployment path. PR #4054 added roadmapAnnotationsFile with a
working-directory default and fixed the state location only for the NixOS
deployment; PR #4050's install.sh — which deploys the aggregator from the
primary checkout with all runtime state under
~/.local/state/pm-aggregator — never picked the variable up, and it is
still missing on current main. The first roadmap annotation posted against
an install.sh deployment therefore creates
pm-stack/aggregator/roadmap-annotations.json inside the checkout — the
exact failure PR #4054's Nix fix says blocks pm-git-sync.
Evidence
- PR feat(aggregator): roadmap annotations (#1284) #4054 (merged, merge commit
b56c85475422adc7e77f52a940f2db7c40c2af08):
addsroadmapAnnotationsFileinpm-stack/aggregator/src/config.tswith
defaultjoin(process.cwd(), "roadmap-annotations.json"), and sets
PM_AGG_ROADMAP_ANNOTATIONS_FILE=${aggState}/roadmap-annotations.json
only innixos/services/pm-stack/default.nix, with the comment: "the
first annotation would otherwise create roadmap-annotations.json inside
this checkout and block pm-git-sync the same way (Codex P1 on PR feat(aggregator): roadmap annotations (#1284) #4054)".
RoadmapAnnotationsStore.persist()(new
pm-stack/aggregator/src/roadmap-annotations.ts) does
mkdir(dirname(file))+writeFileon the firstadd(), so the file
really is created at the configured/default path. - PR fix(aggregator): deploy from checkout with stable state dir #4050 (merged, merge commit
3deda7785543e5d640f5c568f21589a1f5e23da1):
rewrotepm-stack/aggregator/install.shto deploy from
~/git/code/pm-stack/aggregatorwith runtime data under
~/.local/state/pm-aggregator; the.envit renders sets
PM_AGG_FEED_FILE,PM_AGG_COMMENTS_FILE,PM_AGG_ACTIONS_FILE,
PM_AGG_REGISTRY_FILE,PM_AGG_SNAPSHOTS_DIR,
PM_AGG_QUOTA_CURRENT_FILE, andPM_AGG_COVERAGE_SNAPSHOT_FILE— no
roadmap-annotations entry. - Verified on current main
703f0d6b6211d5ac4ae73a0b3a836d967243afbd
(2026-11-11, contents API + code search, two independent reads):pm-stack/aggregator/src/config.ts:159—
roadmapAnnotationsFile: s(env.PM_AGG_ROADMAP_ANNOTATIONS_FILE, join(process.cwd(), "roadmap-annotations.json"))pm-stack/aggregator/install.sh(env block, lines 105–116) still has
noPM_AGG_ROADMAP_ANNOTATIONS_FILE(later additions covered
PM_AGG_EVENTS_FILE/PM_AGG_ACTIVITY_FILE; roadmap was missed).- Code search for
PM_AGG_ROADMAP_ANNOTATIONS_FILEreturns only
config.ts,nixos/services/pm-stack/default.nix:234, and
test/slice3.test.ts— nothing on the install.sh path. pm-stack/systemd/pm-aggregator.service(the unit install.sh
installs):WorkingDirectory=%h/git/code/pm-stack/aggregator,
EnvironmentFile=%h/.local/state/pm-aggregator/.env, and its only
inline state-path override isPM_AGG_DIGESTS_DIR. So under this
deploymentprocess.cwd()is the checkout and no source sets the
roadmap path.pm-stack/aggregator/test/install-rehearsal.shasserts each rendered
PM_AGG_*state path in.env(lines 101–107 on main) but has no
roadmap assertion, so the gap is untested.
- Related observation for triage:
viewsFile(config.ts:161) has the
same cwd default and is likewise absent from the install.sh list;
freshnessFilewas already moved to a state-dir default (pm-git-sync blocked: runtime state files land in the primary clone (.opencode/service-local.json, pm-stack/aggregator/activity-ingestion.json) #5389).
Triage may scope views in or split it — the filed defect is roadmap
annotations. - Dedupe (2026-11-11): searches for "roadmap-annotations install",
PM_AGG_ROADMAP_ANNOTATIONS_FILE, and "roadmap annotations checkout"
return no open issue; only the closed feature issue feat(aggregator): roadmap annotations — dated decision/outcome notes on roadmap items and epics, rendered on the timeline #1284 matches.
Why it matters
Two supported deployments of the same service diverge: NixOS keeps
annotations in the state dir, install.sh writes them into the primary
checkout as an untracked runtime file. That dirties the checkout the
service itself runs from and recreates the pm-git-sync blockage PR #4054
already identified and fixed for the other path — it just has not fired
yet because it waits for the first annotation on an install.sh deployment.
Acceptance criteria
- On an install.sh deployment, the roadmap annotations store resolves
under~/.local/state/pm-aggregator(via the rendered.env, the
shipped unit, or a state-dir config default in the pm-git-sync blocked: runtime state files land in the primary clone (.opencode/service-local.json, pm-stack/aggregator/activity-ingestion.json) #5389 pattern —
triage picks one and keeps both deployments consistent). -
pm-stack/aggregator/test/install-rehearsal.shasserts the roadmap
annotations path the same way it asserts the otherPM_AGG_*
state paths. - Posting an annotation (
POST /api/roadmap/annotations) against an
install.sh-style deployment leaves the checkout clean: no
roadmap-annotations.jsoncreated underpm-stack/aggregator/. - The NixOS deployment's annotations path is unchanged.
Found by the pr-diff-review job reviewing PR #4054 and PR #4050
(developing-today/code).
Activity
developing-today commentedon Nov 11, 2026
CODE-2618
dezren39 commentedon Nov 11, 2026
🤖 Agent note · filed
dezren39 commentedon Nov 11, 2026
🤖 Agent note · picked up
19 remaining items
dezren39 commentedon Nov 11, 2026
agent-note:v1
event: parked
task: 15016 (repo-health-code-pilot, lane code-h)
state: parked 30m; PR #8765 is not merge-ready. Fresh revalidation: PR OPEN at head d793d30, issue #8763 OPEN. Codex review receipt is clean on that head, but the current-head review threads still contain CodeRabbit race/recovery findings, and its linked-issue check requests a POST /api/roadmap/annotations rehearsal assertion proving no checkout-side file is created. CodeRabbit CI is skipping; no green required checks available.
resume: resolve the remaining review/acceptance gaps, rerun targeted rehearsal and fresh checks, then reassess merge readiness. Do not merge yet.
labels: queue/parked, status/parked, work/assigned.
fix(aggregator): stop writer in all migration cases, restore service …
dezren39 commentedon Nov 11, 2026
🤖 Agent note · resumed and fixed — PR #8765 head caedd25 (task 15016, lane code-d)
fix(aggregator): leave service stopped and report when rollback move …
dezren39 commentedon Nov 11, 2026
🤖 Agent note · done — PR #8765 merged, issue #8763 closed (task 15016, lane code-d)