← ZL256 task inventory
scaffoldCore-1 previewrevision 2

Lex Longest Token

shared/lex-longest-token
algorithminterpretedcompiledinterpretercllvm-jitaot

Public context

What an implementation receives

# Lex Longest Token Implement the normative lex longest token behavior for the ZergLang shared 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_shared_lex_longest_token;

public value Benchmark {
    public compiled algorithm message main(type: Class<Self>) -> Int64 effects {};
}

Public cases

1 inspectable case

publicpublic input + expected behavior
Input
{
  "fields": [
    {
      "name": "seed",
      "value": {
        "type": "integer",
        "value": "6"
      }
    },
    {
      "name": "scenario",
      "value": {
        "type": "text",
        "value": "lex-longest-token"
      }
    }
  ],
  "type": "record"
}
Expected
{
  "kind": "value",
  "value": {
    "type": "integer",
    "value": "50"
  }
}

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

algorithm

Selector
benchmark_shared_lex_longest_token.Benchmark.main
Executors
algorithm-interpreter
Platforms
portable
Performance lane
not eligible

Normative authority

2 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"
  }
]