Commit Graph

19 Commits

Author SHA1 Message Date
rcourtman
5edd2ad53a Persist self-hosted purchase redemption records 2026-04-08 20:42:36 +01:00
rcourtman
9e83d0862d Tighten self-hosted purchase return binding 2026-04-08 20:21:36 +01:00
rcourtman
7c8fddd9f0 Retire legacy self-hosted checkout compatibility paths 2026-04-08 19:01:22 +01:00
rcourtman
1649faa75d Use opaque Pulse Account handoffs for self-hosted upgrades 2026-04-08 17:24:35 +01:00
rcourtman
8c004f9a4c Use opaque checkout intents for self-hosted upgrade returns 2026-04-07 19:45:20 +01:00
rcourtman
b402563ef1 Make self-hosted checkout return server-owned and recovery-only 2026-04-07 18:56:27 +01:00
rcourtman
c4f4a67f6c Tighten self-hosted checkout handoff and auto-return 2026-04-07 18:12:47 +01:00
rcourtman
cc5ee2e24c Split commercial posture from billing entitlements 2026-04-07 13:24:55 +01:00
rcourtman
f8ad57a1f2 Split runtime capabilities from commercial entitlements 2026-04-07 11:40:57 +01:00
rcourtman
0c1fafa800 Centralize demo commercial boundary policy 2026-04-07 10:24:53 +01:00
rcourtman
4e4c1b368b Prepare v6 demo mode commercial boundary 2026-04-06 10:53:07 +01:00
rcourtman
778a2577b6 feat: Pulse v6 release 2026-03-18 16:06:30 +00:00
rcourtman
45b5c8a861 Restore previous license on persistence failure instead of clearing it
If license save fails, the in-memory license was being cleared, which
could drop a valid existing license. Now snapshots the current license
before activation and restores it if persistence fails.
2026-03-08 11:49:26 +00:00
rcourtman
d6e8bffaeb pulse/license upgrade safety hardening 2026-03-07 15:13:09 +00:00
rcourtman
499ab812e3 Fix post-release regressions and lock v5 to single-tenant runtime 2026-03-05 23:46:35 +00:00
rcourtman
44f9a36d5c feat(license): implement free Patrol / pro Auto-Fix tiering strategy 2026-02-01 16:27:10 +00:00
rcourtman
f2541b0d6c Refactor: Multi-tenancy support for API and License handlers
- Updated LicenseHandlers and LicenseService to be context/tenant aware
- Refactored API router and middleware to support tenant-scoped license checks
- Updated associated tests for context-aware handlers
2026-01-22 16:42:39 +00:00
rcourtman
db5e79bb37 fix: Allow Host Agent thresholds to be set to 0 to disable alerting. Related to #864 2025-12-20 20:25:20 +00:00
rcourtman
65e38fac91 test: improve test coverage for AI, license, config, and monitoring packages
New test files:
- internal/ai/providers/gemini_test.go: Comprehensive Gemini provider tests
- internal/api/ai_intelligence_handlers_test.go: AI intelligence endpoint tests
- internal/api/ai_patrol_handlers_test.go: AI patrol endpoint tests
- internal/api/license_handlers_test.go: License API handler tests
- internal/api/security_oidc_response_test.go: OIDC response formatting tests
- internal/config/ai_config_test.go: AI configuration function tests
- internal/config/persistence_ai_test.go: AI config persistence tests
- internal/config/persistence_extended_test.go: Extended persistence tests
- internal/license/persistence_test.go: License persistence tests
- internal/license/pubkey_test.go: Public key handling tests
- internal/monitoring/host_agent_temps_test.go: Temperature processing tests

Enhanced existing files:
- internal/api/updates_test.go: Added update handler tests
- internal/license/license_test.go: Added Service method tests

Coverage improvements:
- ai/providers: 57.3% -> 73.0% (+15.7%)
- license: 78.3% -> 85.9% (+7.6%)
- config: 49.7% -> 53.9% (+4.2%)
- monitoring: 49.8% -> 50.8% (+1.0%)
- api: 28.4% -> 29.8% (+1.4%)
2025-12-19 22:49:30 +00:00