Repository navigation
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
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. Comment |
|
Thanks for your first pull request to Orbit. Two things that will save you a review round: A maintainer will review this shortly. Ask anything on the thread. |
imshashank
left a comment
There was a problem hiding this comment.
The credential domains, grant/version binding, original-membership checks, consent validation, and refresh/revocation handling hold up in the reviewed paths. The focused migration/rollout, core auth, and MCP suites pass. I agree the HMAC password-hashing alert is a false positive and have explained/resolved that review thread; its underlying code-scanning disposition still needs to be completed.
The deployment stack is blocked: this head and the pinned compatibility-stage artifacts still carry the superseded 0030, so an actual release after current #516 fails on its checksum. Please provide synchronized, separately deployable stage 3a and 3b artifacts and verify #516 -> stage 3a release/deploy -> stage 3b release/deploy. Deploying only the final checkout applies both migrations without the required intermediate runtime deployment.
PR #524: local staged deployment validationThe single-instance local production-build sequence passed. No production environment was touched. The accompanying evidence bundle contains the file paths referenced below. The rehearsal ran on 14 October 2026 against one isolated database, preserving its data through all migrations and runtime switches.
Each stage was built separately with The Docker network was internal, HTTP was exposed only through loopback at Deployment sequence and schema checks
Release logs show Credential continuity and Agent permissions Domain fixtures and an Argon2id password account were prepared locally. Sessions and OAuth artifacts were issued through real HTTP password login, dynamic client registration, S256 PKCE authorization, consent decisions, and token exchanges. No sessions or OAuth tokens were inserted as fixtures. Requests and assertions are retained in http-evidence.jsonl ( The original #516 Human access credential retained fingerprint 3a rejected Agent consent with HTTP 400/ After issuance, disabling the gate and then rolling runtime back to 3a rejected the existing Agent access credential with HTTP 401 for initialization, tool listing, and tool calls. Human access/refresh remained functional. Restoring 3b with the gate enabled restored the same Agent credential, and the original Human credential still created/read an issue. Final database assertions confirmed four legacy grants, one explicitly bound Agent grant, preserved NULL/explicit issue Owners, and unchanged historical identity snapshots. Corrections and limits The log retains preparation failures: an unsupported fixture role This validates a serial, single-instance local switch. It does not establish Node 22 parity, multi-instance or zero-downtime rollout, Vercel behavior, browser consent UI, passkey step-up, external-provider authentication, or production rollout. A full repository |
|
Recorded the security disposition for CodeQL alert 49 as a false positive after checking the data flow. mcp-token.ts:60 verifies a keyed HMAC-SHA-256 signature over a grant-bound OAuth bearer credential with BETTER_AUTH_SECRET and timingSafeEqual; this is not human password hashing. The shared alert also affects #525. The code-scanning rule remains enabled. The staged production compatibility rollout and final fresh checks are still required. |
imshashank
left a comment
There was a problem hiding this comment.
The source changes requested in the prior review are fixed. Independently verified the exact #516 -> stage 3a 94b92a2 -> stage 3b 07ab2f8 release sequence, unchanged ledger prefixes, repeat releases, original v1 credentials, and stage 3a legacy writes after 0032. Current migration tests pass 36/36, core authorization/consent/token tests 39/39, MCP authorization/server/tool tests 75/75, and web provider/consent/settings tests 51/51. Workspace types, lint, and policy checks pass. The HMAC CodeQL alert is recorded as a false positive with its rationale.
This is source approval. Keep the PR as a draft until the stage 3a compatibility runtime is separately deployed and verified in production before applying 0032. Update with current main and obtain fresh green checks before the final merge. Do not run the final checkout's release while the pre-3a runtime remains active.
|
@yxr-2025 a heads-up for the whole stack. #531 merged Please merge main and regenerate the stack's migrations with drizzle-kit so they follow |
|
@imshashank, the migration synchronization requested in your latest comment is complete across the stack. Both rollout stages and #525 now include main
The MCP rollout runbook, Issue write runbook and PR descriptions now use these numbers and pinned artifacts. Fresh validation
New rehearsal evidence, 23 October 2026 Replayed the actual immutable main -> 3a -> 3b -> Issue write checkouts against one dedicated local PostgreSQL database,
Existing business rows, historical identity, consent and legacy credentials survived. The main-issued credential remained accepted through the compatibility and binding upgrades. The 3b service created two exact read-only Agent grants for one client/user. The actual 3a service then created/updated Human issues and reauthorized the legacy grant after Sanitized excerpts from the new rehearsal logs
{"mode":"main","first":{"mode":"migrated","applied":32,"total":32},"second":{"mode":"current","applied":0,"total":32},"drift":"current"}
{"mode":"stage3a","first":{"mode":"migrated","applied":1,"total":33},"second":{"mode":"current","applied":0,"total":33},"drift":"current"}
{"mode":"stage3b","first":{"mode":"migrated","applied":1,"total":34},"second":{"mode":"current","applied":0,"total":34},"drift":"current"}
{"mode":"stage4","first":{"mode":"migrated","applied":1,"total":35},"second":{"mode":"current","applied":0,"total":35},"drift":"current"}Both The rehearsal's two setup expectations were corrected: a valid fixture workspace slug, and the final-stage Owner initialization after Verified source trees:
This new evidence covers isolated PostgreSQL release/drift and service-level compatibility on the actual Linux checkouts. Production, multi-instance and Vercel rollout verification remain pending. Production is on hold. Both PRs remain Draft. No production deployment, target production database migration or feature-gate change has been performed or is being initiated. The separate 3a release/deployment/verification remains a prerequisite before applying Please re-check the synchronized artifacts and the evidence above when convenient. Thank you. |
|
Thanks @yxr-2025, I checked the renumbering. 0030 and 0031 are unchanged from main, the new migrations are 0032 to 0034 with increasing journal timestamps, and the snapshot chain links up correctly on both #524 and #525. CI is green apart from a label job that failed to start, which I re-ran. Nothing else needed from you right now. These stay as drafts until we do the staged production rollout. |
imshashank
left a comment
There was a problem hiding this comment.
Re-reviewed the current consent/binding head and pinned compatibility artifact 037e941. Released migration SQL, snapshots and journal prefix through 0031 are unchanged; 0032/0033 numbering and snapshot ancestry are correct. The exact main -> stage 3a -> stage 3b -> Issue write database rehearsal passed with repeat releases, immutable ledger prefixes, preserved historical NULL Owner/timestamps/Sync IDs and surviving legacy/Agent credentials. Current auth, provider/consent and rollout regressions pass. No additional concrete source defect found. This approval does not establish production readiness: keep the draft, merge current main and complete fresh reviews/checks, separately release and deploy stage 3a everywhere before 0033, and keep the Agent gate disabled until the documented runtime prerequisites are verified.
imshashank
left a comment
There was a problem hiding this comment.
Re-reviewed this head and retained stage 3a artifact 8cc8462. Released SQL, snapshots and journal entries through main's 0033 are unchanged; compatibility and binding correctly follow as 0034 and 0035. Actual main -> stage 3a -> stage 3b -> Issue-write rehearsal passed with 34 -> 35 -> 36 -> 37 ledger entries, repeat releases, immutable prefixes, preserved historical responsibility/timestamps/Sync ID, surviving legacy and separate read-only Agent credentials, and a working stage 3a legacy writer after global-index removal. Independently passed 44 Core auth, 56 Web OAuth/settings and 25 database release/rollout tests. No additional concrete source defect found. Preserve this draft: deploy stage 3a to every affected instance before 0035, and retain default-off gates until documented runtime checks pass. Refresh the PR description's superseded 037e941/0032/0033 rollout table to match the checked-in runbook before using it operationally.
|
Current-main integration follow-up after #554 merged as 58d7aa6: merge-tree now conflicts in packages/mcp-server/src/server.ts and tools/index.ts. Preserve the public app URL plumbing and the explicit Human/Agent identity argument, tool filtering and instructions together; do not resolve by dropping either side. Rerun scope/identity, canonical-link and OAuth tests on the integrated head. Before production rollout, rebuild and revalidate the retained stage3a artifact from the integrated baseline so deploying it does not roll back the newly shipped MCP-link behavior. Preserve the immutable migration prefix, separate stage3a deployment before 0035, default-off gates and the draft. The earlier approval applies to reviewed source head c1136de, not an untested merge resolution. |
|
Implemented through the reviewed compatibility and binding replacements #562 and #565, now merged with the current main integration. Migration 0035 has been applied separately and verified, preserving the existing ledger and credentials. Closing this superseded PR; the original source history is retained. |
Current integration and release instructions
The current-main integration continues in #565 on
fix/agent-consent-binding-current, preserving this PR's contribution history. This original PR remains atc1136dea41cbc9cc9d9efbf6095d33802a466001until 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.Release and deploy compatibility separately before applying 0035. The final consent checkout applies every pending migration without pausing for that runtime deployment. Exclude and drain retired OAuth/MCP runtimes before dropping the global index; verified compatible canonical writers may continue serving. Keep Agent gates off until their independent prerequisites are proven. Preserve expanded schema/history and the partial legacy index for rollback.
#565 contains the updated source, runbook, current-main focused verification and fresh CI/review status. Its final combined full verification and staged production evidence remain required. No production activation is implied by the historical approvals or tests retained on this original PR.
Refs #512, #523, #525, #562, #564, #565, #566.