Skip to content

AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.

docs(acp): clarify adapter size verification wording

tianma-if17157436cbc2
diff --git a/scripts/verify-acp-adapter-real-e2e.mjs b/scripts/verify-acp-adapter-real-e2e.mjs
index 6ec6da44..e9572a86 100644
--- a/scripts/verify-acp-adapter-real-e2e.mjs
+++ b/scripts/verify-acp-adapter-real-e2e.mjs
@@ -13,8 +13,8 @@
* 3. Real cross-version upgrade to v1.3.0 with live ACP handshake validation, atomic swap,
* manifest persistence, and immediate fallback retention (v1.2.1 kept on disk).
* 4. Version pruning lifecycle, confirming retention of active and fallback versions.
- * 5. Practical enforcement of the 500 MiB archive limit and 2 GiB extracted limits against
- * real-world binary payloads.
+ * 5. Official archives exceed the former 300 MiB download limit; extracted payloads remain
+ * below the former 1 GiB limit, with the 2 GiB limit providing room for future releases.
*/
import assert from "node:assert/strict";
import { spawn } from "node:child_process";
@@ -298,7 +298,7 @@ export async function runRealAcpAdapterCrossVersionVerification({
const statHarness121 = statSync(path.join(versionRoot, "1.2.1", "localharness_external"));
const totalExtracted121 = statBinary121.size + statHarness121.size;
log(` v1.2.1 files extracted: agy_acp_server.par (${(statBinary121.size / 1024 / 1024).toFixed(2)} MiB), localharness_external (${(statHarness121.size / 1024 / 1024).toFixed(2)} MiB)`);
- log(` Total extracted bytes: ${totalExtracted121} bytes (~${(totalExtracted121 / 1024 / 1024 / 1024).toFixed(2)} GiB, confirming >1 GiB extraction cap)`);
+ log(` Total extracted bytes: ${totalExtracted121} bytes (~${(totalExtracted121 / 1024 / 1024 / 1024).toFixed(2)} GiB, below the former 1 GiB cap)`);
// Verify ACP handshake against committed install path
const liveHandshake121 = await executeRealAcpHandshake(installed121.command);
diff --git a/scripts/verify-acp-adapter-update.mjs b/scripts/verify-acp-adapter-update.mjs
index 07b0ef65..97e45e9b 100644
--- a/scripts/verify-acp-adapter-update.mjs
+++ b/scripts/verify-acp-adapter-update.mjs
@@ -138,10 +138,10 @@ export async function runAcpAdapterCrossVersionVerification({ silent = false } =
assert.ok(!existsSync(orphanedStage2), "Orphaned stage dir from uninstalled state must be pruned");
log("[4/5] Verified prune lifecycle: cleaned older version and orphaned stages while keeping 1.3.0 and 1.2.1.");
- // Phase 5: Size limit boundary enforcement
+ // Phase 5: Confirm the configured size limits
assert.equal(MAX_ARCHIVE_BYTES, 500 * 1024 * 1024, "MAX_ARCHIVE_BYTES must be 500 MiB");
assert.equal(MAX_EXTRACTED_BYTES, 2 * 1024 * 1024 * 1024, "MAX_EXTRACTED_BYTES must be 2 GiB");
- log("[5/5] Verified size caps: 500 MiB archive cap and 2 GiB extracted cap verified.");
+ log("[5/5] Confirmed configured size caps: 500 MiB archive and 2 GiB extracted.");
log("=================================================================");
log("ACP Adapter Installer Simulated Cross-Version Regression: ALL PASSED");