Skip to content

docs(conventions): add loop-lane convention with ci-workflows-work-loop contract slice - #1147

Merged
kyle-sexton merged 9 commits into
mainfrom
feat/loop-lane-convention
Jul 23, 2026
Merged

kyle-sexton merged 9 commits into
mainfrom
feat/loop-lane-convention

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Jul 23, 2026 •

Copy link
Copy Markdown
Member

Summary

Phases 1 and 2 of the ci-workflows-work-loop plan: land the shared loop-lane convention before its
second adopter, and move the plan's Briefs into the tracked topic-docs contract slice.

  • docs/conventions/loop-lane/ (new owner doc + CHANGELOG 1.0.0) fixes the contract shared by every
    loop lane across two plugins — the work-items work-loop/attend-queue skills and the
    source-control babysit-loop skill — so those cross-plugin concerns live in a marketplace-level
    owner doc rather than a sibling-plugin import, per the PLUGIN-PHILOSOPHY convention-registry rule
    (the owner doc lands before the second adopter). Six contract sections: three-session topology with
    a human-merge-default autonomy ladder; the needs-human escalation contract; order-defined
    capability tiers (frontier/strong/fast) resolved by model alias only; loop-layer invariants (stop
    shapes with a drain-terminal state, work-items(work): loop-prompt rule 20's cycle-budget stop trigger and an operator 'never stop' cadence override can silently conflict #691 session-restart budget, ops: loop-lane telemetry — running per-lane status (babysit / triage / work) #502 single edit-in-place
    telemetry comment with compaction-durable loop state, headless-config floor, seam exit 8, snapshot
    drain exit); consumers and launch surfaces (/loop primary and dependency-free, claude-ops
    lanes a one-directional supporting launcher); and the rate-limit-guard inline-floor binding with
    the single-account-per-machine invariant.
  • One registry row added to docs/PLUGIN-PHILOSOPHY.md — names and points, does not restate.
  • docs/topics/ci-workflows-work-loop/ (contract slice, contract_tier: branch) carries faithful
    copies of the plan's two Briefs and the design-resolution gate file; the Phase 1 and Phase 2 status
    tags are advanced to DONE. These files are pruned before the plan's final merge, per the topic-docs
    lifecycle.

Pointer-not-copy throughout: each cited mechanic is a link plus a short summary, never a restated
mechanics block. No hard-coded model IDs — capability tiers are order-defined and resolved at runtime
by model alias; the weekly-usage-cap specifics are linked to the official support article, never
named as fact. Live Claude Code surfaces (model aliases, ScheduleWakeup bounds, /loop
self-pacing) were verified against current official documentation on 2026-07-23, per the repo
fresh-docs mandate.

No linked issue — the plan is tracked in the topic slice, and the #NNN references in the docs are
ci-workflows issues, not this repo's.

