Current release controls and platform coverage: common CI and deployment contract.
An agent-maintained knowledge base on PocketContext. Sources, extracted passages, versioned pages, citations, links and publication history live in WikiContext. The browser reader renders published pages and updates when agents publish. Obsidian consumes a reproducible Markdown export. Ingestion and agent questions use the portable skill and authenticated APIs.
This repository is the WikiContext demo fork: every record belongs to a space, and each account has a private personal space. Personal spaces only at launch; group spaces (owner/editor/reader members) are supported by the data model, access rules and tests but are a later enablement with no ordinary REST management. SQL (filtered snapshots), REST, realtime and protected downloads each require active membership of the record's space, and foreign records look absent. See spaces. PocketBase's existing default users collection supplies identities, with verified Google enrollment and daily demo consent. Workspace-only authentication remains available for isolated non-demo validation. New logins gain their own personal space, never account administration. Operators disable accounts to revoke application sessions; Google suspension alone does not revoke an existing session. Re-enabling requires fresh login. Seven-day tokens renew during active Google client use.
Build the commit in POCKETCONTEXT_VERSION with its specified Go version, CGO and a C compiler:
# From a PocketContext checkout at the pinned revision:
make build
# From this application directory:
/path/to/pinned/pocketcontext serve --dir ./pb_data --http 127.0.0.1:8090The pinned build includes sqlite_math_functions,sqlite_percentile,sqlite_fts5.
Authenticated SQL supports json_each/json_tree and median/percentile aggregates.
The shared FTS5 index is removed: it spanned every space. Published-page search
uses private per-requester indexes configured in pocketcontext.json. The server
pin includes private-search support. Filtered SQL transparently reuses bounded
per-requester snapshots until any committed database change; authentication and
demo admission are checked on every request. See cache adoption
and private search.
Keep data outside Git. Provision users through operator maintenance, or configure a separate Google Web client with WIKICONTEXT_GOOGLE_CLIENT_ID, WIKICONTEXT_GOOGLE_CLIENT_SECRET and WIKICONTEXT_GOOGLE_WORKSPACE_DOMAIN. Register http://127.0.0.1:8765/callback and the approved origin's /api/oauth2-redirect. Use ordinary user credentials for knowledge operations. The public demo is deployed at https://wiki-demo.pocketcontext.com; see the deployment record for verified behavior and remaining operational checks. Public demo mode requires the separate admission, contact and generation configuration in demo operations. See release verification and deployment procedures.
In public demo mode, open the application origin, sign in with a verified Google
account and accept the daily demo terms. Password sign-in is disabled. Isolated
non-demo validation retains Workspace Google and existing password accounts. The reader is
read-only; agents continue to ingest, synthesize and publish through the skill.
Search opens ranked published-page results with plain excerpts and Load more.
The sidebar collection selector browses Pages, Sources and Passages. Source/passage text filtering searches evidence in the selected space, including evidence not yet cited in a publication, with paginated URL state. Permanent /#/sources/<id> and /#/passages/<id> links support authenticated evidence navigation and protected original downloads; source pages link to their passages. Copy record/search links exclude temporary file tokens. Page controls copy live or publication-pinned historical links. The sidebar remains available for browsing. / or Ctrl/Cmd+K focuses search; query
and publication are preserved in navigation. Wiki links, backlinks, an outline and
source citations support navigation. A citation opens its original passage and
offers an authenticated original-file download.
The live view adopts complete publications and rechecks after reconnect or tab
focus. Selecting a historical publication pins the view until you return to live.
Each publication can select a home page. /#/ opens that page and the sidebar marks it Home; unset or cleared choices open the built-in welcome index. Historical views retain their home choice, and explicit page links stay stable. The Welcome link (/#/welcome) always opens a searchable, topic-grouped index of every unarchived page in the selected publication, with an A–Z view and onboarding links drawn only from available pages. New or uncategorized pages remain visible under Other knowledge. Welcome and sidebar search use the same full-text search across published titles, summaries and contents. The sidebar starts with topic navigation; expand All pages for the complete catalog. The welcome directory supports topic browsing and an A–Z view, while additional onboarding guides remain under All onboarding guides. No company page catalog is bundled into the reader.
Unpublished revisions are never selected. Markdown supports tables, code, wiki
links with aliases/heading anchors, citation markers and callouts. Raw HTML and
embedded images are disabled. Obsidian plugins, block embeds, editing and two-way
vault synchronization are outside this reader's scope.
Published revision properties appear below the page summary, with additional fields under All properties. Field evidence opens the existing citation dialog; values without citations are labelled accordingly. Relationship links resolve within the selected publication. Resources, Credentials, Deployments, People and Groups in the sidebar open catalog views with property search, provider/deployment/lifecycle filters, missing ownership, sorting and 50-record pagination. Filters and publication selection are shareable URL state. Catalog search covers recorded properties and relationship names; full-text search continues to cover titles, summaries and page bodies. Catalogs use the complete selected publication, update atomically in live mode and show cards on mobile. People and Groups expose membership and group ownership within the selected publication. Person pages can record role, organization and a reviewed CRM link; group pages record purpose and members. Membership represents accountability, grants no permissions and sends no notifications. Nested groups and automatic CRM synchronization are outside scope. Agents maintain these relationships through cited revisions; properties are read-only in the browser.
The reader defaults to the account's personal space and shows a selector when more than one space is visible. Publications, evidence and search are scoped to the selected space. Demo onboarding shows daily consent, quotas and the UTC reset countdown. Signing in or restoring a session always shows saved preferences and an unchecked terms checkbox, including when opening a reader link. The choices are visible before sign-in. Two buttons accept the terms and open either coding-agent instructions or the wiki reader; each saves the displayed choices before opening its selected destination. Neither opens on login alone. Agent installation is offered only when the server advertises a released demo client.
The demo uses VaultContext’s light-only palette, header navigation and footer layout. The browser title is “Try WikiContext · Public demo”; saved theme preferences do not change its appearance.
Frontend source is in ui/: React, TypeScript and Vite, with bundled Markdown
rendering and the PocketBase SDK. Content reads use authenticated SQL; the SDK
handles ordinary user authentication, protected file tokens and SSE notifications.
The official PocketBase SDK LocalAuthStore keeps the application token in local
storage under wikicontext.reader.auth, shared across tabs and browser restarts.
If browser storage is blocked, login uses memory only and a page reload requires
sign-in again. Clearing site storage in another tab also clears the active session.
Logout synchronizes across tabs and clears reader state and subscriptions; account
changes discard pending responses and private views. Tokens remain accessible to
same-origin JavaScript. Active sessions renew at most every five minutes. Legacy
per-tab credentials are discarded, so the first visit after upgrading requires login. No provider secret is shipped to the browser.
Google login opens a popup from the sign-in button, retains the SDK's state and
PKCE checks, and expires after three minutes. Blocked popups show retry guidance;
visitors can cancel a pending attempt. Cancelled or expired attempts cannot save
a late session. The browser callback is /api/oauth2-redirect; CLI login uses
the separately registered loopback callback.
With Node.js 24 and pnpm 10.33.2:
cd ui
pnpm install --frozen-lockfile
pnpm typecheck
pnpm test
pnpm buildRun the pinned server from the application directory, then open its root URL.
The application hooks serve ui/dist with a restrictive Content Security Policy.
For frontend development, pnpm dev proxies /api to 127.0.0.1:8090.
The production container builds and serves static assets without a Node runtime.
Do not commit ui/dist or browser test output.
The standalone launcher skills/wikicontext/wikicontext requires Python 3.11+ and uv. Add its directory to PATH to use the commands below. Its first run installs the client from a pinned Git revision. For development and validation, install the current package in a virtual environment with python3 -m pip install .. Release the tested package commit first, then update the launcher to that full commit and verify the copied launcher through uv. The package pins its ObserveContext instrumentation dependency separately.
Install with npx skills add pocketcontext/wikicontext-demo --skill wikicontext, or copy skills/wikicontext/ to your agent's skill directory. It works outside this repository. Set WIKICONTEXT_URL and WIKICONTEXT_USER_EMAIL; use Google login for public demo accounts. Existing passwords are supported only outside demo mode. Commands operate in the selected space: --space ID, else WIKICONTEXT_SPACE, else your personal space; wikicontext spaces lists memberships.
The launcher pins the published pocketcontext/wikicontext-demo client at
ca78b763de03f25c0f9b8bb8fb232cb3657b0020, including space-scoped commands.
A published client does not mean the demo service has been deployed.
wikicontext login --google
wikicontext check
wikicontext spaces
wikicontext ingest /path/to/source.md
wikicontext search 'launch date'
wikicontext lint
wikicontext export-obsidian /path/to/vaultOver SSH, forward the CLI loopback port from your browser computer with ssh -L 8765:127.0.0.1:8765 user@host. The session file contains only the application token with private permissions. It lives in $XDG_STATE_HOME/wikicontext/ (default ~/.local/state/wikicontext/), or in WIKICONTEXT_SESSION_DIR when set, so clearing ~/.cache does not sign you out; a session left in ~/.cache/wikicontext/ by an older client is moved there on first use. logout removes both session files; it does not revoke copies elsewhere or remove the separate private audio and extraction caches, which stay under $XDG_CACHE_HOME/wikicontext/.
The ingest command uploads an immutable source and extracts passages; audio is normalized before upload by default. The agent then follows the skill to synthesize summaries/concepts, create citations/links, and publish a staging run. Uploading/extracting alone is not a completed knowledge-ingestion workflow. The server validates publication and rejects stale synthesis with 409. Use wikicontext stage-home RUN_ID --home SLUG --expected-revision N (or --clear-home) to stage the home choice and capture its expected base. Publish using the returned run revision without home flags. Home-only runs are supported; concurrent home changes return 409 and require reassessment. Direct publish --home/--clear-home requires an explicit --home-base page ID or empty string. No LLM runs inside the server or Markdown exporter.
Supported extraction: reviewed PNG/JPEG/WebP images (see below); UTF-8 text/Markdown and related text formats; text PDFs using local pdftotext; audio using ffmpeg, ffprobe and the configured Groq service. Audio ingestion authorizes transcription. By default the client stores mono Opus .ogg audio encoded from 16 kHz input at 16 kbps, then sends those same bytes to Groq. It checks duration and the 25 MB transcription limit before upload; large input recordings can fit after normalization. Local recordings remain untouched. Use ingest PATH --audio-storage original to upload the input bytes and transcribe a separate derivative. Normalization selects the first audio stream and discards video. Normalized files are privately cached for retry across failures and encoder upgrades. The stored Ogg embeds the input hash, conversion profile and converter version before transcription; private cache metadata and later rendition notes also retain the input filename and conversion settings. Exact-byte deduplication applies to the stored file; different encoder builds can produce different bytes. Set only this application's WIKICONTEXT_GROQ_API_KEY in the agent environment. Missing tools or invalid/oversize normalized audio stop before upload in the default audio mode. Scanned PDFs without text and provider errors stop extraction with resumable source storage. No OCR or background crawler is supplied.
Pillow is installed automatically with the client package for reviewed image ingestion. Run wikicontext ingest IMAGE --image-review REVIEW.json after viewing the original and preparing reviewed evidence. The client verifies and decodes static PNG/JPEG/WebP images, requires matching extensions, limits dimensions to 16,384 pixels per axis and 50 million total pixels, and preserves the exact original bytes. Review JSON must match the original SHA-256 and encoded dimensions before upload. It separates transcription, visual description and captions into region-addressable passages. A changed review requires a new --version; identical reviewed input resumes interrupted writes. Related audio source IDs and screenshot sequence are recorded in rendition notes, without replacing the audio. Image ingestion makes no external OCR or vision-service request. See the review format and image workflow. The reader previews PNG/JPEG/WebP originals on source and passage pages and in citation dialogs, with an enlarged view, actual-size scrolling, retry controls and protected original downloads. Previews clear when the source or signed-in identity changes. Other image formats remain download-only; previews do not add extraction or OCR.
Resource, credential, deployment, person and group pages can carry flat typed revision properties, property-specific citation evidence and stable page relationships. Properties share publication history and conflict checks with prose; existing pages remain unclassified until an agent publishes a reviewed revision. See the property contract and catalog workflow. Store credential metadata and protected-storage references only, never secret values. Obsidian export includes these properties in its single YAML frontmatter block and resolves relationship IDs to wiki links.
For People/Groups adoption, first check published history for existing members,
accountable_owners and backup_owners properties that conflict with their new
relationship contracts. Do not assume these keys are unused or rewrite immutable
history. Publish the tested client package, update the portable launcher's pinned
commit and deploy the backend/UI before publishing person/group metadata. Use the
updated client for lint and export: older client validators reject the new catalog
types. Existing pages require no automatic classification or data migration when
the preflight finds no conflicting properties; adopt them through reviewed revisions.
The Repository files catalog keeps one authoritative document and separate GitHub destinations for intentionally shared copies. READMEs, licenses, copyright files, notices and contribution guides use the same publication and ownership model. Matching bytes alone do not establish that two files should share one document. Repository-specific variants remain separate documents. Archived applications are excluded from routine adoption.
repository_document pages select plain Markdown or an immutable original for
exact copying. repository_destination pages identify a document, GitHub
repository, branch and relative file path. Separate repository_sync pages record
dated observations pinned to both document and destination revisions. Recording a
sync never changes the authoritative document. A recorded status is not a live
GitHub check; changed content or destination mappings require fresh comparison.
The portable client's export-repository-file command prepares one destination
from an explicitly selected publication in a new local output file. It does not
replace existing files, commit, push or publish a sync observation. Exact copies retain
original bytes and verify their source hash. Plain Markdown export fails closed
on unsupported wiki markup rather than silently changing its meaning. Metadata
and evidence stay outside exported license and copyright bytes.
Extensionless UTF-8 files such as LICENSE, COPYRIGHT and NOTICE can be ingested
directly; their original bytes are retained independently of extracted passages.
Follow the repository files workflow to adopt documents, compare independent GitHub edits, prepare reviewable diffs and record completed or pending updates. Publishing a wiki revision never triggers a GitHub rollout. Do not infer copyright holders or automatically advance years. Existing content is not automatically classified or imported. Release the tested package and backend/reader before publishing the new catalog types; older client validators do not recognize them.
The exporter writes wiki/ and raw/ under the destination. Numbered source footnotes, wiki-links, page metadata, index and publication log are deterministic. Exports pin one immutable publication; --sequence N selects history. An ownership manifest detects local edits/deletions, prevents overwriting unrelated files, and supports interrupted-export recovery. .obsidian/ remains untouched. Avoid concurrent local editing during export; the exporter lock coordinates exporters, not external editors. Use a fresh destination for initial migration: existing authored wiki files are not silently adopted. Downloaded files cannot be revoked remotely.
See data model and skill workflows for synthesis, idempotency, queries, corrections and publication. Structural lint does not establish semantic correctness. Full-text search (when enabled) indexes published revision title, summary and body of spaces the requester can read; it uses token matching rather than the former arbitrary substring matching. It does not provide vector search or generated answers. Raw SQL queries must explicitly distinguish draft revisions from the published manifest.
For an optional Python CLI experiment that ranks a full published snapshot using OpenAI's metered API, see the semantic search proof of concept. Preparation is read-only; model searches upload the selected corpus to OpenAI. This experiment does not replace the application's FTS search or browser UI.
SQL returns rows from every space you can read; filter by space. For published-page body sizes, pin a space's publication sequence and expand its manifest:
SELECT count(*) AS pages,
median(length(r.body)) AS median_body_characters,
percentile_cont(length(r.body), 0.95) AS p95_body_characters
FROM publications AS pub
JOIN json_each(pub.manifest) AS selected
JOIN page_revisions AS r ON r.id = selected.value AND r.page = selected.key
WHERE pub.space = 'SPACE_ID_______' AND pub.sequence = 1 AND r.archived = false;Replace the space ID and 1 with the selected space and publication sequence. This excludes drafts and
archived pages and returns one aggregate row. The statistics describe character
counts, not query latency or memory use; an empty publication returns NULL sizes.
percentile_cont takes a fraction from 0 to 1; percentile takes 0 to 100.
Use synthetic isolated databases only. From this repository, with the pinned server built and ffmpeg/ffprobe available for audio tests and Pillow installed for image tests:
python3 tests/launcher.py
python3 tests/integration.py --binary /absolute/path/to/pinned/pocketcontext
python3 tests/spaces.py --binary /absolute/path/to/pinned/pocketcontext
python3 tests/demo_snapshot_freshness.py --binary /absolute/path/to/pinned/pocketcontext
python3 tests/tracing.py --binary /absolute/path/to/pinned/pocketcontext
python3 tests/publication_review.py --binary /absolute/path/to/pinned/pocketcontext
python3 tests/home.py --binary /absolute/path/to/pinned/pocketcontext
python3 tests/properties.py --binary /absolute/path/to/pinned/pocketcontext
python3 tests/auth.py --binary /absolute/path/to/pinned/pocketcontext
python3 tests/realtime_access.py --binary /absolute/path/to/pinned/pocketcontext
python3 tests/realtime_publication.py --binary /absolute/path/to/pinned/pocketcontext
python3 tests/oauth_integration.py --binary /absolute/path/to/pinned/pocketcontext
python3 tests/skill.py --binary /absolute/path/to/pinned/pocketcontext
python3 tests/skill.py --binary /absolute/path/to/pinned/pocketcontext --trace
python3 tests/knowledge_integration.py --binary /absolute/path/to/pinned/pocketcontext
python3 tests/search_integration.py --binary /absolute/path/to/pinned/pocketcontext
python3 tests/ingest_integration.py --binary /absolute/path/to/pinned/pocketcontext
python3 tests/ingest_concurrency.py --binary /absolute/path/to/pinned/pocketcontext
python3 tests/export_integration.py --binary /absolute/path/to/pinned/pocketcontext
python3 tests/deploy.py --binary /absolute/path/to/pinned/pocketcontext
python3 tests/maintenance.py --binary /absolute/path/to/pinned/pocketcontext
python3 tests/entrypoint.py
python3 tests/oauth.py
python3 tests/client.py
python3 tests/knowledge.py
python3 tests/ingest.py
python3 tests/exporter.py
python3 tests/repository_files.py
python3 tests/bootstrap.py
python3 tests/deploy_workflow.pyAfter building the reader, install Chromium once and exercise the production assets against a synthetic isolated database:
The public-demo browser fixture also requires nginx on PATH or at
/usr/sbin/nginx. It exercises OAuth completion through the generated ingress
configuration, including success/failure pages and continued administration denial.
(cd ui && pnpm exec playwright install chromium)
python3 tests/ui_browser.py --binary /absolute/path/to/pinned/pocketcontext
python3 tests/demo_website.py --binary /absolute/path/to/pinned/pocketcontextCI runs reader type checks, unit tests and isolated browser checks before image publication. Space-role and membership-revocation integration checks are required on both architectures, even while group spaces remain hidden.
Regenerate the SQL reference only after reviewing intentional changes:
tests/skill.py --binary ... --write-schema. Container CI additionally runs
configuration, persistence, crash restore and graceful shutdown checks.
Main-branch image publication requires the application and native container
gates plus WIKICONTEXT_DEMO_PUBLISH=true; deployment uses the repository-specific
pocketdeploy-v2 environment and demo deployment variables. See
the release contract and
current validation evidence.
The inherited production WikiContext reader and container validation history is not evidence for this fork. The spaces migration refuses existing knowledge records; this disposable demo starts empty and does not import a production wiki.
Authentication and portable OAuth client adapted from RaiseContext 44f8f10537388f9a934a2bc1800d3df6a046c580; revision/concurrency and realtime test patterns from TaskContext 5bb214ef32fcffa9a42bb1de2d13cfd4052dc80f; protected originals, complete backups and container/deployment patterns from AccountContext 2b78c0f38680381376b0ce485312ff659037a13f. WikiContext's domain schema and publication/export model are independent. The compatible server revision is 416841c4d1225ddc464ce0b1e787a797d5b8d7e8, recorded in POCKETCONTEXT_VERSION.
The pinned server enables an authenticated, bounded in-memory trace buffer for wikicontext. Collection is client opt-in; ordinary commands produce no traces. See optional skill tracing for separate ObserveContext login, private upload, SQL-text consent, delivery retries and measurement limits. No ObserveContext credentials are installed on this server.
The demo container requires Litestream replication and private PocketBase S3 file storage.
Daily reset additionally purges the disposable files and replica buckets; retained
contact preferences use a separate database and replica. See demo operations.
The application can still run directly for isolated local development; the container
has no local-originals or replication-disabled mode.
Set all of WIKICONTEXT_S3_BUCKET, WIKICONTEXT_S3_ENDPOINT,
WIKICONTEXT_S3_REGION, WIKICONTEXT_S3_ACCESS_KEY_ID and
WIKICONTEXT_S3_SECRET_ACCESS_KEY. Optional WIKICONTEXT_S3_FORCE_PATH_STYLE
is true by default. Partial settings stop startup without logging values.
Use a dedicated private bucket with no public downloads or lifecycle deletion.
Uploads and protected downloads still use PocketBase's ordinary authenticated API;
original checksums are streamed from its configured filesystem backend.
During a frozen restart, these values must match the stored backend and
credentials exactly; configuration changes are refused until an explicit thaw.
With this contract enabled, startup preserves a healthy local database or restores
an absent database from Litestream. Normal startup fails if the replica is absent;
first installation uses the explicit one-shot init command with an empty replica
target, followed by normal startup on the same volume. See the command examples
in deployment procedures. Before HTTP starts, the supervised child calls
Litestream's private mode-0600 IPC socket with sync -wait, forcing database
initialization and a completed initial remote sync. Startup intentionally requires
a reachable replica; missing IPC or failed synchronization refuses serving.
Explicit init deployments bootstrap the database with migrations before this
handshake. This closes Litestream 0.5.17's early-stop gap: before its first monitor
tick, an uninitialized database otherwise skips final replication on shutdown. It never restores the legacy complete archive,
and no archive scheduler runs. Before opening the server, it streams every original
referenced by SQLite from S3 and verifies its recorded SHA-256. Missing, corrupt or
inaccessible evidence refuses startup. This costs a full evidence read on restart;
measure duration and allow sufficient ONCE startup time. Other PocketBase file
fields use the same storage backend; the integrity gate specifically covers sources.
Setting S3 does not migrate existing local files. Use the verified file-copy procedure in the migration runbook before enabling remote storage on an existing dataset. The container no longer supports local originals, complete archives, archive retention or backup scheduling. Historical archives remain recoverable with the pinned older image described in the deployment guide. Do not remove S3 configuration from a remote deployment or run legacy archive commands against it. Litestream and file storage must use separate buckets and credentials. Keep object retention at least as long as database recovery history. SQLite and S3 have no shared transaction: failed uploads can leave unreferenced objects, which must not be automatically deleted based on a potentially stale restored database.
Exactly one application writer and replica publisher may operate per replica path. For handover, stop the source cleanly, prevent its restart, restore into a separate recovery location and compare the recovered committed database state with the stopped source before starting the destination. Litestream 0.5.17 can exit zero when its replica endpoint is unavailable; a clean process exit alone does not prove final remote synchronization. Preserve the source volume until the recovered state and all original-file hashes are verified. An unplanned host loss can lose SQLite commits not yet replicated, even when uploaded objects survived. No automatic cross-host fencing or zero-loss crash guarantee is provided.
For a disposable MinIO bucket only, install the package and boto3, set the S3
variables above, then run python3 tests/object_storage_integration.py --binary /absolute/path/to/pinned/pocketcontext --synthetic-bucket EXACT_TEST_BUCKET on
one line. The test uploads synthetic evidence, proves protected downloads and
remote hashing, restores a database with no local files, then deliberately corrupts
and deletes its own object to prove verification fails closed.
The separate experiment workflow was removed upstream. The retained verification
tools below target historical production infrastructure and must not be used to
validate this demo. They are not automatic deployment paths or authorization to
modify a live service. Demo releases use the pocketdeploy-v2 environment. See the
common CI and deployment contract.
For the standalone recovery test, set disposable MinIO S3 and Litestream settings
and run python3 tests/object_storage_recovery.py --binary PINNED_SERVER --litestream LITESTREAM_BINARY --synthetic-files-bucket TEST_FILES --synthetic-replica-bucket TEST_REPLICA on one line. For the actual image gate,
run python3 docker/object_storage_smoke.py --image TEST_IMAGE --minio-image LOCAL_MINIO_FIXTURE on one line. Both use synthetic records and isolated replicas.
tools/verify_experiment.py is restricted to https://wiki-v2.pocketcontext.com
and the wikicontext-v2-files / wikicontext-v2-replica buckets. With experiment
credentials in the process environment and boto3 installed, an explicitly
approved live check is:
python3 tools/verify_experiment.py --api-and-r2 --manifest /tmp/wiki-v2-synthetic-manifest.jsonThis creates a disposable default-users account with maintenance credentials, then uploads one synthetic original as that ordinary user. It verifies the server hash, protected download, anonymous denial and exact remote bytes. It disables the disposable account in a finalizer. Immutable synthetic source evidence is retained. Only check outcomes are printed; synthetic object metadata goes into a mode-0600 manifest, never credentials. Replica-object presence is checked separately and is not proof that the latest write replicated.
To verify no local original remains, use the same script and synthetic manifest inside the experimental container or against its mounted data directory:
python3 verify_experiment.py --check-local-storage /storage/pb_data --manifest /tmp/wiki-v2-synthetic-manifest.jsonThe script and manifest can be copied into the experimental container's /tmp
for this check and removed afterward. Do not print container environment or ONCE
labels when selecting the container. No live check is performed by preparing or
running --help on this script.
A migration gate must additionally stop the source and compare its database with a fresh replica restore before destination activation:
python3 tests/object_storage_recovery.py --verify-source /stopped/data.db --verify-restored /restored/data.dbThe comparator checks full integrity and logical schema/table/row contents without printing source data. Keep the stopped source intact if comparison fails.
The actual-image S3 drill uses a one-hour remote sync interval and performs API writes after the initial handshake. It strictly restores the replica into a separate volume, compares every logical database record with the stopped source, and only then destroys the source volume and starts the recovered writer. It also checks missing-IPC startup refusal and fresh Google-only database initialization.