Skip to content

chore: Capture release-automation knowledge in docs and slim AGENTS.md#1889

Merged
hatayama merged 5 commits into
v3-betafrom
docs/release-automation-version-realignment
Jul 20, 2026
Merged

chore: Capture release-automation knowledge in docs and slim AGENTS.md#1889
hatayama merged 5 commits into
v3-betafrom
docs/release-automation-version-realignment

Conversation

@hatayama

@hatayama hatayama commented Jul 20, 2026

Copy link
Copy Markdown
Owner

Summary

  • Documents the release-automation knowledge learned during the dispatcher version realignment (PR fix: Correct dispatcher version series back to the 3.0.0-beta line #1888) so any future agent or contributor can repeat or reason about the procedure without rediscovering it.
  • Slims AGENTS.md from 203 to 112 lines, following the guidance that always-loaded agent memory files should stay well under ~200 lines because longer files consume context every session and dilute instruction adherence.

User Impact

  • Before: the realignment procedure and its non-obvious mechanics (why a fix: commit is invisible to the release sync script, how dispatcher-publish self-heals a missing release, why pin fields must never be hand-edited) lived only in one conversation. AGENTS.md had also drifted (it described the pin as having two required fields while the real pin has four) and mixed always-relevant invariants with task-specific detail.
  • After: docs/version-series-realignment.md captures the full procedure with the 2026-07-21 case as a worked example, the pin field reference is complete, and AGENTS.md loads ~45% less always-on context. Every moved rule remains reachable through a task-triggered pointer, and the hard invariants (protocol declarations stay equal, stamped versions are never hand-edited, pin is additive-only, EditMode tests are single-flight) stay inline.

Changes

  • Add docs/version-series-realignment.md: when and how to rewind a component's release-please version series, which automations self-heal the missing release, and what must not be touched.
  • Move six task-specific AGENTS.md section bodies verbatim into docs, leaving a short invariant-plus-pointer paragraph each:
    • Unity Freeze Prevention → docs/unity-editmode-test-guardrails.md
    • Dead Code Scanner → docs/dead-code-scanner.md
    • Windows Compatibility Guardrails → docs/windows-compatibility.md
    • Shared Release Inputs and Triggers → docs/shared-release-inputs.md
    • CLI / Unity Package Compatibility (bump criteria, release sequencing) → docs/protocol-version.md
    • Project Runner Pin (field reference, format rationale) → docs/project-runner-pin.md
  • Complete the pin field reference with the automation-stamped dispatcherReleaseTag / dispatcherArchiveManifest fields (AGENTS.md previously listed only two fields).
  • Compress the Native Go CLI Validation section to its essentials.
  • docs/ was chosen over Claude-specific rule/skill directories so the content stays reachable for every agent that reads AGENTS.md (and .claude/ / .agents/ remain generated-only).

Verification

  • grep -rln 'AGENTS.md\|CLAUDE.md' scripts/ cli/ .github/ returns nothing — no script or CI asserts AGENTS.md content.
  • Docs-only change: no package root or shared release input is touched, so no release trigger or stamp update is required.

hatayama added 2 commits July 21, 2026 03:41
…reference

Capture the release-automation knowledge from the 2026-07-21 dispatcher
realignment (PR #1888) so future agents do not have to rediscover it:

- Add docs/version-series-realignment.md covering when and how to rewind a
  component's release-please version series, why the sync script cannot see a
  fix-titled realignment commit while dispatcher-publish self-heals the
  missing release from the contract at HEAD, and which pin fields must never
  be hand-edited.
- Update the AGENTS.md Project Runner Pin section, which still described the
  pin as having two required fields; document dispatcherReleaseTag and
  dispatcherArchiveManifest as automation-stamped fields.
Anthropic's guidance for CLAUDE.md/AGENTS.md is to keep the always-loaded
memory file under ~200 lines because longer files consume context on every
session and dilute instruction adherence. AGENTS.md had grown to 203 lines,
and four of its sections only matter for specific tasks.

Move the full content of those sections verbatim into docs/ and leave a short
trigger-plus-pointer paragraph in AGENTS.md (203 -> 153 lines):

- Unity Freeze Prevention -> docs/unity-editmode-test-guardrails.md
- Dead Code Scanner -> docs/dead-code-scanner.md
- Windows Compatibility Guardrails -> docs/windows-compatibility.md
- Shared Release Inputs and Triggers -> docs/shared-release-inputs.md

docs/ was chosen over .claude/rules so the moved content stays reachable for
every agent that reads AGENTS.md, not only Claude Code. The pin field bullet
added in the previous commit is also compressed to a doc reference.
@coderabbitai

coderabbitai Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@hatayama, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 43 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: e4b468f9-9acd-41c8-b6e2-9771139dd822

📥 Commits

Reviewing files that changed from the base of the PR and between 05f8135 and c373976.

📒 Files selected for processing (2)
  • AGENTS.md
  • docs/version-series-realignment.md
📝 Walkthrough

Walkthrough

Documentation guidance was revised for protocol compatibility, project-runner pins, shared release triggers, version realignment, dead-code scanning, Windows compatibility, native CLI validation, and Unity EditMode test execution. Seven documentation pages were added, while related AGENTS.md sections were condensed or rewritten.

Changes

Documentation guidance updates

Layer / File(s) Summary
Compatibility and project-runner pin guidance
AGENTS.md, docs/protocol-version.md, docs/project-runner-pin.md
Documents protocol-version equality and bump conditions, project-runner pin ownership and gating, and additive-only pin evolution.
Release inputs and version realignment
AGENTS.md, docs/shared-release-inputs.md, docs/version-series-realignment.md
Documents shared release-trigger stamping and the controlled procedure and automation paths for correcting release-please version series.
Scanner, CLI, and Windows guardrails
AGENTS.md, docs/dead-code-scanner.md, docs/windows-compatibility.md
Adds scanner usage and Windows compatibility rules while clarifying repository-local CLI validation and condensing related guidance.
Unity EditMode test guardrails
AGENTS.md, docs/unity-editmode-test-guardrails.md
Defines restrictions for risky EditMode tests and response steps for stalled test runs or frozen Unity Editors.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title accurately summarizes the main change: moving release-automation knowledge into docs and shortening AGENTS.md.
Description check ✅ Passed The description clearly matches the documented docs additions and AGENTS.md slimming work.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/release-automation-version-realignment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

…variants

Second slimming pass on AGENTS.md (153 -> 112 lines). The protocol version,
project runner pin, and Go CLI validation sections mixed always-relevant
invariants with background detail that only matters when actually performing
those tasks.

Keep the hard rules inline (declarations must stay equal, never bump or edit
stamped versions by hand, pin is additive-only, use the dist binary and
check-go-cli.sh) and move bump criteria, release sequencing, and pin field
rationale to docs/protocol-version.md and docs/project-runner-pin.md.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@AGENTS.md`:
- Around line 104-106: Update the release guidance in AGENTS.md to preserve the
manual-edit prohibition while explicitly exempting the documented version-series
realignment procedure, including dispatcherVersion and component changelogs.

In `@docs/version-series-realignment.md`:
- Around line 3-9: Update the dispatcher realignment reference in the document
to use the correct historical date, or explicitly label the 2026-07-21 entry as
a planned example rather than a completed event. Keep the described release
sequence and PR `#1888` reference unchanged.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 664ba576-2d71-470f-8dba-5c1d270c3453

📥 Commits

Reviewing files that changed from the base of the PR and between 7108467 and 35aaffd.

📒 Files selected for processing (6)
  • AGENTS.md
  • docs/dead-code-scanner.md
  • docs/shared-release-inputs.md
  • docs/unity-editmode-test-guardrails.md
  • docs/version-series-realignment.md
  • docs/windows-compatibility.md

Comment thread AGENTS.md
Comment thread docs/version-series-realignment.md

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@AGENTS.md`:
- Around line 89-95: Update the native CLI example in AGENTS.md to avoid
hardcoding dist/darwin-arm64/uloop; use a platform-specific binary placeholder
that accounts for Windows .exe suffixes, or reference scripts/build-go-cli.sh
for selecting the correct built target while preserving the instruction to run
the checkout’s rebuilt binary.
- Around line 37-38: Qualify the automation-only release-version rule in
AGENTS.md lines 37-38 with an explicit exception for the documented
version-series-realignment procedure. Apply the same exception to pin fields in
AGENTS.md lines 45-47 while preserving additive-only evolution and the
prohibition on deleting or renaming fields.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: e9fc5f31-31e3-4465-a532-6cd2758da4bb

📥 Commits

Reviewing files that changed from the base of the PR and between 35aaffd and 05f8135.

📒 Files selected for processing (3)
  • AGENTS.md
  • docs/project-runner-pin.md
  • docs/protocol-version.md

Comment thread AGENTS.md Outdated
Comment thread AGENTS.md
hatayama added 2 commits July 21, 2026 04:06
…s date

Address CodeRabbit review on PR #1889: the always-loaded AGENTS.md said
"never bump them by hand" without the realignment exception documented in
docs/, and the realignment doc's date was timezone-ambiguous — identify the
case by its release tag instead.
… CLI example platform-neutral

Address CodeRabbit round 2 on PR #1889: the CLI / Unity Package
Compatibility section also said "never edit them by hand" without the
version-series-realignment exception, and the Native Go CLI Validation
example hardcoded the macOS ARM64 binary path without a platform note.
The pin-field prohibition stays unqualified on purpose: the realignment
procedure itself forbids hand-editing the automation-stamped pin fields.
@hatayama
hatayama merged commit c1c18b6 into v3-beta Jul 20, 2026
7 checks passed
@hatayama
hatayama deleted the docs/release-automation-version-realignment branch July 20, 2026 19:12
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