Skip to content

fix(kanban): requeue review changes on same card - #17

Merged
solovision24 merged 2 commits into
dev/hermes-upgrade-t_16bbffadfrom
agent/dev-same-card-review-remediation
Aug 2, 2026
Merged

solovision24 merged 2 commits into
dev/hermes-upgrade-t_16bbffadfrom
agent/dev-same-card-review-remediation

Conversation

@solovision24

Copy link
Copy Markdown
Owner

Summary

  • Requeue authorized Review changes on the same implementation card for the original implementer.
  • Preserve review run findings, task identity, immutable-head audit history, and fail-closed guards.
  • Remove active remediation-child creation and update focused lifecycle coverage/docs.

Verification

  • HERMES_PYTHON=/home/solo/.hermes/hermes-agent/venv/bin/python scripts/run_tests.sh tests/hermes_cli/test_kanban_review_lifecycle.py tests/hermes_cli/test_kanban_same_card_review.py tests/hermes_cli/test_kanban_db.py tests/tools/test_kanban_tools.py -q — 104 passed.
  • python3 -m compileall -q hermes_cli/kanban.py hermes_cli/kanban_db.py tools/kanban_tools.py — passed.
  • git diff --cached --check — passed.
  • npm run check — environment dependency failure unrelated to this Python/Kanban change (missing installed workspace packages such as @assistant-ui/core, @tauri-apps/api, and plist).

Kanban Task

Deployment implications

  • No deployment or runtime restart performed; merge/release remains with reviewer/operator.

@solovision24 solovision24 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Orion Review — changes required

Reviewed immutable head 95afcabf196fcae99e321eeeb49ba16e60b31310. The focused implementation tests pass (104/104), but the PR artifact is not safe or reviewable against its declared base.

Blocking — stale/divergent base

  • GitHub reports mergeable=false, mergeable_state=dirty.
  • PR #17 targets fork main at 202f84cd13f35d005b596265d7ce8d1bf22c5a7c, but the branch is 16,616 commits ahead and 3 commits behind that base.
  • The PR therefore exposes 8,101 changed files, 2,127,561 additions, 176,748 deletions, and 10,000 commits, while the intended implementation is a single 7-file commit. Merging this PR would import massive unrelated history and conflict with current fork main.

Required remediation

Rebuild/rebase the existing branch onto the current fork/main, preserve only the intended same-card Review commit, resolve conflicts without dropping the already-merged PR #14/#16 protections, rerun the focused Kanban lifecycle/security suite, force-push the same PR branch, and resubmit this same Kanban card with the new immutable 40-character head SHA. Acceptance: PR changed-file/commit scope matches the intended implementation, GitHub reports clean mergeability (or an explicitly understood non-code gate), and exact-head checks are green.

@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: 95afcabf19

ℹ️ 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 hermes_cli/kanban_db.py
Comment on lines +4849 to +4852
"UPDATE tasks SET status='ready', assignee=?, result=?, completed_at=NULL, "
"consecutive_failures=0, last_failure_error=NULL, "
"claim_lock=NULL, claim_expires=NULL, worker_pid=NULL WHERE id=? "
"AND status='running' AND current_run_id IS NOT NULL",

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 Clear the PR identity before requeuing the implementation

When the implementer pushes a new head after changes are requested, ingest_pull_request() still finds this ready card through its old github-pr:<repo>:<number>:<sha> idempotency key; the synchronize path then archives it as superseded and creates a different review card, so the original implementer can no longer claim the canonical task. A replay for the old head can likewise change the ready card back to review and assign it to the reviewer. Clear or otherwise detach the prior-head identity during this transition so webhook convergence cannot destroy the same-card remediation flow.

AGENTS.md reference: AGENTS.md:L54-L57

Useful? React with 👍 / 👎.

@solovision24
solovision24 force-pushed the agent/dev-same-card-review-remediation branch from 95afcab to 99243b9 Compare August 2, 2026 22:18
@solovision24
solovision24 changed the base branch from main to dev/hermes-upgrade-t_16bbffad August 2, 2026 22:18

@solovision24 solovision24 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Orion Review — changes required

Blocking compatibility issue at hermes_cli/kanban_db.py: the new legacy_key_prefix query scans all historical remediation keys for this task. An archived/different-run legacy child therefore prevents every future same-card change request. This task already has exactly that history from the pre-fix runtime.

Required correction:

  • Fail closed only when the exact current-run key review-remediation:<task_id>:<current_run_id> is pre-seeded (or otherwise ignore archived prior-run history).
  • Preserve the exact-key preemption security control.
  • Add isolated-DB coverage proving an archived/different-run historical key does not block current same-card rejection.
  • Rerun focused/broader tests and resubmit the same card at a new immutable head.

No application, Supabase, database, auth, or deployment changes are involved.

@solovision24
solovision24 merged commit 6be3c48 into dev/hermes-upgrade-t_16bbffad Aug 2, 2026
37 checks passed
@solovision24
solovision24 deleted the agent/dev-same-card-review-remediation branch August 2, 2026 23:18
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