Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<!--
SPDX-FileCopyrightText: 2026 LibreCode coop and contributors
SPDX-License-Identifier: AGPL-3.0-or-later
-->

# Agent guidance

## Purpose

This repository owns the organization-agnostic engine that discovers repositories and reconciles declarative GitHub repository governance, rulesets and supported repository metadata.

## Boundaries

- Organization/product policy belongs in caller-owned `governance.config.json`, not hard-coded in the engine.
- Keep dry-run as the safe default; mutation must remain explicit.
- Repository metadata reconciliation may manage GitHub settings such as description, homepage and topics.
- File content such as licenses, README files and `AGENTS.md` remains version-controlled in each repository.
- Release automation belongs in `LibreCodeCoop/github-workflows`, not here.

## Quality gates

Run or rely on CI for:

- TypeScript build/type checks;
- Vitest;
- actionlint;
- zizmor;
- CodeQL;
- REUSE compliance.

## Security

- Use short-lived GitHub App tokens with the narrowest repository scope.
- Do not centralize caller credentials in this repository.
- Do not weaken rulesets silently to make reconciliation pass.
- Keep third-party actions pinned to immutable SHAs.

## SPDX / REUSE

New repository-owned files use AGPL-3.0-or-later and must satisfy REUSE/SPDX checks.
Loading