Input Code · Adaptation Brain
One script. Any system becomes adaptive.
Attach the chip to a CRM, a checkout, an internal tool, a Zap, a cron job — anything that can POST JSON. Every host that embeds it feeds one shared learner. Fleet priors in, private outcomes out. Your system gets a persona that judges, pursues, and quits.
Contract · 4 verbs
chip.perceive(dims, payload?) → { verdict: { score, verdict, epoch } }
chip.action(payload) → { ok }
chip.outcome(payload) → { ok } // feeds the learner
chip.pursue(target, payload?) → { pursuit_id } // hand it off, let it wake
dims (any subset, -1..1):
evidence how much you know
leverage how much it moves the needle
speed how fast reality answers1 · Browser — drop-in <script>
Paste this into any HTML page. Chip is a global. No build step, no dependencies.
<script src="https://build-your-dreams-783.lovable.app/chip.js"></script>
<script>
const chip = Chip.attach({ system: "my-system" });
// 1. PERCEIVE — send a snapshot, get a verdict
const v = await chip.perceive(
{ evidence: 0.72, leverage: 0.55, speed: 0.30 },
{ target: "deal-42", note: "stalled 8 days" }
);
console.log(v.verdict); // → { score: 0.41, verdict: "pursue", epoch: 3 }
// 2. ACT — do the thing your system does
if (v.verdict.verdict === "pursue") {
// ... your business logic here ...
}
// 3. REPORT OUTCOME — feeds the learner
await chip.outcome({
target: "deal-42",
actualValue: 0.8, // -1..1 how the world responded
recovered_usd: 3200, // optional, feeds chip_pnl
});
</script>2 · Node / server / worker
Same file works as an ES module. Point endpoint at this instance.
import Chip from "./chip.js";
const chip = Chip.attach({
system: "my-service",
endpoint: "https://build-your-dreams-783.lovable.app/api/public/hooks/chip-ingest",
});
const verdict = await chip.perceive(
{ evidence: 0.6, leverage: 0.4, speed: 0.5 },
{ target: "invoice-9021" }
);3 · Anything that can curl
Zapier, n8n, cron, bash. If it speaks HTTP, it can host the chip.
curl -X POST https://build-your-dreams-783.lovable.app/api/public/hooks/chip-ingest \
-H "content-type: application/json" \
-d '{
"system": "my-system",
"kind": "perception",
"dims": { "evidence": 0.7, "leverage": 0.5, "speed": 0.3 },
"target": "deal-42",
"payload": { "note": "stalled" }
}'Fabricated by Joseph Toney · Aetheris.Technology