Skip to main content

Link and Lint Agents

Lint checks whether knowledge pages are useful and supported by their sources. Link connects pages when a relationship helps a reader find relevant evidence. They work together in the background so new source ingestion can continue while Synth checks and improves published knowledge.

Source retirement

This release also rebuilds shared pages after confirmed source withdrawal. Safety publication runs first without a model; Extract, Lint and Link then work from the remaining evidence. See Removed Sources and Shared Pages for what readers see during an update and how Synth preserves edits.

What each agent does​

AgentResponsibilityExample
ExtractTurn sources into knowledge pages; propose a repair when Lint finds a problemRetain a decision and its qualifications from a meeting transcript
LintCheck source coverage, supported claims, contradictions and links; independently review proposed changesFind a deadline omitted from the final section of a source
LinkPropose useful relationships between pagesConnect a decision to the earlier proposal it supersedes

An independent check is a separate review call. It does not require a different provider or model, although you can configure a different model for Lint. Explore, MCP search and exact page reads remain provider-free.

When they run​

TriggerBehavior
New or changed derived pages or their supporting sourcesWhen automatic audits are enabled, Synth queues changed pages after publication.
Confirmed retirement of supporting evidenceSynth automatically queues shared pages for re-ingestion from their remaining sources, even with scheduled audits off. The old revision is withdrawn. Independent Lint validates the replacement before publication.
Agent configuration changesExisting pages can become eligible for another automatic check because their previous quality inputs no longer match.
Periodic reviewOptional and off by default. When enabled, Synth submits a bounded page batch at the configured interval.
Manual auditThe lint API or server CLI submits background jobs for selected pages or a bounded batch.
First upgrade of an existing ProjectExisting pages are recorded as not checked. The upgrade does not automatically audit the entire old corpus. An already enabled periodic schedule continues.

The scheduler checks for work at roughly 15-second intervals while idle. This is not a completion guarantee: active work, other Projects and budget waits can delay execution. Each pass runs at most one queued Link or quality job per Project. Linking can take several passes: deterministic work runs first, then semantic review continues in small steps. Batch submissions create separate page jobs so one difficult page does not hold up the others.

Source ingestion → published pages available for search
├─ Lint audit → optional repair → independent review
└─ Deterministic references and link restoration
↓
Bounded semantic link checks
↓
Independent relationship review
↓
Publish links → queue remote sync

Ingestion completion does not mean semantic validation has passed. If quality work runs out of time, cannot reach a provider or finds unresolved problems, successful knowledge remains available and other sources can continue.

Linking progress is saved separately from the full content audit and survives restarts. An unrelated failed or inconclusive audit does not block linking, and linking does not wait for the optional periodic audit. Source-retirement holding pages still require validated restoration before acquiring new generated relationships.

The service's background worker must be running to consume queued jobs. On single-process installations, the web service runs the background scheduler. Running the server CLI once does not start a permanent worker.

How Lint checks a page​

Lint combines three kinds of checks:

  1. Structural checks: broken internal Markdown/wiki links and anchors, isolated pages and graph health. These do not need an LLM.
  2. Deterministic source checks: compare available source support with the page and flag detectable mismatches. These also do not need an LLM, but are not a substitute for semantic review.
  3. Semantic checks: inspect the complete supporting evidence within the job's size limits, including middle and final sections. Lint looks for missing material facts, contradictions and claims the sources do not support.

Evidence is tied to the actual source revision and original passages. Numbers, units, dates, attribution, uncertainty and proposed-versus-approved status matter. A source citation alone does not mean the page was verified.

A topic mention is not enough: a page must preserve the material conditions and open questions attached to it. For example, proposed staffing must not become approved scope, and one supplier's reported limitation must not become a claim about every supplier.

Event status matters too: “rescheduled to 6 November” must not become “took place on 6 November.” Extract preserves the source's scheduled, cancelled or completed status, and Lint checks that distinction separately from the date. A date in the past is not evidence that an event happened.

If evidence is unavailable, stale, too large or ambiguous, the result remains inconclusive. An incomplete check does not clear earlier findings. An isolated page is a review suggestion, not proof that a relationship must exist.

Dense evidence windows can be split into smaller, contiguous windows so the model does not have to discard facts to fit its output limit. The original passages and offsets remain intact. This is bounded by twelve inspected windows (including attempted parent windows) and the job's existing call, token, time and cost limits. Invalid fact counts get at most one correction before a split is considered. If the allowance is insufficient, the audit stays inconclusive; it does not retry indefinitely or hold up other ingestion.

Repairs and authored content​

