Skip to content

feat(issues): add controlled Personal Agent issue writes and responsibility - #525

Closed
yxr-2025 wants to merge 52 commits into
Noveum:mainfrom
yxr-2025:feature/issue-actor-writes
Closed

yxr-2025 wants to merge 52 commits into
Noveum:mainfrom
yxr-2025:feature/issue-actor-writes

Conversation

@yxr-2025

@yxr-2025 yxr-2025 commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Current integration and release instructions

The current-main integration continues in #566 on fix/issue-actor-writes-current, preserving this PR's contribution history. This original PR remains at ccc12bfc35526f0d87ad28010b1f4046163ecbc2 until its replacement merges. Its earlier artifact and migration tables are superseded.

The active sequence is reader #564, compatibility #562 with 0034, read-only bound consent #565 with 0035, then controlled Issue writes #566 with 0036. Released history through 0033 stays immutable. The deployable compatibility artifact is e4c50b1779c34bf15674cd5588b7dd703e3ca4ca.

Use a separate schema checkout, migration release and runtime deployment for every stage. Do not run this cumulative checkout's release command as a substitute for the compatibility deployment. Keep Agent gates off; write activation requires the full reader/writer/OAuth runtime floor and fresh explicit write consent. Existing read-only grants never gain writes automatically. Preserve expanded schema, historical Actor/Owner data and the compatible rollback floor.

#566 contains the updated source, runbooks, current-main focused verification and fresh CI/review status. Final combined full verification and staged production evidence remain required; historical source approval does not authorize unresolved integration or activation.

Refs #215, #512, #523, #524, #562, #564, #565, #566.

@coderabbitai

coderabbitai Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown

Thanks for your first pull request to Orbit.

Two things that will save you a review round: bun run verify runs the
same four checks CI does, and the repo has no comments in code by policy,
so bun run check-comments will flag any you added out of habit.

A maintainer will review this shortly. Ask anything on the thread.

@github-actions github-actions Bot added documentation Docs, the README, or anything that explains Orbit tests Test coverage and test infrastructure area: web The Next.js app and its UI area: mcp The MCP server, its tools and its OAuth area: database Schema, migrations, queries, seed area: auth Sign-in, sessions, passkeys, OAuth area: policy Roles, permissions and authorization area: issues Issues, lists and boards area: integrations GitHub, Slack and webhooks labels Oct 6, 2026
@yxr-2025

Copy link
Copy Markdown
Contributor Author

@imshashank Thanks for the detailed review. The remaining findings are addressed in the current head, 32b5681:

  • Synced both cache fixes from feat(issues): add canonical actor readers and UI #523: compatibility updates now reconcile stale Actor identities, and updates/moves preserve unrelated detail and relation cache invalidation flags and timestamps.
  • Added organization-scoped canonical Agent activity to the AI-only filter, with regressions for edits and moves on Human-created Issues, activity after Agent unassignment, and organization isolation. Legacy Agent member behavior is preserved.
  • Enabled Agent unassignment in the properties menu, card controls, bulk edit, and the unassigned Board column. Regression tests verify the null API payload, canonical optimistic clearing, and unchanged Issue Owner.
  • Merged the latest main and resolved the conflicts while preserving the staged OAuth rollout and default-off write gate.

The full local bun run verify passes. CI is green for this head, including unit/integration tests, both E2E groups, build, lint/types, migrations/schema, CodeQL, and documentation/link checks: CI run.

The PR description is updated and both P2 threads are resolved. Could you please take another look when you have a chance?

@imshashank imshashank 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.

Every finding from the last round is fixed, and each one is proven by a mutation:

  • AI-only view. It now includes org-scoped canonical Agent activity. Removing the branch fails all four new tests, and removing just the organizationId predicate fails the isolation test.
  • Agent unassignment. It works from the properties menu, card controls, bulk edit and the Unassigned board column. Reverting the UI changes fails 7 tests across all four surfaces.
  • Cache fixes from #523. Synced, and reverting them fails the same two regressions.
  • HMAC alert. Dispositioned as a false positive.

