REA Spectral notes (unofficial)

Last updated: · By the RepoRead editorial team · Unofficial guide
Quick answer

Spectral trees (.spectral.yaml / ruleset / extends pins) record OpenAPI/AsyncAPI lint identity. In REA 6.7.x, treat selected ruleset and extends labels as Evidence beside archive/package routes — complementing Checkov / KICS / ESLint cousins without inventing APIs. Distinct from rea-yamllint (API lint ≠ generic YAML) and rea-polaris (Spectral ≠ Kubernetes Polaris). Preferred rea-polaris already live — SWAP to free backup rea-spectral.

Mental model

  1. Authorize the Spectral config tree (+ packaged charts you hold).
  2. Quote selected identity labels you actually see (never paste secrets/tokens).
  3. Cousins → checkov · kics · eslint-flat · yamllint.
  4. Bind absolute paths honestly → rea-evidence-explained.
  5. Do not invent a inspect_spectral API REA never called.

Minimal path

# authorized Spectral .spectral.yaml / ruleset pins (+ charts you hold)
# quote selected identity labels into case notes (never live secrets)
# cousins → peer lanes above
# REA package/archive routes on /absolute/path/artifact --json
# do not invent: rea inspect_spectral .

Compare

ArtifactHonest posture
ruleset / extends pinsSpectral stack identity facts
Peerrea-checkov
Peerrea-yamllint
Not thisrea-polaris (Polaris zoom; avoided taken preferred)
Evidence binderrea-evidence-explained

Config literacy notes (authorized trees)

  • Quote selected ruleset names, extends URLs/hostnames, and severity floors only — enough for most Evidence binders.
  • API tokens and private ruleset registry secrets are secrets — record key names only.
  • Keep Spectral stack identity distinct from yamllint / Checkov trees in case notes.
  • Chart image tag pins are identity Evidence — label them separately from cousin pages.
  • Select keys are useful inventory — quote them without inventing REA helpers for live Spectral scans.

Scope we will not cover

  • No inventing inspect_spectral / automatic scans against foreign repos.
  • No credential theft from API tokens or private rulesets.
  • No pirate redistribution of proprietary Spectral trees.
  • No crack framing via Spectral pins.
  • No cookbooks that weaken API lint policy on foreign accounts.
  • No using Spectral as an unauthorized API-recon guide against repos you do not own.

Honest limits

RepoRead documents config literacy — how authorized Spectral trees relate to Evidence — not a full OpenAPI lint course. Prefer upstream Spectral docs; use rea-yamllint for generic YAML peers. When REA 6.7.0 has no dedicated helper, quote the pins you opened and stay on documented archive/package lanes.

RepoRead is unofficial. Prefer config honesty + DISCLAIMER.md.

FAQ

How is this different from rea-checkov / rea-kics / rea-eslint-flat / rea-yamllint?

rea-checkov covers Checkov. rea-kics covers KICS. rea-eslint-flat covers ESLint flat config. rea-yamllint covers yamllint. This page zooms on Spectral OpenAPI/AsyncAPI lint identity — it does not overwrite those pages.

Is there inspect_spectral in 6.7.0?

Not assumed. Quote .spectral.yaml / ruleset / extends pins you actually open, then use documented package/archive lanes. Do not invent inspect_spectral.

Does REA call Spectral APIs or steal tokens?

No. Local trees only. Redact API tokens and private ruleset registry secrets; do not treat REA as a Spectral runner. No credential theft.

How should I label Evidence vs cousin trees?

Label Evidence by the file present. Keep Spectral stack identity separate from rea-yamllint (API lint ≠ generic YAML) and rea-polaris (Spectral ≠ Polaris).

npm version checked?

rea-agents 6.7.0 (re-checked 2026-10-24).

Sources