feat: implement Foundation V1 walking skeleton
CI / test (push) Successful in 7m31s

This commit is contained in:
m
2026-08-16 15:22:49 +03:00
commit 9b136621ef
205 changed files with 6345 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
package capability
// Package capability contains stable boundary contract types for the capability semantic owner.
+39
View File
@@ -0,0 +1,39 @@
package capability
import "git.cin.su/m/Assistant/platform/ids"
type CapabilityID ids.ID
type CapabilityBindingID ids.ID
type HealthState string
const (
HealthAvailable HealthState = "AVAILABLE"
HealthDegraded HealthState = "DEGRADED"
HealthUnavailable HealthState = "UNAVAILABLE"
)
type HealthReason string
const (
ReasonCognitiveProvidersUnavailable HealthReason = "COGNITIVE_PROVIDERS_UNAVAILABLE"
ReasonNone HealthReason = "NONE"
)
type HealthSemanticVersion int
const (
HealthV1 HealthSemanticVersion = 1
HealthV2 HealthSemanticVersion = 2
)
// Health is the Capability owner's current, explicit statement about whether
// a capability can be used. It is not an authority grant.
type Health struct {
CapabilityID CapabilityID
State HealthState
Reason HealthReason
Revision int64
SemanticVersion HealthSemanticVersion
ObservedAtUnixMillis *int64
}