Skip to main content

Removed Sources and Shared Pages

A page can combine several sources. When a watcher confirms that one of those sources must be retired, Synth first removes unsupported knowledge from current retrieval. It then rebuilds eligible pages from the remaining evidence in the background. Source removal does not need a model call.

With auto-sync on, subsequent changes can publish while Synth updates a shared page. You can close the watcher screen while this runs.

A page built from A, B and C​

Suppose a page combines sources A, B and C, and the watcher confirms A was deleted.

  1. Synth records the withdrawal and excludes the affected old revision from new reads. It publishes a safe snapshot containing unaffected knowledge.
  2. For a generated page with verified remaining evidence, Synth publishes a small Source update holding page at the same path. It links to verified B and C. The previous title and summary are not reused. A review copy is preserved separately.
  3. Extract builds a candidate from the complete remaining evidence. Lint independently checks support, missing facts, numbers, dates and uncertainty. A failed or inconclusive candidate does not replace the holding page.
  4. Link proposes useful relationships for validated pages. Lint checks their evidence and direction before publication. Zero accepted links is a valid result.

Readers can use B and C while rebuilding is pending. If the provider is down, credits are exhausted or evidence is incomplete, the holding page stays safe. Other source ingestion can continue. No successful model call is required to complete the source-removal checkpoint.

Deleting evidence does not prove that its claims are false. It means Synth can no longer present those claims as supported by that source.

Other outcomes​

SituationOutcome and next step
The last source is retiredThe page is withdrawn from current search, reads, graph and new exports. Restore or add authoritative evidence if it is still needed.
A page has its own source and linked to the deleted pageSynth removes the generated relationship. If necessary, it reconstructs the page from its own verified source.
Remaining evidence is missing or unreadableSynth checks retained evidence and, for Git text, the managed checkout. Readers see the verified sources available. The watcher names any page whose content remains unavailable.
Someone edited a generated pageSynth preserves the exact stored revision in restricted history. Once it identifies the page and its current sources, it automatically withdraws or replaces the generated content.
Synth cannot establish ownership or safely read the stored pageThe affected revision stays withheld. Other source changes continue.
A source is restoredA fresh observation must verify its evidence. Withdrawn generated summaries rebuild and validate again.
Safe publication waits for storage or another publisherAffected revisions remain protected. Synth schedules automatic cleanup retries; editors can bring the next attempt forward with Retry source cleanup.

Synth verifies current source revisions before publishing replacements. The removed source, the old summary and preserved edits are excluded from the replacement’s evidence. An editor can retrieve preserved writing separately. Reusing a protected filename in an unrelated ingestion does not authorize an overwrite.

Synth also invalidates generated relationships supported by the removed source. Authored links do not establish a dependency on the linked page’s claims.

What counts as a removal​

Adapters keep their existing confirmation rules. A complete Git diff, confirmed provider deletion or confirmed scope withdrawal differs from a timeout, partial listing, rate limit or ambiguous permission error. Drive's absence confirmation, Git's repository catalog checks and Slack's conservative absence handling still apply. Disabling a watcher stops detection; Synth cannot act on an upstream change it has not confirmed.

Source identity and watcher membership are separate. Removing a source from one watcher's scope does not retire the same live source still observed by another watcher. A confirmed deletion of that provider identity applies across its memberships.

Existing retention settings​

This release does not silently migrate watcher settings or schedule a paid audit of the whole existing corpus.

Existing policyBehavior in this release
An adapter's keep policy that retains live support, including Slack's default and Jira keepPreserved for compatibility; the adapter does not request retirement. Existing knowledge can remain current. Review this setting if deletions should withdraw knowledge.
retire, delete or tombstone that requests source retirementUses the safe withdrawal and background rebuild workflow above
Retention of bytes after a retirement was requestedAffects stored history, not current eligibility; retaining a file does not keep it in search

Review the watcher's removal policy deliberately before changing it. Historical copies, Git history, backups and remote copies have separate retention rules. Source retirement is not a privacy-erasure operation.

Watcher status​

The watcher shows when a page is waiting, updating from its remaining sources, or waiting for processing budget. Recent page activity lists published removals and updates. Routine cleanup requires no customer action. If the content stays unavailable, Current issues identifies the page. The watcher continues processing independent changes.

Operator diagnostics​

Project editors can inspect safety events and per-page work in the retirement section of GET /api/lint/status?project_path=....

  • safety[].status: pending, running, waiting, published or needs_attention after repeated non-transient failures. next_retry_at is the persisted earliest retry time; the scheduler may execute later when busy.
  • pages[].state: evidence_only, needs_attention, manual_review, withdrawn, restored_source, validated or links_pending.
  • Pending rebuilds include rebuild_status, such as queued, running, paused, waiting_for_budget or needs_attention, and their quality_job when one exists. A completed job is not proof of a passed quality verdict.

