Skip to content

docs: expand and reorganize AGENTS.md across packages#459

Merged
dmihalcik-virtru merged 2 commits into
mainfrom
docs/agents-md-improvements
May 22, 2026
Merged

docs: expand and reorganize AGENTS.md across packages#459
dmihalcik-virtru merged 2 commits into
mainfrom
docs/agents-md-improvements

Conversation

@dmihalcik-virtru
Copy link
Copy Markdown
Member

@dmihalcik-virtru dmihalcik-virtru commented May 21, 2026

Summary

Improves the agent-facing documentation across the repository so future Claude Code sessions land on accurate context faster. All changes are docs-only — no code touched.

  • Root AGENTS.md: new Repository Layout table at the top; new "Before Committing Python Changes" section requiring uv run ruff check, uv run ruff format, and uv run pyright, with the rationale that uvx strips the project venv and breaks pyright import resolution; trimmed the duplicated "Summary → Preferred Workflow" block.
  • otdf-local/AGENTS.md: flagged the manual-keys YAML block as an emergency fallback that may drift from the current platform schema.
  • xtest/AGENTS.md (new): test-suite layout, custom pytest options reference, audit-log fixture quick reference (--no-audit-logs vs DISABLE_AUDIT_ASSERTIONS), and test-authoring guidance. xtest/CLAUDE.md symlinks to it, matching the root convention.

Scoped intentionally to content that's accurate on main today. A follow-up PR will add otdf-sdk-mgr/AGENTS.md (covering the platform installer and scenario workflows) once #451 merges.

Test plan

  • No source files modified — verified with git diff --stat
  • grep for forward references to feature-branch-only code (platform_installer, cli_scenario, install platform, install scenario) returns no matches in these files
  • All command snippets are commands that work against main today

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Updated onboarding guidance for the test framework, including repository layout and required pre-commit linting and type-checking procedures
    • Added comprehensive documentation for the cross-client integration test suite with pytest modules, fixtures, and custom options
    • Enhanced Golden Key Auto-Configuration documentation with emergency fallback configuration details

Review Change Stack

- Root AGENTS.md: add a Repository Layout table near the top, add a
  "Before Committing Python Changes" section requiring
  `uv run ruff check`, `uv run ruff format`, and `uv run pyright`
  (with the rationale that `uvx` strips the project venv and breaks
  pyright import resolution), and trim the duplicated "Summary →
  Preferred Workflow" block that restated the body.
- otdf-local/AGENTS.md: mark the manual-keys YAML block as an
  emergency fallback that may drift from the current platform schema.
- xtest/AGENTS.md (new): test-suite layout, custom pytest options
  table, audit-log fixture quick reference, authoring guidance.
- xtest/CLAUDE.md: symlink to AGENTS.md, matching repo convention.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@dmihalcik-virtru dmihalcik-virtru requested review from a team as code owners May 21, 2026 17:47
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 21, 2026

Warning

Rate limit exceeded

@dmihalcik-virtru has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 48 minutes and 28 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 5c1bbcd7-d811-4bd3-8196-14b77db4a26a

📥 Commits

Reviewing files that changed from the base of the PR and between 759ae25 and b26d694.

📒 Files selected for processing (1)
  • AGENTS.md
📝 Walkthrough

Walkthrough

This PR updates developer onboarding documentation across four files. The root AGENTS.md gains a repository layout table and a new pre-commit checks section, replacing end-of-document workflow details with a brief closing note. A new xtest/AGENTS.md guide documents the cross-client integration test suite structure, fixtures, authoring rules, and SDK CLI abstraction. otdf-local/AGENTS.md clarifies its manual configuration as an emergency fallback. xtest/CLAUDE.md is added as a reference file.

Changes

Developer Onboarding and Test Guidance

