{
  "x402Version": 2,
  "id": 32177,
  "slug": "32177",
  "resource": "https://www.mahastrategies.com/api/v1/micro/packing-displacement-analysis",
  "description": "Compare strict rank-prefix packing with rank-order greedy-fit and score-density greedy-fit for up to 64 passages under a 1–2048 token budget. Report evidence displacement and optional observed selection violations. Uses declared integer costs/scores; no tokenization or causal attribution.",
  "type": "http",
  "serviceName": "Packing displacement analysis",
  "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1786099228/bazaar-icons/1a820036513dff1d.png",
  "resourceType": "Beauty & Personal Care",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xec84c1cd6602bbe387bc8e6f0d3c062f2762de28",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "78000",
      "amountUsd": 0.078,
      "maxTimeoutSeconds": 60
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "additionalProperties": false,
        "properties": {
          "amountBaseUnits": {
            "enum": [
              "78000"
            ],
            "type": "string"
          },
          "boundaries": {
            "maxItems": 128,
            "minItems": 0,
            "type": "array"
          },
          "inputDigest": {
            "maxLength": 71,
            "type": "string"
          },
          "offerId": {
            "enum": [
              "packing-displacement-analysis"
            ],
            "type": "string"
          },
          "receiptDigest": {
            "maxLength": 71,
            "type": "string"
          },
          "result": {
            "type": "object"
          },
          "version": {
            "enum": [
              "maha-microproducts/0.1"
            ],
            "type": "string"
          }
        },
        "required": [
          "version",
          "offerId",
          "amountBaseUnits",
          "inputDigest",
          "result",
          "boundaries",
          "receiptDigest"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "budget": 8,
            "candidates": [
              {
                "evidenceIds": [
                  "e1"
                ],
                "passageId": "p1",
                "rank": 1,
                "score": 9,
                "tokens": 6
              },
              {
                "evidenceIds": [
                  "e2"
                ],
                "passageId": "p2",
                "rank": 2,
                "score": 8,
                "tokens": 5
              },
              {
                "evidenceIds": [
                  "e2"
                ],
                "passageId": "p3",
                "rank": 3,
                "score": 3,
                "tokens": 2
              }
            ],
            "dataClass": "synthetic",
            "observedSelectedPassageIds": null,
            "requiredEvidenceIds": [
              "e1",
              "e2"
            ]
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "amountBaseUnits": "78000",
            "boundaries": [
              "Public or synthetic inputs only. Caller labels are declarations,…"
            ],
            "inputDigest": "sha256:dca4136fd984b5a0cd6170947e2b89cf4f9a472443ac80e7b00623a80…",
            "offerId": "packing-displacement-analysis",
            "receiptDigest": "sha256:24985ca1d03b3240df328902b9b5f442b1d3c93678823c9b5c0ad363a…",
            "result": {
              "budget": 8,
              "causalityEstablished": false,
              "dataClass": "synthetic",
              "densityDisplacedPassageIds": [
                "p1"
              ],
              "densityGreedy": {
                "coverageBps": 5000,
                "coveredEvidenceIds": [
                  "e2"
                ],
                "selectedPassageIds": [
                  "p2",
                  "p3"
                ],
                "totalScore": 11,
                "usedTokens": 7
              },
              "greedyAddedPassageIds": [
                "p3"
              ],
              "greedyFit": {
                "coverageBps": 10000,
                "coveredEvidenceIds": [
                  "e1",
                  "e2"
                ],
                "selectedPassageIds": [
                  "p1",
                  "p3"
                ],
                "totalScore": 12,
                "usedTokens": 8
              },
              "greedyRecoveredEvidenceIds": [
                "e2"
              ],
              "inputSha256": "sha256:dca4136fd984b5a0cd6170947e2b89cf4f9a472443ac80e7b00623a80…",
              "limits": [
                "Public/synthetic is a caller declaration, not content inspection…"
              ],
              "observedSelection": null,
              "rankPrefix": {
                "coverageBps": 5000,
                "coveredEvidenceIds": [
                  "e1"
                ],
                "selectedPassageIds": [
                  "p1"
                ],
                "totalScore": 9,
                "usedTokens": 6
              },
              "resultSha256": "sha256:45a542ef56b8f1a295b2ca7ab633aa121d2a07a6dd811984bd941498e…",
              "sourcesVerified": false
            },
            "version": "maha-microproducts/0.1"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "budget": {
                    "maximum": 2048,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "candidates": {
                    "maxItems": 64,
                    "minItems": 1,
                    "type": "array"
                  },
                  "dataClass": {
                    "enum": [
                      "public",
                      "synthetic"
                    ],
                    "type": "string"
                  },
                  "observedSelectedPassageIds": {
                    "anyOf": [
                      {
                        "maxItems": 64,
                        "minItems": 0,
                        "type": "array"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requiredEvidenceIds": {
                    "maxItems": 64,
                    "minItems": 1,
                    "type": "array"
                  }
                },
                "required": [
                  "dataClass",
                  "budget",
                  "requiredEvidenceIds",
                  "candidates",
                  "observedSelectedPassageIds"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "additionalProperties": false,
                "properties": {
                  "amountBaseUnits": {
                    "enum": [
                      "78000"
                    ],
                    "type": "string"
                  },
                  "boundaries": {
                    "maxItems": 128,
                    "minItems": 0,
                    "type": "array"
                  },
                  "inputDigest": {
                    "maxLength": 71,
                    "type": "string"
                  },
                  "offerId": {
                    "enum": [
                      "packing-displacement-analysis"
                    ],
                    "type": "string"
                  },
                  "receiptDigest": {
                    "maxLength": 71,
                    "type": "string"
                  },
                  "result": {
                    "type": "object"
                  },
                  "version": {
                    "enum": [
                      "maha-microproducts/0.1"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "version",
                  "offerId",
                  "amountBaseUnits",
                  "inputDigest",
                  "result",
                  "boundaries",
                  "receiptDigest"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    },
    "declaration-integrity": {
      "canonicalResource": "https://www.mahastrategies.com/api/v1/micro/packing-displacement-analysis",
      "declarationDigest": "sha256:afeda95d7f58997c78a581ce66689c93848203c727d9894d4bdba989a65a9c06",
      "metadataVersion": "2026-08-10"
    },
    "maha-offer": {
      "amount": "78000",
      "asset": "USDC",
      "assetDecimals": 6,
      "canonicalResource": "https://www.mahastrategies.com/api/v1/micro/packing-displacement-analysis",
      "declarationInline": "compact",
      "declarationUrl": "https://www.mahastrategies.com/api/discovery/x402-offers/packing-displacement-analysis",
      "fullSourceTextStored": false,
      "maxRequestBytes": 32768,
      "method": "POST",
      "network": "eip155:8453",
      "offerId": "packing-displacement-analysis",
      "payableInProduction": true,
      "status": "available",
      "verbatimExcerptsRetained": false
    }
  },
  "tags": [
    "bounded-computation",
    "evidence",
    "deterministic",
    "microproduct",
    "expansion-20261011",
    "bazaar",
    "declaration-integrity",
    "maha-offer"
  ],
  "sourceHost": "www.mahastrategies.com",
  "lastUpdated": "2026-10-11T09:01:02.131Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-11T09:01:01.933Z"
  },
  "metadata": {
    "serviceName": "Packing displacement analysis",
    "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1786099228/bazaar-icons/1a820036513dff1d.png",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "budget": 8,
              "candidates": [
                {
                  "evidenceIds": [
                    "e1"
                  ],
                  "passageId": "p1",
                  "rank": 1,
                  "score": 9,
                  "tokens": 6
                },
                {
                  "evidenceIds": [
                    "e2"
                  ],
                  "passageId": "p2",
                  "rank": 2,
                  "score": 8,
                  "tokens": 5
                },
                {
                  "evidenceIds": [
                    "e2"
                  ],
                  "passageId": "p3",
                  "rank": 3,
                  "score": 3,
                  "tokens": 2
                }
              ],
              "dataClass": "synthetic",
              "observedSelectedPassageIds": null,
              "requiredEvidenceIds": [
                "e1",
                "e2"
              ]
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "amountBaseUnits": "78000",
              "boundaries": [
                "Public or synthetic inputs only. Caller labels are declarations,…"
              ],
              "inputDigest": "sha256:dca4136fd984b5a0cd6170947e2b89cf4f9a472443ac80e7b00623a80…",
              "offerId": "packing-displacement-analysis",
              "receiptDigest": "sha256:24985ca1d03b3240df328902b9b5f442b1d3c93678823c9b5c0ad363a…",
              "result": {
                "budget": 8,
                "causalityEstablished": false,
                "dataClass": "synthetic",
                "densityDisplacedPassageIds": [
                  "p1"
                ],
                "densityGreedy": {
                  "coverageBps": 5000,
                  "coveredEvidenceIds": [
                    "e2"
                  ],
                  "selectedPassageIds": [
                    "p2",
                    "p3"
                  ],
                  "totalScore": 11,
                  "usedTokens": 7
                },
                "greedyAddedPassageIds": [
                  "p3"
                ],
                "greedyFit": {
                  "coverageBps": 10000,
                  "coveredEvidenceIds": [
                    "e1",
                    "e2"
                  ],
                  "selectedPassageIds": [
                    "p1",
                    "p3"
                  ],
                  "totalScore": 12,
                  "usedTokens": 8
                },
                "greedyRecoveredEvidenceIds": [
                  "e2"
                ],
                "inputSha256": "sha256:dca4136fd984b5a0cd6170947e2b89cf4f9a472443ac80e7b00623a80…",
                "limits": [
                  "Public/synthetic is a caller declaration, not content inspection…"
                ],
                "observedSelection": null,
                "rankPrefix": {
                  "coverageBps": 5000,
                  "coveredEvidenceIds": [
                    "e1"
                  ],
                  "selectedPassageIds": [
                    "p1"
                  ],
                  "totalScore": 9,
                  "usedTokens": 6
                },
                "resultSha256": "sha256:45a542ef56b8f1a295b2ca7ab633aa121d2a07a6dd811984bd941498e…",
                "sourcesVerified": false
              },
              "version": "maha-microproducts/0.1"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "budget": {
                      "maximum": 2048,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "candidates": {
                      "maxItems": 64,
                      "minItems": 1,
                      "type": "array"
                    },
                    "dataClass": {
                      "enum": [
                        "public",
                        "synthetic"
                      ],
                      "type": "string"
                    },
                    "observedSelectedPassageIds": {
                      "anyOf": [
                        {
                          "maxItems": 64,
                          "minItems": 0,
                          "type": "array"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "requiredEvidenceIds": {
                      "maxItems": 64,
                      "minItems": 1,
                      "type": "array"
                    }
                  },
                  "required": [
                    "dataClass",
                    "budget",
                    "requiredEvidenceIds",
                    "candidates",
                    "observedSelectedPassageIds"
                  ],
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "additionalProperties": false,
                  "properties": {
                    "amountBaseUnits": {
                      "enum": [
                        "78000"
                      ],
                      "type": "string"
                    },
                    "boundaries": {
                      "maxItems": 128,
                      "minItems": 0,
                      "type": "array"
                    },
                    "inputDigest": {
                      "maxLength": 71,
                      "type": "string"
                    },
                    "offerId": {
                      "enum": [
                        "packing-displacement-analysis"
                      ],
                      "type": "string"
                    },
                    "receiptDigest": {
                      "maxLength": 71,
                      "type": "string"
                    },
                    "result": {
                      "type": "object"
                    },
                    "version": {
                      "enum": [
                        "maha-microproducts/0.1"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "version",
                    "offerId",
                    "amountBaseUnits",
                    "inputDigest",
                    "result",
                    "boundaries",
                    "receiptDigest"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      },
      "declaration-integrity": {
        "canonicalResource": "https://www.mahastrategies.com/api/v1/micro/packing-displacement-analysis",
        "declarationDigest": "sha256:afeda95d7f58997c78a581ce66689c93848203c727d9894d4bdba989a65a9c06",
        "metadataVersion": "2026-08-10"
      },
      "maha-offer": {
        "amount": "78000",
        "asset": "USDC",
        "assetDecimals": 6,
        "canonicalResource": "https://www.mahastrategies.com/api/v1/micro/packing-displacement-analysis",
        "declarationInline": "compact",
        "declarationUrl": "https://www.mahastrategies.com/api/discovery/x402-offers/packing-displacement-analysis",
        "fullSourceTextStored": false,
        "maxRequestBytes": 32768,
        "method": "POST",
        "network": "eip155:8453",
        "offerId": "packing-displacement-analysis",
        "payableInProduction": true,
        "status": "available",
        "verbatimExcerptsRetained": false
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "www.mahastrategies.com",
    "manifest_name": "www.mahastrategies.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "amountBaseUnits": "78000",
    "boundaries": [
      "Public or synthetic inputs only. Caller labels are declarations,…"
    ],
    "inputDigest": "sha256:dca4136fd984b5a0cd6170947e2b89cf4f9a472443ac80e7b00623a80…",
    "offerId": "packing-displacement-analysis",
    "receiptDigest": "sha256:24985ca1d03b3240df328902b9b5f442b1d3c93678823c9b5c0ad363a…",
    "result": {
      "budget": 8,
      "causalityEstablished": false,
      "dataClass": "synthetic",
      "densityDisplacedPassageIds": [
        "p1"
      ],
      "densityGreedy": {
        "coverageBps": 5000,
        "coveredEvidenceIds": [
          "e2"
        ],
        "selectedPassageIds": [
          "p2",
          "p3"
        ],
        "totalScore": 11,
        "usedTokens": 7
      },
      "greedyAddedPassageIds": [
        "p3"
      ],
      "greedyFit": {
        "coverageBps": 10000,
        "coveredEvidenceIds": [
          "e1",
          "e2"
        ],
        "selectedPassageIds": [
          "p1",
          "p3"
        ],
        "totalScore": 12,
        "usedTokens": 8
      },
      "greedyRecoveredEvidenceIds": [
        "e2"
      ],
      "inputSha256": "sha256:dca4136fd984b5a0cd6170947e2b89cf4f9a472443ac80e7b00623a80…",
      "limits": [
        "Public/synthetic is a caller declaration, not content inspection…"
      ],
      "observedSelection": null,
      "rankPrefix": {
        "coverageBps": 5000,
        "coveredEvidenceIds": [
          "e1"
        ],
        "selectedPassageIds": [
          "p1"
        ],
        "totalScore": 9,
        "usedTokens": 6
      },
      "resultSha256": "sha256:45a542ef56b8f1a295b2ca7ab633aa121d2a07a6dd811984bd941498e…",
      "sourcesVerified": false
    },
    "version": "maha-microproducts/0.1"
  }
}