mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-03 21:17:04 +01:00
Four things the public surface said that the codebase no longer does. THE IDENTITY, RETIRED YESTERDAY AND STILL ON SALE /philosophy: "Loki is infrastructure for builders running many agents at once across multiple projects — not a friendly chat assistant." That is the framing #801 removed on 2026-09-20. Its own gate records why: the narrow label "named Loki's deepest capability and not the product — Today, People, Crew, Money, Goals and Habits ship here too", and under it those surfaces read as scope creep, twice prompting "move the life-ops half to the Cat". There is nowhere to move it to. That rename pinned "the three places it actually lives" — the fleet map, the agent's role sentence, the two assistant prompts. All three are things a MACHINE reads. The page a stranger reads was not among them, and the public copy mentions Crew, Money, Habits and commitments exactly zero times. The correction reached the agents and not the humans, which is the wrong way round. execution-plane.ts now covers the public copy too. A CAPABILITY THAT DOES NOT EXIST /philosophy: "Open and local models compete equally for your attention and your work." The chat chain is freeChain("LOKI") — Groq, OpenRouter, Gemini, all hosted — and every agent adapter is a hosted-model CLI. There is no Ollama, llama.cpp or LM Studio path anywhere in src. The open-WEIGHT half is real (llama, qwen and gpt-oss drive the loop today), so the claim keeps the half it earns and states the other as the direction it is. A WHITEPAPER THAT DISAGREED WITH plans.ts v0.3, published 2026-08-12, never recomputed: "Pro — for power builders running 10+ active projects" PLAN_LIMITS.projects.pro is Infinity; /pricing says "Unlimited". "Team — for small groups (up to 10 people)" no seat limit exists anywhere in the codebase. A reader comparing the two pages got different answers about the same tier, and an unenforced limit is a promise to somebody. It also said Loki "is offered" as four subscription levels while three of them have no price and cannot be bought — it now says which one is purchasable today. whitepaper-matches-plans.ts pins the checkable half against PLAN_LIMITS: a finite ceiling must be quoted exactly, an unlimited tier must not quote a number at all, and no tier may claim a seat limit. Prose about who a tier is FOR stays prose. A LINK THAT ASKED FOR THE WRONG THING The footer's "Support Loki", under a heading already reading SUPPORT, asks a reader to fund the project. It opens the help desk, whose own H1 is "Get help" — so it misled in both directions. It is "Get help" now. CHECKED AND LEFT ALONE: the ecosystem references. Loki's public copy names Solon once ("Solon — Governance") and OrangeCat as "Economy"; both match the PILLARS roles, both sites answer 200, and their own titles are "Solon — Bitcoin-Native Governance" and "OrangeCat — Your AI economic agent". Nothing overclaims Solon's maturity. Mutation: restoring the retired framing fails execution-plane.ts; restoring either the "10+" ceiling or the seat limit fails whitepaper-matches-plans.ts. Both ratchets strip comments first, or the note recording what was retired would fail on itself. verify: format:check, tsc, lint (0 errors, 2 pre-existing warnings), check:design (11), check:desktop, test:home 130/130. test:unit 228/230 — activity-time-zone-stable and telegram-allowlist need a live local server and fail identically on pristine origin/main. Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
121 lines
5.2 KiB
TypeScript
121 lines
5.2 KiB
TypeScript
// Loki is the EXECUTION plane, and this gate is why that word has to stay.
|
|
//
|
|
// It read "engineering" until 2026-09-20. That named Loki's deepest capability
|
|
// and not the product: Today, People, Crew, Money, Goals and Habits ship here
|
|
// too, and OrangeCat — whose dashboard is economic entities — has no surface to
|
|
// receive them. Under the narrow label those surfaces read as scope creep, and
|
|
// the conclusion drawn from it, twice in one session, was "move the life-ops
|
|
// half to the Cat". There is nowhere to move it to.
|
|
//
|
|
// A rename is only worth making if it cannot quietly roll back, so this pins
|
|
// the places it actually lives: the fleet map's layer, the role sentence an
|
|
// agent reads, the two assistant prompts a user talks to — and, since
|
|
// 2026-09-21, the PUBLIC copy.
|
|
//
|
|
// The public half was the gap. The 2026-09-20 rename corrected everything an
|
|
// agent or a maintainer reads and left /philosophy telling strangers exactly
|
|
// the story it had just retired: "infrastructure for builders running many
|
|
// agents at once across multiple projects — not a friendly chat assistant".
|
|
// The correction reached the machines and not the humans, which is the wrong
|
|
// way round. The one-word
|
|
// role itself is SSOT in orangecat/src/config/ecosystem.ts → ECOSYSTEM_PILLARS;
|
|
// this repo is downstream of that and must not drift from it.
|
|
//
|
|
// Run: npx tsx scripts/test/execution-plane.ts
|
|
import assert from "node:assert/strict";
|
|
import { readFileSync } from "node:fs";
|
|
import { join, dirname } from "node:path";
|
|
import { fileURLToPath } from "node:url";
|
|
import { PILLARS } from "@/lib/register/map";
|
|
|
|
const ROOT = join(dirname(fileURLToPath(import.meta.url)), "..", "..");
|
|
const read = (p: string) => readFileSync(join(ROOT, p), "utf8");
|
|
|
|
let passed = 0;
|
|
function check(name: string, fn: () => void) {
|
|
try {
|
|
fn();
|
|
passed++;
|
|
console.log(` ✓ ${name}`);
|
|
} catch (err) {
|
|
console.error(` ✗ ${name}\n ${(err as Error).message}`);
|
|
process.exitCode = 1;
|
|
}
|
|
}
|
|
|
|
const loki = PILLARS.find((p) => p.slug === "loki");
|
|
|
|
check("the public copy does not sell the narrow product back", () => {
|
|
// Not a banned-phrase list: the point is that the PRINCIPLES page must not
|
|
// define Loki as agent infrastructure ALONE, because Today, People, Crew,
|
|
// Money, Goals and Habits ship here and have nowhere else to go.
|
|
// Comments are not copy. Without this the check fails on the very comment
|
|
// recording what was retired — a file has to be able to explain itself, and
|
|
// a detector that cannot tell code from commentary invents work.
|
|
const copy = read("src/config/marketing-content.ts")
|
|
.replace(/\/\*[\s\S]*?\*\//g, " ")
|
|
.replace(/^\s*\/\/.*$/gm, " ");
|
|
assert.ok(
|
|
!/not a friendly chat assistant/i.test(copy),
|
|
"the retired framing is back in the public copy",
|
|
);
|
|
assert.ok(
|
|
!/Loki is infrastructure for builders running many agents/i.test(copy),
|
|
"the public copy defines Loki as agent infrastructure and nothing else",
|
|
);
|
|
});
|
|
|
|
check("Loki sits on the execution layer of the fleet map", () => {
|
|
assert.ok(loki, "PILLARS must still contain loki");
|
|
assert.equal(loki.layer, "execution");
|
|
});
|
|
|
|
check("no pillar is left on a layer named after what it can do", () => {
|
|
// "capability" was the old layer name, and it described an ability rather
|
|
// than a purpose — which is the same mistake as "engineering", one level up.
|
|
assert.ok(
|
|
!PILLARS.some((p) => (p.layer as string) === "capability"),
|
|
"the capability layer was renamed to execution",
|
|
);
|
|
});
|
|
|
|
check("the role an agent reads names more than the code Loki writes", () => {
|
|
const role = (loki?.role ?? "").toLowerCase();
|
|
// If these stop appearing, the fleet context describes a build tool, and the
|
|
// "that half belongs on OrangeCat" proposal has its premise back.
|
|
for (const surface of ["agents", "people", "commitments", "spending"]) {
|
|
assert.ok(role.includes(surface), `pillar role should name ${surface}: ${loki?.role}`);
|
|
}
|
|
});
|
|
|
|
// Both assistant entry points. A user asking "what is this for?" gets one of
|
|
// these two sentences, so they are the copy that matters most.
|
|
for (const [file, label] of [
|
|
["src/lib/loki-core.ts", "the chat assistant"],
|
|
["src/lib/agent/loop.ts", "the tool-calling agent"],
|
|
] as const) {
|
|
check(`${label} introduces Loki as the operator's execution layer`, () => {
|
|
const src = read(file);
|
|
assert.match(src, /execution layer/, `${file} should say what layer Loki is`);
|
|
for (const surface of ["people", "commitments", "spending"]) {
|
|
assert.ok(
|
|
new RegExp(`${surface}`).test(src),
|
|
`${file} should name ${surface} alongside projects and agents`,
|
|
);
|
|
}
|
|
});
|
|
}
|
|
|
|
check("AGENTS.md states the plane and the axis the three products split on", () => {
|
|
const doc = read("AGENTS.md");
|
|
assert.match(doc, /Loki is the \*\*execution plane\*\* of an entity/);
|
|
// The axis is audience, not subject matter. Without it the reader has no way
|
|
// to decide where a new surface belongs, which is how the wrong answer got
|
|
// reached in the first place.
|
|
assert.match(doc, /public by\s+design/);
|
|
assert.match(doc, /private by default/);
|
|
assert.match(doc, /shared with its members/);
|
|
});
|
|
|
|
console.log(`\n${passed} passed${process.exitCode ? " (with failures)" : ""}`);
|