Documentation
¶
Index ¶
- Variables
- type AuditAuthority
- type Service
- func (s *Service) Apply(ctx context.Context, planID, approvalID string) (core.Receipt, error)
- func (s *Service) ApplyAs(ctx context.Context, sub core.Subject, planID, approvalID string) (core.Receipt, error)
- func (s *Service) AuditCredentialOperation(ctx context.Context, subject core.Subject, ...) error
- func (s *Service) AuditEvents(ctx context.Context) ([]core.AuditEvent, error)
- func (s *Service) AuditEventsAs(subject core.Subject) ([]core.AuditEvent, error)
- func (s *Service) AuditManagerCertification(ctx context.Context, subject core.Subject, outcome, reason string, ...) error
- func (s *Service) AuditManagerCommand(ctx context.Context, subject core.Subject, ...) error
- func (s *Service) AuditManagerOnboarding(ctx context.Context, subject core.Subject, action, outcome, reason string, ...) error
- func (s *Service) AuditManagerSession(ctx context.Context, subject core.Subject, outcome, reason string, ...) error
- func (s *Service) AuditManagerStartup(ctx context.Context, subject core.Subject, outcome, reason string, ...) error
- func (s *Service) Authenticate(ctx context.Context) (core.Subject, error)
- func (s *Service) AuthenticateUnixPeer(ctx context.Context, uid uint32) (core.Subject, error)
- func (s *Service) DecideApproval(ctx context.Context, id string, approve bool) (core.Approval, error)
- func (s *Service) DecideApprovalAs(ctx context.Context, sub core.Subject, id string, approve bool) (core.Approval, error)
- func (s *Service) DesignSmoke(ctx context.Context, requirements []byte) (core.CanonicalCharter, error)
- func (s *Service) DesignSmokeAs(ctx context.Context, sub core.Subject, requirements []byte) (core.CanonicalCharter, error)
- func (s *Service) EffectiveAuthority(ctx context.Context, agent string, rev uint64, requested string, ...) (string, core.EffectiveAuthority, core.Decision, error)
- func (s *Service) EffectiveAuthorityAs(subject core.Subject, agent string, rev uint64, requested string, ...) (string, core.EffectiveAuthority, core.Decision, error)
- func (s *Service) ExecuteBroker(ctx context.Context, peer broker.Peer, request broker.Request, ...) (broker.Result, error)
- func (s *Service) Explain(ctx context.Context, agent string, rev uint64, requested string, ...) (core.Decision, error)
- func (s *Service) ExplainAs(ctx context.Context, sub core.Subject, agent string, rev uint64, ...) (core.Decision, error)
- func (s *Service) GetApproval(id string) (core.Approval, error)
- func (s *Service) GetCharter(agent string, rev uint64) (core.CanonicalCharter, error)
- func (s *Service) GetMandate(id string) (core.Mandate, error)
- func (s *Service) GetPlan(id string) (core.Plan, error)
- func (s *Service) GetReceipt(id string) (core.Receipt, error)
- func (s *Service) GetSession(id string) (core.Session, error)
- func (s *Service) ImportCharter(ctx context.Context, data []byte) (core.CanonicalCharter, error)
- func (s *Service) ImportCharterAs(ctx context.Context, sub core.Subject, data []byte) (core.CanonicalCharter, error)
- func (s *Service) InspectSession(id string) (core.Session, bool, error)
- func (s *Service) ListAgents() ([]string, error)
- func (s *Service) ListApprovals() ([]core.Approval, error)
- func (s *Service) ListCharters(agent string) ([]core.CanonicalCharter, error)
- func (s *Service) ListPlans() ([]core.Plan, error)
- func (s *Service) ListReceipts() ([]core.Receipt, error)
- func (s *Service) ListSessions() ([]core.Session, error)
- func (s *Service) PreviewPlan(ctx context.Context, agent string, rev uint64, env core.Environment) (core.Review, error)
- func (s *Service) PreviewSession(ctx context.Context, agent string, rev uint64, requested string, ...) (core.Mandate, core.Decision, error)
- func (s *Service) PreviewSessionAs(ctx context.Context, sub core.Subject, agent string, rev uint64, ...) (core.Mandate, core.Decision, error)
- func (s *Service) RecoverProvisioning(ctx context.Context) error
- func (s *Service) RequestApproval(ctx context.Context, planID string, ttl time.Duration) (core.Approval, error)
- func (s *Service) RequestApprovalAs(ctx context.Context, sub core.Subject, planID string, ttl time.Duration) (core.Approval, error)
- func (s *Service) RevokeSession(ctx context.Context, id, reason string) error
- func (s *Service) RevokeSessionAs(ctx context.Context, sub core.Subject, id, reason string) error
- func (s *Service) Runtime(ctx context.Context) (core.RuntimeDescriptor, error)
- func (s *Service) Select(c core.CanonicalCharter, sub core.Subject, requested string, ...) (core.Decision, error)
- func (s *Service) StartSession(ctx context.Context, mandateID string) (core.Session, error)
- func (s *Service) StartSessionAs(ctx context.Context, sub core.Subject, mandateID string) (core.Session, error)
- func (s *Service) Supervise(ctx context.Context) error
- func (s *Service) TerminateSession(ctx context.Context, id, reason string) error
- func (s *Service) TerminateSessionAs(ctx context.Context, sub core.Subject, id, reason string) error
- func (s *Service) ValidateCharter(ctx context.Context, data []byte) (core.CanonicalCharter, error)
- func (s *Service) ValidateCharterAs(ctx context.Context, subject core.Subject, data []byte) (core.CanonicalCharter, error)
- func (s *Service) VerifyAudit(ctx context.Context) error
- func (s *Service) VerifyAuditAs(subject core.Subject) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type AuditAuthority ¶
type AuditAuthority interface {
AppendAudit(context.Context, core.AuditEvent) error
AuditEvents() ([]core.AuditEvent, error)
VerifyAudit() error
}
AuditAuthority is the narrow append and verification boundary that hardened deployments can place behind a separately supervised process or OS account. Hermes runtimes never receive this authority.
type Service ¶
type Service struct {
Config config.Config
Store *store.Store
Audit AuditAuthority
Hermes *hermes.Adapter
Log *slog.Logger
Now func() time.Time
Current func() (*user.User, error)
LookupEnv func(string) (string, bool)
CredentialAuthority *credentials.Authority
// contains filtered or unexported fields
}
func (*Service) AuditCredentialOperation ¶
func (s *Service) AuditCredentialOperation(ctx context.Context, subject core.Subject, eventType, outcome, reason, recordID string) error
AuditCredentialOperation records metadata-only administrative credential events. Credential values, references, destinations, and key material are intentionally excluded from this boundary.
func (*Service) AuditEvents ¶
func (*Service) AuditEventsAs ¶
func (*Service) AuditManagerCertification ¶ added in v0.1.11
func (s *Service) AuditManagerCertification(ctx context.Context, subject core.Subject, outcome, reason string, metadata map[string]string) error
AuditManagerCertification records metadata-only certification attempts. It never accepts prompts, responses, credential material, or model output.
func (*Service) AuditManagerCommand ¶ added in v0.1.19
func (s *Service) AuditManagerCommand(ctx context.Context, subject core.Subject, operation, outcome, reason, operationID, scopeDigest string) error
AuditManagerCommand records only canonical registry metadata. Command text, arguments, protected values, evidence, and rendered output are excluded.
func (*Service) AuditManagerOnboarding ¶ added in v0.1.11
func (s *Service) AuditManagerOnboarding(ctx context.Context, subject core.Subject, action, outcome, reason string, metadata map[string]string) error
AuditManagerOnboarding records metadata-only acquisition and binding events.
func (*Service) AuditManagerSession ¶ added in v0.1.4
func (s *Service) AuditManagerSession(ctx context.Context, subject core.Subject, outcome, reason string, metadata map[string]string) error
AuditManagerSession appends one metadata-only manager lifecycle event.
func (*Service) AuditManagerStartup ¶ added in v0.1.9
func (s *Service) AuditManagerStartup(ctx context.Context, subject core.Subject, outcome, reason string, metadata map[string]string) error
AuditManagerStartup appends one metadata-only preflight result while preserving the exact readiness reason selected outside the model.
func (*Service) Authenticate ¶
Authenticate uses only the kernel-backed process account mapping. No prompt, display name, requested stanza, or CLI authority flag is accepted as evidence.
func (*Service) AuthenticateUnixPeer ¶
AuthenticateUnixPeer maps kernel-supplied Unix-socket peer credentials. The UID comes from SO_PEERCRED, never an HTTP field or bearer-token label.
func (*Service) DecideApproval ¶
func (*Service) DecideApprovalAs ¶
func (*Service) DesignSmoke ¶
func (s *Service) DesignSmoke(ctx context.Context, requirements []byte) (core.CanonicalCharter, error)
DesignSmoke drives Hermes's documented TUI-gateway stdio protocol in a disposable home. Hermes returns proposal bytes; only Aegis can validate, canonicalize, digest, and persist them.
func (*Service) DesignSmokeAs ¶
func (*Service) EffectiveAuthority ¶
func (*Service) EffectiveAuthorityAs ¶
func (*Service) ExecuteBroker ¶
func (*Service) GetCharter ¶
func (*Service) ImportCharter ¶
func (*Service) ImportCharterAs ¶
func (*Service) InspectSession ¶
func (*Service) ListAgents ¶
func (*Service) ListCharters ¶
func (s *Service) ListCharters(agent string) ([]core.CanonicalCharter, error)
func (*Service) PreviewPlan ¶
func (*Service) PreviewSession ¶
func (*Service) PreviewSessionAs ¶
func (*Service) RecoverProvisioning ¶
RecoverProvisioning converts durable in-progress intents left by an interrupted process into failed receipts and removes only matching Aegis-owned artifacts from their approved plan.
func (*Service) RequestApproval ¶
func (*Service) RequestApprovalAs ¶
func (*Service) RevokeSession ¶
func (*Service) RevokeSessionAs ¶
func (*Service) StartSession ¶
func (*Service) StartSessionAs ¶
func (*Service) Supervise ¶
Supervise reconciles durable running sessions, schedules expiry, and owns shutdown cleanup while the foreground control plane is alive.