Files
AetherForge/server/internal/ai/oath_recorder.go
AetherForge f3e5a9a07d
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Add browser deploy recon backend with port scan, web crawl, and deploy lane recommendations.
POST /api/v1/recon/scan probes fleet ports from the server host, crawls owned HTTP targets, maps findings to spread lanes, and records optional oath ledger rows.
2026-06-07 11:23:10 -07:00

23 lines
766 B
Go

package ai
// Oath action types and outcomes — mirrored in db/oath_ledger.go for SQLite rows.
const (
OathSpreadTierEscalation = "spread_tier_escalation"
OathGraft = "graft"
OathForkMerge = "fork_merge"
OathStrainCardPlay = "strain_card_play"
OathCourtL4Decision = "court_l4_decision"
OathSpreadAttempt = "spread_attempt"
OathStrainHospice = "strain_hospice"
OathReconScan = "recon_scan"
OathOutcomeSuccess = "success"
OathOutcomeFail = "fail"
OathOutcomePending = "pending"
)
// OathRecorder persists immutable operator / AI council accountability rows.
type OathRecorder interface {
Record(actor, actionType, agentID, strain, outcome string, whySource, payload interface{}) error
}