@oiyonet/drift-reconciler
v1.0.0
Published
3-way state reconciler and drift detector between Intent (Notion/Plans), Workspace (Git Worktrees), and Reality (Deploys). 100% zero-dependency.
Maintainers
Readme
@oiyonet/drift-reconciler
3-way state reconciler and drift detector between Intent (Notion/Plans), Workspace (Git Worktrees), and Reality (Production Deploys). 100% zero-dependency.
Engineered by OIYO Lab to keep multi-agent software organizations in continuous lockstep alignment.
🌟 The 3-Way Drift Problem in AI-Native Teams
When autonomous agents (Claude, Codex, Antigravity, Grok) work concurrently across git branches, 3 layers of truth inevitably drift apart:
- Layer 1: Intent (Plan): What Notion / Situation Boards /
NOW.mdsay should be happening. - Layer 2: Workspace (Git Worktrees): What branches actually exist on disk and whether they have uncommitted dirty files.
- Layer 3: Reality (Deploys): What commit is actually running in production.
@oiyonet/drift-reconciler continuously audits these 3 layers and surfaces actionable drift findings in <10ms.
🔍 Drift Finding Types
| Finding | Severity | Description | Remediation |
|---|---|---|---|
| ZOMBIE_PLAN | HIGH | Task is marked in_progress in Plan, but no git branch or worktree exists. | Mark task done or restore active branch. |
| DIRTY_STALL | HIGH | A worktree has dirty uncommitted files without recent activity. | Commit, stash, or release locks to prevent stomping. |
| UNTRACKED_WORKTREE | MEDIUM | A git worktree or branch exists with active commits, but no task tracks it. | Add tracking card or prune with git worktree remove. |
| UNREPORTED_COMPLETION | LOW | Worktree exists for a task that is already marked done or parked. | Safely prune merged worktree directory. |
📦 Installation
# Global CLI
npm install -g @oiyonet/drift-reconciler
# Or run via npx
npx @oiyonet/drift-reconciler audit🚀 CLI Commands
1. Perform 3-Way Reconciliation Audit
drift-reconciler audit --repo ./coding --plan ./company-brain/control-tower/board/agent-brief.jsonOutput:
⚖️ 3-Way State Reconciliation Audit:
• Repo: /Users/seuncho/coding
• Plan Tasks: 14
• Git Worktrees: 6
• Total Drift Findings: 2
🔍 Drift Findings (2):
• [🔴 HIGH] [ZOMBIE_PLAN] task-neon-physics
↳ Issue: Task 'task-neon-physics' is marked 'in_progress', but no git branch or worktree exists.
↳ Remediation: Verify if work was already merged and update task status to 'done'.
• [🟡 MEDIUM] [UNTRACKED_WORKTREE] /workspace/_worktrees/temp-worker
↳ Issue: Worktree 'temp-worker' (branch: fix/oauth) has no matching task in the Plan.
↳ Remediation: Add a tracking card in Situation Board, or prune worktree.2. Inspect Active Git Worktrees
drift-reconciler worktrees💻 Programmatic TypeScript API
import { DriftReconciler } from '@oiyonet/drift-reconciler';
const reconciler = new DriftReconciler({
repoRoot: process.cwd(),
});
const audit = reconciler.reconcile(planTasks, worktrees);
console.log(`Drift count: ${audit.driftCount}`);🌐 Powered by OIYO Lab
@oiyonet/drift-reconciler is an open-source tool developed and maintained by OIYO Lab.
Explore our companion developer tools at tools.oiyo.net and deep technical engineering articles on blog.oiyo.net.
License
MIT © OIYO Lab