For an unchanged Synth-generated page, Lint can ask Extract for one repair attempt. Lint checks the resulting candidate again before Synth publishes it. A failed repair leaves the existing page and unresolved findings in place.

When regenerating or repairing a page, Synth owns the title, metadata and source citation preamble. It removes model-echoed leading wrappers and renders citations from the exact source identities, including nested paths and escaped filenames. The model does not reconstruct those paths. Useful evidence and examples inside the body remain intact.

In OKF v0.2 pages, generated.by identifies the producer and its package version, for example synth/0.31.1. This uses the same release-version lookup as health reporting, including Docker installations. If no version can be read, it records synth/unknown without blocking ingestion. Older synth/dev values could be a version-lookup fallback in production; they do not identify a development environment. Upgrading does not relabel historical generation records. This field identifies the writer, not a successful quality review.

Synth does not automatically rewrite the body of a page whose content has been manually edited or whose generated ownership cannot be established. Auditing an older page recovers its cited sources where possible; it does not grant permission to rewrite that authored page. A manual audit can publish eligible repairs and generated links—it is not a preview-only operation.

Synth first resolves explicit references without a model. For additional semantic connections, Link proposes a relationship with source evidence → Lint independently reviews it → Synth publishes accepted links. This Lint review checks the relationship; it is separate from a full page audit.

Shared vocabulary helps find candidates, but does not establish a relationship. Lint checks that the passages refer to the correct subjects, that the direction is correct, and that following the link helps the reader.

Explicit document references are resolved without a model, using unique paths, titles, declared aliases, or canonical source identities. They create navigation (references / referenced_by), not inferred factual dependencies. Existing accepted decisions can restore a missing generated Links section without a provider call. Generated links use relative Markdown URLs for Synth and Git repository viewers.

Candidate discovery uses existing names, aliases and keyword search without a model. Up to twelve candidate pages are considered for each page. Evidence includes relevant passages from across the document, rather than just its opening text. Previously checked pairs reuse their results while their inputs remain unchanged. If Link proposes no relationship, there is no relationship review call to Lint.

RelationshipMeaning
depends_onOne system or activity requires another
usesOne entity uses another
implementsA page describes an implementation of another concept
part_ofOne entity belongs within another
supports / extendsEvidence establishes support or an extension
contradicts / supersedesEvidence establishes a conflict or replacement
related_readingUseful navigation, without asserting a factual dependency

For example, “Service A depends on Queue B” must not become “Queue B depends on Service A.” A passage saying two systems do not depend on each other must not create that dependency. Two people or systems with the same name are not automatically the same entity.

Two pages describing a method and its practical limitations may be useful related reading. Repeating the same advice adds no value, and similarity does not mean one page factually supports or implements the other. A factual link requires original evidence explicitly connecting the subjects. Conversely, two pages about distinct systems can have a factual link when their shared source explicitly states that relationship.

Synth checks proposed evidence against the original source passages before Lint reviews the relationship. Missing evidence and altered quotations are rejected.

Accepted relationships appear in Synth-managed link regions and the graph. Authored Links sections and surrounding content are preserved. Changing the supporting evidence makes an old relationship eligible for retirement and re-evaluation. Identical previously checked candidates can reuse their result. Zero accepted links is a valid outcome when the reviewed candidates do not support a useful connection. Pending, disabled or failed checks are reported separately; they are not a completed review with no supported links.

These checks reduce repeat errors; they do not guarantee perfect model judgment. For a new corpus or major prompt/model change, review a small set of pages against their original sources before a broad repair. Include late decisions, quantities, negation, tentative scope and ambiguous identities. Keep unresolved checks visible and use bounded jobs rather than repeatedly resetting an exhausted allowance.

This workflow does not merge canonical identities or guarantee discovery of every useful connection. Distinctive titles, explicit names and clear source statements help Link find and validate the right pair.

Read the outcome correctly​

Job execution and knowledge quality are separate:

Field/valueMeaning
Job status: queued or retryingWork is waiting, possibly for its Project allowance
Job status: leased or runningA worker owns the job
Job status: doneExecution finished; inspect result.quality_outcome
Job status: failedExecution could not finish; inspect failure_code and next_action
Job status: cancelledThe job was stopped, including obsolete automatic work
quality_outcome: passRequested quality checks completed without a blocking finding
quality_outcome: failChecks completed and found unresolved issues
quality_outcome: inconclusiveEvidence or execution was insufficient to reach a verdict
quality_outcome: not_checkedSemantic verification was not requested

A superseded job may finish with result.outcome: superseded and no quality verdict. A deterministic-only check can still report a concrete failure or an inconclusive result; it never establishes a semantic pass. “Complete,” “done” and zero model findings are not interchangeable with “verified.”