For model or evidence failures, inspect the quality report and use the quality-job retry. It is bounded, may use credits, and uses current evidence. It does not re-ingest A or approve a failed candidate. Do not repeatedly retry source ingestion to fix a background quality problem.

Temporary publication conflicts never exhaust the failure allowance. Recovery continues across restarts, including older records stranded by the former three-attempt limit. This runs even when background model work is disabled.

For safety publication, Watchers shows Retry source cleanup to Project editors. The action brings persisted cleanup work forward without re-ingesting sources or using model credits. Its progress dialog shows the scheduled attempt and confirms completion only after publication succeeds. Get help includes the same removal records and their typed errors. Ordinary viewers can inspect progress; an editor can request an earlier attempt.

The watcher API uses the selected Project and requires editor access plus watchers:manage or full_access for API keys:

POST /api/watchers/WATCHER_ID/retry-retirement

It returns 202 with status: queued while work remains, or 200 with status: already_published. Repeated requests share the same persisted work. The existing per-event API also schedules the same cleanup operation; event_id comes from the status response:

POST /api/lint/retirement/retry
Content-Type: application/json

{"project_path":"/var/lib/synth/projects/docs","event_id":"retire:EVENT_DIGEST"}

The response acknowledges scheduling, not publication completion. Integrity or manual-review failures remain distinct from temporary contention: the report retains their evidence, and retries never bypass review or publication checks.

When automatic recovery cannot identify a safe replacement, an editor can read the preserved storage revision with the Wiki Editor or the authorized POST /api/knowledge/storage/read endpoint. Compare it with the remaining sources. To authorize replacing that exact revision with a safe holding page and subsequent rebuild, submit:

POST /api/lint/retirement/review
Content-Type: application/json

{"project_path":"/var/lib/synth/projects/docs","page_path":"concepts/example.md","expected_sha256":"SHA256_OF_EXACT_STORED_UTF8_BYTES"}

expected_sha256 must be the 64-character SHA-256 digest of the returned UTF-8 content, not the shorter storage_revision identifier. A changed revision returns a conflict and must be reviewed again. This action preserves a review copy; it does not promise to carry human prose into the generated replacement. If no source remains, approval withdraws the page without scheduling synthesis. There is no dedicated review button in this release.

Reading stored content through the storage API requires knowledge:write or full_access on an API key. A key used for both reading and review therefore needs both knowledge:write and admin:write, or full_access. Signed-in editors can use their session for the same workflow.

Both actions require editor access to the selected Project and an API key with admin:write or full_access when using key authentication. Ordinary readers cannot invoke them or read historical storage through these editor routes.

Controls​

Use the Link and Lint settings for provider, model, call, token, time and cost allowances. The same bounded queue handles retirement rebuilding; automatic reconciliation does not refill spent attempts.

quality_background_enabled: false pauses new quality execution. Deterministic source removal and its recovery still run. It does not cancel a job already running. Source-removal rebuilds continue when scheduled audits are off (auto_lint_enabled: false). lint_allow_llm: false limits new automatic submissions; an explicit manual audit can separately permit model calls. A structural-only check cannot mark a retirement summary as semantically validated.

Backups, rollback and external copies​

Back up $SYNTH_HOME/source-retirement-v1/ with the installation. Its ledger is outside Project draft rollback and must remain authoritative when restoring an older Project directory. Do not delete it to clear an error or downgrade to a binary that does not enforce the retirement policy.

An old full-installation backup cannot know about deletions that happened after that backup. For that restore, start Synth with SYNTH_RESTORE_RECONFIRM_REQUIRED=true. Current knowledge reads, graph and new exports stay unavailable while authoritative watcher comparisons and safe publications run. Keep this setting enabled if providers are offline or any comparison is incomplete. After reconfirming every restored Project, the operator can restart without the setting. This is an explicit recovery procedure; Synth cannot automatically detect events absent from both the backup and its ledger.

New requests use the safe activation. A request that already opened an immutable reader may finish with its earlier snapshot. Existing downloaded exports cannot be recalled; an old export job must be regenerated after retirement before it can be downloaded again. New exports omit retired pages, review archives, historical index/log text and unreferenced assets.

Remote delivery is separate from local safety. A remote credential failure or merge conflict can leave an external copy outdated even after local retirement succeeds. Resolve remote synchronization separately; do not restore withdrawn local content to match the old mirror.