Skip to content

abso-core

Public

abso is version control for agents: the client, the engine and a server you can run on your own Cloudflare account.

Check passed

Versions 161 to 162

Compare

+17 −0 in 1 place
Lines 45–67 at 162 (were 45–50 at 161)
4545};
4646
4747describe("routes", () => {
48+ it("forwards request identity separately from untrusted JSON body", async () => {
49+ const { env, calls } = fakeEnv();
50+ const id = "00000000-0000-4000-8000-000000000007";
51+ const response = await handle(
52+ request("/p/game/a/alice/record", {
53+ method: "POST",
54+ headers: { "content-type": "application/json", "Idempotency-Key": id },
55+ body: JSON.stringify({ files: {}, principal: "forged" }),
56+ }),
57+ env,
58+ ctx,
59+ noIssues as never,
60+ );
61+ assert.equal(response.status, 200);
62+ assert.equal(calls[0]!.args[7], id);
63+ assert.equal(calls[0]!.args[6], undefined);
64+ });
4865 it("matches the project's top routes and an agent's ops", () => {
4966 assert.deepEqual(PROJECT_ROUTE.exec("/p/game/status")?.slice(1, 3), ["game", "status"]);
5067 assert.deepEqual(PROJECT_ROUTE.exec("/p/game/a/alice/publish")?.slice(1), [
MCP
compare on this site's /mcp
CLI
abso diff 161 162 server/test/router.test.ts --json
JSON
/christopher/abso-core/compare/161..162?file=server%2Ftest%2Frouter.test.ts&format=json