Skip to content

Sync with upstream - #2071

Closed
canesin wants to merge 32 commits into
PrimeIntellect-ai:mainfrom
canesin:main
Closed

Sync with upstream#2071
canesin wants to merge 32 commits into
PrimeIntellect-ai:mainfrom
canesin:main

Conversation

@canesin

@canesin canesin commented Sep 5, 2026

Copy link
Copy Markdown

Context

Changes

Validation

Note

Add conditional cron follow-ups, fenced profile transitions, and RLM roster cancellation to daemon

  • Adds durable receipt-phase tracking, provider-boundary commits, and crash-safe recovery for conditionally dispatched goal starts and follow-ups in agent-session.ts and daemon-mode.ts. Interrupted deliveries retry up to five times then terminalize the goal or follow-up.
  • Introduces set_profile_if_idle for atomic, session-only model+thinking-level transitions gated on an exact idle precondition, with rollback-capable persistence in session-manager.ts.
  • Adds compare-and-cancel RLM child support using a SHA-256 roster token derived from event generation, revision, and child snapshots; stale tokens return RlmChildRosterChangedError.
  • Bumps daemon protocol to schema 28 and declares four new capabilities (conditional RLM cancellation, conditional cron delivery, conditional cron follow-up, conditional session profile) in daemon-protocol.ts. The supervisor rejects incompatible commands before forwarding.
  • Reworks self-update and release infrastructure to use the canesin/prime-agent fork: strict manifest validation, canonical GitHub tarball URLs, a new fork-release.yml workflow, and removal of PRIME_AGENT_DOWNLOAD_BASE_URL.
  • Risk: getLatestPiRelease now requires the manifest version, package name, and tarball URL to exactly match the canonical fork release; any mismatch returns no installable release, which will block self-updates from non-canonical sources.

Macroscope summarized 3020ccb.

Persist delivery receipts and provider commitment before side effects. Fence restore, retry exhaustion, and session-file rebinding so daemon failure cannot duplicate or misroute a conditional goal.
feat(daemon): fence RLM child cancellation
…profile-switch

# Conflicts:
#	packages/coding-agent/src/modes/daemon/daemon-protocol.ts
#	packages/coding-agent/src/modes/daemon/daemon-session-list.ts
…rofile-switch

# Conflicts:
#	packages/coding-agent/src/modes/daemon/daemon-mode.ts
fix(coding-agent): make CTO daemon recovery durable
…ollow-up

# Conflicts:
#	packages/coding-agent/src/modes/daemon/daemon-protocol.ts
#	packages/coding-agent/src/modes/daemon/daemon-session-list.ts
…ollow-up

# Conflicts:
#	packages/coding-agent/src/modes/daemon/daemon-protocol.ts
#	packages/coding-agent/src/modes/daemon/daemon-session-list.ts
#	packages/coding-agent/test/daemon-client.test.ts
fix: deliver durable active-goal follow-ups
Require immutable, canonical fork artifacts before self-update and keep queued or rerun release jobs from dropping or regressing releases.
sync upstream and keep updates on fork releases
fix(release): authenticate immutable preflight
@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown

Hi @canesin, thanks for your interest in contributing!

This project requires that pull request authors are vouched, and you are not in the list of vouched users.

This PR will be closed automatically. See https://github.com/PrimeIntellect-ai/prime-agent/blob/main/CONTRIBUTING.md for more details.

@github-actions github-actions Bot closed this Sep 5, 2026
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.

1 participant