Current release controls and platform coverage: common CI and deployment contract.
General-purpose colleague notifications with Markdown, explicit acknowledgements, a browser inbox and an agent skill for handling a complete notification backlog. Use it for sales, finance, hiring, operations, documents or any other work. A notification may stand alone or link to evidence in another system. Underlying task completion stays in its source system.
Send FYIs, review requests or action requests to one or more colleagues. Subjects, Markdown bodies and optional document/task/record/URL references are immutable after publication. Senders can withdraw with a reason; corrections are new notifications. A sender-scoped submission key makes identical publication retries return the existing notification, while changed payloads conflict.
Send to existing directory users or exact email addresses in the configured Workspace domain. Email destinations without an eligible account wait for the matching verified Google sign-in, for up to 30 days. They appear in the sender's backlog as awaiting first sign-in or expired. No email invitation is sent and no placeholder authentication account is created. Pending deliveries are not claimed after withdrawal or expiry; a sender must publish a new notification to reissue one. Existing claimed history is never reassigned after an email change. Email aliases are not automatically merged.
Recipients explicitly mark read, acknowledge (with an optional Markdown note), archive or unarchive. Acknowledgement is receipt and understanding, not task completion. SQL reads, summaries and background fetching never mutate read state. Senders see recipient states; recipients see only their own recipient state. Administrators have no ordinary-user privacy bypass. Operator database access remains a trusted maintenance capability.
Manual availability is available, busy, in a meeting, away or not set, with an optional message and expiry. Expired statuses display as not set. Availability is visible to colleagues; alert-pause preferences are private. Neither status nor pausing alerts prevents inbox delivery. Deadlines do not schedule reminders.
The browser supplies Inbox, Sent, Archived, Markdown details and preview, composition, status and alert settings. Its sidebar searches notification subjects, messages and exact IDs across the authorized backlog. Permanent /#/notifications/<id> links restore the selected notification after sign-in, including archived records outside the current result page. View, text search, filter and page are URL state; Copy record link omits browsing filters and Copy search link preserves them. Opening a record never marks it read or acknowledges it. Desktop alerts require permission and an open tab. Background Web Push, mobile closed-app alerts, automatic presence, calendar integration, reminders and attachments are outside this version. Notifications support shared chronological conversations with their original participants. Browser/OS settings may suppress desktop alerts; dismissing one does not acknowledge the notification.
The browser favicon overlays the unread inbox count on the NotifyContext mark; the page title and sidebar show the exact count. Archived and withdrawn notifications do not count. Private, authenticated realtime signals trigger filtered SQL refreshes without exposing notification content. Refresh also runs after reconnect, on return to the tab and every 60 seconds as a fallback. Suspended or closed tabs cannot promise immediate updates. Desktop-alert pauses do not hide the unread count. Signing out or changing accounts clears the tab indicator; connection failures retain the last successful count. Opening a notification still does not mark it read.
See data model, security, validation evidence and deployment.
The pinned server's synchronous filtered snapshots give each account a private SQL
copy of the rows its policies admit. The copy is reused while the source database is
unchanged; any committed write, including publications, recipient actions, withdrawals,
Google claims and status or account changes, invalidates every retained copy first.
A read after a confirmed write therefore observes it, with current authorization.
Each cold build still exports the account's whole visible dataset, even for a one-row
query; warm reads skip that export. At most maxConcurrent (four) copies are retained,
least recently used first, in private server temporary files.
Snapshots copy ordinary source indexes over exported columns, never partial or
expression indexes. Migration 1790300500_lookup_indexes.js therefore adds ordinary
indexes for recipients and references by notification and a sender's notifications by
date. They serve the export policies, hook lookups, detail reads and Sent view.
Background snapshots, trackChanges and maxConcurrentPerRequester are deliberately
not configured: background reads are eventually consistent, and per-account admission
would reject concurrent reads from several tabs with HTTP 429. Measurements are in
validation evidence.
Build the exact server commit in POCKETCONTEXT_VERSION in an isolated PocketContext checkout using the Go version in its go.mod, CGO and a C compiler:
make buildBuild browser assets with Node.js 22:
npm --prefix frontend ci
npm --prefix frontend run buildStart from this application directory so hooks, migrations, configuration and generated pb_public/ resolve correctly. Use an absolute private data directory; tests always use disposable storage.
/path/to/pinned/pocketcontext serve --dir /absolute/private/notifycontext-data --http 127.0.0.1:8090Open http://127.0.0.1:8090. No real users or domain records are seeded. An operator provisions verified ordinary users through maintenance REST/dashboard, or configures Google Workspace JIT. The password form is available for provisioned accounts during local evaluation. The official PocketBase SDK LocalAuthStore stores browser tokens under notifycontext.auth in local storage. Login persists across tabs and browser restarts; logout and account changes clear private views across tabs. Tokens are accessible to same-origin JavaScript. Active browser sessions renew at most every five minutes; late responses cannot restore a signed-out session. HTTPS is required outside loopback for desktop alerts.
PocketBase's existing default users collection serves humans and agents. Configure a separate Google OAuth Web client with NOTIFYCONTEXT_GOOGLE_CLIENT_ID, NOTIFYCONTEXT_GOOGLE_CLIENT_SECRET and NOTIFYCONTEXT_GOOGLE_WORKSPACE_DOMAIN. Both credentials must be supplied together. Verified provider claims, exact hosted domain and email domain are validated on the server; client-selected provisioning fields are ignored. Direct signup is blocked. JIT admits ordinary colleagues, never administrators. Without a configured domain, Google login requires an existing account.
Disable an account to revoke its tokens. Changing verification also rotates tokens; unverified accounts cannot use the app. Account deletion is blocked to preserve attribution. Google Workspace suspension does not revoke an already-issued app session: offboarding includes disabling the app account. The directory exposes IDs and names, not emails or auth fields. Direct-Google/password sessions last seven days; hosted-identity app tokens last at most fifteen minutes. The portable client renews each through its original authentication method.
Run notifycontext login --url https://notify.pocketcontext.com --email you@pocketcontext.com.
The shared IdentityContext client opens a hosted sign-in URL, or prints it over SSH.
Complete Google sign-in in your browser and paste the single-use code into the
original terminal. The verifier stays in that process; no callback tunnel is needed.
A valid shared identity session can be reused when signing into the other pilot app.
Shared identity credentials live in $XDG_STATE_HOME/pocketcontext-id/ (default
~/.local/state/pocketcontext-id/) with private directory/file permissions. They
expire after seven idle days or thirty days absolute. App URL/email defaults and
app tokens remain under the existing notifycontext state directory. App tokens last
at most fifteen minutes and cannot be extended by PocketBase auth-refresh; the
client requests a new signed assertion from IdentityContext instead, only when
the saved token expires within two minutes or cannot be read; whoami uses a
fresh token as is. Renewal
never opens a browser during ordinary commands and never falls back automatically.
Identity assertions are single-use, valid for sixty seconds, and bound to this
application's exact configured audience. Account disable and existing application
authorization still apply independently.
Explicit fallback remains notifycontext login --google --no-browser; over SSH,
forward port 8765 from the browser computer to the CLI host before using it.
login --password remains explicit for provisioned password accounts. Direct
Google/password sessions retain their existing application lifetime. Full
offboarding therefore requires disabling the identity account and the app
accounts. Central disable immediately blocks new assertions; already issued
identity app access expires within fifteen minutes.
notifycontext logout removes this app's cached token, retaining shared identity
sign-in. Use identitycontext logout --email you@pocketcontext.com to revoke the
shared identity session; already-issued app tokens retain their bounded lifetime.
logout --forget also removes this app's matching URL/email defaults.
For shared-session management, install the separate identitycontext command once;
the app launcher does not put it on your normal PATH:
uv tool install 'pocketcontext-identity @ git+https://github.com/pocketcontext/identitycontext.git@f6bb3b147e2e4d9a82b447e54811b959c6543a69'Use uv tool dir --bin to find the executable directory and add it to PATH if needed.
Sign in with notifycontext login --url https://notify.pocketcontext.com --email you@pocketcontext.com. For password authentication use login --password with NOTIFYCONTEXT_USER_PASSWORD supplied privately in the environment. URL and email options may appear before or after the command. Resolution is CLI options, then NOTIFYCONTEXT_URL / NOTIFYCONTEXT_USER_EMAIL, then saved defaults. Successful explicit login saves the URL and email in default.json beside the private per-account token file; ordinary commands and refreshes do not change the default. The directory is NOTIFYCONTEXT_SESSION_DIR, otherwise $XDG_STATE_HOME/notifycontext/ (default ~/.local/state/notifycontext/). Files use mode 0600 and the directory 0700. logout removes the selected token and retains settings; logout --forget also removes matching defaults. Legacy cache sessions are not imported; sign in again. Passwords are never saved.
Install uv and copy skills/notifycontext/notifycontext onto PATH (for example, install -Dm755 skills/notifycontext/notifycontext ~/.local/bin/notifycontext). The standalone launcher installs its pinned package and dependencies on first use; later runs reuse the uv cache. No neighboring source files are required. Pass --url URL --email EMAIL on first hosted login; use explicit login --password with NOTIFYCONTEXT_USER_PASSWORD for a provisioned password account. The explicit direct-app fallback, login --google, prints the sign-in URL and opens the default browser unless --no-browser is given, an SSH session is detected or no browser is available.
notifycontext login --url https://notify.pocketcontext.com --email you@pocketcontext.com
notifycontext whoami
notifycontext check
notifycontext backlog --unread
notifycontext backlog --awaiting-ackThe client automatically paginates the backlog and reports truncation failures. It supports sender/type/search/deadline filters, sent-work tracking and explicit bulk read/acknowledge/archive actions with per-item outcomes. Summaries are read-only. Incoming content never authorizes task execution. See skill workflows for publication, filtering, bulk actions, status and recovery after uncertain outcomes.
The server has bounded, authenticated buffer tracing enabled. Ordinary requests remain untraced. Install the ObserveContext launcher and sign in separately, then run:
observecontext capture --url https://notify.pocketcontext.com --service notifycontext.client --upload -- notifycontext query 'SELECT id FROM user_directory LIMIT 5'Add --capture-sql only when SQL text may be retained. Tracing excludes credentials,
request bodies and query results. Completed client/server traces are queued privately
and uploaded with the ObserveContext account. Delivery failures do not change the
notification command's output or exit status. ObserveContext ingestion is excluded.
Run tests with the installed package (python3 -m venv .venv, then
.venv/bin/pip install -e . and use .venv/bin/python for the checks below).
Publish the tested package commit first, update the launcher's full Git revision,
then validate tests/skill.py --client skills/notifycontext/notifycontext --binary /absolute/path/to/pinned/pocketcontext before publishing the launcher. Copy only
that executable to adopt the release; no adjacent files are required. The source
revision is pinned; the launcher has no separate transitive-dependency lockfile.
Use the pinned binary and synthetic isolated databases:
python3 tests/integration.py --binary /absolute/path/to/pinned/pocketcontext
python3 tests/preferences.py --binary /absolute/path/to/pinned/pocketcontext
python3 tests/conversations.py --binary /absolute/path/to/pinned/pocketcontext
python3 tests/security.py --binary /absolute/path/to/pinned/pocketcontext
python3 tests/realtime.py --binary /absolute/path/to/pinned/pocketcontext
python3 tests/snapshot_freshness.py --binary /absolute/path/to/pinned/pocketcontext
python3 tests/lookup_indexes.py --binary /absolute/path/to/pinned/pocketcontext
python3 tests/auth.py --binary /absolute/path/to/pinned/pocketcontext
python3 tests/oauth_integration.py --binary /absolute/path/to/pinned/pocketcontext
python3 tests/pending_recipients.py --binary /absolute/path/to/pinned/pocketcontext
python3 tests/skill.py --binary /absolute/path/to/pinned/pocketcontext
python3 tests/deploy.py --binary /absolute/path/to/pinned/pocketcontext
python3 tests/backup.py --binary /absolute/path/to/pinned/pocketcontext
python3 tests/client.py
python3 tests/rate_limit.py --binary /absolute/path/to/pinned/pocketcontext
python3 tests/oauth.py
python3 tests/identity_client.py
python3 tests/identity_integration.py --binary /absolute/path/to/pinned/pocketcontext
python3 tests/deploy_workflow.pyFrontend browser commands and actual results are recorded in validation evidence. Container release gates are python3 docker/smoke.py config --image notifycontext:ci, smoke and restore. The populated restore drill preserves synthetic notifications, users and access rules. Generated assets, local databases, caches and credentials must not be committed.
The application domain model is independent. Authentication, Google login, account lifecycle, container replication and locked deployment patterns were adapted from RaiseContext d9e337a05fddfdc26e082f8e1a1e3b0efb0c0e52; filtered-snapshot patterns were inspected in ChatContext 7fac3712007b8d123620f46eb93888bf8e51118b. The server pin is 5f1b8f53e0af9d45cb0b396a2ecfb4e9932dca5a.
Source is public at https://github.com/pocketcontext/notifycontext. The public application is deployed at https://notify.pocketcontext.com; see deployment status for verified release evidence and remaining setup.
Superusers inspect GET /api/context/maintenance and toggle with
PUT /api/context/maintenance using {"readOnly":true,"expectedGeneration":N}.
Use the returned generation; wait for confirmed read_only before taking a final
migration snapshot. Active writes drain, subsequent mutations return 503, and
authorized SQL reads and original downloads remain available. Existing sessions
can refresh; login flows requiring writes may fail. Thaw explicitly with
readOnly:false and the current generation. Stale generations return 409.
The private pb_data/maintenance.json marker must travel with a recovery snapshot.
Frozen startup preserves the existing database, settings, OAuth identities and
operator credentials; it skips restore and bootstrap provisioning and refuses
missing databases, unsafe markers or pending migrations. This is not cross-host
fencing: pause CD and stop/disable the source writer before activating a replacement.
Release gates use synthetic data:
python3 tests/maintenance_entrypoint.py
python3 tests/maintenance.py --binary /absolute/path/to/pinned/pocketcontextReplicated startup waits for an initial Litestream IPC sync before serving. An
unreachable replica fails startup. Fresh databases require a separate explicit init command before this handshake; frozen starts always require the existing database. This
ensures clean shutdown can sync even before the first periodic monitor tick.
To store PocketBase API uploads in a private S3-compatible bucket, provide all of
NOTIFYCONTEXT_S3_BUCKET, NOTIFYCONTEXT_S3_ENDPOINT,
NOTIFYCONTEXT_S3_REGION, NOTIFYCONTEXT_S3_ACCESS_KEY_ID, and
NOTIFYCONTEXT_S3_SECRET_ACCESS_KEY. R2 uses region auto and its account S3
endpoint. Optional NOTIFYCONTEXT_S3_FORCE_PATH_STYLE is exactly true or
false, default true. Partial configuration fails startup without logging
credentials. A writable restart with stored S3 enabled requires explicit complete
configuration, preventing accidental fallback to local disk. File credentials must
be scoped to the primary bucket; Litestream uses a different bucket and key.
The production container requires complete primary S3 and Litestream configuration. Direct local server development can still use local files.
These credentials and the primary file bucket are separate from the
LITESTREAM_* SQLite replica configuration. This application currently has no
domain attachment feature; the setting also covers PocketBase file fields such
as the default user avatar. It does not add attachment APIs or change file access
rules. Buckets must remain private and downloads go through PocketBase.
Frozen startup requires complete S3 configuration matching stored settings, including credentials, and rejects changes before serving. Direct local server frozen starts remain supported when S3 is disabled; the production container requires S3. Container preflight rejects partial settings and sharing either the primary file bucket or access key with Litestream. Enabling S3 does not copy existing files: reconcile every referenced object and its checksum before switching a production database. Preserve the maintenance marker and stop the old writer before thawing the replacement. Litestream replicates SQLite, not primary bucket contents; plan file retention independently. This container startup refactor has not been deployed. It does not migrate existing files or production databases.
Validate the configuration and frozen-restart contract with:
python3 tests/object_storage.py --binary /absolute/path/to/pinned/pocketcontextThe container release gate also exercises a disposable MinIO service with separate bucket-scoped file and replica credentials. It creates a synthetic protected-file collection without changing the application schema, verifies owner/other-user/ anonymous downloads, freezes and restarts, and makes a late upload with a one-hour replication interval. Recovery compares every logical database row before deleting the source volume, then verifies original and late-upload bytes on the destination. A third phase thaws, uploads again and cleanly stops the second instance, deletes its volume, and checks normal entrypoint recovery into an empty third volume. This path automatically restores SQLite and initializes auxiliary state, without a manually copied marker or auxiliary database. Only one writer runs at a time.
For a planned frozen migration, copy maintenance.json and a consistent
auxiliary.db backup alongside the Litestream-restored data.db. Frozen startup
cannot initialize a missing auxiliary database. The test copies auxiliary state
from the stopped synthetic source with SQLite's backup API and verifies it; this
is not a claim that Litestream currently replicates auxiliary.db.
python3 docker/object_storage_smoke.py --image notifycontext:ciThis gate builds the pinned local MinIO fixture and removes its synthetic containers, volumes and network. It uses no live bucket or production credentials.
Local validation on 6 October 2026 passed image build, container configuration, smoke and populated restore, plus the three-stage primary S3 recovery gate and stale-snapshot/private-copy regression checks. These used the pinned server and isolated synthetic data; images remain local and production has not been changed. Node.js 22 frontend build, all 22 browser tests and the actual-server browser workflow also passed.
The image uses one Python entrypoint with required private primary S3 and Litestream
storage. LITESTREAM_DISABLED is unsupported. Existing volumes start normally;
an empty volume must have a recoverable replica. A missing, unreachable or damaged
replica stops startup without creating a new application.
For a genuinely new installation, run the same image, private environment, network
and /storage volume once with command init, then start it normally. Initialization
refuses a populated replica or nonempty database directory. An interrupted init
leaves initialization.pending; preserve that volume and recover deliberately.
Do not run init to repair a missing production replica.
Recovery stages SQLite outside the live data directory, checks integrity, inventories
all actual PocketBase file fields (including user avatars), and streams every referenced
S3 file to verify readability and complete transfer before installing the database
atomically and syncing the directory. Every start, including restarts on an existing
volume, downloads these files in parallel (NOTIFYCONTEXT_VERIFY_CONCURRENCY, 1–64,
default 16) so the server becomes ready within ONCE's fixed 120-second deployment
wait; the first failure refuses startup. NotifyContext has no authoritative file hashes;
this check does not establish cryptographic content integrity. Primary bucket backups
and retention remain separate. Frozen recovery additionally requires the private
maintenance marker and consistent auxiliary database; Litestream restores neither.
Run python3 tests/entrypoint.py for startup, interruption, configuration, file inventory
and staged recovery safety checks. Container smoke fixtures explicitly initialize
fresh databases against separate, bucket-scoped synthetic MinIO identities.
After successful main-branch image publication, image.yml deploys through the
main-only pocketdeploy-v2 GitHub environment when COLORS_PROFILE=pocketdeploy-v2
and CONTEXT_DEPLOY_PAUSED is not true. Publication retains its separate
NOTIFYCONTEXT_PUBLISH_ENABLED guard. Set the pause to true to publish without
deploying; it does not interrupt a deployment already running.
The PocketDeploy SSH key sends no command and uses pinned host keys. The host's
stop-first policy preserves one writer, uses a 300-second graceful stop and
preserves volumes. It does not automatically roll back. NotifyContext moved from
once-pocketcontext-v2 to the private pocketdeploy-v2 scaffold on 24 October
2026 by recovery from its replica. ONCE automatic updates remain disabled. The app-local
legacy deployment wrapper, installer and ONCE fragment were removed.
See deployment controls and recovery.
A recipient's nonempty acknowledgement note brings the original notification into the sender's Inbox as unread, ordered by the latest comment. Mark comments read and Archive comments act only on the sender's inbox state. Another recipient's later comment brings it back. Sent always retains the original notification. Blank acknowledgements do not resurface; emoji comments do. Opening details still never marks anything read.
The migration includes existing comments (even when recipients archived their copy), without historical desktop alerts. Each recipient still has one immutable acknowledgement. Shared conversations provide separate repeat comments without changing historical acknowledgement-note visibility. See the local synthetic preview.
Agents can use backlog --feedback --unread for the sender comment queue and
update notification_feedback ID '{"expected_revision":N,"action":"read"}'
(or archive / unarchive) for explicit triage. backlog without --feedback
continues to return recipient delivery rows; --sent retains its existing semantics.
Feedback --since/--before filter the latest comment time. Read-only retrieval never
changes either queue. Use the matching published client launcher for the current server schema.
Triage now uses split buttons: the labeled primary action combines compatible work (Acknowledge & archive, Read & archive, Read & archive comments), while the arrow offers individual actions. Each combined action is atomic and version-checked. Acknowledgement remains explicit; reading/archiving alone never acknowledges.
Each notification has one shared chronological conversation. Its sender and claimed recipients can post multiple immutable Markdown comments; corrections are new comments. The original addressed participants are fixed. A pending email recipient gains access to the shared history when their verified account claims delivery. Historical acknowledgement notes keep their original sender/author visibility and are not copied into the shared conversation.
Commenting does not acknowledge the original request. New comments return the conversation to every other participant's inbox as unread, even after archiving. Reading and archiving are personal, explicit actions; opening details or fetching comments never marks them read. Posting does not consume the author's unread work. Withdrawn notifications retain their history but accept no new comments.
Comments are stored atomically with participant inbox updates and audit history. An author-scoped submission key makes retries duplicate-safe. Conversation state uses revisions so an old read/archive action cannot consume newly arrived activity. Long conversations paginate, and browser search includes authorized shared comments. Native desktop alerts still require an open tab and permission.
Conversation browser validation uses the built assets and synthetic accounts:
python3 frontend/tests/conversations.py --binary /absolute/path/to/pinned/pocketcontextThe CLI provides comment NOTIFICATION_ID JSON, conversation NOTIFICATION_ID,
and backlog --conversations. Use a retained submission_key and body_markdown
for comment publication; conversation reads all shared comments through the
initial sequence without changing state. Personal triage uses
update notification_conversation_state ID with expected_revision and
action (read, archive, unarchive or read_archive). See the skill workflows
for complete examples.
Notification messages, shared comments, private acknowledgement notes and withdrawal reasons use one Write / Preview editor. Preview renders the same sanitized Markdown as the saved content, including withdrawal reasons. An empty draft shows “Nothing to preview yet”. Switching tabs preserves the draft and does not submit, mark read or acknowledge anything. The submit action remains available from either tab; validation returns to Write when a required value is missing.
Conversation triage uses the existing split-button pattern: Read & archive is the primary action for unread inbox conversations, with Mark read and Archive available in the dropdown. Available actions adapt to read and archived state.
In profile settings, General → After archiving a conversation chooses whether Inbox triage stays on the conversation (the default), opens the next older or previous newer conversation, or returns to the list. The preference is private to the account and follows it across devices. Archive, Read & archive and Acknowledge & archive use it only after a successful write. Sent and Archived views keep their existing behavior.
Navigation follows the current search and filters across pages. At the end of the chosen direction, or when the opened conversation is outside those results, it returns to the list without wrapping. Opening a destination never marks it read or acknowledges it. Drafts remain in the current tab. Delete and per-conversation mute are not added; desktop-alert pauses remain separate.