# partner:reconcile — Ammora SDK 0.3.8 Check the source for arguments and transaction requirements. [Read in Docs](https://docs.ammora.org/examples?command=partner%3Areconcile) · [Detailed guide](https://docs.ammora.org/guides/src-partner-readme) · [Local setup](https://docs.ammora.org/guides/example-setup) ## Context and execution GIWA Sepolia 91342. Public SDK 0.3.8, Math 0.3.0. Source revision: `a9b3fd798fa51495e8defec99a25de59e4d70672`. Install the SDK in your app, or prepare the example project using the local setup guide for its npm commands. Review the entry source and guide for required arguments, roles and deployment selection. `AMMORA_SEND=0` does not turn send-only commands into previews. Never put CLI keys in a browser or resend an uncertain transaction. Command: `npm run partner:reconcile -- ` (`tsx src/partner/reconcile.ts`). Omit `--` and arguments when the source accepts none. ## Entry file: `src/partner/reconcile.ts` ```typescript import { describePartnerOperationStatusV1, getPartnerSdkGuidanceV2 } from "@ammora-protocol/sdk/partner"; import { createClaimExample } from "./claims.js"; import { fixtureModes, fixtureTransactionHash, type FixtureObservation } from "./fixture.js"; import { isMain, runOffline } from "./runtime.js"; /** The SDK correlates exact calldata, sender, target, runtime and canonical finality. * Generic action receipt status is not an independent fee-event/balance payout proof. */ export const previewReconciliation = async (mode: FixtureObservation = "unknown") => { if (!fixtureModes.includes(mode)) throw new Error("Unknown synthetic observation"); const example = await createClaimExample(), prepared = await example.planClaim(); example.fixture.observe(prepared.plan, mode); const receipt = await example.handle.client.reconcileAction(prepared.plan, fixtureTransactionHash, "finalized"); return { scope: example.fixture.scope, receipt, status: describePartnerOperationStatusV1(receipt, "finalized"), guidance: getPartnerSdkGuidanceV2(new Error("untrusted provider text is never displayed"), { phase: "reconcile", submission: "unknown" }), payoutVerified: false, amountPaid: null, note: "Fixture envelope/finality only. Even finalized execution is not proof of a positive fee payout; require exact module fee events and receipt-block recipient balances. Submitted/unknown/orphaned attempts keep their durable journal reservation and are never resent automatically." }; }; if (isMain(import.meta.url)) void runOffline(() => previewReconciliation((process.argv[2] ?? "unknown") as FixtureObservation)); ``` ## Supporting files Keep relative paths intact. Local imports are listed recursively; JSON templates are choices to review, not approved inputs. Runtime-selected files and wallet/environment setup still follow the detailed guide. - [src/partner/catalog.ts](https://docs.ammora.org/examples/source/src/partner/catalog.ts.txt) - [src/partner/claims.ts](https://docs.ammora.org/examples/source/src/partner/claims.ts.txt) - [src/partner/fixture.ts](https://docs.ammora.org/examples/source/src/partner/fixture.ts.txt) - [src/partner/runtime.ts](https://docs.ammora.org/examples/source/src/partner/runtime.ts.txt) - [src/shared/input.ts](https://docs.ammora.org/examples/source/src/shared/input.ts.txt) - [package.json](https://docs.ammora.org/examples/source/package.json.txt) - [package-lock.json](https://docs.ammora.org/examples/source/package-lock.json.txt) - [tsconfig.json](https://docs.ammora.org/examples/source/tsconfig.json.txt) - [.env.giwa.example](https://docs.ammora.org/examples/source/file.env.giwa.example.txt) - [.nvmrc](https://docs.ammora.org/examples/source/file.nvmrc.txt) ## AI implementation checklist Use the actual SDK exports and parameter types in the linked files. Start with reads and unsigned plans where supported. Use a connected wallet for browser signing. Preserve raw integer units, exact approvals, caller authority, deadlines and receipt reconciliation. Report local checks separately from live-chain verification.