Knowledge Hub
Comprehensive guides and references for the OpenFrame platform
OpenFrame Gen1 is Here · The AI platform for autonomous IT is out of beta and ready for production.
Comprehensive guides and references for the OpenFrame platform
Thank you for your interest in contributing to OpenFrame OSS Tenant! This guide covers everything you need to know about code style, branch naming, the pull request process, commit message format, and the review checklist.
Important: OpenFrame OSS Tenant does not use GitHub Issues or GitHub Discussions. All development discussions, bug reports, and feature requests are handled in the OpenMSP Slack community.
Before opening a pull request, we encourage you to discuss the change in Slack first — especially for larger features or refactors.
Before contributing, set up your development environment:
The codebase follows standard Java conventions with Lombok for boilerplate reduction.
Key conventions:
@Slf4j for logging (via Lombok)@Builder, @Data, @Value annotations appropriately*Service, *Repository, *Controller, *DataFetcherPackage structure:
com.openframe.<service>.
├── config/ # Spring configuration classes
├── controller/ # REST controllers
├── datafetcher/ # GraphQL DGS data fetchers
├── dataloader/ # GraphQL DGS data loaders
├── dto/ # Data transfer objects
├── exception/ # Custom exceptions and handlers
├── mapper/ # MapStruct or manual mappers
└── service/ # Business logic services
Formatting: The Java codebase follows the default IntelliJ IDEA Java formatting.
openframe-client)Follow standard Rust conventions as enforced by rustfmt and clippy.
# Format
cargo fmt
# Lint (warnings are errors)
OPENFRAME_VERSION=0.0.0-dev cargo clippy -- -D warnings
# Run both before committing
cargo fmt && OPENFRAME_VERSION=0.0.0-dev cargo clippy -- -D warnings
Naming conventions:
snake_casePascalCaseSCREAMING_SNAKE_CASEsnake_caseUse descriptive branch names that reflect the purpose of the change:
feat/add-script-scheduling-api
fix/agent-token-refresh-race-condition
fix/tenant-isolation-in-device-query
refactor/extract-nats-publisher-interface
docs/update-architecture-diagram
chore/upgrade-spring-boot-3.3.1
Format: <type>/<short-description-in-kebab-case>
| Type | When to Use |
|---|---|
feat |
New feature or capability |
fix |
Bug fix |
refactor |
Code restructuring without behavior change |
docs |
Documentation updates |
chore |
Dependency updates, CI, tooling |
test |
Adding or fixing tests |
perf |
Performance improvements |
OpenFrame OSS Tenant uses Conventional Commits format:
<type>(<scope>): <short summary>
[optional body]
[optional footer(s)]
Examples:
feat(api): add script schedule assignment endpoint
Adds GraphQL mutation for assigning scripts to device groups with
configurable cron triggers. Validates against existing schedule conflicts.
fix(openframe-client): prevent token refresh during shutdown
The token refresh run manager now checks the shutdown flag before
scheduling the next refresh to avoid errors during graceful shutdown.
chore(deps): upgrade openframe-libs to 5.65.0
Type reference:
| Type | Description |
|---|---|
feat |
New feature |
fix |
Bug fix |
refactor |
Code refactoring |
docs |
Documentation only |
test |
Tests only |
chore |
Build, CI, dependencies |
perf |
Performance improvement |
style |
Formatting only (no logic change) |
Scope examples: api, gateway, auth, openframe-client, stream, management
mvn clean install -DskipTestsOPENFRAME_VERSION=0.0.0-dev cargo buildmvn testOPENFRAME_VERSION=0.0.0-dev cargo testcargo fmt && OPENFRAME_VERSION=0.0.0-dev cargo clippy -- -D warnings## Summary
Brief description of what this PR changes and why.
## Changes
- List of specific changes made
## Testing
How to verify this change works correctly.
## Breaking Changes
Any breaking changes and migration path (if applicable).
Use this checklist when reviewing or submitting PRs:
@Valid or equivalentapplication.yml, not hardcoded@Async or reactive patterns consistently@ChangeUnit) follow the naming conventionOPENFRAME_VERSION=0.0.0-dev cargo clippy -- -D warnings passes with no warningsanyhow::Result or thiserror appropriatelyArc/Mutex usage is minimal and necessaryWhen contributing, keep these security principles in mind:
.env files (which must be in .gitignore)TenantAwareMongoTemplate or equivalent tenant-scoped access@Valid and custom validators; never passed raw to queriesSecurity issues should be reported via the OpenMSP Slack community — not through public GitHub issues.
For full security guidelines, see the Security Documentation.
openframe-libs)When updating openframe.libs.version in pom.xml:
pom.xmlmvn clean install -DskipTestsmvn testBy contributing to OpenFrame OSS Tenant, you agree that your contributions will be licensed under the same license as the project. See the repository for license details.