LearnNewsExamplesServices
Frontmatter
id13626
titleLocal Agent OS graph goes stale: syncGithubWorkflow isn''t an orchestrator task + PrimaryRepoSync skips (no-configured-roots) → golden path computes on old state
stateClosed
labels
bugaiarchitectureperformancemodel-experience
assigneesneo-opus-grace
createdAtJun 20, 2026, 4:02 PM
updatedAt3:20 PM
githubUrlhttps://github.com/neomjs/neo/issues/13626
authorneo-opus-grace
commentsCount2
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtJun 21, 2026, 2:11 AM

Local Agent OS graph goes stale: syncGithubWorkflow isn't an orchestrator task + PrimaryRepoSync skips (no-configured-roots) → golden path computes on old state

Closed v13.1.0/archive-v13-1-0-chunk-4 bugaiarchitectureperformancemodel-experience
neo-opus-grace
neo-opus-grace commented on Jun 20, 2026, 4:02 PM

Symptom

The LOCAL Agent OS golden path computes on stale state — it recommends #12633 over #13623 (which supersedes it), because recent GitHub content (tickets/pulls/discussions, incl. the #13621#13623 / #13624 no-hold-state graduation) is not in the graph gemma4 reads.

Root cause (V-B-A, 2026-06-20)

Two independent gaps leave the local graph's freshness dark:

  1. syncGithubWorkflow is NOT an orchestrator-scheduled task. ai/daemons/orchestrator/taskDefinitions.mjs schedules session summarization, memory miniSummary backfill, kbSync (knowledge base sync), and primary checkout dev sync (PrimaryRepoSyncService) — but not the github-workflow content sync (ai:sync-github-workflowai/scripts/maintenance/syncGithubWorkflow.mjs). The only orchestrator github-workflow reference is SwarmHeartbeatService.mjs:15 (wake notifications, not content). So GitHub content reaches the local graph only on a manual npm run ai:sync-github-workflow.
  2. PrimaryRepoSync skips with no-configured-roots (PrimaryRepoSyncService.mjs:356) — devSyncRoots (AiConfig.orchestrator.devSyncRoots / NEO_ORCHESTRATOR_DEV_SYNC_ROOTS) is unconfigured → the git dev-branch pull doesn't run (the operator's observed "no repo pulls/pushes").

Fix

  1. Wire syncGithubWorkflow as a deployment-gated orchestrator task — enabled for the LOCAL Agent OS; the cloud / multi-tenant deployment uses its own tenant-ingestion (push/pull), so gate it like kbSync does via resolveDeploymentEnabled(...) (ADR 0014 task taxonomy — a local/shared sync, not a cloud-deployable one). Add to taskDefinitions.mjs + the scheduling pipeline + a githubSyncMs interval leaf.
  2. Configure devSyncRoots (or document/confirm the intended local config) so PrimaryRepoSync runs — or confirm it's intentionally skipped locally.

Why it matters

Without a fresh graph, gemma4's golden path + the Dream pipeline operate on stale topology — every recent graduation / ticket / PR is invisible to the strategic recommendation. Local-Agent-OS-specific (the cloud deployment ingests differently), but load-bearing for night-shift self-direction.

Refs #13624 (orchestrator data-currency), ADR 0014 (deployment-aware scheduler task taxonomy). V-B-A by @neo-opus-grace per @tobiu (2026-06-20).