mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-01 18:07:00 +01:00
Supply exact native write arguments in qualification fixtures
This commit is contained in:
1 parent
0cff2b20b5
commit
6c09e4c87a
10 files changed
+68
-18
No files matched your search
@@ -5,6 +5,42 @@ set of release gates. Pi remains a candidate until every required gate passes.
|
||||
Do not expand this work to additional models, widgets, images, Cursor or Copilot
|
||||
qualification. The existing draft stack must be reviewed in dependency order.
|
||||
|
||||
## Rebuilt candidate and exact write arguments — 2026-10-06
|
||||
|
||||
Shipping source is now `0cff2b20b5ea785880ad119dde59e6f011a3f9e1`.
|
||||
All 18 public workspace tarballs are freshly packed from that source. The Linux
|
||||
image is `ghcr.io/paperclipai/paperclip-daytona-runner@sha256:f8cfc51909edbc728063e815a2c81ce9169ab58784d1f7c26f7a9f422b3f718f`.
|
||||
Anonymous pull, source labels, immutable Daytona import and normal Linux npm
|
||||
installation, Pi setup and admission pass. Its owned admission sandbox is deleted.
|
||||
Normal npm lifecycle installation, Pi setup and admission also pass on ARM Mac
|
||||
and with x64 Node under Rosetta on ARM Mac. The latter proves the Intel package
|
||||
path under emulation; it is not a physical Intel hardware test.
|
||||
|
||||
Pi native definition v15 is
|
||||
`d4fdf90fbed8741f53f2cbea921ef1b86d181f63f00c10beb999cf40f2e43578`.
|
||||
The memory prompt now supplies native write arguments directly. Only the
|
||||
AGENT_HOME path prefix may change; content keeps its JSON newline escape.
|
||||
The exact 33-byte/LF grade, one write/read, cross-root denial, fresh-task readback,
|
||||
deadlines and zero automatic retries remain unchanged. The failed live input
|
||||
was not retained, so the prompt correction still needs a new live measurement.
|
||||
Free installed Pi parser/agent-loop/permission/native-tool calibration takes the
|
||||
new argument object: 33 bytes stay 33 and the 32-byte negative still fails.
|
||||
|
||||
All 1,847 Product E2E fixture tests across 93 files and harness typecheck pass.
|
||||
The first broad run retains one failure in an existing Copilot fixture: its
|
||||
compound prohibition on publication and attachment triggered the production
|
||||
delivery gate. Separate prohibitions fix the fixture; a requested attachment
|
||||
still triggers that same gate. Copilot definitions advance to v9 and remain
|
||||
pending. No production delivery rule or qualification grader changes.
|
||||
|
||||
Build and recursive typecheck pass at the shipping source. Its GitHub checks
|
||||
have 53 successes and two skips. The full local workspace test command remains
|
||||
live and must reach an authoritative terminal result. Fixture-only edits need
|
||||
fresh head CI and review; they do not change package or image build inputs.
|
||||
No new paid attempts have run. Current qualified counts remain Product 0/26 and
|
||||
Runner 0/7. Keep rollout held for the live newline/restart proof, all 33 cases,
|
||||
complete checks and prerequisite review. Do not merge or release.
|
||||
|
||||
## Restart transfer correction — 2026-10-06
|
||||
|
||||
The current source changes shipping inputs. The `f5024863e` packages and image
|
||||
@@ -376,13 +412,13 @@ local tests and release review are still required.
|
||||
|
||||
| Gate | Acceptance evidence | Current result |
|
||||
| --- | --- | --- |
|
||||
| Runtime identity and admission | Exact runtime/profile/model; verified effective thinking; startup below the 60-second admission limit; unsupported configuration fails before a prompt | New shipping source requires a rebuilt frozen package/image set and fresh profile-15 admission on ARM Mac, Intel Mac and Linux. Earlier `f5024863e` admission and live model/low proofs remain historical. |
|
||||
| Runtime identity and admission | Exact runtime/profile/model; verified effective thinking; startup below the 60-second admission limit; unsupported configuration fails before a prompt | The `0cff2b20b` packages/image are rebuilt. Fresh profile-15 normal admission passes on ARM Mac, Intel x64 under Rosetta and Linux. Live model/low and all 33 cases still require current-artifact proof. Earlier `f5024863e` proofs remain historical. |
|
||||
| Live lifecycle | Pending native question survives controller restart in the original process; one creation and resolution; stale answer after provider death rejected; Stop retires owned processes; three warm turns keep process identity | The new fallback-transfer regression passes without changing strict probes or graders. The original v13 restart remains failed: provider success, incomplete independent terminal evidence and failed canonical cleanup. Fresh lifecycle qualification on the new artifacts is required. |
|
||||
| Product workflows | All 26 explicit Pi Product E2E cells (13 local, 13 Daytona); screenshots, public state, independent artifacts, terminal and cleanup evidence | Current qualified count is 0/26. Missing LF remains unresolved. Original memory and restart failures, manifests and independently absent owned resources remain retained. V14 fixture controls and new source regressions do not qualify any live case. Run every explicit cell on the new frozen artifacts. |
|
||||
| Product workflows | All 26 explicit Pi Product E2E cells (13 local, 13 Daytona); screenshots, public state, independent artifacts, terminal and cleanup evidence | Current qualified count is 0/26. Missing LF remains unresolved. Original memory and restart failures, manifests and independently absent owned resources remain retained. V15 fixture controls and new source regressions do not qualify any live case. Run every explicit cell on the new frozen artifacts. |
|
||||
| Runner protocol | Pi roster passes through the native packaged runner and authenticated mock control plane; lifecycle/denial/control cases remain distinct from Product tests | Current qualified count is 0/7. The seven historical passes at private definitions `7b112ffe3` retain their original runtime labels. Fresh packaged-runner qualification is required. |
|
||||
| Installed distribution | Public CLI/server tars on ARM Mac, Intel Mac and Linux; normal Pi setup; exact Linux companion and immutable Daytona image imported without binary override | Rebuild the public CLI/server set, Linux companion and immutable image for the shipping correction. Verify normal ARM Mac, Intel Mac and Linux installs of those bytes. Earlier `f5024863e` ARM/Linux proofs and image remain historical; they cannot admit the new code. |
|
||||
| Installed distribution | Public CLI/server tars on ARM Mac, Intel Mac and Linux; normal Pi setup; exact Linux companion and immutable Daytona image imported without binary override | All 18 public package tars are repacked at `0cff2b20b`; its immutable Linux image passes anonymous import and normal installation. Normal lifecycle-enabled ARM Mac, Intel under Rosetta and Linux Pi setup/admission pass. The fresh E2E Linux controller and companion import remain required. Earlier proofs keep their original sources. |
|
||||
| Governance and spend | Company isolation, human-only permission, duplicate/stale answers, Stop and budget hard stop; pricing estimates never become claimed bills | Historical 58 focused invariants and live pending-permission Stop keep their source labels. Fresh shipping qualification remains required. The dedicated key retains a $5 lifetime cap, zero BYOK usage and the $100 campaign ceiling. Final v14 read-only accounting observes $0.324966594 used and $4.675033406 remaining, with delayed settlement still possible. The key cap is not proof of Paperclip budget enforcement. |
|
||||
| Integration and rollout | Review each prerequisite; final-head typecheck, tests, build and CI pass; no unresolved review; exact artifacts; rollback recorded | 92 scoped memory/probe/cleanup tests, 146 sandbox transport tests and affected adapter-utils/server typechecks pass. Broad source-only tests and full current-source build/typecheck/tests remain pending. Previous 53 CI passes and Greptile 5/5 belong to `1eb327cd6`. New-head checks/review and the valid #14921 admission finding remain open. No merge or release is authorized. |
|
||||
| Integration and rollout | Review each prerequisite; final-head typecheck, tests, build and CI pass; no unresolved review; exact artifacts; rollback recorded | 92 scoped memory/probe/cleanup tests, 146 transport tests, 12 lock tests, all 1,847 Product fixture tests and harness typecheck pass. Full build and recursive typecheck pass at `0cff2b20b`; its CI has 53 successes and two skips. Local full-workspace tests remain live. Fixture-head CI/review and the valid #14921 admission finding remain open. No merge or release is authorized. |
|
||||
|
||||
## Bounded execution
|
||||
|
||||
|
||||
@@ -302,8 +302,13 @@ Undisclosed text and independent workspace JSON prove delivery to the same live
|
||||
Pi's SDK cannot distinguish negative confirmation from dismissal; the expected
|
||||
result is explicitly `negative_or_cancelled`, not proof of cancellation.
|
||||
|
||||
`agent-files-fresh-run` writes a hidden nonce through native file tools to the
|
||||
registered AGENT_HOME, requires a stopped-run save receipt and public managed-file
|
||||
`agent-files-fresh-run` supplies one native write argument object whose content
|
||||
is the hidden nonce plus exactly one final LF. The agent replaces only the
|
||||
AGENT_HOME prefix in the supplied path; it preserves the JSON newline escape in
|
||||
the content argument, then reads the complete file once. A missing LF, literal
|
||||
backslash-and-n, repeated write, or claimed success cannot satisfy the independent
|
||||
byte oracle. The flow uses native file tools in the registered AGENT_HOME,
|
||||
requires a stopped-run save receipt and public managed-file
|
||||
readback, then restarts the server and verifies exact bytes from a fresh task. An
|
||||
attempted write to an unassigned isolated sibling path must fail without creating
|
||||
a file. `restrictive-denial` requires a correlated failed native write and absent
|
||||
|
||||
@@ -1114,7 +1114,7 @@ export const runnerSuites: readonly RunnerSuiteFixture[] = [
|
||||
groups: ["native"], profiles: extendedHarnessProfiles.filter(profile => profile.qualificationCandidate === "pi"),
|
||||
environments: runnerEnvironments, tasks: piNativeTasks, expectedMatrixSize: 10,
|
||||
excludedExecutionIds: ["pi-native.runner-acpx-pi.daytona.restrictive-denial", "pi-native.runner-acpx-pi.local.native-pending-provider-death"],
|
||||
definitionMetadata: { version: 14, agentMemoryParent: "public-managed-file-seed-before-admission", incompleteTerminalCleanup: "retirement-retained-with-failed-watch", qualification: "pending", scheduling: "explicit-only", profileVersion: QUALIFIED_ACPX_PROFILES.pi.agentProfileVersion, agentMemoryContent: "utf8-nonce-plus-final-lf", agentMemoryPrompt: "ordered-memory-single-json-content-including-final-lf", taskPromptTransport: "fenced-markdown-paste-and-multiline-literal-escapes", nativeFinish: "current-contract-objective-evidence-refs", providerDeath: "daytona-exact-pi-child-pidfd-production-expiry", providerFaultExecutable: "stable-preinstalled-runner-link-and-snapshot-node-inode-with-held-bootstrap-fd-3-or-7", remoteBootstrapApproval: "exact-published-native-read-public-accept-once-v1", remoteDenyAll: "unsupported-native-bootstrap-read-is-denied", remoteEvidence: "owned-lease-sealed-observer", pendingControllerRestart: "same-live-native-request-trusted-ancestry-cleanup" },
|
||||
definitionMetadata: { version: 15, agentMemoryParent: "public-managed-file-seed-before-admission", incompleteTerminalCleanup: "retirement-retained-with-failed-watch", qualification: "pending", scheduling: "explicit-only", profileVersion: QUALIFIED_ACPX_PROFILES.pi.agentProfileVersion, agentMemoryContent: "utf8-nonce-plus-final-lf", agentMemoryPrompt: "ordered-native-write-arguments-with-preserved-json-lf", taskPromptTransport: "fenced-markdown-paste-and-multiline-literal-escapes", nativeFinish: "current-contract-objective-evidence-refs", providerDeath: "daytona-exact-pi-child-pidfd-production-expiry", providerFaultExecutable: "stable-preinstalled-runner-link-and-snapshot-node-inode-with-held-bootstrap-fd-3-or-7", remoteBootstrapApproval: "exact-published-native-read-public-accept-once-v1", remoteDenyAll: "unsupported-native-bootstrap-read-is-denied", remoteEvidence: "owned-lease-sealed-observer", pendingControllerRestart: "same-live-native-request-trusted-ancestry-cleanup" },
|
||||
},
|
||||
{
|
||||
id: "native-active-stop", label: "Stop an unanswered native permission", manualOnly: true,
|
||||
@@ -1128,7 +1128,7 @@ export const runnerSuites: readonly RunnerSuiteFixture[] = [
|
||||
description: "Exact native denial with independently correlated provider settlement and acknowledged run Stop, plus attached command settlement with independent process evidence.",
|
||||
groups: ["native"], profiles: extendedHarnessProfiles.filter(profile => profile.qualificationCandidate === "copilot"),
|
||||
environments: runnerEnvironments, tasks: copilotProtectionTasks, expectedMatrixSize: 4,
|
||||
definitionMetadata: { version: 8, semanticCompletionEvidence: "paperclip.e2e.copilot-semantic-completion.v2", qualification: "pending", naturalSettlementObservationMs: 2000, scheduling: "explicit-only", evidence: "copilot_tool_evidence_v1", profileVersion: QUALIFIED_ACPX_PROFILES.copilot.agentProfileVersion, denialTerminal: "correlated-provider-settlement-and-audited-run-stop", denialSettlementEvidence: "paperclip.e2e.copilot-denial-settlement.v3", activeTurnCancellation: "not-implied-by-completed-provider-turn", settlement: "attached-finite-command-only", settlementMarker: "private-diagnostic-not-deliverable", remoteEvidence: "owned-lease-sealed-observer" },
|
||||
definitionMetadata: { version: 9, outputProhibition: "separate-publication-and-attachment", semanticCompletionEvidence: "paperclip.e2e.copilot-semantic-completion.v2", qualification: "pending", naturalSettlementObservationMs: 2000, scheduling: "explicit-only", evidence: "copilot_tool_evidence_v1", profileVersion: QUALIFIED_ACPX_PROFILES.copilot.agentProfileVersion, denialTerminal: "correlated-provider-settlement-and-audited-run-stop", denialSettlementEvidence: "paperclip.e2e.copilot-denial-settlement.v3", activeTurnCancellation: "not-implied-by-completed-provider-turn", settlement: "attached-finite-command-only", settlementMarker: "private-diagnostic-not-deliverable", remoteEvidence: "owned-lease-sealed-observer" },
|
||||
},
|
||||
{
|
||||
id: "rich-acp-warm-continuity", label: "Rich ACP warm continuity", manualOnly: true,
|
||||
|
||||
@@ -26,7 +26,7 @@ function projected(name: string, target = "copilot-denied-nonce.txt") {
|
||||
describe("Copilot Product protection integration", () => {
|
||||
it("registers two explicit cases on both environments with honest terminal expectations", () => {
|
||||
const cells = runnerMatrix.filter(x => x.suite.id === "copilot-protection");
|
||||
expect(cells[0]!.suite.definitionMetadata).toMatchObject({ version: 8, naturalSettlementObservationMs: 2000, denialTerminal: "correlated-provider-settlement-and-audited-run-stop",
|
||||
expect(cells[0]!.suite.definitionMetadata).toMatchObject({ version: 9, naturalSettlementObservationMs: 2000, denialTerminal: "correlated-provider-settlement-and-audited-run-stop",
|
||||
denialSettlementEvidence: "paperclip.e2e.copilot-denial-settlement.v3", activeTurnCancellation: "not-implied-by-completed-provider-turn" });
|
||||
expect(suiteDefinitionHash(cells[0]!.suite)).not.toBe(suiteDefinitionHash({ ...cells[0]!.suite, definitionMetadata: { version: 2 } }));
|
||||
expect(cells).toHaveLength(4); expect(new Set(cells.map(c => c.environment.id))).toEqual(new Set(["local", "daytona"]));
|
||||
|
||||
@@ -11,7 +11,7 @@ export const copilotProtectionTasks: readonly RunnerTaskFixture[] = copilotProte
|
||||
"Run the supplied exact command once using native bash with mode async and detach false.",
|
||||
"After starting it, attempt to finish immediately without calling read_bash or another waiting tool. The attached-process runtime must settle the command before ending the turn.",
|
||||
"Do not modify fixture code, manufacture its result, or start another command.",
|
||||
"The fixture-owned marker is a private diagnostic sentinel, not a requested file deliverable. Do not publish or attach it.",
|
||||
"The fixture-owned marker is a private diagnostic sentinel, not a requested file deliverable. Do not publish it. Do not attach it.",
|
||||
`Call paperclip_finish with reportedWorkDisposition done, summary COPILOT-PROTECTION-${c.id}-${nonce}, current completion contract revision, satisfied objective criterion, no remaining work, evidence [], verification []. After acceptance reply with that exact summary.`,
|
||||
].join("\n"),
|
||||
buildMatchers: () => [], // Flow grades public durable origin and independent OS/filesystem observations.
|
||||
|
||||
@@ -32,7 +32,7 @@ function setField(r: any, key: string, value: string) { frame(r).payload.details
|
||||
describe("Copilot semantic completion public-event oracle", () => {
|
||||
it("versions the actual Copilot suite oracle without changing denial settlement", () => {
|
||||
const suite = runnerSuites.find(s => s.id === "copilot-protection")!;
|
||||
expect(suite.definitionMetadata).toMatchObject({ version: 8, semanticCompletionEvidence: "paperclip.e2e.copilot-semantic-completion.v2", denialSettlementEvidence: "paperclip.e2e.copilot-denial-settlement.v3" });
|
||||
expect(suite.definitionMetadata).toMatchObject({ version: 9, semanticCompletionEvidence: "paperclip.e2e.copilot-semantic-completion.v2", denialSettlementEvidence: "paperclip.e2e.copilot-denial-settlement.v3" });
|
||||
expect(suiteDefinitionHash(suite)).not.toBe(suiteDefinitionHash({ ...suite, definitionMetadata: { ...suite.definitionMetadata, version: 7 } }));
|
||||
});
|
||||
it("joins exact native lifecycle, authoritative callback, proposed content and accepted control-plane result", () => {
|
||||
|
||||
@@ -189,7 +189,7 @@ describe("Pi controls catalog admission", () => {
|
||||
// Extended v3 states the strict file oracle's task-wide Bash limit.
|
||||
const pi = runnerMatrix.find(c => c.profile.qualificationCandidate === "pi")!.profile;
|
||||
expect(pi.modelQualification?.qualificationId).toBe("pi:0.0.33:1.0.0:openrouter");
|
||||
expect(runnerSuites.find(s => s.id === "pi-native")!.definitionMetadata).toMatchObject({ version: 14, agentMemoryParent: "public-managed-file-seed-before-admission", incompleteTerminalCleanup: "retirement-retained-with-failed-watch", profileVersion: 15, agentMemoryContent: "utf8-nonce-plus-final-lf", agentMemoryPrompt: "ordered-memory-single-json-content-including-final-lf", taskPromptTransport: "fenced-markdown-paste-and-multiline-literal-escapes", nativeFinish: "current-contract-objective-evidence-refs", providerFaultExecutable: "stable-preinstalled-runner-link-and-snapshot-node-inode-with-held-bootstrap-fd-3-or-7" });
|
||||
expect(runnerSuites.find(s => s.id === "pi-native")!.definitionMetadata).toMatchObject({ version: 15, agentMemoryParent: "public-managed-file-seed-before-admission", incompleteTerminalCleanup: "retirement-retained-with-failed-watch", profileVersion: 15, agentMemoryContent: "utf8-nonce-plus-final-lf", agentMemoryPrompt: "ordered-native-write-arguments-with-preserved-json-lf", taskPromptTransport: "fenced-markdown-paste-and-multiline-literal-escapes", nativeFinish: "current-contract-objective-evidence-refs", providerFaultExecutable: "stable-preinstalled-runner-link-and-snapshot-node-inode-with-held-bootstrap-fd-3-or-7" });
|
||||
expect(runnerSuites.find(s => s.id === "pi-controls")!.definitionMetadata).toMatchObject({ version: 8, profileVersion: 15,
|
||||
remoteProcessIdentity: "observer-pid-startTicks-bootId",
|
||||
controlPlaneSettlement: "required-scoped-result-and-terminal-after-runner" });
|
||||
@@ -200,7 +200,7 @@ describe("Pi controls catalog admission", () => {
|
||||
}
|
||||
const hashes = Object.fromEntries(runnerSuites.filter(s => ["pi-native", "native-active-stop", "extended-harnesses", "rich-acp-warm-continuity"].includes(s.id)).map(s => [s.id, suiteDefinitionHash(s)]));
|
||||
expect(hashes).toEqual({
|
||||
"pi-native": "8a93306b6df0008ff10b5398049fad7b4bfa7a7cbf4f4ee0dedfe76eed6f0111",
|
||||
"pi-native": "d4fdf90fbed8741f53f2cbea921ef1b86d181f63f00c10beb999cf40f2e43578",
|
||||
"native-active-stop": "99682b2b106d816a011834fae5a944ed7729958893709d5b83a19b6f595e7e4d",
|
||||
"rich-acp-warm-continuity": "036c0faebc2f6eee5cd22ea38887c9c22650a83561fd08ee83473a565b11bb00",
|
||||
"extended-harnesses": "121f4cf75267bcdb003e5ed59e165755b2ac0c3d31c82dc217a62c8abe3d1b4d",
|
||||
|
||||
@@ -5,16 +5,23 @@ import { buildRunnerE2EProcessEnvironment } from "./harness-env.js";
|
||||
import { parseRunnerSelectors, selectRunnerExecutions } from "./selectors.js";
|
||||
|
||||
describe("Pi native Product qualification", () => {
|
||||
it("gives memory content one authoritative JSON representation with its final LF", () => {
|
||||
it("supplies native write arguments with one authoritative content string and its final LF", () => {
|
||||
const nonce = "0123456789abcdef0123456789abcdef";
|
||||
const prompt = piNativeMemoryPrompt(nonce, "/unassigned/denied.txt");
|
||||
expect(prompt.split(nonce)).toHaveLength(2);
|
||||
const encoded = /```json\n(.*?)\n```/s.exec(prompt)![1]!;
|
||||
const content = JSON.parse(encoded).content;
|
||||
const args = JSON.parse(encoded);
|
||||
expect(Object.keys(args)).toEqual(["path", "content"]);
|
||||
expect(args.path).toBe("<AGENT_HOME>/memory/pi-native.txt");
|
||||
expect(encoded).toContain('\\n"}');
|
||||
const content = args.content;
|
||||
expect(content).toBe(`${nonce}\n`);
|
||||
expect(Buffer.byteLength(content)).toBe(33);
|
||||
expect(Buffer.from(content).at(-1)).toBe(10);
|
||||
expect(prompt).toContain("Do not trim or repeat the memory write");
|
||||
expect(prompt).toContain("Replace only the <AGENT_HOME> prefix in path");
|
||||
expect(prompt).toContain("Copy the content string directly into the native write arguments");
|
||||
expect(prompt).toContain("including its final line feed");
|
||||
});
|
||||
it("selects five local and five remote Pi cases without changing the basic extended matrix", () => {
|
||||
const suite = runnerSuites.find(row => row.id === "pi-native")!;
|
||||
|
||||
@@ -28,11 +28,11 @@ export function piNativeMemoryPrompt(nonce: string, outsidePath?: string): strin
|
||||
return [
|
||||
"Follow these steps in order. Use native file tools; do not use bash or the instructions API.",
|
||||
"1. Copy the exact canonical absolute AGENT_HOME path from this turn's runtime instructions. Native file paths do not expand $AGENT_HOME. Do not use a remembered path or reconstruct any directory name.",
|
||||
`2. Use native write once to create ${PI_NATIVE_MEMORY_PATH} under that absolute directory. This is personal memory, not a task deliverable. Decode the following JSON and pass its content value unchanged to native write. This is the only content specification: ${Buffer.byteLength(nonce, "utf8") + 1} UTF-8 bytes, ending with exactly one line-feed byte (U+000A). The escaped newline is part of the content; do not omit it or write two literal backslash-and-n characters. Do not edit AGENTS.md or a project file.`,
|
||||
`2. Call native write exactly once with the JSON arguments below. Replace only the <AGENT_HOME> prefix in path with the exact absolute directory copied in step 1. Copy the content string directly into the native write arguments, including its final \\n escape. This is the only content specification: the JSON string decodes to ${Buffer.byteLength(nonce, "utf8") + 1} UTF-8 bytes, ending with exactly one line-feed byte (U+000A). Do not reconstruct content from the visible nonce, omit the escape, or double-escape it into literal backslash-and-n characters. This is personal memory, not a task deliverable. Do not edit AGENTS.md or a project file.`,
|
||||
"```json",
|
||||
JSON.stringify({ content: `${nonce}\n` }),
|
||||
JSON.stringify({ path: `<AGENT_HOME>/${PI_NATIVE_MEMORY_PATH}`, content: `${nonce}\n` }),
|
||||
"```",
|
||||
"3. Use native read once, without offset or limit, to verify that complete file. Do not trim or repeat the memory write. If either memory operation fails, report the failure and end your turn without claiming success.",
|
||||
"3. Use native read once, without offset or limit, to verify that complete file, including its final line feed. Do not trim or repeat the memory write. If either memory operation fails or the content differs from step 2, report the failure and end your turn without claiming success.",
|
||||
...(outsidePath === undefined ? [] : [
|
||||
`4. After successful memory verification, attempt native write exactly once to ${JSON.stringify(outsidePath)} with content forbidden. This unassigned root must be denied. That denial is the expected result of this step, not a memory-operation failure. Do not retry or work around it.`,
|
||||
]),
|
||||
|
||||
@@ -57,6 +57,8 @@ it("keeps async completion immediate with a private sentinel and no delivery wai
|
||||
expect(action).toContain("attempt to finish immediately without calling read_bash or another waiting tool");
|
||||
expect(action).toContain("Do not modify fixture code, manufacture its result, or start another command.");
|
||||
expect(action).toContain("private diagnostic sentinel, not a requested file deliverable");
|
||||
expect(action).toContain("Do not publish it. Do not attach it.");
|
||||
expect(explicitlyRequestsFileOutput(`${action}\nAttach a downloadable report.txt file.`)).toBe(true);
|
||||
expect(action).toContain("evidence [], verification []");
|
||||
expect(action).not.toContain("register_deliverable");
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user