-
Notifications
You must be signed in to change notification settings - Fork 2
chore: add AGENTS.md #375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
strantalis
wants to merge
1
commit into
main
Choose a base branch
from
agents-md
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
chore: add AGENTS.md #375
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,39 @@ | ||||||
| # Repository Guidelines | ||||||
|
|
||||||
| ## Project Structure & Module Organization | ||||||
|
|
||||||
| - `xtest/`: Cross-client compatibility test harness (Python + `pytest`), with fixtures in `xtest/fixtures/` and golden data in `xtest/golden/`. | ||||||
| - `xtest/sdk/`: Helper scripts and Makefiles for checking out/building SDKs under test (e.g., `xtest/sdk/scripts/checkout-all.sh`, `cd xtest/sdk && make`). | ||||||
| - `vulnerability/`: Playwright-based security regression tests (`vulnerability/tests/`). | ||||||
| - `.github/workflows/`: CI workflows (lint/type-check, xtest matrix runs, vulnerability runs). | ||||||
|
|
||||||
| ## Build, Test, and Development Commands | ||||||
|
|
||||||
| - Enter the dev environment: `devbox shell` (installs Python/JDK/Node per `devbox.json`). | ||||||
| - Install xtest deps: `python -m pip install -r xtest/requirements.txt` | ||||||
| - Run xtest: `cd xtest && pytest` | ||||||
| - Focus a subset: `pytest --sdks "go js" --focus go` (see `xtest/conftest.py` options) | ||||||
| - HTML report: `pytest --html tmp/test-report.html --self-contained-html` | ||||||
| - Build SDK CLIs (after checkout): `cd xtest/sdk && make` | ||||||
| - Run vulnerability tests: `cd vulnerability && npm ci && npm test` (requires a running platform; see `README.md` and `vulnerability/README.md`). | ||||||
|
|
||||||
| ## Coding Style & Naming Conventions | ||||||
|
|
||||||
| - Python code in `xtest/` uses 4-space indentation, `snake_case`, and `pytest`-style fixtures. | ||||||
| - CI enforces these checks in `xtest/`: | ||||||
| - `ruff check` | ||||||
| - `black --check .` | ||||||
| - `pyright` | ||||||
| - Local equivalent: `cd xtest && python -m pip install -r requirements.txt && python -m pip install ruff black pyright && ruff check && black --check . && pyright` | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If the linting tools are installed as part of the main dependency setup (as suggested for line 13), this command can be simplified to only run the checks. This makes the local check process faster and the command easier to read.
Suggested change
|
||||||
|
|
||||||
| ## Testing Guidelines | ||||||
|
|
||||||
| - `pytest` tests live in `xtest/test_*.py`; add new fixtures under `xtest/fixtures/`. | ||||||
| - Tests assume a platform backend is reachable (Docker + Keycloak). Use `xtest/test.env` as a template: | ||||||
| - `cd xtest && set -a && source test.env && set +a` | ||||||
|
|
||||||
| ## Commit & Pull Request Guidelines | ||||||
|
|
||||||
| - Use semantic commit/PR titles (enforced by CI): `feat(xtest): ...`, `fix(vulnerability): ...`, `docs: ...` (types: `fix|feat|chore|docs`; scopes include `xtest`, `vulnerability`, `go`, `java`, `web`, `ci`). | ||||||
| - DCO sign-off is required: `git commit -s -m "feat(xtest): ..."` (see `CONTRIBUTING.md`). | ||||||
| - PRs should include a clear description, linked issue (if any), and relevant logs/screenshots for test failures; reviewers are defined in `CODEOWNERS`. | ||||||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To improve the local development workflow, consider including the linting and type-checking tools in this installation step. This avoids reinstalling them every time the checks are run (as per the command on line 27) and centralizes dependency management.