← ZL256 task inventory
scaffoldCore-1 previewrevision 2

Topic Overflow Drop Oldest

state/topic-overflow-drop-oldest
statecompiledinterpreterc

Public context

What an implementation receives

This conformance task is evaluated from its checked task definition and published source closure. It is not currently in the model-synthesis lane.

Public cases

1 inspectable case

publicpublic input + expected behavior
Input
{
  "fields": [
    {
      "name": "value",
      "value": {
        "type": "integer",
        "value": "10"
      }
    },
    {
      "name": "delta",
      "value": {
        "type": "integer",
        "value": "4"
      }
    },
    {
      "name": "scenario",
      "value": {
        "type": "text",
        "value": "topic-overflow-drop-oldest"
      }
    }
  ],
  "type": "record"
}
Expected
{
  "kind": "trace",
  "value": {
    "fields": [
      {
        "name": "committed",
        "value": {
          "type": "bool",
          "value": true
        }
      },
      {
        "name": "before",
        "value": {
          "fields": [
            {
              "name": "value",
              "value": {
                "type": "integer",
                "value": "10"
              }
            },
            {
              "name": "version",
              "value": {
                "type": "integer",
                "value": "0"
              }
            }
          ],
          "type": "record"
        }
      },
      {
        "name": "after",
        "value": {
          "fields": [
            {
              "name": "value",
              "value": {
                "type": "integer",
                "value": "14"
              }
            },
            {
              "name": "version",
              "value": {
                "type": "integer",
                "value": "1"
              }
            }
          ],
          "type": "record"
        }
      },
      {
        "name": "pending_events",
        "value": {
          "type": "integer",
          "value": "0"
        }
      },
      {
        "name": "error",
        "value": {
          "type": "text",
          "value": "none"
        }
      }
    ],
    "type": "record"
  }
}

Held-out inputs and expectations are excluded from this projection. Their published outcomes are aggregate-only.

Code entry

ZergLang source policy

source/main.zlZergLang
module benchmark_state_topic_overflow_drop_oldest;

// ZL256-SCAFFOLD: state/topic-overflow-drop-oldest has no source-native scenario yet.
public value Transition {
    public compiled state message apply(type: Class<Self>,
        current: Int64, delta: Int64) -> Int64 effects { state } {
        return current;
    }
    public interpreted algorithm message transact(type: Class<Self>,
        delta: Int64) -> Int64 effects { state } {
        return Store.transact(Transition.apply, delta);
    }
}

Execution contract

state

Selector
benchmark_state_topic_overflow_drop_oldest.Transition.apply
Executors
state-reference, state-compiled
Platforms
portable
Performance lane
not eligible

Normative authority

1 bound clauses

Official task history

Signed conformance observations

No official conformance run currently contains this task revision in its signed catalog.

Provenance

Where this task came from

[
  {
    "kind": "original",
    "license": "Apache-2.0",
    "source": "ZergLang Core-0/Core-1 normative specification"
  }
]