Skip to content

agents directives from work, project and hobby experience - #14872

Draft
DaanHoogland wants to merge 1 commit into
mainfrom
agents-md-best-practices
Draft

DaanHoogland wants to merge 1 commit into
mainfrom
agents-md-best-practices

Conversation

@DaanHoogland

@DaanHoogland DaanHoogland commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Description

This PR, is more of an opinion than a set plan.

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • Build/CI
  • Test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

How did you try to break this feature and the system with this change?

@codecov

codecov Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 20.92%. Comparing base (85ca17a) to head (66568ac).

Additional details and impacted files
@@            Coverage Diff            @@
##               main   #14872   +/-   ##
=========================================
  Coverage     20.92%   20.92%           
- Complexity    21142    21143    +1     
=========================================
  Files          6057     6057           
  Lines        549556   549556           
  Branches      73477    73477           
=========================================
+ Hits         114991   114992    +1     
+ Misses       421116   421114    -2     
- Partials      13449    13450    +1     
Flag Coverage Δ
uitests 3.86% <ø> (ø)
unittests 22.36% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

🔴 Test Coverage Grade: D — Marginal

Metric Value
Line coverage 25.87%
Branch coverage 21.09%

Grade Scale

Grade Line Coverage Meaning
🟢 A ≥ 80% Excellent - this code sleeps well at night 😴
🟡 B 60-79% Good - almost there, don't stop now 😉
🟠 C 40-59% Acceptable - your code is wearing a seatbelt, but no airbags 😬
🔴 D 20-39% Marginal - boldly shipping where no test has gone before 🖖
⛔ F < 20% Failing - tests? what tests? 🔥

Branch coverage is shown as a secondary signal. Grade is determined by line coverage.
View full Actions run

@bernardodemarco
bernardodemarco self-requested a review November 26, 2026 13:28
Comment thread AGENTS.md
| `server/` | Manager implementations (business logic) |
| `engine/schema/` | VO and DAO classes, DB schema and upgrade SQL |
| `framework/` | Config, DB, security, async jobs |
| `plugins/` | Hypervisors, storage, network, extensions |

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
| `plugins/` | Hypervisors, storage, network, extensions |
| `plugins/` | Hypervisors, storage, network, backup implementations, extensions |

Comment thread AGENTS.md
Comment on lines +50 to +63
```bash
# Full build (slow)
mvn clean install -Dnoredist -P developer,systemvm -DskipTests -T8
# Incremental build (slow)
mvn clean install -Dnoredist -P developer,systemvm -pl api,server,engine/schema,client -DskipTests
# Deploy DB (fast)
mvn -Pdeveloper -pl developer -Ddeploydb
# Run the management server
mvn -pl :cloud-client-ui jetty:run -Dnoredist -Djava.net.preferIPv4Stack=true
# Single unit test (fast)
mvn test -pl server -Dtest=FooManagerImplTest
# Lint and license checks
pre-commit run --all-files
```

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should we add instructions on how to run and build the front-end? And what about the Java version and others?

Comment thread AGENTS.md
- Declare a `ConfigKey` on the service interface, not on the `*Impl`.
- Touch as few interfaces as possible when adding settings.
- Put schema changes in the versioned upgrade path under `engine/schema`.
- Never edit an already released upgrade script.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It would be nice to add some instructions about logs, unit tests and modularization (some agents write gigantic methods...)

This branch has not been deployed

No deployments
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