Skip to content

feat(loop): config values for the event-driven loop (3/4) - #68

Merged
Ardnived merged 4 commits into
mainfrom
claude/loop-config
Sep 8, 2026
Merged

Ardnived merged 4 commits into
mainfrom
claude/loop-config

Conversation

@Ardnived

@Ardnived Ardnived commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

Third of four, stacked on #67. Values only, per this repo's rule — the one "ceiling" PR in the set, kept apart from the skill PRs so a change in the next run's output can be attributed.

Every key the running loop reads is unchanged (ceilings.*, labels.awaiting/journal, issueFields, stateMachine, writing.budgets.journalComment, …). Three $comment lines that named rungs now name handlers.

Added

Key Read by
handlers — skill (and documentary model) per handler; the record's handler field selects it payload.mjs, handler-preflight
dispatch.routines — one routine id per repo (loop-<repo>, created 2026-09-08, disabled); ROUTINE_ID_<REPO> org variables override the dispatcher
dispatch — verbs, timeoutsMinutes, maxAttempts 3, orphanDraftHours, fireRetry, enabledHandlers (null = all), secret/variable prefixes the dispatcher
ci.noCi ["claude-workflow"], ci.ignoreCheckNames the dispatcher's CI settlement (L11 in the plan)
labels.lock bot:working, stuck, blocked, proposal handlers (read the lock), the dispatcher (writes the rest)
review.skipWhen {maxFiles: 2, maxLines: 40} the dispatcher
relationships.recheckMarker Re-check: the survey's blocked sweep, the dispatcher
projects.status — Proposed / Revising / Approved / Done the dispatcher
ceilings.maxChildrenPerSplit 5 split-ticket
writing.budgets.journalEntry 1500 handler-journal via budget.mjs

Verification

  • JSON parses; payload.mjs now accepts a well-formed record and budget.mjs --kind journalEntry reads 1500 from config.
  • The old skills' keys are all present (checked programmatically in the PR's terminal log).
  • Labels proposal, bot:working, stuck, blocked already exist in all five repos (created 2026-09-08).

2026-09-08 revision. Five routines, one per repo, keyed under dispatch.routines; handlers.*.routine and dispatch.perRepoHandlers are gone. Every handler runs on the repo's routine (Opus, full tool grant); answer not pushing is a skill rule.

2026-09-08, later. dispatch.tokenSecret is SYDEVS_BOT_PAT (renamed from ADD_TO_PROJECT_PAT). ceilings.wipCapPerRepo stays only for the legacy work-routine and is deleted in the config-only cleanup PR.

@Ardnived
Ardnived force-pushed the claude/loop-config branch 2 times, most recently from 01e15c1 to 1087dc3 Compare September 8, 2026 17:28
@Ardnived
Ardnived force-pushed the claude/loop-handlers branch from b8fc233 to da84dd3 Compare September 8, 2026 18:29
Base automatically changed from claude/loop-handlers to main September 8, 2026 18:30
Ardnived and others added 4 commits September 8, 2026 11:35
…old ones

Values only, per the rule that nothing but values lives here. Every key
the polling loop reads is unchanged, so the hourly and nightly routines
keep working; the three `$comment` lines that named rungs now name the
handlers. No skill changes in this PR.

Added: `handlers` (model, skill and routine id per handler; implement has
one routine per repo; ids are null until the routines exist),
`dispatch` (verbs, per-handler timeouts, maxAttempts, retry windows,
secret and variable name prefixes), `ci` (noCi for repos with workflows
but no CI, ignoreCheckNames for the dispatcher's own check runs),
`labels.lock/stuck/blocked/proposal`, `review.skipWhen`,
`relationships.recheckMarker`, `projects.status`,
`ceilings.maxChildrenPerSplit`, `writing.budgets.journalEntry`.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Created through the routine API with no schedule and no connectors, one
per handler, `implement` once per repo, all disabled until their API
tokens exist. The ids are not secret; they also live in the org's
ROUTINE_ID_* variables, and the dispatcher reads the variable first and
this file as the fallback.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The dispatcher fires the repo's routine and the record's handler field
selects the skill, so handlers carry only skill and (documentary) model,
and the five routine ids live under dispatch.routines. The five are the
former implement-* routines, repurposed on 2026-09-08.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@Ardnived
Ardnived merged commit e86c418 into main Sep 8, 2026
1 check passed
@Ardnived
Ardnived deleted the claude/loop-config branch September 8, 2026 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

1 participant