Skip to content

docs(specs): add W3C-style usage specification#593

Merged
davidslater merged 2 commits into
mainfrom
ace/01KY37ADKPWCVTVWW7VS6R9Z7C
Jul 21, 2026
Merged

docs(specs): add W3C-style usage specification#593
davidslater merged 2 commits into
mainfrom
ace/01KY37ADKPWCVTVWW7VS6R9Z7C

Conversation

@davidslater

Copy link
Copy Markdown
Collaborator

Created by GitHub Ace · View Session

Summary

Closes #383.

Adds a W3C-style Usage Specification (specs/usage-spec.md) for the threat-detect component. Where the existing threat-detection-spec.md defines what the detector does (detection behavior and result contract), this new spec defines how a host acquires, invokes, and concludes a detection run — giving integrators a single normative reference to simplify integration.

What's included

  • Normative requirements U-01..U-28 using RFC 2119 language, mirroring the format of the existing spec.
  • Sections: Acquisition, Invocation, Integrated Detection Flow, Sandboxed Execution (AWF), Conclusion Contract, Version Compatibility, Replay & Diagnostics, Conformance Summary.
  • Cross-references the detection behavior spec via TD-XX rather than duplicating it; the usage spec explicitly does not weaken or override any TD-XX requirement.
  • Linked the new spec from README.md (Specification section + Architecture tree) and CLAUDE.md.

Notes

Documentation-only change — no code, build, or test impact.

Introduce specs/usage-spec.md, a W3C-style normative usage/integration
specification for the threat-detect CLI (U-01..U-28). It defines how a
conforming host acquires the release-asset binary, invokes the detector,
runs it inside the AWF sandbox, and concludes a run, referencing the
detection behavior spec via TD-XX to avoid duplication.

Link the new spec from README.md and CLAUDE.md.

Closes #383

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: David Slater <12449447+davidslater@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 21, 2026 21:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a normative usage specification for integrating threat-detect.

Changes:

  • Defines acquisition, invocation, sandboxing, conclusion, and compatibility requirements.
  • Links the specification from project documentation.
Show a summary per file
File Description
specs/usage-spec.md Adds the usage specification.
README.md Links and describes the new specification.
CLAUDE.md Adds the specification to repository guidance.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 3/3 changed files
  • Comments generated: 2
  • Review effort level: Medium

Comment thread specs/usage-spec.md Outdated
Comment thread specs/usage-spec.md Outdated
- U-04: remove the internal contradiction with U-24/U-26 by keeping the
  MUST pin requirement and requiring latest to be resolved to a concrete
  release tag before download (no unpinned "latest" download).
- U-22: include output_write_error among the exit-2 reasons that may fail
  the detection step, since an unwritten verdict may have contained a
  threat and must not be treated as a recoverable missing report.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: David Slater <12449447+davidslater@users.noreply.github.com>
@davidslater
davidslater merged commit 9ba7f0b into main Jul 21, 2026
8 checks passed
@davidslater
davidslater deleted the ace/01KY37ADKPWCVTVWW7VS6R9Z7C branch July 21, 2026 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Usage specification

2 participants