Skip to content

Conversation

@overcut-ai
Copy link

@overcut-ai overcut-ai bot commented Jan 10, 2026

Summary

🔄 Overcut automatically updated AGENTS.md with latest repository analysis.

Summary

This PR introduces a comprehensive AGENTS.md guide to help autonomous contributors quickly understand how to work within the repository. It documents the project’s purpose, structure, tooling, coding/testing conventions, CI/CD workflows, documentation patterns, and operational rules tailored for future agents.

Changes

  • Documentation: Added AGENTS.md outlining repository layout, TypeScript build configuration, instrumentation/testing practices, CI/CD expectations, documentation templates, and operational guidelines for agents.

Commits

Testing

  • Review AGENTS.md to ensure the described repository structure, tooling commands, and workflows reflect the current codebase
  • Preview AGENTS.md on GitHub to confirm tables, code fences, and checklists render correctly
  • Run npm ci && npm run lint && npm run test:cov && npm run build to validate the command sequence documented in the guide

- Add comprehensive agent guide covering repository structure and tooling workflows

- Document coding/testing patterns, CI/CD expectations, and documentation templates
@overcut-ai
Copy link
Author

overcut-ai bot commented Jan 10, 2026

Completed Working on "Auto PR Description"

✅ Workflow completed successfully.


👉 View complete log

@overcut-ai
Copy link
Author

overcut-ai bot commented Jan 10, 2026

Completed Working on "Auto PR Description"

✅ Workflow completed successfully.


👉 View complete log

Copy link
Author

@overcut-ai overcut-ai bot left a comment

Choose a reason for hiding this comment

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

Findings: 0 BLOCKER / 0 CRITICAL / 0 MAJOR / 2 MINOR / 0 SUGGESTION / 0 PRAISE.

Key themes:

  1. Documentation references don�t match the current repository assets (README only embeds docs/log.png).
  2. The AGENTS guide overstates how instrumentation leverages ModuleRef, which could mislead future contributors about the actual instantiation path.

Next steps:

  • Update the AGENTS asset section so it reflects exactly which images are referenced today.
  • Clarify the instrumentation description to distinguish the forRoot factory path from the forRootAsync ModuleRef-based flow.

AGENTS.md Outdated
│ └── trace.service.ts # Service exposed through module exports
├── docs/
│ ├── migration-5-to-6.md # Example of structured guide w/ before/after blocks
│ ├── log.png & trace-flow.jpeg # Assets referenced by README
Copy link
Author

Choose a reason for hiding this comment

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

[minor]: README only references log.png

@@ Repository Structure & Key Directories (lines ~20-24) states that both log.png and trace-flow.jpeg are referenced by README, but a repo search shows README embeds only ./docs/log.png. Please align the guide with the actual docs to avoid sending agents on a goose chase for an unused asset.

Suggested fix: Adjust the bullet to mention only log.png (or add the missing README reference to trace-flow.jpeg before documenting it here).

AGENTS.md Outdated

## Coding & Testing Patterns
- **Instrumentation abstraction:** `src/trace/instrumentation/Instrumentation.ts` defines the interface, while `base-trace.instrumentation.ts` centralizes metadata lookup. Concrete instrumentations live under the same directory with paired specs (e.g., `controller.instrumentation.ts` + `.spec.ts`).
- **Default coverage for Nest pieces:** `OpenTelemetryModule` exports `defaultInstrumentation` (controllers, GraphQL resolvers, guards, interceptors, event emitters, schedulers, pipes, console logger) and ensures each class’ `setupInstrumentation()` runs through `ModuleRef` (see `src/open-telemetry.module.ts`).
Copy link
Author

Choose a reason for hiding this comment

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

[minor]: ModuleRef reference is inaccurate

@@ Coding & Testing Patterns (lines ~52-56) claims defaultInstrumentation ensures every instrumentation’s setupInstrumentation() runs through ModuleRef, yet src/open-telemetry.module.ts shows that the regular forRoot path uses the buildInstrumentation factory and never touches ModuleRef (only forRootAsync does). Please update the description so agents understand how instrumentation is actually instantiated.

Suggested fix: Clarify that forRoot wires instrumentation via the buildInstrumentation factory (without ModuleRef) and reserve the ModuleRef note for the async factory, or adjust the code to match the documented behavior.

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