Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 11 additions & 19 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,13 @@
# @pegma/sessions v0.1.1
# @pegma/sessions v0.2.0

The first release through the hardened path: a protected signed annotated tag,
a prepared artifact, and npm trusted publishing. `0.1.0` was published manually
after its release workflow failed and has no provenance; see
`docs/RELEASING.md`.
A dependency-alignment release: `@pegma/storage-core` advances from `0.3.0` to
`0.4.0`, matching the pin already used by webhooks, mail, and identity so host
dependency trees resolve a single storage-core and no longer need an npm
override to avoid two incompatible `Store` types. The
`@pegma/storage-azure-tables` test backend advances to `0.4.0` alongside it.

No behavioural change. The 2026-07-29 remediation pass over
`docs/securityscan.md` disputed all seven findings with reasoning recorded
inline — every suggested remediation would have traded a theoretical problem for
a real one — so nothing in the session port changed.

- Documents why the principal-revocation guard lease is deliberately never
consulted: expiry judged from an issuing host's clock lets a host running
fast release a guard taken seconds ago and issue a session inside the
revocation window. Recovery from a faulted revocation stays a repeat
`destroyAllForPrincipal`.
- Adds a test pinning that an issuer whose clock is a full lease ahead of the
revoker is still refused while a revocation is in flight.
- Records the 2026-07-29 dispositions in `docs/securityscan.md` and reformats
that file so `npm run format:check` passes.
No behavioural or public API change in the session port itself. The version
advances to `0.2.0` (rather than a patch) because hosts composing this package
must now supply a storage-core `0.4.0` `Store`, which is a breaking composition
change under `0.x` semver. The full memory and Azurite race suite passes
against storage-core `0.4.0` unchanged.
5 changes: 3 additions & 2 deletions docs/PROJECT_PLAN.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

## Status

**Stage:** Phases 1–4 are complete. `@pegma/sessions@0.1.0` is published;
**Stage:** Phases 1–4 are complete. `@pegma/sessions@0.1.1` is published;
RetireGolden is the first integrated consumer and pegma.dev is the second,
live consumer. The public API remains unstable.
live consumer. `0.2.0` is prepared, aligning `@pegma/storage-core` at `0.4.0`
across the stack. The public API remains unstable.

Phase 1 is merged on `main`
([PR #1](https://github.com/pegma-dev/sessions/pull/1), `f5ea435`,
Expand Down
24 changes: 12 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sessions",
"version": "0.1.1",
"version": "0.2.0",
"private": true,
"description": "Server-side session records for Pegma components.",
"license": "MIT",
Expand All @@ -26,7 +26,7 @@
},
"devDependencies": {
"@azure/data-tables": "^13.3.1",
"@pegma/storage-azure-tables": "0.3.0",
"@pegma/storage-azure-tables": "0.4.0",
"@types/node": "^26.1.1",
"azurite": "^3.36.0",
"prettier": "^3.9.6",
Expand Down
4 changes: 2 additions & 2 deletions packages/sessions/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pegma/sessions",
"version": "0.1.1",
"version": "0.2.0",
Comment thread
FlyOverCoderKY marked this conversation as resolved.
Resolved
Comment thread
FlyOverCoderKY marked this conversation as resolved.
Resolved
"description": "Hashed server-side session records with absolute and idle expiry.",
"license": "MIT",
"type": "module",
Expand Down Expand Up @@ -30,7 +30,7 @@
},
"dependencies": {
"@pegma/spine": "0.1.1",
"@pegma/storage-core": "0.3.0"
"@pegma/storage-core": "0.4.0"
},
"scripts": {
"build": "tsc -p tsconfig.json",
Expand Down
Loading