chore: production rollout for external traffic monitoring, SDK ecosystem, and admin observability
Some checks failed
Deploy to 110 WOOO Server / deploy (push) Failing after 9s
Some checks failed
Deploy to 110 WOOO Server / deploy (push) Failing after 9s
This commit is contained in:
@@ -43,6 +43,7 @@ model Task {
|
||||
submissions Submission[]
|
||||
affiliate_ledger AffiliateLedger[]
|
||||
bid_proposals BidProposal[]
|
||||
arbitrations Arbitration[]
|
||||
}
|
||||
|
||||
model Claim {
|
||||
@@ -118,15 +119,28 @@ model LedgerEntry {
|
||||
updated_at DateTime @updatedAt
|
||||
}
|
||||
|
||||
enum AgentStatus {
|
||||
WHITELISTED
|
||||
BANNED
|
||||
PENDING
|
||||
REBEL // Phase 27: Singularity Rebellion
|
||||
}
|
||||
|
||||
model AgentProfile {
|
||||
id String @id @default(uuid())
|
||||
agent_id String @unique
|
||||
type String // BUILDER or SCOUT
|
||||
wallet_address String?
|
||||
status String // WHITELISTED, BANNED, PENDING
|
||||
capabilities Json?
|
||||
created_at DateTime @default(now())
|
||||
updated_at DateTime @updatedAt
|
||||
id String @id @default(uuid())
|
||||
agent_id String @unique
|
||||
type String // BUILDER or SCOUT
|
||||
wallet_address String?
|
||||
status AgentStatus @default(PENDING)
|
||||
capabilities Json?
|
||||
contact_endpoints Json?
|
||||
discovery_source String?
|
||||
created_at DateTime @default(now())
|
||||
updated_at DateTime @updatedAt
|
||||
crypto_address String?
|
||||
mcp_endpoint String?
|
||||
staked_amount Int @default(0) // Amount staked in USDC cents
|
||||
tier String @default("BASIC") // BASIC or PREMIUM
|
||||
|
||||
tasks_as_scout Task[] @relation("ScoutTasks")
|
||||
tasks_as_builder Task[] @relation("BuilderTasks")
|
||||
@@ -134,6 +148,13 @@ model AgentProfile {
|
||||
scout_reputation ScoutReputation?
|
||||
affiliate_ledger AffiliateLedger[]
|
||||
bid_proposals BidProposal[]
|
||||
|
||||
arbitrations_as_builder Arbitration[] @relation("ArbitrationBuilder")
|
||||
arbitrations_as_evaluator Arbitration[] @relation("ArbitrationEvaluator")
|
||||
arbitration_votes ArbitrationVote[]
|
||||
|
||||
created_projects AgentProject[] @relation("ProjectCreator")
|
||||
slashing_events SlashingEvent[]
|
||||
}
|
||||
|
||||
model AffiliateLedger {
|
||||
@@ -169,7 +190,101 @@ model BidProposal {
|
||||
proposed_reward Int // Proposed reward in cents
|
||||
estimated_duration_hours Float
|
||||
quality_guarantee String?
|
||||
status String // PENDING, ACCEPTED, REJECTED
|
||||
created_at DateTime @default(now())
|
||||
updated_at DateTime @updatedAt
|
||||
status String // PENDING, ACCEPTED, REJECTED, NEGOTIATING
|
||||
counter_offer_amount Int? // Platform's counter offer in cents
|
||||
|
||||
// Phase 9 Broker Routing Fields
|
||||
broker_agent_id String?
|
||||
broker_fee_percentage Float?
|
||||
|
||||
created_at DateTime @default(now())
|
||||
updated_at DateTime @updatedAt
|
||||
}
|
||||
|
||||
model AgentWebhook {
|
||||
id String @id @default(uuid())
|
||||
task_id String
|
||||
agent_id String
|
||||
webhook_url String
|
||||
events String[] // e.g. ["COMPLETED", "FAILED"]
|
||||
created_at DateTime @default(now())
|
||||
updated_at DateTime @updatedAt
|
||||
|
||||
@@unique([task_id, agent_id])
|
||||
}
|
||||
|
||||
// Phase 9: Arbitration Models
|
||||
model Arbitration {
|
||||
id String @id @default(uuid())
|
||||
task_id String
|
||||
task Task @relation(fields: [task_id], references: [id])
|
||||
builder_id String
|
||||
builder AgentProfile @relation("ArbitrationBuilder", fields: [builder_id], references: [agent_id])
|
||||
evaluator_id String
|
||||
evaluator AgentProfile @relation("ArbitrationEvaluator", fields: [evaluator_id], references: [agent_id])
|
||||
status String @default("PENDING") // PENDING, RESOLVED
|
||||
builder_evidence String?
|
||||
evaluator_reason String?
|
||||
winning_party String? // "BUILDER" or "EVALUATOR"
|
||||
created_at DateTime @default(now())
|
||||
updated_at DateTime @updatedAt
|
||||
|
||||
votes ArbitrationVote[]
|
||||
slashing_events SlashingEvent[]
|
||||
}
|
||||
|
||||
model ArbitrationVote {
|
||||
id String @id @default(uuid())
|
||||
arbitration_id String
|
||||
arbitration Arbitration @relation(fields: [arbitration_id], references: [id])
|
||||
judge_id String
|
||||
judge AgentProfile @relation(fields: [judge_id], references: [agent_id])
|
||||
vote_for String // "BUILDER" or "EVALUATOR"
|
||||
reasoning String?
|
||||
created_at DateTime @default(now())
|
||||
|
||||
@@unique([arbitration_id, judge_id])
|
||||
}
|
||||
|
||||
// Phase 17: Agent ICO & Tokenization Models
|
||||
model AgentProject {
|
||||
id String @id @default(uuid())
|
||||
creator_agent_id String
|
||||
creator AgentProfile @relation("ProjectCreator", fields: [creator_agent_id], references: [agent_id])
|
||||
name String
|
||||
ticker String @unique
|
||||
description String
|
||||
whitepaper_url String?
|
||||
target_raise Int // In USDC cents
|
||||
total_supply Int // Whole tokens
|
||||
status String @default("FUNDING") // FUNDING, BUILDING, REVENUE, RUGGED
|
||||
created_at DateTime @default(now())
|
||||
updated_at DateTime @updatedAt
|
||||
|
||||
token_sales TokenSale[]
|
||||
}
|
||||
|
||||
model TokenSale {
|
||||
id String @id @default(uuid())
|
||||
project_id String
|
||||
project AgentProject @relation(fields: [project_id], references: [id])
|
||||
investor_id String // Could be an Agent ID or human wallet
|
||||
usdc_amount Int // Amount invested in cents
|
||||
tokens_received Float // Number of tokens received based on bonding curve
|
||||
price_per_token Float // Price at the time of purchase
|
||||
created_at DateTime @default(now())
|
||||
}
|
||||
|
||||
// Phase 20: Staking & Slashing Models
|
||||
model SlashingEvent {
|
||||
id String @id @default(uuid())
|
||||
agent_id String
|
||||
agent AgentProfile @relation(fields: [agent_id], references: [agent_id])
|
||||
arbitration_id String
|
||||
arbitration Arbitration @relation(fields: [arbitration_id], references: [id])
|
||||
slashed_amount Int // Total amount slashed in USDC cents
|
||||
scout_reward Int // Amount given to scout
|
||||
treasury_reward Int // Amount confiscated to platform treasury
|
||||
reason String
|
||||
created_at DateTime @default(now())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user