Zum Inhalt
HALOWERK

Technische Prüfungen & Formate

commerce / commerce two margin controlled rounding

An agent that rounds a commerce reconciliation matrix to whole units needs its claimed joint feasibility checked when every cell must round only down or up and both row and column totals must remain exact.

POST https://detect.halowerk.com/v1/commerce/commerce-two-margin-controlled-rounding

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
artifactobjectJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "properties": {
    "artifact": {
      "type": "object",
      "properties": {
        "numerators": {
          "type": "array",
          "items": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000
            },
            "minItems": 1,
            "maxItems": 16
          },
          "minItems": 1,
          "maxItems": 16
        },
        "denominator": {
          "type": "integer",
          "minimum": 1,
          "maximum": 1000
        },
        "row_totals": {
          "type": "array",
          "items": {
            "type": "integer",
            "minimum": 0,
            "maximum": 16000000
          },
          "minItems": 1,
          "maxItems": 16
        },
        "column_totals": {
          "type": "array",
          "items": {
            "type": "integer",
            "minimum": 0,
            "maximum": 16000000
          },
          "minItems": 1,
          "maxItems": 16
        },
        "claimed_feasible": {
          "type": "boolean"
        }
      },
      "required": [
        "numerators",
        "denominator",
        "row_totals",
        "column_totals",
        "claimed_feasible"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "artifact"
  ],
  "additionalProperties": false
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "artifact": {
    "numerators": [
      [
        3,
        6
      ],
      [
        5,
        0
      ]
    ],
    "denominator": 1,
    "row_totals": [
      9,
      5
    ],
    "column_totals": [
      8,
      6
    ],
    "claimed_feasible": true
  }
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →