Skip to content

Rename Behavior entity to Requirement across the SDK - #7

Merged
harry-rhesis merged 7 commits into
mainfrom
chore/rename-behavior-to-requirement
Aug 25, 2026
Merged

Rename Behavior entity to Requirement across the SDK#7
harry-rhesis merged 7 commits into
mainfrom
chore/rename-behavior-to-requirement

Conversation

@harry-rhesis

Copy link
Copy Markdown
Contributor

Summary

  • Renames the Behavior entity to Requirement across the entire Java SDK to align with the main platform rename (rhesis-ai/rhesis#2487)
  • Updates all API endpoints (/behaviors/requirements), JSON field names (behaviorrequirement), stats modes, synthesizer config, Jinja templates, tests, and documentation
  • Entity values (Reliability, Robustness, Compliance) are intentionally unchanged — only the entity type/schema/code identifiers were renamed

Test plan

  • All 55 unit tests pass locally (entity serialization, WireMock client tests, synthesizer tests, model client tests)
  • All test and example sources compile cleanly
  • CI passes on this branch
  • Integration tests verified against a live API with the updated backend

🤖 Generated with Claude Code

Aligns the Java SDK with the main rhesis platform rename
(rhesis-ai/rhesis#2487). The Behavior entity, API endpoints,
JSON field names, stats modes, synthesizer config, and Jinja
templates are all updated from behavior/behaviors to
requirement/requirements. Entity values (Reliability, Robustness,
Compliance) are intentionally unchanged.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Harry Cruz <harry@rhesis.ai>
@harry-rhesis
harry-rhesis force-pushed the chore/rename-behavior-to-requirement branch from 140f15a to e41f187 Compare August 25, 2026 14:31
harry-rhesis and others added 6 commits August 25, 2026 16:46
Replace external API secrets with a self-contained CI setup that
runs postgres, redis, and the rhesis backend (GHCR image) locally.
Uses QUICK_START=true to auto-provision a test org and API token.
Split into parallel unit-test, integration-test, and lint jobs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Harry Cruz <harry@rhesis.ai>
Add docker-compose.test.yml that spins up postgres, redis, and the
rhesis backend (GHCR image) with QUICK_START=true for integration
tests. Mirrors the pattern from rhesis-ai/rhesis tests/ directory.
Replaces the broken --network host approach with proper compose
networking. Add docker-up/down/clean targets to Makefile.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Harry Cruz <harry@rhesis.ai>
The Alembic migration requires a valid 32-byte base64-encoded Fernet
key, not a plain string. Use the same test key from rhesis-ai/rhesis.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Harry Cruz <harry@rhesis.ai>
Replace removed /test_runs/stats and /test_results/stats endpoints with
the Insights API (/insights/), matching the Python SDK. The stats()
methods now throw UnsupportedOperationException with migration guidance.

Also seeds project scope on the QUICK_START token so integration tests
for project-scoped entities (endpoints) work correctly.

Signed-off-by: Harry Cruz <harry@rhesis.ai>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Harry Cruz <harry@rhesis.ai>
The backend uses singular table names (token, project) not plural.

Signed-off-by: Harry Cruz <harry@rhesis.ai>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Harry Cruz <harry@rhesis.ai>
Add InsightsQuery builder matching the Python SDK's Insights model,
supporting months, start_date, and end_date parameters. Existing
convenience methods delegate to the query-based overloads.

Signed-off-by: Harry Cruz <harry@rhesis.ai>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Harry Cruz <harry@rhesis.ai>
@harry-rhesis
harry-rhesis merged commit 7ebcdc3 into main Aug 25, 2026
5 checks passed
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.

1 participant