GeezerVison is showing github.com — feat(id-hosted-worker): publication references, CDN path and unpublish (#12807) by dezren39 · Pull Request #15688 · developing-today/code
Conversation
dezren39
commented
Nov 26, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Part of #12807. Refs #9084.
Before: the media plane had references, capabilities and GC, but no way to publish content to the public tier, no CDN path, and no unpublish flow.
After: PublicationService (pkgs/id/hosted-worker/src/publication.ts) publishes content by creating a publication reference in the public database. No bytes are staged, copied or re-published. Anyone can then read the content through that reference alone, and unpublishing removes the reference.
How:
- Publish: requires a live reference held by the publisher in an authorized database (a content hash alone is refused) and a verified replica already in the public partition. It is idempotent per publisher.
- Capabilities: a short-lived read capability is minted only while a live publication reference exists. Unpublish stops new minting at once. Capabilities already minted expire on their TTL.
- CDN path: a publication-scoped signed URL, bound to the publication id and the current CDN epoch, minted only on adapters that declare
cdnEligible. The edge check also requires the publication to still be live. advanceCdnEpoch() is meant to run once per GC sweep epoch, so invalidation is epoch-paced, not instant, as the design records.
- Unpublish: only the publisher or an admin may unpublish. A non-publication reference is refused.
Tests are in test/publication.test.ts (13 cases). They cover reading through the publication reference alone, refusing capabilities once unpublished, a fake adapter that counts write-path calls to prove no byte copy, hash-only publish refused, CDN epoch invalidation, and authorization on unpublish.
Generated by Claude Code
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.
…h (component F, #12807)
Publication is a live reference in the public database, never a byte
copy. Adds PublicationService: publish (needs a live reference and a
verified public replica), capability minting from a publication
reference, a publication-scoped signed CDN path bound to the current
epoch, and unpublish (stops new minting immediately; CDN paths age out
at the next epoch).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
coderabbitai
Bot
commented
Nov 26, 2026
•
edited
Loading
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 45 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:
01d4d419-8049-4a97-92c9-8b51ba3ad906
Commits
-
Reviewing files that changed from the base of the PR and between 4045290 and eff6652.
Files selected for processing: 3
-
pkgs/id/hosted-worker/package.json
pkgs/id/hosted-worker/src/publication.ts
pkgs/id/hosted-worker/test/publication.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.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 26, 2026
This was referenced Nov 27, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
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.
|