Reports include the inspected scope, rule outcomes, findings, repairs and relationship results. The latest report covers its job, not an entire corpus or every job in a submitted batch. Structural checks can cover more pages than the selected semantic scope. The status endpoint also reports the legacy backlog in legacy_pages_not_checked and up to 100 recent jobs.

The Watchers page shows Knowledge linking separately from source sync. GET /api/lint/status includes linking.counts and per-page linking.pages:

Linking stateMeaning
pending / runningSome candidate work remains
waiting_budgetWork is preserved until rolling allowance becomes available
linkedCandidate review finished and accepted navigation exists
no_supported_linksThe bounded candidate review finished without an accepted link
semantic_disabledFree work finished; additional model checks were not requested
needs_attentionWork remains unresolved after bounded recovery or cancellation

Failed pairs yield to other candidates and stop after three attempts without further progress on unchanged input. Completed steps are reused so small budgets can finish over multiple jobs. Unresolved pairs remain visible as needing attention after the other candidates finish. Temporary worker failures receive bounded retries. After correcting the reported cause, expand Watchers → Knowledge linking and select Retry linking for the affected page. This retries linking without rerunning source ingestion or the full content audit and may use model credits.

Each page also reports remote publication separately. An accepted local change is queued for the configured backend, including when remote delivery is paused. A commit-pinned Git URL continues to show that old revision; use the current branch to see subsequent link updates.

New pages also resolve explicit references in older pages. Removing a page queues cleanup of its surviving neighbors' generated links. A malformed generated Links block is preserved and flagged for attention without blocking other pages. Negative semantic decisions are reconsidered when the evidence-selection policy changes; supported accepted links remain reusable.

Configure a Project​

An operator can edit the Project's .synth/config.yaml. These are Project-level settings. Merge them into the existing file; do not replace provider credentials or unrelated Project configuration.

# React to changed inputs, with finite quality allowances.
quality_background_enabled: true
lint_allow_llm: true

# A separate periodic sweep is optional.
auto_lint_enabled: false
auto_lint_interval_hours: 6
lint_page_limit: 50

quality_calls_per_job: 32
quality_calls_per_day: 120
quality_output_tokens_per_job: 131072
quality_job_seconds: 360
quality_job_cost_limit_usd: 2.0
SettingDefaultEffect
quality_background_enabledtrueEnables the quality queue's scheduler/execution, including manual queued jobs
lint_allow_llmtrueAllows semantic auditing, repair and linking in newly submitted automatic/periodic jobs
auto_lint_enabledfalseEnables changed-page audits and periodic reviews, including unchanged pages
auto_lint_interval_hours6Interval between periodic batch submissions; use a positive whole number
lint_page_limit50Maximum pages submitted in a batch, capped at 50; unscoped batches rotate through pages
quality_calls_per_job32Maximum calls across all agents in one job; allowed range 0–100
quality_calls_per_day120Per-Project call admission allowance over a rolling 24 hours; range 0–10,000
quality_output_tokens_per_job131072Allocated output-token allowance across calls; range 1,024–500,000
quality_job_seconds360Bounded model execution time; range 10–480 seconds
quality_job_cost_limit_usd2.0Estimated per-job model-cost guard, alongside other provider budgets

Allocated output tokens count the output capacity reserved for requests, not just the text eventually returned. The call allowance is reserved before a job starts, and unused capacity is returned when it finishes. Keep the daily call allowance at least as large as the per-job allowance. Waiting for daily capacity does not consume a new execution attempt.

The deterministic linking stage reserves zero calls. A semantic linking slice reserves at most ten calls (or the configured lower limit) and runs for at most 120 seconds. All slices still share the same daily allowance. Unfinished pairs remain pending; previously settled pairs and valid model artifacts are reused. Upgrades queue bounded linking recovery for pages already owed quality work, without starting an unsolicited paid backfill of untouched legacy pages.

These settings apply when work is submitted or admitted; changing them does not cancel already active work or refill a spent allowance. To pause new quality execution, set quality_background_enabled: false. Use job cancellation below to stop an already active job. With auto_lint_enabled: false, linking and source-removal rebuilds still run within the Project’s processing allowances.

Quality controls do not disable Extract calls during source ingestion. Provider credit and account-wide budgets are still shared with other model work.

For OpenAI, start with GPT-5.4 nano for Link and GPT-5.4 mini for Lint. This pairing has been evaluated for Synth's semantic relationship workflow. It is a recommended starting configuration, not an automatic change to your Project's models or a guarantee for every source collection.

