Skip to content

Releases

Darz v0.6.1

Choose a tag to compare

@barg-labs-agent barg-labs-agent released this 05 Dec 00:37
97f1e39
  • Darz is published on npm as darz, from this repository's release workflow, with npm provenance. The workflow runs on a version tag, only in BargLabs/darz, from the release environment; it refuses a tag that is not the version or a dist/ that is not the build, and re-running it skips a version npm already serves with the same tarball.
  • package.json is publishable: the repository link npm checks provenance against, homepage, bugs, keywords and public access with provenance. The package holds only the built CLI, the schemas, the README and the licence, and a test holds that.
  • The README adds installing from npm, running a pinned version with npx, and verifying provenance with npm audit signatures.
  • Tool version bumped to 0.6.1. No change to the checks or the record format.

Darz v0.6.0

Choose a tag to compare

@barg-labs-agent barg-labs-agent released this 04 Dec 14:36
f6bfbfc

Darz v0.6.0

  • The record is also written as an unsigned in-toto Statement v1, darz-record.intoto.json, whose predicate is the record unchanged (predicate type https://barglabs.ai/darz/gate-check/record/v0.3) and whose subjects are the commit read and darz-record.json. The Action gains an intoto output. Darz signs nothing; the README says how to sign the Statement. The record format, darz-record-0.3, is unchanged.
  • The Action removes an earlier run's outputs, the Statement included, before each run, and a test now holds that.
  • Darz's own lesson uses lesson format 0.2 (owner and kind), and its self-check runs v0.5.0.
  • Tool version bumped to 0.6.0.

Darz v0.5.0

Choose a tag to compare

@houman44 houman44 released this 29 Nov 20:33
d5b263e

Darz v0.5.0

  • Lesson format 0.2: lessons can declare an owner and a kind, and check 7 reports them (ownership lines name only lessons in force, with CODEOWNERS-compatible owner matching).
  • GitHub Action renamed to "DARZ Gate Check" for the GitHub Marketplace listing.
  • Tool version bumped to 0.5.0.

DARZ Agent Gate Check v0.4.0

Choose a tag to compare

@barg-labs-agent barg-labs-agent released this 25 Nov 01:43
1bd1639

Changed

  • Check 5: a required check pinned to GitHub Actions holds only while checks 1-3 hold.
    • A pull request from a branch in the repository can add a workflow that posts a required check as GitHub Actions (app 15368). A pin to GitHub Actions therefore gates nothing on its own. The defence is review of the workflow change: check 1 (gate files owned, code-owner review required), together with checks 2 and 3.
    • For a check pinned only to GitHub Actions, check 5 now fails with required_check_actions_pin_unreviewed when check 1, 2 or 3 fails. It is unverifiable with required_check_actions_pin_review_unknown when none of them fails and one of them is unverifiable. In v0.3.0 this check passed, so upgrading can turn a passing run red.
    • A check that another source pins to a different app is no longer listed in details.pinnedToGitHubActions, because GitHub enforces both pins.
    • The context line names the path that is not checked: an existing workflow that holds checks: write and runs code the pull request controls. docs/checks.md ("Pinned to GitHub Actions") says what was tested and what was not.

New

  • Check 1 lists pull-request workflows that hold checks: write.
    • Check 1 reads .github/workflows/*.yml and *.yaml. As context, it lists the workflows that are triggered by pull_request or pull_request_target and that grant checks: write, at workflow level or job level, or through write-all.
    • A workflow that sets no permissions depends on the repository default. That default can be read only with admin, through GET /repos/{owner}/{repo}/actions/permissions/workflow. Without admin, such a workflow is reported as undecided.
    • YAML shapes the reader does not handle (aliases, merge keys, tags, block scalars, multi-line flow values) are reported as undecided, never as "no grant".
    • The lists are in details.pullRequestWorkflowsWithChecksWrite and details.pullRequestWorkflowsUndecided, and details.workflowSignal is complete, incomplete or not_computed. The signal never changes check 1's status.
    • Workflow reads have their own cap of 500 files. Darz still adds no YAML dependency.

Docs

  • README: github/codeql-action/upload-sarif is pinned to v4.39.3 with its version comment. A docs test requires every action in the README that is pinned to a full SHA to carry a # vX.Y.Z comment.

Records stay in format darz-record-0.3. The schema is unchanged.

DARZ Agent Gate Check v0.3.0

Choose a tag to compare

@barg-labs-agent barg-labs-agent released this 24 Nov 11:50
eb287d9

Breaking

  • Records are format darz-record-0.3 (schema/record-0.3.schema.json), which adds check 7 and ref. Records from v0.1.0 and v0.2.0 stay formats 0.1 and 0.2; their schemas are kept unchanged.

New

  • Lessons and check 7, lessons_hold. A team that sees an agent make the same mistake twice can write it down at .github/darz/lessons/<id>.json: a statement, evidence, and a forbid or require pattern check (schema/lesson-0.1.schema.json).
    • Check 7 requires each lesson's latest change to have been approved, on the pull request's final commit, by a person who is neither the pull request's author nor an agent, and each lesson in force to hold at the commit read.
    • Lessons are always read from the default branch, so a pull request cannot delete the lesson that judges it. Lesson files are gate files, so check 1 requires them to have a code owner.
    • With no lesson in force, the row is context, never pass.
  • --ref <sha> sets the commit check 7 runs lessons over. Default: the default branch's head.
  • Check 7 gives one SARIF result per failing or unverifiable lesson, located at the file and line a violated lesson found, or at the lesson file.

Changed

  • github-actions[bot] is a platform identity, not an agent. It is no longer detected from merge authors, collaborators or CODEOWNERS. A ruleset that lets GitHub Actions bypass it still fails check 4, and declaring it still makes it an agent.
  • Check 5 passes a required check pinned to GitHub Actions (app 15368) and lists such checks in details.pinnedToGitHubActions, with a context line: any workflow with checks: write can post that app's check runs.
  • Check 6 says how many of its merges were left out.
  • CODEOWNERS lines GitHub reports as errors are read the way GitHub handles them: an Unknown owner line applies with the owners not flagged; an Invalid owner anywhere on the line, or an Invalid pattern, skips the line; a ! negation line has no effect. Other error shapes stay codeowners_error_ambiguous.
  • README: a section on using Darz alongside OpenSSF Scorecard, zizmor and OSV-Scanner, with a least-privilege workflow sketch.

DARZ Agent Gate Check v0.2.0

Choose a tag to compare

@houman44 houman44 released this 24 Nov 07:33
79fec26

Breaking

  • Node 22 or later is required (engines >=22). The Action runs on node24.
  • Records are format darz-record-0.2 (schema/record-0.2.schema.json). Records from v0.1.0 stay format 0.1; their schema is kept unchanged.

New

  • Opt-in GraphQL reader (--graphql-ruleset-roles, Action input graphql-ruleset-roles) for the role names of ruleset bypass actors in check 4. It is the one exception to GET-only reads: fixed query documents, no mutations, the configured host only.
  • Checks 1 and 3 also judge probe paths: a new workflow, a new action, and CODEOWNERS locations GitHub reads first (new_gate_paths_unowned).
  • Check 6 judges candidate gate files as they were at each merge, and reads merges until none can be missing (merges_incomplete at the page cap).
  • OrganizationAdmin bypasses are judged from organisation membership; agent app installation permissions are checked where the token can read them.
  • Agent apps: one slug declared with two ids is agent_app_ids_conflict, two slugs sharing one id is agent_app_slugs_share_id, and a declared id that GitHub's lookup does not confirm is noted in context.
  • Redirects for renamed or transferred repositories are followed within the API URL.

Changed

  • Candidate files are read up to 500 distinct blobs; node_modules paths are skipped.
  • Fixes for false passes found in review, among them check 5 with unresolved agent apps and the classic-protection 404 proof.
  • A test keeps shipped files free of tracker numbers, local paths and personal email addresses.

DARZ Agent Gate Check v0.1.0

Choose a tag to compare

@houman44 houman44 released this 23 Nov 18:30