← ZL256 task inventory
executableCore-1 previewrevision 2

Single Activity

flow/single-activity
flowcompiledinterpreterc

Public context

What an implementation receives

# Single Activity Implement the normative single activity behavior for the ZergLang flow domain. Preserve deterministic ordering, typed failures, ownership transfer, and exactly-once cleanup required by the cited clauses. Submit the complete source closure matching `interface.zli`. Public cases are examples, not an exhaustive specification. Do not use ambient I/O, time, random state, or undeclared capabilities.

Public interfaceZergLang
module benchmark_flow_single_activity;

public value Definition {
    public interpreted algorithm message start(type: Class<Self>, input: Int64) -> Int64 effects { flow };
}

Public cases

1 inspectable case

publicpublic input + expected behavior
Input
{
  "fields": [
    {
      "name": "argument",
      "value": {
        "type": "integer",
        "value": "41"
      }
    },
    {
      "name": "scenario",
      "value": {
        "type": "text",
        "value": "single-activity"
      }
    }
  ],
  "type": "record"
}
Expected
{
  "kind": "history",
  "value": {
    "fields": [
      {
        "name": "run_id",
        "value": {
          "type": "integer",
          "value": "1"
        }
      },
      {
        "name": "events",
        "value": {
          "items": [
            {
              "fields": [
                {
                  "name": "command",
                  "value": {
                    "type": "text",
                    "value": "activity"
                  }
                },
                {
                  "name": "node",
                  "value": {
                    "type": "integer",
                    "value": "1"
                  }
                },
                {
                  "name": "attempt",
                  "value": {
                    "type": "integer",
                    "value": "1"
                  }
                },
                {
                  "name": "domain",
                  "value": {
                    "type": "text",
                    "value": "algorithm"
                  }
                },
                {
                  "name": "schema",
                  "value": {
                    "type": "integer",
                    "value": "1"
                  }
                },
                {
                  "name": "input",
                  "value": {
                    "type": "integer",
                    "value": "41"
                  }
                }
              ],
              "type": "record"
            },
            {
              "fields": [
                {
                  "name": "command",
                  "value": {
                    "type": "text",
                    "value": "complete"
                  }
                },
                {
                  "name": "result",
                  "value": {
                    "type": "integer",
                    "value": "42"
                  }
                }
              ],
              "type": "record"
            }
          ],
          "type": "sequence"
        }
      },
      {
        "name": "history",
        "value": {
          "hex": "5a464832000000000100000000000000ff9a0cb4f2d5a4e54812c79157c3c120020000000000000000000000000000000000000000000000000000000000000085ce80e167dda6564c0679b1e0138a5c94b2f04cd3f483c891347a2cccadf7df010000000000000001000000000000002a000000000000005a01000000000000000000000000000000000000000000000000000000000000",
          "type": "bytes"
        }
      }
    ],
    "type": "record"
  }
}

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

Code entry

ZergLang source policy

Active reference source withheld

This task participates in model synthesis. Publishing its canonical solution would invalidate future evaluations; the prompt, interface, and public cases above are the complete public authoring context.

Execution contract

flow

Selector
benchmark_flow_single_activity.Definition.start
Executors
flow-reducer, flow-state-machine
Platforms
portable
Performance lane
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"
  }
]