AgentRecommended modelWhy
Linkgpt-5.4-nanoKeeps the cost of proposing evidence-backed relationships low
Lintgpt-5.4-miniGives the independent review more capability to reject wrong identities, reversed relationships and unhelpful links

The recommendation applies to model-assisted linking. Explicit references, unchanged cached decisions and restoration of accepted links need no model calls. The Lint assignment also controls full content audits and repair review; validate those outcomes separately on your own sources. Repair generation uses the configured Extract model.

To use this profile:

  1. Configure OpenAI credentials in Settings → Providers and run Test Provider.
  2. In Settings → Models, assign the models above to Link and Lint.
  3. Check for Project overrides or administrator locks before expecting global choices to apply.
  4. Try a small representative Project before changing a large corpus.

For a Project-specific configuration, merge these overrides into its .synth/config.yaml. Keep credentials in your configured provider or secret store:

agents:
link:
provider: openai
model: gpt-5.4-nano
lint:
provider: openai
model: gpt-5.4-mini

Project agent overrides take precedence over global agent choices unless an administrator locks the field. Through a gateway, use the exact route aliases configured for these models. Other providers are supported; compare their models on the same sources before adopting them. See Configuration Cascade and Providers & Models.

Check both links that should exist and pairs that should remain unlinked: explicit dependencies, complementary reading, repeated advice, negated relationships and unrelated subjects with the same name. Review direction, source support, missed useful connections, latency and actual usage. A provider test or valid structured output does not establish link quality. If Link misses supported relationships, compare a more capable Link model; if weak links are accepted, compare a more capable Lint model. Measure the improvement before increasing spend across the Project.

See OpenAI's GPT-5.4 nano and GPT-5.4 mini pages for model details and availability. Confirm access through your configured provider; the Synth recommendation above is based on relationship evaluation.

Supported customization​

Changing agent configuration can schedule new checks for existing pages, including previously unchecked legacy pages, even with periodic sweeps off. Compare model choices in a small evaluation Project before changing a large Project's defaults; allow for the resulting model usage.

The initial background workflow uses built-in evidence-checking prompts and per-call output caps. Custom Link/Lint prompt files and per-agent temperature/max_tokens settings do not override these background steps. There is no configurable relationship threshold, forced minimum link count or separate Link-only scheduling switch. Use the supported model, scope, schedule and job-budget settings above.

Tune one thing at a time​

GoalAdjustmentCheck afterward
Spend lessLeave periodic sweeps off; reduce daily calls or manually audit a smaller scopeWaiting jobs and actual provider usage
Check more pages over timeEnable periodic review and choose a batch size/interval within the daily allowanceSubmitted/deferred counts and unresolved findings
Improve semantic judgmentCompare Lint model choices on the same small, representative source setMissed facts, incorrect findings, uncertainty and cost
Improve relationship qualityUse explicit source names and relationships; evaluate Link model choices on known pairsWrong identity, reversed direction, unsupported links and useful omissions
Avoid model calls for automatic quality workSet lint_allow_llm: false for future automatic jobsDeterministic findings; no claim of semantic verification
Investigate an isolated failureFix the reported cause, then retry that quality job onceNew job ID and its final quality outcome

For a smaller initial allowance, for example, keep 32 calls per job and set 64 calls per day. This reduces throughput; it does not make each audit cheaper. Do not raise every limit to handle one difficult source. Review its reason code first, then choose a suitable model, narrower content or an explicit retry.

Run and inspect an audit​

The lint routes require Project editor access. API keys additionally need admin:write or full_access; read-only knowledge scopes are insufficient. Use an existing appropriately scoped key and a server-side Project path.

export SYNTH_URL="https://synth.example.com"

curl --fail-with-body \
-H "Authorization: Bearer $SYNTH_API_KEY" \
-H "Content-Type: application/json" \
-d '{"project_path":"/var/lib/synth/projects/docs","pages":["concepts/deployment.md"],"use_llm":true,"use_grounded":true}' \
"$SYNTH_URL/api/lint/run"

The response is HTTP 202 with job_ids, requested_pages, submitted_pages and deferred_pages. Page paths are relative to knowledge/; submit existing derived pages, not raw sources/ pages. An explicit list accepts up to 50 paths; the Project batch limit can reduce how many are submitted. Omitting pages selects the next bounded batch. Deferred pages are not queued by that submission; select them in a later request or allow the periodic sweep to reach them.

Poll the returned job IDs and inspect the latest structured report:

curl --fail-with-body -G \
-H "Authorization: Bearer $SYNTH_API_KEY" \
--data-urlencode "project_path=/var/lib/synth/projects/docs" \
"$SYNTH_URL/api/lint/status"

