Salesforce  /  Use Cases  /  07 · Agency contract officer signs a milestone acceptance
07 STANDARD Public Sector

Agency contract officer signs a milestone acceptance

FOIA-portable. OIG-verifiable. The receipt is the audit trail, with or without Salesforce.

01Scenario

A US-CA state contracting officer's Agentforce agent signs contract.milestone.accept on a Contract record. The vendor org sees the inbound receipt and is now eligible to invoice (or, on Nano, paid inline).

FOIA requests from journalists or watchdog groups can be answered by exporting the receipt JSONL alone. The receipt is signed by a credentialed officer (license/employee-id pill) and tied by action_ref to the specific milestone in the SOW.

OIG audits trace contractor performance through receipt chains rather than email screenshots. Each milestone is a portable, signed, dated record. The agency does not need to expose its Salesforce instance to the auditor.

02Handles

action_type
contract.milestone.accept
handle
HiveReceiptMinter
lands on
Contract
rail
STANDARD $0.50/receipt, Hive-billed

03APEX

Contract con = [SELECT Id, ContractNumber, AccountId, Account.Name,
                          Owner.Name, Milestone__c, SOW_Line__c
                   FROM Contract WHERE Id = :contractId];

Map<String, Object> payload = new Map<String, Object>{
  'contract_number'   => con.ContractNumber,
  'milestone'         => con.Milestone__c,
  'sow_line'          => con.SOW_Line__c,
  'officer_name'      => con.Owner.Name,
  'officer_id_hash'   => HiveHash.sha256(stateOfficerId),
  'fiscal_obligation' => fiscalYearObligation,
  'cfda_program'      => cfdaProgramCode
};

Id receiptId = HiveReceiptMinter.mint(
  con.Id,
  'contract.milestone.accept',
  'did:hive:0xVendorOrgAgent',
  'salesforce:contract:' + con.Id,
  payload
);

// FOIA-portable: receipt.Jurisdiction__c = 'US-CA'
// OIG-portable: action_ref is computable from the SOW line + ms timestamp

04Flow XML

<Flow xmlns="http://soap.sforce.com/2006/04/metadata">
    <processType>AutoLaunchedFlow</processType>
    <start>
        <object>Contract</object>
        <recordTriggerType>UpdatedAndConditionMet</recordTriggerType>
        <filters>
            <field>Status</field>
            <value><stringValue>Milestone Accepted</stringValue></value>
        </filters>
        <triggerType>RecordAfterSave</triggerType>
        <connector><targetReference>mint_milestone</targetReference></connector>
    </start>
    <actionCalls>
        <name>mint_milestone</name>
        <actionName>HiveReceiptMinter</actionName>
        <actionType>apex</actionType>
    </actionCalls>
    <status>Active</status>
</Flow>

05The receipt that lands in Hive_Receipt__c

{
  "agent_id": "did:hive:0xCAOfficerAgent",
  "counterparty_did": "did:hive:0xVendorOrgAgent",
  "action_type": "contract.milestone.accept",
  "scope": "salesforce:contract:8001p0000Z3R",
  "jurisdiction": "US-CA",
  "verification_status": "VERIFIED"
}

06Verification

FOIA-style verification — journalist with the JSONL and the public key

curl -sS https://hivemorph.onrender.com/v1/verify \
  -H 'content-type: application/json' \
  --data-binary @milestone_receipt.json

# expected: {"verified":true,"jurisdiction":"US-CA","officer_id_hash_present":true}

07Economics

Per-milestone fee$0.50 (Standard)
Agency cap$499/mo — small agencies typically under free tier
Procurement compatibilityGSA SmartPay / Pcard / standard P.O. paths unchanged
Audit savingsOIG audits previously requiring full system pulls now answerable from JSONL export
Vendor portal compatibleVendor org receives INBOUND receipt; can post on AppExchange storefront

08Compliance and audit shape

  • FOIA-portable: a single JSONL line answers "who accepted what milestone, when".
  • Officer identity is hashed; raw employee id never leaves the agency.
  • Receipt-chain audit replaces email-thread audit for milestone acceptance.
  • CJIS, ITAR, FedRAMP overlays available via jurisdiction picklist.

09Trust anchors

Every claim on this page is verifiable against these public constants. No login. No NDA.

RailSTANDARD — $0.50/receipt, Hive-billed
Hive Ed25519 pubkeyfd9d10abe60de7510c61ef649c8da598a519468dd2a2b827106d76487a899444
CanonicalizationRFC 8785 JCS over the JSON receipt body
Signature algorithmEd25519 (RFC 8032)
Backend roothttps://hivemorph.onrender.com
Verify any receiptthehiveryiq.com/verify
MIT starterthehiveryiq.com/salesforce/install
Billing$0.50/receipt, 100/mo free, $499/mo cap. Square invoice or monthly ACH — buyer picks.
Pricingthehiveryiq.com/pricing