AGENT SKILL

symphony-validator

暂无简介

License 许可
AGPL-3.0
所属仓库
QuanuX/Symphony
最近更新
2026-11-14
Stars
★ 2
Forks
0

02 资源文件 271

03 SKILL.md 正文

Symphony Validator Skill


Skill Purpose

Provide deterministic, structured evidence of repository compliance with Symphony doctrinal boundaries.

Intended Users

  • humans
  • CI systems
  • qxctl
  • agentic tools consuming reports

Planned Skill Surface

The implemented skill surface is direct execution through symphony-validator check --repo <path> [--json], bounded root-summary projection through symphony-validator root-summary --repo <path> [--json], and exact installed invocation through qxctl validate scan|debug|root-summary or qxctl knowledge invariant check. It emits deterministic line evidence, one symphony.validation.result.v1 object, or one symphony.repository.root-summary.v1 JSON/Markdown projection plus process status. CI invocation and general documentation projection remain planned but unimplemented.

The repository check includes SACV registry shape, ownership, classification, SKVI coverage, and no-follow owner-document presence. Use qxctl sacv check with an exact installed engine for OpenAPI syntax/profile, reference, security, example-safety, and registry/document alignment evidence; do not mistake the validator's registry check for a partial OpenAPI parser.

The repository check also includes SODV local release-record shape, time order, lineage, publication-unit preservation, and no-follow ledger presence. Use qxctl sodv check|verify|recover with an exact installed engine for richer release evidence and caller-supplied external observations; do not mistake the validator for a Git-host or package-provider client.

The repository check requires the canonical SSFV contract, namespace, empty-or-future registry, feature-file format, engine Contract Quad/build surface, and qxctl grammar/client anchors. It recognizes eighteen exact SSFV v1/v2 JSON schemas. Its static feature-administration check also binds the exact current SSFV registry, complete profile set, expected qxctl command inventory, and a no-follow census of source-implemented direct module scopes without running qxctl. Contract Quad-only module seeds remain documentation, while a direct CMake, Go, Swift, src, cmd, or Sources marker requires exact root feature routing and profile evidence. It does not decide feature-worthiness, validate distributed semantic records, infer missing interaction semantics, recommend command names, or substitute for the independently installed symphony-ssfv engine.

The repository check validates the common invariant-ownership registry, its recursive omit-self digest, stable identities, owner and evidence paths, named regression definitions, distinct evidence roles, adapter closure, and IPC real-process coverage. Named test discovery is traceability evidence only; run the applicable test suites separately before claiming execution success.

Deterministic, Non-Autonomous Behavior

The validator is deterministic, explainable, and non-autonomous. The validator produces evidence, including caller-authority regression findings (exit code 21). The validator does not fix the repository. The validator does not choose remedies. Every permission-bearing caller may consume the implemented projections. The bounded root-summary Markdown region introduces no claims beyond its validated JSON source evidence. The validator itself remains non-autonomous and authority-free. Caller types remain descriptive.

Invocation Procedure

  1. Build the checked-in C++26 target according to INSTALL.md.
  2. Run symphony-validator check --repo <path> or add --json; for protected policy/baseline evaluation use qxctl validate scan with the exact prefix, version, TOPS ID, and optional profile/baseline IDs.
  3. Consume every evidence line through the single final summary line; do not stop after the first matching line.
  4. Treat exit 21 as a bounded caller-authority, discovery, symlink, stream, or resource failure and use the stable rule ID and lexical path to locate the evidence.
  5. Treat exit 22 as a SACV registry failure and use sacv.registry.* evidence to locate the exact entry boundary.
  6. Treat exit 23 as a SODV release-ledger failure and use sodv.releases.* evidence to locate the record boundary.
  7. Treat exit 24 as a feature-administration contract failure and use feature_administration.* evidence to distinguish profile, registry digest/set, command inventory/binding, reference, and forward-gate failures.
  8. Treat exit 25 as root-summary source or managed-region drift; inspect the exact source finding, then use the read-only root-summary --repo <path> projection to compare expected evidence without asking the validator to mutate README.
  9. Treat exit 26 as invariant-ownership failure and use invariant_ownership.* evidence to distinguish registry, identity, owner/path, regression, adapter, and IPC coverage failures; test-name presence does not mean the suite executed.
  10. Refer to the normative Caller-Authority Regression Check, SACV Registry Boundary, SODV Release Ledger Boundary, Feature Administration Assurance Boundary, Invariant Ownership Assurance Boundary, and Root Summary Assurance Boundary in SPEC.md before interpreting scope or exclusions.

Output Consumption Behavior

Evidence lines plus the summary and the structured JSON result are equivalent complete-check projections. The root-summary JSON and Markdown forms are equivalent bounded projections of the separately validated summary inputs. Consumers must retain the complete selected projection and process status. qxctl verifies evidence/result digests, evaluates warning policy only after the complete scan, and keeps filters presentation-only. A clean bounded scan is not universal semantic proof.

Refusal/non-remediation Behavior

The validator does not infer intent. The validator does not rewrite files. The validator does not choose remedies. The validator does not make architecture decisions. The validator does not replace permission-backed ratification or semantic review. The validator rejects direct apply with stable usage failure and never mutates repository bytes.

Non-goals

The validator must not perform autonomous semantic decisions, infer intent, rewrite files, choose remedies, make architecture decisions, replace qxctl, replace Maestro, replace SKV / SKVI / SCLV / SACV / SODV / SSFV records, become a runtime daemon, become hidden coordinator logic, become a module implementation, choose infrastructure for users, impose market-data/order-flow/trading doctrine, require Python for hot-path or administrative spine, or ban optional isolated Python habitats.

Non-authorization Statement

This skill authorizes use of the checked-in deterministic C++26 parser/checker, JSON projector, versioned install, and qxctl validation surface. It does not authorize executable schema generation, CI mutation, repository mutation, publication, or remediation.

04 同仓库更多 Skills