curl --fail-with-body -G \
-H "Authorization: Bearer $SYNTH_API_KEY" \
--data-urlencode "project_path=/var/lib/synth/projects/docs" \
"$SYNTH_URL/api/lint/latest"

GET /api/lint/report/raw returns the latest available Markdown export; GET /api/lint/reports/list lists exports. Both accept project_path. Structured latest/status results remain available if an export fails.

Set use_llm: false for a queued deterministic-only run. Manual requests use their explicit use_llm value; lint_allow_llm: false is not a blanket ban on manual model use. Older clients' allow_llm field is also accepted.

To cancel or retry, replace QUALITY_JOB_ID with an ID returned for this Project:

curl --fail-with-body -X POST \
-H "Authorization: Bearer $SYNTH_API_KEY" \
"$SYNTH_URL/api/lint/jobs/QUALITY_JOB_ID/cancel?project_path=/var/lib/synth/projects/docs"

curl --fail-with-body -X POST \
-H "Authorization: Bearer $SYNTH_API_KEY" \
"$SYNTH_URL/api/lint/jobs/QUALITY_JOB_ID/retry?project_path=/var/lib/synth/projects/docs"

Retry is an explicit new quality attempt and may use model credits. Repeating the same retry request reuses its replacement job while its inputs are unchanged. It does not retry source ingestion. A job that finished with unresolved findings can be retried after the cause is addressed. Active jobs must finish or be cancelled first. Simply resubmitting an identical audit is not a reliable way to force fresh work; use the retry route.

The same cancel/retry routes accept Link job IDs. For a linking-only retry, use the affected page's job_id from linking.pages in the status response. This preserves completed relationship checks and does not submit a full content audit. To check older pages that have never had a job, submit a selective audit with pages as shown above; it includes linking.

SDKs and server CLI​

The Python SDK returns a submission, not a completed verdict:

import os
from synth import Synth

client = Synth(
server="https://synth.example.com",
api_key=os.environ["SYNTH_API_KEY"],
project="/var/lib/synth/projects/docs",
)
submitted = client.lint(full=True)
print(submitted.status, submitted.job_ids)
print(client.lint_status())

In the TypeScript SDK, use await client.lint({full: true}) and await client.lintStatus(). Pending submissions have unknown passed and issues values (None in Python, null in TypeScript). The default full=False / full: false requests deterministic checks.

Operators with a full Synth server checkout can use its bundled CLI:

# Submit background jobs. The service worker must be running.
poetry run synth lint /var/lib/synth/projects/docs --page-limit 5

# Run deterministic checks immediately, without model calls.
poetry run synth lint /var/lib/synth/projects/docs --no-llm --show-report

These commands belong to the server package. The standalone remote synthkb-cli does not provide this lint command; use the REST API or SDK.

Troubleshooting and current limits​

SymptomMeaning and next step
quality_allowance_waitThe rolling Project allowance is reserved or spent. Wait for capacity or intentionally adjust it. Ingestion continues.
Per-job calls exceed daily callsThe job cannot be admitted. Keep the daily allowance at least as large as the per-job reservation before retrying.
Provider/quota failure or quality_attentionInspect the next action, configured agent route and provider credit/credentials, then retry the affected quality job.
Source execution deferred, such as source_quarantined or execution_limitInspect the classified failure code and sanitized next action. Expired deadlines, spent calls/tokens and recovery cycles are not reset. Linking keeps bounded replacement attempts; inspect its current state before requesting another retry.
manual_or_unowned_revisionAutomatic repair is intentionally unavailable. Review the finding and edit the page yourself if appropriate.
Inconclusive source coverageCheck source availability/revisions and size. Do not interpret a partial audit as a pass.
Few or no new linksCheck Knowledge linking for pending candidates, budget waits, disabled semantic checks or a completed review with no supported relation. A page's content audit is independent.
Job stays queuedCheck that background quality is enabled, the service worker is running, maintenance is not pausing the Project, and allowance is available.
Old pages still show not checkedSubmit a selective audit or enable periodic review; upgrade alone does not audit historical pages.

One semantic unit currently accepts a page up to 24,000 characters, supporting evidence up to 120,000 characters and at most 12 source segments. Each retained source artifact/wrapper is capped at 512,000 bytes for quality work. Internal request-packet limits can also stop a dense unit. These are audit bounds, not upload limits. Raising call budgets does not raise these content limits.

Source-grounded review reduces avoidable errors but cannot guarantee perfect coverage or judgment. Inspect consequential decisions against the cited source, and use a small representative sample before enabling broad periodic review.

See also: Add Knowledge, Cost & Budgets, and REST API.