Skip to content

Fix self-align remediation gaps - #12

Merged
aorumbayev merged 6 commits into
mainfrom
feat/self-align-remediation
Jul 9, 2026
Merged

Fix self-align remediation gaps#12
aorumbayev merged 6 commits into
mainfrom
feat/self-align-remediation

Conversation

@aorumbayev

Copy link
Copy Markdown
Member

Summary

  • remove trust-packet export/import flow while keeping task details view
  • harden helper lifecycle, push guard, setup/check scope handling, and task details
  • add self-align audit skill docs and align README/docs/specs

Testing

  • bun run check

aorumbayev and others added 5 commits July 9, 2026 16:23
Close merge TOCTOU on squash failure, extend push-guard path matching,
emit check/setup partial and skipped badges, add filterable model and
branch pickers, align R6.2 with handoff behavior, and clean up docs,
dead exports, and duplicated helpers from the triage pass.

Co-authored-by: Cursor <cursoragent@cursor.com>
Align code and specs on custom scope command matching, trust packet
title/status, merge dirty-worktree guards, push-guard subshell detection,
absolute cwd rejection, prompt evidence isolation, and status schema reads.
Add R3.8/R17.11–13 requirements, docs corrections, and OptionBoundsSchema
for settings validation.

Co-authored-by: Cursor <cursoragent@cursor.com>
Trust packet file I/O was misleading portable handoff without restore semantics;
the in-app View details summary is the only retained path.

Co-authored-by: Cursor <cursoragent@cursor.com>
Deleting a task while intake was still running left the child agent writing
parts after the parent session was removed, triggering OpenCode DB errors.

Co-authored-by: Cursor <cursoragent@cursor.com>
@greptile-apps

greptile-apps Bot commented Jul 9, 2026

Copy link
Copy Markdown

Greptile Summary

This PR replaces trust packets with task details and tightens several board lifecycle paths. The main changes are:

  • Removes trust-packet export/import UI and docs.
  • Adds a read-only task details view with intake, findings, command evidence, and diff stats.
  • Hardens helper lifecycle handling, retry eligibility, metadata patch serialization, and push guarding.
  • Adds scoped setup/check command evidence and settings support for helper agents and validator models.
  • Updates specs, README, docs, and self-align audit guidance.

Confidence Score: 4/5

Mostly safe to merge after fixing one user-visible board shortcut regression.

The lifecycle, metadata, docs, and task-details changes are covered and consistent. The comma settings shortcut is advertised and bound, but the board does not register the command it targets.

src/commands.tsx

T-Rex T-Rex Logs

What T-Rex did

  • Reproduced the focused Bun test that compares BOARD_BINDINGS commands against createBoardCommands and confirmed a mismatch involving kagan.settings.
  • Reviewed the repro artifact and its failure output, which show that the runtime binding includes kagan.settings while the command list does not.
  • Executed the project-wide Bun check and observed exit code 1; the run report notes prettier warnings for three files.

View all artifacts

T-Rex Ran code and verified through T-Rex

Important Files Changed

Filename Overview
src/commands.tsx Replaces trust packet menu actions with task details and unified retry checks, but leaves the advertised settings shortcut unhandled on the board.
src/server.ts Hardens helper lifecycle, status gating, check recording, task references, and push guard handling.
src/session-api.ts Adds serialized metadata patching, scoped setup evidence recording, helper retry reset, archiving, and merge/send-back updates.
src/task.ts Adds scoped command parsing, task scope metadata, unified retry logic, citation verification, and helper/status gates.
src/check.ts Adds metadata truncation for command-plan evidence and centralizes check timeout handling.
src/settings.tsx Adds settings UI sections for plugin options, commands, agents, validator models, JSON preview, and save handling.
src/task-details.tsx Introduces the read-only task details model and dialog view replacing trust packet UI.
src/git.ts Hardens git push detection and merge cleanup logic.
src/validator.ts Adds validator model rotation and improves validator prompt evidence handling.
test/commands.test.ts Covers menu/footer/task-details changes and board commands, but misses the broken board kagan.settings binding.

Comments Outside Diff (1)

  1. src/commands.tsx, line 52 (link)

    P1 Settings shortcut is unhandled
    BOARD_BINDINGS binds , to kagan.settings, but createBoardCommands never returns a command with that name. The board registers only this local command array for its keymap layer, and the palette command in src/tui.tsx has no comma binding, so pressing , on the board does not open settings despite the footer and docs advertising it.

    Context Used: AGENTS.md (source)

    Artifacts

    Repro: focused Bun test comparing BOARD_BINDINGS commands against createBoardCommands output

    • Contains supporting evidence from the run (text/typescript; charset=utf-8).

    Repro: failing Bun test output showing kagan.settings is missing from returned board commands

    • Keeps the command output available without making the summary code-heavy.

    View artifacts

    T-Rex Ran code and verified through T-Rex

    Prompt To Fix With AI
    This is a comment left during a code review.
    Path: src/commands.tsx
    Line: 52
    
    Comment:
    **Settings shortcut is unhandled**
    `BOARD_BINDINGS` binds `,` to `kagan.settings`, but `createBoardCommands` never returns a command with that name. The board registers only this local command array for its keymap layer, and the palette command in `src/tui.tsx` has no comma binding, so pressing `,` on the board does not open settings despite the footer and docs advertising it.
    
    **Context Used:** AGENTS.md ([source](https://app.greptile.com/kagan/github/kagan-sh/kagan/-/custom-context?memory=88a14340-9a15-4297-925d-3656d144ad2a))
    
    How can I resolve this? If you propose a fix, please make it concise.

    Fix in Claude Code Fix in Codex

Fix All in Claude Code Fix All in Codex

Prompt To Fix All With AI
Fix the following 1 code review issue. Work through them one at a time, proposing concise fixes.

---

### Issue 1 of 1
src/commands.tsx:52
**Settings shortcut is unhandled**
`BOARD_BINDINGS` binds `,` to `kagan.settings`, but `createBoardCommands` never returns a command with that name. The board registers only this local command array for its keymap layer, and the palette command in `src/tui.tsx` has no comma binding, so pressing `,` on the board does not open settings despite the footer and docs advertising it.

Reviews (1): Last reviewed commit: "fix: address branch review gaps" | Re-trigger Greptile

@aorumbayev
aorumbayev merged commit 6412917 into main Jul 9, 2026
3 checks passed
@aorumbayev
aorumbayev deleted the feat/self-align-remediation branch July 9, 2026 20:58
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 0.2.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant