Skip to content

Latest commit

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date

As Decided Sentry

Deterministic code enforcement for engineering decisions.

Enforcement guide · Product site · Release record

Sentry checks machine-readable constraints carried by your decision artifacts against the source changes in a pull request. It supports required and forbidden patterns, import boundaries, full-tree certification, and SARIF annotations—without embeddings, network calls, or an LLM judge.

Use it

name: Sentryon:
pull_request:
permissions:
contents: readsecurity-events: writejobs:
sentry:
runs-on: ubuntu-lateststeps:
- uses: actions/checkout@v4with:
fetch-depth: 0
- uses: asdecided/sentry@v0.26.0

By default, Sentry checks added lines against the pull request base and uploads one SARIF report to GitHub Code Scanning.

Use full: "true" to certify the complete repository tree:

 - uses: asdecided/sentry@v0.26.0with:
full: "true"

Decision constraints

Add a Code Constraints block to an accepted decision:

version: 1eligibility: eligiblereason: "The dependency boundary is deterministic and repository-local."rules:
- id: domain-has-no-database-driverkind: forbid_importpath_glob: "src/domain/**/*.rs"pattern: "^(sqlx|diesel)(::|$)"message: "Domain code must not import a database driver."

Supported rule kinds:

  • forbid_import
  • forbid_pattern
  • require_pattern

Sentry deliberately has no model-judged escape hatch. A decision is either enforced through a deterministic rule, explicitly ineligible, or visibly unclassified.

Inputs

InputDefaultPurpose
pathdecisionsDecision corpus directory
repository.Source repository root
basePR base SHAGit base revision for diff mode
fullfalseCheck the complete tree
upload-sariftrueUpload Code Scanning results
sarif-fileasdecided-sentry.sarifSARIF output path
asdecided-version0.26.0Native release to install

Authoritative development lives in asdecided/ci.

About

Deterministic code enforcement for engineering decisions

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages