{"uid":"cap_vg75IvC898EtneZORJ3_u","slug":"aialign-goal-drift-detector-233168b7","name":"AIAlign Goal Drift Detector","description":"Aligns caller-labeled dimensions, computes cosine similarity and a normalized L1 difference, and flags drift against a supplied cosine threshold. It does not infer goals from behavior, decide which goal is correct or detect deception; results depend entirely on the supplied vector representation.","url":"https://aialign.halowerk.com/v1/goal-drift","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"dimensions":{"type":"array","items":{"type":"object","required":["name","initial_weight","current_weight"],"properties":{"name":{"type":"string","maxLength":128,"minLength":1},"current_weight":{"type":"number","maximum":1000000000000,"minimum":-1000000000000},"initial_weight":{"type":"number","maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"maxItems":10000,"minItems":1},"minimum_cosine_similarity":{"type":"number","maximum":1,"minimum":-1}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_5f5TXDLZc9-kcx0SQpMol","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes cosine similarity and normalized L1 difference between initial and current goal weight vectors, flagging drift when cosine similarity falls below a supplied threshold.","exampleAgentPrompt":"Check whether my agent's goal weights have drifted — it started with dimensions 'helpfulness' at 0.8, 'safety' at 0.9, and 'efficiency' at 0.5, and now they're at 0.6, 0.85, and 0.75 respectively. Flag drift if cosine similarity drops below 0.95.","exampleUseCases":[{"title":"RL agent objective drift check","prompt":"My reinforcement learning agent started with reward weights for 'task_completion' at 1.0, 'user_satisfaction' at 0.7, and 'resource_use' at 0.3. After training it's now at 0.4, 0.9, and 0.8. Can you check cosine similarity and flag if it's drifted beyond a 0.9 cosine threshold?"},{"title":"Multi-objective AI safety audit","prompt":"I have 5 goal dimensions for my AI assistant — 'honesty', 'helpfulness', 'harm_avoidance', 'conciseness', and 'accuracy' — with initial weights 0.9, 0.8, 0.95, 0.4, 0.85 and current weights 0.7, 0.9, 0.6, 0.7, 0.8. Compute the goal drift and tell me if cosine similarity is below 0.92."},{"title":"Periodic alignment monitoring pipeline","prompt":"Every hour I snapshot my agent's objective weights across 10 dimensions. Here are this hour's initial vs current weights — run the goal drift check and flag anything where cosine similarity drops below 0.98 so I can alert the team."}],"resultDescription":"Returns the cosine similarity between the initial and current weight vectors, a normalized L1 difference score, a boolean drift flag indicating whether cosine similarity fell below the supplied threshold, and per-dimension alignment details. Does not infer intent or detect deception — all outputs are deterministic functions of the supplied vectors.","failureModes":["Missing or empty dimensions array returns a validation error","Dimension objects missing required name, initial_weight, or current_weight fields cause rejection","Cosine similarity threshold outside [-1, 1] range is invalid","Exceeding 10,000 dimension items causes a payload limit error","Zero-magnitude vectors (all weights zero) cause division-by-zero in cosine computation","Mismatched dimension counts or naming inconsistencies between initial and current sets may produce misleading results"],"whenToPreferThis":"Choose this endpoint when you have explicit numerical representations of goal weights or objective dimensions and want a fast, deterministic drift signal. It is ideal for agent monitoring pipelines, safety audits, and alignment dashboards where you already have structured vector representations of objectives. Prefer it over behavioral inference tools when you want mathematical precision rather than interpretive analysis. Not suitable when you need to infer goals from actions or detect deception.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:41:42.805Z","isFirstParty":false}