Skip to content

docs: next-phase plan (scheduler review, ACP for other harnesses, ideas from OpenClaw) - #158

Merged
royosherove merged 3 commits into
mainfrom
docs/future-plans
Nov 21, 2026
Merged

royosherove merged 3 commits into
mainfrom
docs/future-plans

Conversation

@royosherove

Copy link
Copy Markdown
Member

Adds futureplans/next-phase.md: candidate work for after #153 to #157. Nothing in it is started.

  • Requested items: a review of the scheduler (src/cron/), and turning the existing ACP client (src/agents/kiro/acp/) into a general adapter for other agent harnesses.
  • Twelve ideas from OpenClaw (read at e695c13a, nothing run), ranked for one owner on a large-window model: steering the running turn, sending files back, trimming stale tool output when the cache is cold, approval buttons, quieter scheduled runs, background commands, and others. Each has where it would land, a size, traps and open questions.
  • What is left from the survey of roundhouse's own Telegram experience.
  • What not to copy, and the security comparison.

Docs only; the folder is not in package.json files, so it is not published.

…ience review

Candidate work, nothing started: a review of the scheduler, a general
ACP adapter for other agent harnesses, twelve ideas from OpenClaw
ranked for a single owner on a large-window model, what is left from
the survey of roundhouse's own Telegram experience, what not to copy,
and the security comparison.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-21T18:57:28.141598Z ccc4922 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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

Copy link
Copy Markdown

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: c26089d98d

ℹ️ 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 futureplans/next-phase.md Resolved
Comment thread futureplans/next-phase.md Resolved
Comment thread futureplans/next-phase.md Resolved
@royosherove
royosherove merged commit 776e013 into main Nov 21, 2026
1 check passed
@royosherove
royosherove deleted the docs/future-plans branch November 21, 2026 18:57

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

Copy link
Copy Markdown

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: ccc4922b9a

ℹ️ 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 futureplans/next-phase.md

- **What does a scheduled run cost and say?** Every heartbeat and cron result is posted with a header, whether or not there was anything to say, and each run is a fresh full agent with the whole standing context. See B5 for what OpenClaw does instead.
- **What happens when a job keeps failing?** Today it fails again at full price on every tick. There is no backoff, no auto-disable and no "one alert per incident".
- **How do scheduled runs interact with the chat?** They do not go through `accept()` in `src/gateway/gateway.ts`, so they take no part in the per-chat queue, the interrupted-request markers, or `/cancel` (`runningTurns`). Each run also gets its own session (`buildCronThreadId(job.id, runId)` in `src/cron/runner.ts`) and its own adapter, so it never shares a transcript or a queue with a chat turn. The questions that follow from that: a run starts cold every time (no prompt cache, and nothing from the chat or from the job's previous run), runs are serial among themselves (`p-queue`, concurrency 1, in `src/cron/scheduler.ts`) but run alongside a chat turn on the same host and workspace, and the owner cannot stop a run from chat.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Qualify the claim that cron runs have no prompt cache

When a cache-enabled provider runs jobs again within its cache TTL, a fresh adapter and buildCronThreadId isolate Pi’s session but do not guarantee a provider cache miss for an identical system/tool prefix. Anthropic, for example, can reuse an identical marked prefix across requests (prompt caching docs), so this categorical claim may overstate re-caching costs in the scheduler analysis; describe the session as cold and make cache reuse provider- and TTL-dependent.

Useful? React with 👍 / 👎.

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