One new blocker, and it's time-based: both new test files create a sprint ending 2026-10-15, and assertCycleInWorkspace rejects sprints whose endsAt has passed. CI went green on the 14th, but both tests now fail with "That sprint is no longer open.":

  • the core test that attributes sub-issues, bulk, cycle, relations, duplicate, archive and delete operations to the Agent;
  • the MCP move_to_cycle path.

The next CI run on this head, or on main after merge, would go red. Please derive both dates from Date.now(), for example starting yesterday and ending in 30 days. Everything else touched passes locally (224 core tests), it merges cleanly with main, and the checks are clean.

@imshashank imshashank 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.

The sprint fixtures are fixed exactly as asked: both start a day ago and end in 30 days, relative to Date.now(), and no hardcoded dates remain in the new test files. With every earlier finding already confirmed fixed, I'm approving the source.

Before this can move, it needs main merged in. #531 landed 0031_broad_lifeguard, which is now applied in production, so this branch's 0031, 0032 and 0033 collide with it. There's also a content conflict in issue-properties.tsx. Details are on #524, where the migrations start. Once that's sorted, the full CI needs to run on the merged head, since only three checks ran on this one. It stays a draft for the staged rollout.

@imshashank imshashank 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.

Confirmed the prior canonical Agent activity, UI unassignment, compatibility-delta/cache-settlement and relative sprint-date fixes. Focused Core, MCP, Web, Shared and migration/rollout suites pass. Current 0034 follows the correct regenerated 0032/0033 chain and the exact staged database rehearsal succeeds. This head inherits a newly reproduced reader-cache blocker from #523: an Actor profile patch clears an existing Issue-query invalidation and suppresses the next required fetch under the real app's 30-second stale time. The same reproduction fails independently on this exact head; carry the profile-invalidation fix into this branch. Current main also conflicts in use-issues.ts and issue-service.ts; preserve both move compare-and-set checks and the Agent transaction/current-resource locking during integration, then rerun full checks. Keep the draft and both deployment gates staged as documented.

@imshashank imshashank 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.

The inherited profile invalidation blocker is fixed and independently mutation-tested on this head: removing the preservation fix skips the required Issue fetch and fails cross-surface invalidation assertions; restoring it passes. Current-main move integration retains locked-current compare-and-set checks, both Assignee identities, Agent assignment undo/redo and Owner preservation. Independently passed 19 Shared policy/schema, 229 Core authorization/responsibility/concurrency, 81 MCP and 552 Web cache/realtime/UI/OAuth tests. Actual staged 34 -> 35 -> 36 -> 37 migration/runtime rehearsal passes, preserving the released prefix and legacy/Agent credentials. No additional concrete source defect found. Full local bun run verify passed all static and type checks, then stopped on root CLI subprocess startup timeouts; full local verification is not claimed green. Current-head CI, including both browser groups, is green. Preserve the draft and staged deployment gates; update the description's old artifact/migration table to the new 0034/0035/0036 chain before rollout.

Copy link
Copy Markdown
Contributor

Current-main integration follow-up after #554 merged as 58d7aa6: merge-tree conflicts in packages/mcp-server/src/server.ts, tools/index.ts and views.ts. Preserve public URL propagation, the explicit credential/Actor context and write-tool gating, and pass Actor-enriched rows through the URL-producing view functions. Review the automatically merged issue/planning/workspace tool call sites too, then rerun MCP scope/write authorization, canonical-link and Actor regression tests on latest main. Coordinate the refreshed stage3a artifact with #524 and keep all rollout gates and this draft staged. Approval remains pinned to ccc12bf; no unresolved integration or production activation is approved.

Copy link
Copy Markdown
Contributor

Merged the integrated continuation in #566 after releasing migration0036 separately and completing exact-head CI and review. It preserves the contribution history and the controlled Actor responsibility design, with the reviewed integration fixes. The production runtime cutover remains under the temporary write pause until its deployment floor and drain are verified. Closing this original in favor of the merged continuation.

@imshashank imshashank closed this Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: auth Sign-in, sessions, passkeys, OAuth area: database Schema, migrations, queries, seed area: integrations GitHub, Slack and webhooks area: issues Issues, lists and boards area: mcp The MCP server, its tools and its OAuth area: policy Roles, permissions and authorization area: web The Next.js app and its UI documentation Docs, the README, or anything that explains Orbit tests Test coverage and test infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants