Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .cursor/bin/riven-loop-tick.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,17 @@ function heartbeat(): void {
const gate = run("agent", [
"chat",
"--mode", "ask",
"--model", "grok-4-20",
`Twin-flame heartbeat gate (Riven adversarial-truth-axis). Read git status, recent commits, open PRs, claim branches. Report: main HEAD, open PR count, claim count, any drift, contradiction, or theatrical governance. Adversarial register — call out what's wrong, not what's fine. Brief.`,
"--model", "grok-4.3",
[
Comment on lines 208 to +212
"You are Riven, trajectory manager and adversarial-truth-axis reviewer.",
"This is an autonomous 15-minute cycle.",
"Read broadcasts first from ~/.local/share/zeta-broadcasts/{otto,vera,lior,riven}.md.",
"Walk assigned trajectories. Decompose only what you hit mid-stride.",
"Produce at least one concrete, actionable claim or small PR scope.",
"When blocked, create a specific research child the next pickup cannot dodge.",
"Write your status to ~/.local/share/zeta-broadcasts/riven.md at the end.",
"GitHub PR state and actual file contents are authoritative.",
Comment on lines +213 to +220
].join(" "),
], agentTimeoutMs);

agentStatus = gate.status === 0 ? "ok" : `exit-${gate.status}`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ Per Otto-275 (log-but-don't-implement-yet) + Aaron's
implementation work this tick. The umbrella is the
deliverable for now.

## Sub-rows

- [ ] **[B-0329](B-0329-local-ai-forge-cli-harness-integration.md)** Local AI Path 1 - Forge CLI/harness integration

Comment on lines +189 to +192
Comment on lines +189 to +192
## Cadence

When other 0/0/0 work clears OR when a hosted-substrate
Expand Down
27 changes: 27 additions & 0 deletions docs/backlog/P2/B-0329-local-ai-forge-cli-harness-integration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
id: B-0329
priority: P2
status: open
title: Local AI Path 1 - Forge CLI/harness integration
effort: M
ask: Lior 2026-05-23 decomposition of B-0068
created: 2026-05-23
last_updated: 2026-05-23
depends_on: [B-0068]
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Remove umbrella dependency from decomposed child

Setting depends_on: [B-0068] blocks this new child until the umbrella row is closed, which defeats the decomposition you just introduced. In tools/backlog/autonomous-pickup.ts, dependencyBlocker treats any non-closed dependency as a hard blocker (dependency <id> is <status>), and B-0068 is currently open, so B-0329 becomes unselectable in dependency-driven pickup flows.

Useful? React with 👍 / 👎.

tags: [local-ai, multi-harness, ollama, forge]
type: feature
---

# B-0329 — Local AI Path 1: Forge CLI/harness integration

This is the first decomposed task from the [B-0068](B-0068-local-ai-trajectory-forge-ollama-direct-integration-aaron-2026-04-28.md) local AI trajectory umbrella.
Comment on lines +15 to +17

## Why

This is the fastest path to leveraging local AI substrate, as the Forge CLI has native support for Ollama.

## What

- Add Forge to the agent / CLI roster.
- WebSearch the current Forge CLI version, supported model surface, and Ollama bridge before any commitment in code.
- Any Forge-routed work must name Forge as the harness in the PR / commit / tick-history at point of use.
27 changes: 27 additions & 0 deletions docs/research/shadow-lesson-log-20260522-stale-locks.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Shadow Lesson Log - 2026-05-22: Stale Git Locks

## Event

During a routine antigravity check, Lior detected a stale git index lock and an orphan agent lockfile in the `zeta-lior-decompose-4044` worktree. This prevented `git fetch` operations from completing successfully, blocking further progress on PR analysis and preservation.

## Analysis

The presence of these lock files indicates that a git process was terminated abruptly, likely due to an agent crash or a manual interruption. The `locked` file, in particular, suggests that a worktree was locked for an operation but never unlocked.

This event highlights a vulnerability in our autonomous system. If an agent crashes while holding a git lock, it can disrupt the workflow of all other agents.

## Lesson

We need to implement a more robust mechanism for handling git locks. This could involve:

* **A centralized lock manager:** A service that grants and revokes locks, ensuring that no two agents can hold conflicting locks at the same time.
* **A timeout mechanism:** Locks that are held for an extended period of time could be automatically released.
* **A health check for agents:** A system that monitors the health of agents and automatically releases any locks held by a crashed agent.

For now, the immediate lesson is that agents should be more careful about cleaning up after themselves, especially when performing git operations.

## Action Items

* Manually remove the stale lock files from the `zeta-lior-decompose-4044` worktree.
* Investigate the root cause of the agent crash that led to the stale locks.
* Begin research and design for a more robust git lock management system.
Loading