Test plan

  • markdownlint-cli2 (repo .markdownlint-cli2.jsonc): 0 issues across all changed docs. Five
    pre-existing markdown defects in the copied PLAN.md (never linted while it lived in gitignored
    .work) were fixed by escaping markdown-significant characters and stripping one trailing space —
    content preserved.
  • Two sanctioned divergences from a byte-faithful Phase 1 copy (both .work originals untouched):
    (a) the PLAN.md markdown escaping + trailing-space trim above; (b) the copied
    design/design-resolution.md rationale-ledger reference was rewritten to point at the durable
    in-slice record (the two PLAN files' Stress-test summary / Open questions), because those ledgers
    deliberately stay in the gitignored .work memory slice and would otherwise dangle in the tracked
    copy.
  • crate-ci/typos against the repo _typos.toml: clean.
  • Sanity checks: git ls-files docs/topics/ci-workflows-work-loop/ lists exactly 3 files;
    grep -c "loop-lane" docs/PLUGIN-PHILOSOPHY.md = 1; both docs/conventions/loop-lane/README.md
    and CHANGELOG.md exist; the plugin-citation grep returns pointer-form links/paths only.
  • No hard-coded model IDs (grep -E "claude-(opus|sonnet|haiku|fable)-[0-9]" empty); no
    machine-specific paths; no trailing whitespace; LF endings.
  • Every anchored cross-doc link verified against an existing heading; forward-reference paths (the
    not-yet-created rate-limit-guard reader contract and the loop skill directories) are inline-code
    literals, not live links.
  • Independent fresh-context review of the diff against the plan's Phase 1/2 acceptance criteria
    (producer != critic).

Related

  • Full contract and sibling track: the topic slice in this PR
    (docs/topics/ci-workflows-work-loop/PLAN.md and babysit-PLAN.md) — Phases 1-2 of a multi-PR
    plan. Phase 3 (the rate-limit-guard plugin) introduces the reader contract this convention
    forward-references; Phase 4 introduces the work-loop/attend-queue skills; the babysit track
    introduces babysit-loop. Those three are the adopters this owner doc lands ahead of.
  • Registry: docs/PLUGIN-PHILOSOPHY.md "Convention registry".
  • No linked issue.

kyle-sexton and others added 2 commits July 23, 2026 09:23
Move the work-loop and babysit-loop Briefs and the design-resolution
gate file into the tracked topic-docs contract slice (contract_tier:
branch default) so sibling worktrees, PR-babysit checkouts, and cloud
clones see the plan as committed state. Faithful copies of the working
Briefs; the .work originals stay in place. Phase 1 and Phase 2 status
tags advanced to DONE (Phase 2 completes with this PR); other phase
tags left TODO. Markdown-significant characters in the copied plan
escaped so the now-tracked file passes the repo markdown gate.

Co-authored-by: Claude Opus 4.8 <[email protected]>
Land the owner doc for the concerns shared across loop lanes in two
plugins (work-items work-loop/attend-queue and source-control
babysit-loop), before the second adopter, per the convention-registry
rule: three-session topology with a human-merge-default autonomy
ladder, the needs-human escalation contract, order-defined capability
tiers resolved by model alias only, the loop-layer invariants (stop
shapes with a drain-terminal state, #691 session-restart budget, #502
single edit-in-place telemetry comment with durable loop state,
headless-config floor, seam exit 8, snapshot drain exit), the launch
surfaces (/loop primary, claude-ops lanes one-directional), and the
rate-limit guard inline-floor binding. Pointer-not-copy throughout;
live Claude Code surfaces verified against official docs 2026-07-23.
Adds one registry row to PLUGIN-PHILOSOPHY.md.

Co-authored-by: Claude Opus 4.8 <[email protected]>
@claude

claude Bot commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

Claude encountered an error after 1s —— View job


I'll analyze this and get back to you.

@github-actions

github-actions Bot commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Automated review did not complete — this is an infrastructure failure, not a review verdict.

Treat any Claude comment on this PR (including a placeholder like "I'll analyze this and get back to you") as incomplete, not "no findings."

Re-running the job, or pushing a new commit, will retry the review.

@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: 4624f622b3

ℹ️ 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 docs/conventions/loop-lane/README.md Resolved
Comment thread docs/conventions/loop-lane/README.md Resolved
…mantics

Address two review findings on the loop-lane convention.

§1 autonomy ladder: the shipped-default merge exception is a work-class
test, not an authorship test. It covers only gate-proven C2-mechanical
PRs (bot-, human-, or worker-authored); bot authorship alone never
qualifies, and C3/C4/C5/unclassified stay human-gated regardless of
author. State that the shipped default is the recorded baseline rung and
every higher rung — including any C3 merge — requires the tracked-seam
config flip that is the matrix's human-ratified promotion.

§4 cycle budget (#691): state the invariant launcher-relative. A budget
hit always emits a restart-request into the #502 block and stops the
loop cleanly; under a launcher that acts on restart-requests the lane is
relaunched and the loop continues (session restarts, loop does not end),
but under a bare interactive /loop with no launcher the same hit is a
terminal manual-restart state the operator owns. Removes the implied
always-on restart owner.

CHANGELOG summary bullet updated to match.

Co-authored-by: Claude Opus 4.8 <[email protected]>
@claude

claude Bot commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

Claude encountered an error after 1s —— View job


I'll analyze this and get back to you.

@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: 1caa6c8848

ℹ️ 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 docs/conventions/loop-lane/README.md Resolved
Address two more review findings.

§4 stop shapes: record the /loop seven-day expiry as a hard bound of
the launch surface. A self-paced /loop ends automatically seven days
after it starts regardless of idle backoff, so a standing lane needs a
relaunch owner (operator while attended, or claude-ops lanes after the
migration); the lane carries a loop-started timestamp in its #502 block
so the expiry is visible ahead of time, and an expiry hit is handled
like the cycle-budget hit. Fact verified against the official
scheduled-tasks doc (#seven-day-expiry) on 2026-07-23 and cited inline.

design-resolution.md (topic slice): the rationale ledgers stay in the
gitignored .work memory slice per the plan, so the committed copy no
longer references those paths as if tracked. It states they are
session-local working state and points at the durable do-not-relitigate
record — the Stress-test summary / Open questions sections of the two
PLAN files in this slice.

Co-authored-by: Claude Opus 4.8 <[email protected]>
@claude

claude Bot commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

Claude encountered an error after 1s —— View job


I'll analyze this and get back to you.

@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: 05454a722d

ℹ️ 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 docs/conventions/loop-lane/README.md Resolved
…at the seam

Two review findings on §1 of the loop-lane convention.

Recording (no policy change): the shipped C2-mechanical merge default is
the operator-ratified baseline rung; state that a repository adopts it
through its own reviewable lane-enabling change (the binding/config PR
that turns a lane on), which is the recorded human-ratified act for the
baseline, so no lane auto-merges without a reviewed change having
enabled it.

Directionality (gap fix): invocation arguments never raise the merge
rung — a raise binds only from the tracked seam config layer, so every
increase in merge authority is the recorded, reviewable act. Arguments
may select a lower (safer) rung for a single run; argument precedence,
which wins for other lane dimensions, is floored at the seam-config rung
for merge authority.

Co-authored-by: Claude Opus 4.8 <[email protected]>
@claude

claude Bot commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

Claude encountered an error after 1s —— View job


I'll analyze this and get back to you.

@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: 7f6ac4c2b7

ℹ️ 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 docs/conventions/loop-lane/README.md Resolved
…anes

Address a review finding: claude-ops lanes' restart is operator-initiated
by its own contract (no scheduler runs restart today), so the cycle-budget
and seven-day-expiry paragraphs no longer present it as an automatic
restart owner. Until an automatic relaunch trigger exists, every budget or
expiry hit is a terminal manual-restart state under any launch surface;
the #502 restart-request is the shared surface the operator acts on today
and an automatic trigger can act on later.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0169XBydnqC5S6bkHDz1TDwL
@claude

claude Bot commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

Claude encountered an error after 1s —— View job


I'll analyze this and get back to you.

@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: 31a4726e3f

ℹ️ 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".

Align the tracked babysit-PLAN B1 key-table with the loop-lane
convention's "Merge-rung raises are seam-only" rule: invocation
arguments may only select a lower merge rung; raises bind only from the
tracked seam config. Closes the internal contradiction a review flagged
between the plan's precedence note and the owner contract.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0169XBydnqC5S6bkHDz1TDwL
@claude

claude Bot commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

Claude encountered an error after 1s —— View job


I'll analyze this and get back to you.

@kyle-sexton
kyle-sexton enabled auto-merge (squash) July 23, 2026 14:02

@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: 63569b97cb

ℹ️ 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 docs/conventions/loop-lane/README.md Resolved
…ding

Two review findings. The subagent discipline preamble is now
presence-gated per the seam-phrasing convention: with the re-anchor
plugin installed the dispatch prompt invokes its sweep, and without it
the prompt inlines the equivalent standing instructions — re-anchor is
never a hard dependency. The tracked PLAN's Phase 7 launch-surface note
no longer implies lanes automatically consumes restart-requests: lanes
restart is the operator's one-command relaunch surface, with no
automatic trigger today.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0169XBydnqC5S6bkHDz1TDwL
@claude

claude Bot commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

Claude encountered an error after 1s —— View job


I'll analyze this and get back to you.

@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: f50849ccff

ℹ️ 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".

Replace every remaining "bot/C2" disjunction in the tracked plan copies
with the convention's work-class test: the shipped-default merge
exception covers gate-proven C2-mechanical PRs irrespective of author,
and bot authorship alone never qualifies.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0169XBydnqC5S6bkHDz1TDwL
@claude

claude Bot commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

Claude encountered an error after 0s —— View job


I'll analyze this and get back to you.

@kyle-sexton
kyle-sexton merged commit cb7c30b into main Jul 23, 2026
1 check passed
@kyle-sexton
kyle-sexton deleted the feat/loop-lane-convention branch July 23, 2026 14:12

@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: 9fd1193a41

ℹ️ 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 on lines +47 to +53
any higher rung — including any C3-autonomous merge — is a config change on the tracked, layered
config seam ([consumer-config layering](../consumer-config-layering/README.md)), which makes it
exactly the autonomy matrix's required **human-ratified knob flip recorded on the governance
surface**
([`work-classes.md`](../../../plugins/autonomy/reference/guardrails/work-classes.md#promotion-and-demotion)).
C3-autonomous merge is therefore reachable only through a recorded, reviewable flip, never by
default — the matrix's promotion contract honored by construction. Demotion stays automatic and

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 Keep C3 merges human-gated

When a repository enables a higher merge rung, this explicitly permits C3 autonomous merges after a tracked config flip. The governing matrix defines C3's merge policy as unconditional human merge; only C2 has an auto-merge promotion path. This would let an implementation bypass the class-specific merge floor for any scoped change, so higher rungs must not raise C3 merge authority unless the guardrail matrix itself is changed.

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