Layer / File(s) Summary
Root framework overview and pre-commit checks
AGENTS.md
Repository layout is presented as a structured table; a new "Before Committing Python Changes" section documents ruff/pyright checks via uv run with file re-staging guidance; and the closing note consolidates workflow guidance into a pointer to per-package guides.
Cross-client integration test documentation
xtest/AGENTS.md, xtest/CLAUDE.md
xtest/AGENTS.md is created to document integration test suite layout, pytest fixtures, custom options, test authoring rules, audit-log fixture behavior, SDK CLI abstraction (tdfs.py and sdk/<lang>/dist/<version>/cli.sh), and pre-commit checks. xtest/CLAUDE.md references the AGENTS.md guide.
Platform setup emergency fallback clarification
otdf-local/AGENTS.md
Manual configuration under "Golden Key Auto-Configuration" is reframed as an emergency-only fallback that may drift from the current platform schema, replacing the prior conditional phrasing.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 A test guide hops through the forest of code,
With tables and rules on the onboarding road,
Pre-commit checks sparkle with ruff and with pyright,
And integration tests glow in the xtest-ful light,
No code to review, just wisdom to share!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly and accurately summarizes the main change: expanding and reorganizing AGENTS.md documentation across multiple packages in the repository.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/agents-md-improvements

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request reorganizes documentation for AI agents by updating the root AGENTS.md with a repository layout and mandatory pre-commit Python checks, while also introducing a comprehensive guide for the xtest integration suite. Additionally, it refines manual configuration warnings in otdf-local/AGENTS.md. Feedback from the review suggests ensuring table consistency in the main guide and correcting a forward-looking reference to a documentation file that has not yet been created.

Comment thread AGENTS.md Outdated
Comment thread AGENTS.md Outdated
Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
AGENTS.md (1)

5-14: 💤 Low value

Consider filling the empty cell in the table for consistency.

The third column on line 13 (for xtest/sdk/{go,java,js}/dist/) is empty. Since this row describes build artifacts rather than source directories, consider adding "n/a" or "—" to maintain table structure consistency.

📝 Proposed table fix
-| `xtest/sdk/{go,java,js}/dist/` | Built SDK CLI wrappers, produced by `otdf-sdk-mgr install` (or by `cd xtest/sdk && make` for source builds) |  |
+| `xtest/sdk/{go,java,js}/dist/` | Built SDK CLI wrappers, produced by `otdf-sdk-mgr install` (or by `cd xtest/sdk && make` for source builds) | n/a |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@AGENTS.md` around lines 5 - 14, The table row for
`xtest/sdk/{go,java,js}/dist/` in AGENTS.md has an empty third column; update
that cell to a consistent marker like "n/a" or "—" to indicate build artifacts
rather than a source directory so the table remains uniform, e.g., change the
empty entry in the row referencing `xtest/sdk/{go,java,js}/dist/` to "n/a".
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@AGENTS.md`:
- Around line 5-14: The table row for `xtest/sdk/{go,java,js}/dist/` in
AGENTS.md has an empty third column; update that cell to a consistent marker
like "n/a" or "—" to indicate build artifacts rather than a source directory so
the table remains uniform, e.g., change the empty entry in the row referencing
`xtest/sdk/{go,java,js}/dist/` to "n/a".

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: bd0c378f-0e93-4898-a8ba-e583b7efe9c7

📥 Commits

Reviewing files that changed from the base of the PR and between cd004bc and 759ae25.

📒 Files selected for processing (4)
  • AGENTS.md
  • otdf-local/AGENTS.md
  • xtest/AGENTS.md
  • xtest/CLAUDE.md

@dmihalcik-virtru dmihalcik-virtru changed the title docs(agents): expand and reorganize AGENTS.md across packages docs: expand and reorganize AGENTS.md across packages May 21, 2026
- Root AGENTS.md: collapse the duplicated Custom pytest Options and Audit
  Log Assertions sections into a summary that delegates to xtest/AGENTS.md
  (the operational knobs live there). Net 41 lines removed.
- Add the missing `eval $(uv run otdf-local env)` step to the Environment
  Management quick start so the default audit-log assertions actually have
  the env vars they require.
- Replace the stale test-file list with a pointer to xtest/AGENTS.md, which
  has the canonical and current list (adds test_audit_logs.py, test_pqc.py).
- Drop the truncated "Base Key Behavior" heading (one-sentence orphan).
- Drop the generic "Before Making Changes" subsection and "Common Pitfalls"
  list — both were low-signal restatements of the body.
- Closing Note now references otdf-sdk-mgr/README.md (the file that exists)
  instead of the nonexistent otdf-sdk-mgr/AGENTS.md.
- Fill empty cell in the Repository Layout table row for
  xtest/sdk/.../dist/ with "n/a" (PR review comment, both gemini and
  coderabbitai flagged it).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@sonarqubecloud
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown

X-Test Failure Report

✅ js@v0.4.0-v0.15.0

@dmihalcik-virtru dmihalcik-virtru merged commit fd312f5 into main May 22, 2026
19 checks passed
@dmihalcik-virtru dmihalcik-virtru deleted the docs/agents-md-improvements branch May 22, 2026 01:42
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.

2 participants