Skip to content

Check data-access guidance against its source schema and permissions #1176

Open

Description

@zlareb1

Component

Knowledge (documents)

Use case

An agent follows a maintained query recipe that refers to a column renamed in the source database. The recipe is still retrievable and its document has not changed, so ordinary document freshness checks cannot reveal the problem. Each agent rediscovers the same fix.

Teams need a way to check whether data-access instructions still match the systems they describe.

Describe the solution you'd like

Allow maintained guidance to declare the source objects it depends on and check those expectations against a supported source.

Start with registered tracker sources and metadata checks: the expected table or view exists, required columns have compatible types, and the configured read identity can inspect or access the required objects. Reuse existing source-contract and credential checks.

A check should report what changed and link back to the affected instruction. A maintainer or curator decides how to repair it.

Acceptance criteria:

  • An authorized maintainer can attach a check to a specific guidance revision. It names a registered source, required objects and expected schema. Credentials stay in the existing source registration.
  • A bounded on-demand check returns passed, drift detected or unable to check, with a timestamp and useful evidence. Revoked access, an unavailable source and a missing column remain distinct outcomes.
  • Results identify the guidance revision, check definition and source evidence they evaluated. Changing the guidance or check definition leaves the old result as history rather than a current pass.
  • A failed check flags the affected guidance for investigation. It can feed Let agents report incorrect, outdated or missing knowledge #1147 and Prepare reviewed knowledge revisions from reports and run evidence #1148 when available, without changing the instruction, its approval state or source mapping automatically.
  • The first delivery reads metadata and uses existing read-only access probes. It executes no arbitrary SQL stored in prose, mutates no source data and requires no model call. An external scheduler can invoke the same check.
  • The result is visible beside the guidance and available through the API and SDKs. Evidence and error details follow source permissions, credential redaction and erasure rules.

The acceptance scenario is a recipe whose required column is renamed: the next check identifies the affected recipe; an unavailable source is shown as unknown; a corrected recipe passes a new check.

Describe alternatives you've considered

Source health checks show whether a connection or tracker contract works. They do not identify which maintained instructions depend on a particular column.

Document sync detects changes to the document itself. Waiting for an agent to report the error leaves every dependent workflow exposed until someone encounters it.

Where the need comes from

An AI tool suggested this feature

Additional context

Feature proposal based on source and issue review. No external source was queried and no schema drift was reproduced.

Activity

  1. added
    enhancement
    help wanted
    up-for-grabs
    on Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhelp wantedup-for-grabs

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions