Skip to content

docs: agent feature loop with two cleanup rounds; trim guides - #158

Merged
hewigovens merged 2 commits into
mainfrom
h/agent-loop-docs
Aug 21, 2026
Merged

docs: agent feature loop with two cleanup rounds; trim guides#158
hewigovens merged 2 commits into
mainfrom
h/agent-loop-docs

Conversation

@hewigovens

@hewigovens hewigovens commented Aug 21, 2026

Copy link
Copy Markdown
Owner

Summary

Supersedes #156 and #157 (closed Cursor cloud-agent PRs), merged onto the local docs rework. Two changes:

docs: agent feature loop with two cleanup rounds; trim guides

  • AGENTS.md is now an ordered agent loop: sibling jj workspace → snapshot discipline → package-scoped inner-loop tests → two dedupe/simplify cleanup rounds before a task is done → one jj fix + just lint pass → describe. Architecture Boundaries / Testing restatements are folded into Principles 4 and 7.
  • Feature PRs no longer touch the user guide, Help Book, website, or parity matrix; that is a shipped-docs pass in agents/release.md. UserGuide.md becomes a stub pointing at docs/guide.html.
  • just test-rust <crate> [args] and just test-ui [test-id]; SwiftLint file_length dropped in favor of splitting by responsibility.
  • From docs: GitHub-only PR publish; trim agent guides #156: GitHub-only PR publish (Codeberg stays open/compose only in-app), no sccache fallback, shorter shell-parity Yes rows (Partial gap lists intact), review-state persistence → Storage Guide, Swift Tests section, format-projections framing. One precision fix on top: the pin store fingerprints on read too, not only before mutating.
  • Focused guides (testing.md, version-control.md) now carry only what AGENTS.md leaves out instead of repeating its command blocks. code-review.md gains a check for leftovers the cleanup rounds should have removed.

refactor(mac): drop UserDefaults review-marks import (= #157)

  • Removes the one-time jayjay.reviewedFiles import from ReviewStore.swift and its test. The shared review_store.json has been the store since June 2026; leftover UserDefaults keys are ignored.

Not adopted from #156: "work in the current workspace by default" — the loop keeps sibling workspaces as the default.

Test plan

  • xcodebuild … -only-testing:JayJayTests/ReviewStoreTests — build + 9 tests pass
  • just shell::lint (swiftlint) clean; jj fix no-op
  • just -n test-rust jayjay-core working_copy / just -n test-ui <id> expand correctly; just list shows the new recipes
  • No broken relative links across AGENTS.md, CONTRIBUTING.md, agents/*.md
  • clippy not run — no Rust sources changed

Review marks have lived in the shared review_store.json since the store moved out of UserDefaults (June 2026). The one-time jayjay.reviewedFiles import only ran while that file was missing; remove it and its test now that the window has passed. Leftover UserDefaults keys are ignored.
Make the always-loaded AGENTS.md an ordered agent loop: sibling jj workspace, snapshot discipline, package-scoped inner-loop tests, two dedupe/simplify cleanup rounds before a task is done, then one jj fix + just lint pass. Feature PRs no longer touch the user guide, Help Book, website, or parity matrix; those move to a shipped-docs pass in the release flow, and UserGuide.md becomes a stub pointing at docs/guide.html. Add just test-rust and a test-id argument for just test-ui, and drop SwiftLint file_length in favor of splitting by responsibility.

Fold in the trims from the closed #156 and #157: GitHub-only PR publish (Codeberg stays open/compose only in-app), no sccache fallback, no Architecture Boundaries / Testing restatements in AGENTS.md, shorter shell-parity Yes rows, review-state persistence pointing at the Storage Guide, a Swift Tests section, and no legacy-import mentions. Focused guides now carry only what AGENTS.md leaves out instead of repeating its command blocks.

@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: 88dcbac648

ℹ️ 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 shell/mac/Sources/JayJay/Shared/ReviewStore.swift
@hewigovens
hewigovens merged commit 8fd7a20 into main Aug 21, 2026
2 checks passed
@hewigovens
hewigovens deleted the h/agent-loop-docs branch August 21, 2026 02:32
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