GeezerVison is showing github.com — feat(pm-stack): derive authors from Access JWT (#1253) — salvage of archive PR #7383 by dezren39 · Pull Request #8624 · developing-today/code
Conversation
dezren39
commented
Nov 11, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Salvage re-application of the aggregator slice of #1253, recovered from closed archive PR #7383 (task 14941, salvage follow-on from task 14111 on #7297). The original work (branch queue/4964-1253-access-authorship, commit 5977e69) was bulk-closed unmerged in the 2026-11-08 archive disposition and exists nowhere on main; cherry-picked here verbatim onto current main — it applied cleanly.
Related to #1253 (design tracker stays open — this is the aggregator-only slice).
What
Config-gated Access-JWT author derivation for aggregator writes:
Evidence
- New: pm-stack/aggregator/src/access-identity.ts, wired in server.ts (comments, roadmap annotations, actions + batch); tests in test/access-identity.test.ts.
- Verified on the laptop (this re-application): access-identity tests 7/7 pass; full aggregator suite 2045 pass / 21 fail — the failure set is byte-identical to a pristine-main worktree baseline run the same hour (pre-existing environment failures, incl. the source-gate boot timeout); the +7 passing tests vs baseline are exactly this file's tests.
- The archive's remaining files are not re-applied: .pr-body-4964.md is the original PR's scratch body file, and coverage-snapshot.json was a janitor-run snapshot artifact.
![Autofix with [code]smith](/api/image?u=https%3A%2F%2Fcamo.githubusercontent.com%2F33b6f70f3541c4e93f4503d29cbfec051fa1b040d8e0ae9313a51c4ece44a627%2F68747470733a2f2f70722d636f6d6d656e74732d6173736574732e626c61636b736d6974682e73682f636f6465736d6974682f6175746f6669782d776974682d636f6465736d6974682d6461726b2d33782e706e67)
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Warning
Review limit reached
You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.
Next included review available in 23 minutes.
Check out review usage here.
View limit details
-
Limit details: You’ve used the included review currently available.
Learn how review limits work.
Review configuration:
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
fc7ac2ac-7d2e-4a20-9920-c0d6e7bafe6a
Commits
-
Reviewing files that changed from the base of the PR and between 3c42146 and 2809e82.
Files selected for processing: 3
-
pm-stack/aggregator/src/access-identity.ts
pm-stack/aggregator/src/server.ts
pm-stack/aggregator/test/access-identity.test.ts
- 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
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
| Review |
Status |
Commit |
Review trigger |
| 📝 Code Review |
✅ Completed 2026-11-11T09:30:10.239600Z |
2809e82 |
PR opened |
ℹ️ 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" or "@codex security review".
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 11, 2026
There was a problem hiding this comment.
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: 2809e82e5a
ℹ️ 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".
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
results.push({ index, objectRef, ok: false, error: parsed.error });
|
|
|
continue;
|
|
|
}
|
|
|
const batchAccess = await enforceAccessAuthor(req, parsed.value.author);
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verify the Access JWT once per batch request
When Access is configured and the JWKS endpoint times out, a 100-entry /api/actions/batch request performs 100 sequential verification attempts against the same JWT. fetchJwks caches only successful responses and gives each fetch a five-second timeout, so rejecting this single request can take roughly 500 seconds. A token with an unknown kid also forces a fresh JWKS request for every entry, even with a warm cache. Verify the request-level token once before the loop and retain only the asserted-author contradiction check per entry.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 13, 2026
|
Agent: repo-worker-code (lane any-a)
State: done — closing as SUPERSEDED; the work is already on main.
Evidence (shepherd pass, queue task 17218):
- This PR and PR feat(aggregator): config-gated Access-JWT author derivation for writes (#1253, salvage of #7383) #8645 are parallel salvages of the same archive work (task 14941, archive PR Archive disposition: archive/janitor-2026-11-07/4964 #7383). PR feat(aggregator): config-gated Access-JWT author derivation for writes (#1253, salvage of #7383) #8645 landed first: merge b6b57d1, commit 991f935 "feat(aggregator): config-gated Access-JWT author derivation for writes (design(pm-stack): one identity across the stack — SSO propagation from the public entry into every layer, roles replace asserted authorship #1253)" — same new
pm-stack/aggregator/src/access-identity.ts, same enforceAccessAuthor wiring into the write paths in server.ts, same test/access-identity.test.ts.
- A rebase of this branch onto current main (549db04) drops its only commit as patch-equivalent (git skipped-cherry-pick) and leaves an empty diff — nothing in this PR is missing from main.
- The one Codex P2 raised here (verify the Access JWT once per batch request, comment 4536166816) was raised and fixed on the landed line: e4dda6e "fix(aggregator): verify Access JWT once per batch; owner derives the standing drew identity" memoizes verification per request via
createAccessAuthorEnforcer, keeps the per-item contradictory-author check, and adds a regression test (certs endpoint down, 3 enforcer calls, exactly 1 fetch). No separate fix is needed from this PR.
- Issue design(pm-stack): one identity across the stack — SSO propagation from the public entry into every layer, roles replace asserted authorship #1253 (the stack-wide identity design) remains open and in progress; this slice of it is complete on main.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|