{
  "schema_version": 1,
  "atlas_version": "0.11.0",
  "title": "Programming and Scripting Atlas",
  "created_on": "2026-10-26",
  "scope": "Comprehensive, extensible starting registry; not an exhaustive list of every language, dialect or notation.",
  "families": [
    {
      "id": "web-general",
      "name": "Web and general purpose"
    },
    {
      "id": "systems",
      "name": "Systems and assembly"
    },
    {
      "id": "jvm-dotnet",
      "name": "JVM and .NET"
    },
    {
      "id": "mobile",
      "name": "Mobile and application development"
    },
    {
      "id": "functional",
      "name": "Functional and Lisp families"
    },
    {
      "id": "science",
      "name": "Scientific, statistical and array computing"
    },
    {
      "id": "shell",
      "name": "Shells and text automation"
    },
    {
      "id": "query",
      "name": "Query and data transformation"
    },
    {
      "id": "markup",
      "name": "Markup, styling and templates"
    },
    {
      "id": "data",
      "name": "Data, schema and configuration"
    },
    {
      "id": "build",
      "name": "Build, infrastructure and policy"
    },
    {
      "id": "gpu",
      "name": "GPU, shaders and parallel kernels"
    },
    {
      "id": "hardware",
      "name": "Hardware and industrial control"
    },
    {
      "id": "games",
      "name": "Games, creative and educational computing"
    },
    {
      "id": "music",
      "name": "Music, audio and notation"
    },
    {
      "id": "enterprise",
      "name": "Enterprise and legacy automation"
    },
    {
      "id": "formal",
      "name": "Logic, proofs and formal specification"
    },
    {
      "id": "compiler",
      "name": "Compiler notation and language tooling"
    },
    {
      "id": "specialist",
      "name": "Specialist domains"
    },
    {
      "id": "history",
      "name": "Historical, exploratory and esoteric"
    }
  ],
  "entries": [
    {
      "id": "javascript",
      "name": "JavaScript",
      "aliases": [
        "JS"
      ],
      "kind": "programming language",
      "families": [
        "web-general"
      ],
      "status": "tested",
      "official_sources": [
        {
          "id": "js-functions",
          "title": "MDN: JavaScript functions",
          "url": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Functions",
          "verified_on": "2026-10-25",
          "scope": "Parameters, return values and function scope.",
          "type": "maintainer documentation"
        },
        {
          "id": "dom-text",
          "title": "MDN: Node.textContent",
          "url": "https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent",
          "verified_on": "2026-10-25",
          "scope": "Plain text DOM updates rather than markup insertion.",
          "type": "maintainer documentation"
        },
        {
          "id": "dom-events",
          "title": "MDN: addEventListener",
          "url": "https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener",
          "verified_on": "2026-10-25",
          "scope": "Registering event handlers.",
          "type": "maintainer documentation"
        },
        {
          "id": "js-filter",
          "title": "MDN: Array.prototype.filter",
          "url": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter",
          "scope": "Selecting a matching subset without changing the source array.",
          "verified_on": "2026-10-25",
          "type": "maintainer documentation"
        },
        {
          "id": "js-reduce",
          "title": "MDN: Array.prototype.reduce",
          "url": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce",
          "scope": "Accumulation and an explicit initial value.",
          "verified_on": "2026-10-25",
          "type": "maintainer documentation"
        },
        {
          "id": "js-isfinite",
          "title": "MDN: Number.isFinite",
          "url": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isFinite",
          "scope": "Finite-number checks without coercion.",
          "verified_on": "2026-10-25",
          "type": "maintainer documentation"
        }
      ],
      "source_verified_on": "2026-10-25",
      "source_note": "Sources checked for this introductory pack only.",
      "constraints": {
        "language_version": "ECMAScript subset: const, let, functions, arrays and DOM events",
        "runtime": "Browser; test evidence recorded at pack level",
        "operating_systems": [
          "macOS test host; other operating systems untested"
        ],
        "notes": "This is a limited foundations pack, not full language coverage or an engine compatibility claim."
      },
      "risk_level": "low",
      "risk_note": "Original local examples; no network, credentials or system commands.",
      "pack_ids": [
        "web-foundations"
      ]
    },
    {
      "id": "typescript",
      "name": "TypeScript",
      "aliases": [
        "TS"
      ],
      "kind": "programming language",
      "families": [
        "web-general"
      ],
      "status": "tested",
      "official_sources": [
        {
          "id": "ts-basics",
          "title": "TypeScript: The basics",
          "url": "https://www.typescriptlang.org/docs/handbook/2/basic-types.html",
          "scope": "Static checks, erased types and JavaScript output.",
          "verified_on": "2026-10-25",
          "type": "official documentation or specification"
        },
        {
          "id": "ts-everyday",
          "title": "TypeScript: Everyday types",
          "url": "https://www.typescriptlang.org/docs/handbook/2/everyday-types.html",
          "scope": "Primitive, union and object types.",
          "verified_on": "2026-10-25",
          "type": "official documentation or specification"
        },
        {
          "id": "ts-narrowing",
          "title": "TypeScript: Narrowing",
          "url": "https://www.typescriptlang.org/docs/handbook/2/narrowing.html",
          "scope": "Guards, discriminators and never.",
          "verified_on": "2026-10-25",
          "type": "official documentation or specification"
        },
        {
          "id": "ts-functions",
          "title": "TypeScript: Functions",
          "url": "https://www.typescriptlang.org/docs/handbook/2/functions.html",
          "scope": "Function signatures and unknown.",
          "verified_on": "2026-10-25",
          "type": "official documentation or specification"
        },
        {
          "id": "ts-objects",
          "title": "TypeScript: Object types",
          "url": "https://www.typescriptlang.org/docs/handbook/2/objects.html",
          "scope": "Optional and readonly fields.",
          "verified_on": "2026-10-25",
          "type": "official documentation or specification"
        },
        {
          "id": "ts-generics",
          "title": "TypeScript: Generics",
          "url": "https://www.typescriptlang.org/docs/handbook/2/generics.html",
          "scope": "Relationships between types.",
          "verified_on": "2026-10-25",
          "type": "official documentation or specification"
        },
        {
          "id": "ts-strict",
          "title": "TypeScript: strict",
          "url": "https://www.typescriptlang.org/tsconfig/strict.html",
          "scope": "Strict checking group.",
          "verified_on": "2026-10-25",
          "type": "official documentation or specification"
        },
        {
          "id": "ts-no-emit",
          "title": "TypeScript: noEmitOnError",
          "url": "https://www.typescriptlang.org/tsconfig/noEmitOnError.html",
          "scope": "Suppress output on errors.",
          "verified_on": "2026-10-25",
          "type": "official documentation or specification"
        },
        {
          "id": "ts-indexed",
          "title": "TypeScript: noUncheckedIndexedAccess",
          "url": "https://www.typescriptlang.org/tsconfig/noUncheckedIndexedAccess.html",
          "scope": "Unchecked indices include undefined.",
          "verified_on": "2026-10-25",
          "type": "official documentation or specification"
        },
        {
          "id": "ts-optional",
          "title": "TypeScript: exactOptionalPropertyTypes",
          "url": "https://www.typescriptlang.org/tsconfig/exactOptionalPropertyTypes.html",
          "scope": "Absent versus undefined fields.",
          "verified_on": "2026-10-25",
          "type": "official documentation or specification"
        },
        {
          "id": "ts-module",
          "title": "TypeScript: Module reference",
          "url": "https://www.typescriptlang.org/docs/handbook/modules/reference.html",
          "scope": "Node16 and extension resolution.",
          "verified_on": "2026-10-25",
          "type": "official documentation or specification"
        }
      ],
      "source_verified_on": "2026-10-25",
      "source_note": "Sources checked for this introductory pack only; no complete standards conformance claim.",
      "constraints": {
        "language_version": "TypeScript 6.0.3 strict subset",
        "runtime": "TypeScript 6.0.3 and Node 24.18.0 on macOS 27.0.1",
        "operating_systems": [
          "macOS 27.0.1 only; other systems untested"
        ],
        "notes": "Compiler: /usr/local/lib/node_modules/openclaw/node_modules/typescript/lib/tsc.js (6.0.3), invoked with installed Node 24.18.0. It is bundled with an existing package and is not on PATH. No package manager was run. Use the supplied tsconfig.json and package.json in a fresh practice directory, with one entry example and any companion. Check with node followed by the quoted compiler path and --project . --noEmit; emit with the same command without --noEmit; run the emitted .js with node. The browser exports source text only. See README for exact commands and limits."
      },
      "risk_level": "low",
      "risk_note": "Authored bounded local examples only; no network, credentials or execution of parsed data. XML trust boundary must be preserved.",
      "pack_ids": [
        "typescript-foundations"
      ]
    },
    {
      "id": "python",
      "name": "Python",
      "aliases": [
        "Py"
      ],
      "kind": "programming language",
      "families": [
        "web-general"
      ],
      "status": "tested",
      "official_sources": [
        {
          "id": "py-intro",
          "title": "Python 3.9 tutorial: Introduction",
          "url": "https://docs.python.org/3.9/tutorial/introduction.html",
          "scope": "Numbers, strings, lists and basic output.",
          "verified_on": "2026-10-25",
          "type": "official Python documentation"
        },
        {
          "id": "py-control",
          "title": "Python 3.9 tutorial: Control flow",
          "url": "https://docs.python.org/3.9/tutorial/controlflow.html",
          "scope": "if, for, range, function definitions and return values.",
          "verified_on": "2026-10-25",
          "type": "official Python documentation"
        },
        {
          "id": "py-data",
          "title": "Python 3.9 tutorial: Data structures",
          "url": "https://docs.python.org/3.9/tutorial/datastructures.html",
          "scope": "Lists, tuples, dictionaries, sets and comprehensions.",
          "verified_on": "2026-10-25",
          "type": "official Python documentation"
        },
        {
          "id": "py-io",
          "title": "Python 3.9 tutorial: Input and output",
          "url": "https://docs.python.org/3.9/tutorial/inputoutput.html",
          "scope": "Explicit text encoding, context managers and formatted output.",
          "verified_on": "2026-10-25",
          "type": "official Python documentation"
        },
        {
          "id": "py-errors",
          "title": "Python 3.9 tutorial: Errors and exceptions",
          "url": "https://docs.python.org/3.9/tutorial/errors.html",
          "scope": "Specific exception handling and cleanup.",
          "verified_on": "2026-10-25",
          "type": "official Python documentation"
        },
        {
          "id": "py-modules",
          "title": "Python 3.9 tutorial: Modules",
          "url": "https://docs.python.org/3.9/tutorial/modules.html",
          "scope": "Module imports and the __name__ main guard.",
          "verified_on": "2026-10-25",
          "type": "official Python documentation"
        },
        {
          "id": "py-unittest",
          "title": "Python 3.9 library: unittest",
          "url": "https://docs.python.org/3.9/library/unittest.html",
          "scope": "TestCase assertions and test runners.",
          "verified_on": "2026-10-25",
          "type": "official Python documentation"
        },
        {
          "id": "py-tempfile",
          "title": "Python 3.9 library: tempfile",
          "url": "https://docs.python.org/3.9/library/tempfile.html",
          "scope": "TemporaryDirectory lifecycle and cleanup.",
          "verified_on": "2026-10-25",
          "type": "official Python documentation"
        },
        {
          "id": "py-pathlib",
          "title": "Python 3.9 library: pathlib",
          "url": "https://docs.python.org/3.9/library/pathlib.html",
          "scope": "Path composition and UTF-8 text file operations.",
          "verified_on": "2026-10-25",
          "type": "official Python documentation"
        },
        {
          "id": "py-json",
          "title": "Python 3.9 library: json",
          "url": "https://docs.python.org/3.9/library/json.html",
          "scope": "JSON encoding/decoding and bounded input cautions.",
          "verified_on": "2026-10-25",
          "type": "official Python documentation"
        },
        {
          "id": "py-version-status",
          "title": "Python Developer Guide: version status",
          "url": "https://devguide.python.org/versions/",
          "scope": "Python 3.9 is no longer supported; the installed 3.9.6 runtime is a recorded local teaching environment, not a deployment recommendation.",
          "verified_on": "2026-10-25",
          "type": "official Python documentation"
        },
        {
          "id": "py-types",
          "title": "Python 3.9 library: Built-in types",
          "url": "https://docs.python.org/3.9/library/stdtypes.html",
          "scope": "Boolean and integer relationship, dictionary insertion order and string casefold.",
          "verified_on": "2026-10-25",
          "type": "official Python documentation"
        }
      ],
      "source_verified_on": "2026-10-25",
      "source_note": "Verified official Python 3.9 documentation; examples tested separately on installed CPython 3.9.6.",
      "constraints": {
        "language_version": "Python 3.9 syntax subset",
        "runtime": "CPython 3.9.6 (installed); Python 3.9 is unsupported upstream",
        "operating_systems": [
          "macOS 27.0.1 arm64 tested"
        ],
        "notes": "Local teaching examples only. Documentation is the 3.9 branch (currently 3.9.25); other runtimes and OS versions untested."
      },
      "risk_level": "low",
      "risk_note": "Fixed small toy inputs. File examples create and clean only their own temporary directory.",
      "pack_ids": [
        "python-foundations"
      ]
    },
    {
      "id": "php",
      "name": "PHP",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "web-general"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "ruby",
      "name": "Ruby",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "web-general"
      ],
      "status": "tested",
      "official_sources": [
        {
          "id": "ruby-eol",
          "title": "Ruby 2.6.10 release and end of life",
          "url": "https://www.ruby-lang.org/en/news/2022/04/12/ruby-2-6-10-released/",
          "scope": "Installed 2.6.10 is end of life; offline teaching only.",
          "verified_on": "2026-10-25"
        },
        {
          "id": "ruby-control",
          "title": "Ruby 2.6 control expressions",
          "url": "https://docs.ruby-lang.org/en/2.6.0/syntax/control_expressions_rdoc.html",
          "scope": "Truth values, branches, loops and blocks.",
          "verified_on": "2026-10-25"
        },
        {
          "id": "ruby-methods",
          "title": "Ruby 2.6 methods",
          "url": "https://docs.ruby-lang.org/en/2.6.0/syntax/methods_rdoc.html",
          "scope": "Method parameters and return semantics.",
          "verified_on": "2026-10-25"
        },
        {
          "id": "ruby-kernel",
          "title": "Ruby 2.6 Kernel",
          "url": "https://docs.ruby-lang.org/en/2.6.0/Kernel.html",
          "scope": "Integer conversion, exceptions, require_relative and Kernel.open process boundary.",
          "verified_on": "2026-10-25"
        },
        {
          "id": "ruby-array",
          "title": "Ruby 2.6 Array",
          "url": "https://docs.ruby-lang.org/en/2.6.0/Array.html",
          "scope": "Array iteration and shallow collection copying.",
          "verified_on": "2026-10-25"
        },
        {
          "id": "ruby-hash",
          "title": "Ruby 2.6 Hash",
          "url": "https://docs.ruby-lang.org/en/2.6.0/Hash.html",
          "scope": "Keys, fetch and shared defaults.",
          "verified_on": "2026-10-25"
        },
        {
          "id": "ruby-string",
          "title": "Ruby 2.6 String",
          "url": "https://docs.ruby-lang.org/en/2.6.0/String.html",
          "scope": "Mutation, character and byte lengths.",
          "verified_on": "2026-10-25"
        },
        {
          "id": "ruby-io",
          "title": "Ruby 2.6 IO",
          "url": "https://docs.ruby-lang.org/en/2.6.0/IO.html",
          "scope": "Block closing and explicit encoding.",
          "verified_on": "2026-10-25"
        },
        {
          "id": "ruby-tmpdir",
          "title": "Ruby 2.6.10 tmpdir source documentation",
          "url": "https://raw.githubusercontent.com/ruby/ruby/v2_6_10/lib/tmpdir.rb",
          "scope": "New temporary directory and block-scoped cleanup.",
          "verified_on": "2026-10-25"
        },
        {
          "id": "ruby-json",
          "title": "Ruby 2.6 JSON",
          "url": "https://docs.ruby-lang.org/en/2.6.0/JSON.html",
          "scope": "Serialization, parsing and object-additions boundary.",
          "verified_on": "2026-10-25"
        },
        {
          "id": "ruby-modules",
          "title": "Ruby 2.6 modules and classes",
          "url": "https://docs.ruby-lang.org/en/2.6.0/syntax/modules_and_classes_rdoc.html",
          "scope": "Namespaces and singleton methods.",
          "verified_on": "2026-10-25"
        },
        {
          "id": "ruby-encoding",
          "title": "Ruby 2.6 Encoding",
          "url": "https://docs.ruby-lang.org/en/2.6.0/Encoding.html",
          "scope": "ASCII-compatible encoding guard; valid encoding is separate from application syntax.",
          "verified_on": "2026-10-25"
        }
      ],
      "source_verified_on": "2026-10-25",
      "source_note": "Verified references support introductory scope only; no whole-language conformance claim.",
      "constraints": {
        "language_version": "Ruby 2.6.10p210",
        "runtime": "Ruby 2.6.10p210 is installed and end-of-life upstream. Run /usr/bin/ruby followed by the quoted entry filename in a new practice folder. Save companions beside the entry file. Core libraries only; no package manager is used. The browser exports text and never executes it. Syntax checks are distinct from runtime tests and are not arbitrary-code sandboxes.",
        "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
        "notes": "Core values, control flow, functions, collections, text, regular expressions, temporary files, expected errors, JSON, local modules and tests. No external data, packages or deployment."
      },
      "risk_level": "moderate",
      "risk_note": "Code can affect local files or invoke processes outside these bounded examples. Only authored inputs and fresh toy directories are exercised.",
      "pack_ids": [
        "ruby-foundations"
      ]
    },
    {
      "id": "perl",
      "name": "Perl",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "web-general"
      ],
      "status": "tested",
      "official_sources": [
        {
          "id": "perl-intro",
          "title": "Perl 5.34.1 introduction",
          "url": "https://perldoc.perl.org/5.34.1/perlintro",
          "scope": "Scalar/list context, truth, lexical variables and control flow.",
          "verified_on": "2026-10-25"
        },
        {
          "id": "perl-subs",
          "title": "Perl 5.34.1 subroutines",
          "url": "https://perldoc.perl.org/5.34.1/perlsub",
          "scope": "Argument array and explicit returns.",
          "verified_on": "2026-10-25"
        },
        {
          "id": "perl-ref",
          "title": "Perl 5.34.1 references",
          "url": "https://perldoc.perl.org/5.34.1/perlref",
          "scope": "Nested arrays, references and aliasing.",
          "verified_on": "2026-10-25"
        },
        {
          "id": "perl-regex",
          "title": "Perl 5.34.1 regular expressions",
          "url": "https://perldoc.perl.org/5.34.1/perlre",
          "scope": "Whole-string anchors and literal quoting.",
          "verified_on": "2026-10-25"
        },
        {
          "id": "perl-open",
          "title": "Perl 5.34.1 open",
          "url": "https://perldoc.perl.org/5.34.1/functions/open",
          "scope": "Three-argument open, lexical handles and encoding layers.",
          "verified_on": "2026-10-25"
        },
        {
          "id": "perl-temp",
          "title": "Perl 5.34.1 File::Temp",
          "url": "https://perldoc.perl.org/5.34.1/File::Temp",
          "scope": "Unique toy directory and normal-exit cleanup.",
          "verified_on": "2026-10-25"
        },
        {
          "id": "perl-json",
          "title": "Perl 5.34.1 JSON::PP",
          "url": "https://perldoc.perl.org/5.34.1/JSON::PP",
          "scope": "Canonical encoding, bounded parser and scalar representation limits.",
          "verified_on": "2026-10-25"
        },
        {
          "id": "perl-modules",
          "title": "Perl 5.34.1 modules",
          "url": "https://perldoc.perl.org/5.34.1/perlmod",
          "scope": "Package namespace and module loading.",
          "verified_on": "2026-10-25"
        },
        {
          "id": "perl-run",
          "title": "Perl 5.34.1 invocation",
          "url": "https://raw.githubusercontent.com/Perl/perl5/v5.34.1/pod/perlrun.pod",
          "scope": "Syntax checking may run compile-time code; not an arbitrary-code sandbox.",
          "verified_on": "2026-10-25"
        },
        {
          "id": "perl-tests",
          "title": "Perl 5.34.1 Test::More",
          "url": "https://perldoc.perl.org/5.34.1/Test::More",
          "scope": "Named executed tests and TAP plan.",
          "verified_on": "2026-10-25"
        }
      ],
      "source_verified_on": "2026-10-25",
      "source_note": "Verified references support introductory scope only; no whole-language conformance claim.",
      "constraints": {
        "language_version": "Perl 5.34.1",
        "runtime": "Perl 5.34.1 is installed; no other Perl version or platform was tested. Run /usr/bin/perl followed by the quoted entry filename in a new practice folder. Save companions beside the entry file. Core libraries only; no package manager is used. The browser exports text and never executes it. Syntax checks are distinct from runtime tests and are not arbitrary-code sandboxes.",
        "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
        "notes": "Core values, control flow, functions, collections, text, regular expressions, temporary files, expected errors, JSON, local modules and tests. No external data, packages or deployment."
      },
      "risk_level": "moderate",
      "risk_note": "Code can affect local files or invoke processes outside these bounded examples. Only authored inputs and fresh toy directories are exercised.",
      "pack_ids": [
        "perl-foundations"
      ]
    },
    {
      "id": "raku",
      "name": "Raku",
      "aliases": [
        "Perl 6"
      ],
      "kind": "programming language",
      "families": [
        "web-general"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "lua",
      "name": "Lua",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "web-general"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "c",
      "name": "C",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "systems"
      ],
      "status": "tested",
      "official_sources": [
        {
          "id": "c-draft",
          "title": "WG14 N1570 C11 committee draft",
          "url": "https://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf",
          "scope": "Core objects, arrays, functions, storage duration, formatted output, allocation and conversion semantics used in the C17 subset; not a C17 draft or full-conformance claim.",
          "verified_on": "2026-10-25",
          "type": "official documentation, committee draft or author guidance"
        },
        {
          "id": "clang-user",
          "title": "Clang compiler user manual",
          "url": "https://clang.llvm.org/docs/UsersManual.html",
          "scope": "Compiler driver, standard modes and diagnostics; upstream documentation is not an Apple feature guarantee.",
          "verified_on": "2026-10-25",
          "type": "official documentation, committee draft or author guidance"
        },
        {
          "id": "clang-c-status",
          "title": "Clang C implementation status",
          "url": "https://clang.llvm.org/c_status.html",
          "scope": "C mode support and known limits; actual examples pin Apple Clang C17.",
          "verified_on": "2026-10-25",
          "type": "official documentation, committee draft or author guidance"
        },
        {
          "id": "clang-asan",
          "title": "Clang AddressSanitizer",
          "url": "https://clang.llvm.org/docs/AddressSanitizer.html",
          "scope": "Instrumented checking of some memory errors on executed paths; not safety proof.",
          "verified_on": "2026-10-25",
          "type": "official documentation, committee draft or author guidance"
        },
        {
          "id": "clang-ubsan",
          "title": "Clang UndefinedBehaviorSanitizer",
          "url": "https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html",
          "scope": "Checks for selected undefined behavior; coverage is incomplete.",
          "verified_on": "2026-10-25",
          "type": "official documentation, committee draft or author guidance"
        }
      ],
      "source_verified_on": "2026-10-25",
      "source_note": "Verified references for the introductory subset; current drafts are explicitly distinguished from pinned C17/C++20 execution.",
      "constraints": {
        "language_version": "c17",
        "runtime": "c17; Apple Clang 21.0.0 (clang-2100.3.34.2); arm64 macOS 27.0.1",
        "operating_systems": [
          "macOS 27.0.1 arm64 only"
        ],
        "notes": "Only these bounded examples are tested; compiler diagnostics, standard-library support and platform details vary."
      },
      "risk_level": "moderate",
      "risk_note": "C and C++ permit memory and lifetime errors; only fixed authored toy programs are executed, with explicit contracts and instrumented checks. No arbitrary-code sandbox or production-safety claim.",
      "pack_ids": [
        "c-foundations"
      ]
    },
    {
      "id": "cpp",
      "name": "C++",
      "aliases": [
        "CPP"
      ],
      "kind": "programming language",
      "families": [
        "systems"
      ],
      "status": "tested",
      "official_sources": [
        {
          "id": "clang-user",
          "title": "Clang compiler user manual",
          "url": "https://clang.llvm.org/docs/UsersManual.html",
          "scope": "Compiler driver, standard modes and diagnostics; upstream documentation is not an Apple feature guarantee.",
          "verified_on": "2026-10-25",
          "type": "official documentation, committee draft or author guidance"
        },
        {
          "id": "clang-cpp-status",
          "title": "Clang C++ implementation status",
          "url": "https://clang.llvm.org/cxx_status.html",
          "scope": "C++20 mode and partial feature coverage; actual subset tested locally.",
          "verified_on": "2026-10-25",
          "type": "official documentation, committee draft or author guidance"
        },
        {
          "id": "libcpp-status",
          "title": "libc++ C++20 implementation status",
          "url": "https://libcxx.llvm.org/Status/Cxx20.html",
          "scope": "Library feature status; Apple-shipped version verified locally.",
          "verified_on": "2026-10-25",
          "type": "official documentation, committee draft or author guidance"
        },
        {
          "id": "cpp-guidelines",
          "title": "C++ Core Guidelines",
          "url": "https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines",
          "scope": "Ownership, lifetimes and resource management guidance, not normative standard text.",
          "verified_on": "2026-10-25",
          "type": "official documentation, committee draft or author guidance"
        },
        {
          "id": "cpp-lifetime",
          "title": "C++ working draft: object lifetime",
          "url": "https://eel.is/c++draft/basic.life",
          "scope": "Living working draft; lifetime concepts only, not a C++20 publication.",
          "verified_on": "2026-10-25",
          "type": "official documentation, committee draft or author guidance"
        },
        {
          "id": "cpp-unique",
          "title": "C++ working draft: unique ownership",
          "url": "https://eel.is/c++draft/unique.ptr",
          "scope": "Living draft; elementary unique_ptr ownership and move semantics, excluding later additions.",
          "verified_on": "2026-10-25",
          "type": "official documentation, committee draft or author guidance"
        },
        {
          "id": "cpp-span",
          "title": "C++ working draft: span",
          "url": "https://eel.is/c++draft/views.span",
          "scope": "Living draft; borrowing and length concepts; later span APIs excluded from C++20 exercises.",
          "verified_on": "2026-10-25",
          "type": "official documentation, committee draft or author guidance"
        },
        {
          "id": "cpp-optional",
          "title": "C++ working draft: optional",
          "url": "https://eel.is/c++draft/optional",
          "scope": "Living draft; engaged value and absence only; later APIs excluded.",
          "verified_on": "2026-10-25",
          "type": "official documentation, committee draft or author guidance"
        },
        {
          "id": "clang-asan",
          "title": "Clang AddressSanitizer",
          "url": "https://clang.llvm.org/docs/AddressSanitizer.html",
          "scope": "Instrumented checking of some memory errors on executed paths; not safety proof.",
          "verified_on": "2026-10-25",
          "type": "official documentation, committee draft or author guidance"
        },
        {
          "id": "clang-ubsan",
          "title": "Clang UndefinedBehaviorSanitizer",
          "url": "https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html",
          "scope": "Checks for selected undefined behavior; coverage is incomplete.",
          "verified_on": "2026-10-25",
          "type": "official documentation, committee draft or author guidance"
        },
        {
          "id": "cpp-from-chars",
          "title": "C++ working draft: from_chars",
          "url": "https://eel.is/c++draft/charconv.from.chars",
          "scope": "Living draft; integer error code, end-pointer and no-throw concepts available in the exercised C++20 subset. Later constexpr additions are not used.",
          "verified_on": "2026-10-25",
          "type": "committee working draft"
        }
      ],
      "source_verified_on": "2026-10-25",
      "source_note": "Verified references for the introductory subset; current drafts are explicitly distinguished from pinned C17/C++20 execution.",
      "constraints": {
        "language_version": "c++20",
        "runtime": "c++20; Apple Clang 21.0.0 (clang-2100.3.34.2); arm64 macOS 27.0.1; libc++ 220106",
        "operating_systems": [
          "macOS 27.0.1 arm64 only"
        ],
        "notes": "Only these bounded examples are tested; compiler diagnostics, standard-library support and platform details vary."
      },
      "risk_level": "moderate",
      "risk_note": "C and C++ permit memory and lifetime errors; only fixed authored toy programs are executed, with explicit contracts and instrumented checks. No arbitrary-code sandbox or production-safety claim.",
      "pack_ids": [
        "cpp-foundations"
      ]
    },
    {
      "id": "rust",
      "name": "Rust",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "systems"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "go",
      "name": "Go",
      "aliases": [
        "Golang"
      ],
      "kind": "programming language",
      "families": [
        "systems"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "zig",
      "name": "Zig",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "systems"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "d",
      "name": "D",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "systems"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "nim",
      "name": "Nim",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "systems"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "odin",
      "name": "Odin",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "systems"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "v",
      "name": "V",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "systems"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "crystal",
      "name": "Crystal",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "systems"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "ada",
      "name": "Ada",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "systems"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "spark",
      "name": "SPARK",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "systems"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "pascal",
      "name": "Pascal",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "systems"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "forth",
      "name": "Forth",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "systems"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "x86-assembly",
      "name": "x86 assembly",
      "aliases": [
        "x86",
        "x86-64",
        "AMD64"
      ],
      "kind": "assembly language",
      "families": [
        "systems"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "arm-assembly",
      "name": "Arm assembly",
      "aliases": [
        "ARM",
        "AArch64"
      ],
      "kind": "assembly language",
      "families": [
        "systems"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "risc-v-assembly",
      "name": "RISC-V assembly",
      "aliases": [
        "RISCV"
      ],
      "kind": "assembly language",
      "families": [
        "systems"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "avr-assembly",
      "name": "AVR assembly",
      "aliases": [],
      "kind": "assembly language",
      "families": [
        "systems"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "mos-6502-assembly",
      "name": "MOS 6502 assembly",
      "aliases": [
        "6502"
      ],
      "kind": "assembly language",
      "families": [
        "systems"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "z80-assembly",
      "name": "Z80 assembly",
      "aliases": [],
      "kind": "assembly language",
      "families": [
        "systems"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "webassembly",
      "name": "WebAssembly",
      "aliases": [
        "Wasm"
      ],
      "kind": "instruction set and binary format",
      "families": [
        "systems"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "java",
      "name": "Java",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "jvm-dotnet"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "kotlin",
      "name": "Kotlin",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "jvm-dotnet"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "scala",
      "name": "Scala",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "jvm-dotnet"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "groovy",
      "name": "Groovy",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "jvm-dotnet"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "clojure",
      "name": "Clojure",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "jvm-dotnet"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "csharp",
      "name": "C#",
      "aliases": [
        "C Sharp"
      ],
      "kind": "programming language",
      "families": [
        "jvm-dotnet"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "fsharp",
      "name": "F#",
      "aliases": [
        "F Sharp"
      ],
      "kind": "programming language",
      "families": [
        "jvm-dotnet"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "visual-basic-net",
      "name": "Visual Basic .NET",
      "aliases": [
        "VB.NET"
      ],
      "kind": "programming language",
      "families": [
        "jvm-dotnet"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "swift",
      "name": "Swift",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "mobile"
      ],
      "status": "tested",
      "official_sources": [
        {
          "id": "swift-basics",
          "title": "Swift book: The Basics",
          "url": "https://raw.githubusercontent.com/swiftlang/swift-book/main/TSPL.docc/LanguageGuide/TheBasics.md",
          "scope": "Types, constants and optionals.",
          "verified_on": "2026-10-25",
          "type": "maintainer documentation"
        },
        {
          "id": "swift-collections",
          "title": "Swift book: Collection Types",
          "url": "https://raw.githubusercontent.com/swiftlang/swift-book/main/TSPL.docc/LanguageGuide/CollectionTypes.md",
          "scope": "Array, set and dictionary semantics.",
          "verified_on": "2026-10-25",
          "type": "maintainer documentation"
        },
        {
          "id": "swift-values",
          "title": "Swift book: Structures and Classes",
          "url": "https://raw.githubusercontent.com/swiftlang/swift-book/main/TSPL.docc/LanguageGuide/ClassesAndStructures.md",
          "scope": "Value versus reference semantics.",
          "verified_on": "2026-10-25",
          "type": "maintainer documentation"
        },
        {
          "id": "swift-functions",
          "title": "Swift book: Functions",
          "url": "https://raw.githubusercontent.com/swiftlang/swift-book/main/TSPL.docc/LanguageGuide/Functions.md",
          "scope": "Parameters, labels, return values and bounds-oriented function design.",
          "verified_on": "2026-10-25",
          "type": "maintainer documentation"
        },
        {
          "id": "swift-text",
          "title": "Swift book: Strings and Characters",
          "url": "https://raw.githubusercontent.com/swiftlang/swift-book/main/TSPL.docc/LanguageGuide/StringsAndCharacters.md",
          "scope": "Character, Unicode representation and string indexing.",
          "verified_on": "2026-10-25",
          "type": "maintainer documentation"
        },
        {
          "id": "swift-errors",
          "title": "Swift book: Error Handling",
          "url": "https://raw.githubusercontent.com/swiftlang/swift-book/main/TSPL.docc/LanguageGuide/ErrorHandling.md",
          "scope": "Throws, try and recoverable errors.",
          "verified_on": "2026-10-25",
          "type": "maintainer documentation"
        },
        {
          "id": "swift-flow",
          "title": "Swift book: Control Flow",
          "url": "https://raw.githubusercontent.com/swiftlang/swift-book/main/TSPL.docc/LanguageGuide/ControlFlow.md",
          "scope": "Branches, switch exhaustiveness and loops.",
          "verified_on": "2026-10-25",
          "type": "maintainer documentation"
        },
        {
          "id": "swift-arc",
          "title": "Swift book: Automatic Reference Counting",
          "url": "https://raw.githubusercontent.com/swiftlang/swift-book/main/TSPL.docc/LanguageGuide/AutomaticReferenceCounting.md",
          "scope": "Class instance lifetime and reference ownership; cycles are outside the exercised examples.",
          "verified_on": "2026-10-25",
          "type": "maintainer documentation"
        }
      ],
      "source_verified_on": "2026-10-25",
      "source_note": "Official references plus recorded execution support introductory scope only; no full-language or dialect conformance claim.",
      "constraints": {
        "language_version": "Apple Swift 6.4; Swift 6 language mode; macOS 27.0.1 arm64",
        "runtime": "Use /usr/bin/swiftc -swift-version 6 -warnings-as-errors \"Example.swift\" -o \"Practice\", then ./Practice in a new practice folder. Replace Example.swift with the exact exported filename. The companion example instead compiles main.swift and \"Study tools.swift\" together. The harness uses an owned temporary module cache. Apple Swift 6.4 on this Mac is the only tested compiler; Swift 6 mode is not a complete conformance claim. No Foundation, SwiftUI, SwiftPM, downloads or external inputs are required. The browser exports text and does not run Swift.",
        "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
        "notes": "Core types, optionals, functions, collections, Unicode strings, value and reference semantics, errors, local source files and observable tests. No frameworks, concurrency, package manager or unsafe pointers."
      },
      "risk_level": "moderate",
      "risk_note": "Compiled programs and Make recipes can invoke processes and affect files. Only fixed authored sources in fresh toy directories are exercised; not a sandbox.",
      "pack_ids": [
        "swift-foundations"
      ]
    },
    {
      "id": "objective-c",
      "name": "Objective-C",
      "aliases": [
        "ObjC"
      ],
      "kind": "programming language",
      "families": [
        "mobile"
      ],
      "status": "tested",
      "official_sources": [
        {
          "id": "objc-overview",
          "title": "Apple: About Objective-C",
          "url": "https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/Introduction/Introduction.html",
          "scope": "Language and framework distinction. Archived guide; historical UI and network recipes excluded.",
          "verified_on": "2026-10-26",
          "type": "official archived documentation"
        },
        {
          "id": "objc-classes",
          "title": "Apple: Defining Classes",
          "url": "https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/DefiningClasses/DefiningClasses.html",
          "scope": "Interfaces, implementations and method declarations. Archived guide; historical UI and network recipes excluded.",
          "verified_on": "2026-10-26",
          "type": "official archived documentation"
        },
        {
          "id": "objc-objects",
          "title": "Apple: Working with Objects",
          "url": "https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/WorkingwithObjects/WorkingwithObjects.html",
          "scope": "Messages, initialization and nil. Archived guide; historical UI and network recipes excluded.",
          "verified_on": "2026-10-26",
          "type": "official archived documentation"
        },
        {
          "id": "objc-properties",
          "title": "Apple: Encapsulating Data",
          "url": "https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/EncapsulatingData/EncapsulatingData.html",
          "scope": "Property copying, ARC relationships and weak references. Archived guide; historical UI and network recipes excluded.",
          "verified_on": "2026-10-26",
          "type": "official archived documentation"
        },
        {
          "id": "objc-collections",
          "title": "Apple: Values and Collections",
          "url": "https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/FoundationTypesandCollections/FoundationTypesandCollections.html",
          "scope": "Boxing, object collections and absence. Archived guide; historical UI and network recipes excluded.",
          "verified_on": "2026-10-26",
          "type": "official archived documentation"
        },
        {
          "id": "objc-protocols",
          "title": "Apple: Working with Protocols",
          "url": "https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/WorkingwithProtocols/WorkingwithProtocols.html",
          "scope": "Declared protocol contracts. Archived guide; historical UI and network recipes excluded.",
          "verified_on": "2026-10-26",
          "type": "official archived documentation"
        },
        {
          "id": "objc-categories",
          "title": "Apple: Customizing Existing Classes",
          "url": "https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/CustomizingExistingClasses/CustomizingExistingClasses.html",
          "scope": "Class extensions and category method naming. Archived guide; historical UI and network recipes excluded.",
          "verified_on": "2026-10-26",
          "type": "official archived documentation"
        },
        {
          "id": "objc-blocks",
          "title": "Apple: Working with Blocks",
          "url": "https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/WorkingwithBlocks/WorkingwithBlocks.html",
          "scope": "Captures, __block and ownership cycles. Archived guide; historical UI and network recipes excluded.",
          "verified_on": "2026-10-26",
          "type": "official archived documentation"
        },
        {
          "id": "objc-errors",
          "title": "Apple: Dealing with Errors",
          "url": "https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/ErrorHandling/ErrorHandling.html",
          "scope": "Return values and NSError conventions. Archived guide; historical UI and network recipes excluded.",
          "verified_on": "2026-10-26",
          "type": "official archived documentation"
        },
        {
          "id": "objc-arc",
          "title": "Clang: Objective-C ARC",
          "url": "https://clang.llvm.org/docs/AutomaticReferenceCounting.html",
          "scope": "ARC flags and ownership semantics; Apple compiler subset is tested locally.",
          "verified_on": "2026-10-26",
          "type": "compiler documentation"
        },
        {
          "id": "objc-literals",
          "title": "Clang: Objective-C Literals",
          "url": "https://clang.llvm.org/docs/ObjectiveCLiterals.html",
          "scope": "Boxing and collection literal semantics; Apple compiler subset is tested locally.",
          "verified_on": "2026-10-26",
          "type": "compiler documentation"
        },
        {
          "id": "objc-string-units",
          "title": "Apple: Characters and Grapheme Clusters",
          "url": "https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/Strings/Articles/stringsClusters.html",
          "scope": "Archived NSString guide: UTF-16 units, composed sequences and range boundaries.",
          "verified_on": "2026-10-26",
          "type": "official archived documentation"
        }
      ],
      "source_verified_on": "2026-10-26",
      "source_note": "Original macOS-only introductory candidate. Archived Apple guides and current upstream Clang references checked; no broader support or mastery claim. Foundation is a framework dependency, not another catalogue language.",
      "constraints": {
        "language_version": "Objective-C with C17 base mode and ARC; no independent numbered standard edition claimed",
        "runtime": "Apple Clang 21.0.0 (clang-2100.3.34.2); ARC; C17 base mode; macOS SDK 27.0 headers; system Foundation 6.9 (5027.0.69); macOS 27.0.1 arm64",
        "operating_systems": [
          "macOS 27.0.1 arm64"
        ],
        "notes": "In a new owned practice directory, compile an exported example with /usr/bin/clang -x objective-c -std=c17 -fobjc-arc -fno-modules -Wall -Wextra -Werror \"Example.m\" -framework Foundation -o \"Practice\", then run ./Practice. Replace Example.m with the exact filename. For Objective-C 09 Main.m, also pass \"Atlas minutes.m\" and save \"Atlas minutes.h\" beside both files. The file example creates and retains Atlas practice note.txt; a second run intentionally refuses it. Use only the installed Apple toolchain with macOS Foundation. Compilation uses SDK 27.0 headers; execution uses system Foundation 6.9 (5027.0.69) on macOS 27.0.1 arm64. No iOS, GNUstep, other OS, Objective-C++, UI, concurrency or package-manager support is tested. The offline browser exports text and never compiles or executes these programs."
      },
      "risk_level": "medium",
      "risk_note": "Only fixed authored local examples. Compilation and execution run trusted native code; this is not an arbitrary-source sandbox. No UI/network/process automation. File example uses a new owned directory and no-overwrite output.",
      "pack_ids": [
        "objective-c-foundations"
      ]
    },
    {
      "id": "dart",
      "name": "Dart",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "mobile"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "haskell",
      "name": "Haskell",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "functional"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "ocaml",
      "name": "OCaml",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "functional"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "standard-ml",
      "name": "Standard ML",
      "aliases": [
        "SML"
      ],
      "kind": "programming language",
      "families": [
        "functional"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "common-lisp",
      "name": "Common Lisp",
      "aliases": [
        "CL"
      ],
      "kind": "programming language",
      "families": [
        "functional"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "scheme",
      "name": "Scheme",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "functional"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "racket",
      "name": "Racket",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "functional"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "erlang",
      "name": "Erlang",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "functional"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "elixir",
      "name": "Elixir",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "functional"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "gleam",
      "name": "Gleam",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "functional"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "elm",
      "name": "Elm",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "functional"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "purescript",
      "name": "PureScript",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "functional"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "clojurescript",
      "name": "ClojureScript",
      "aliases": [
        "CLJS"
      ],
      "kind": "programming language",
      "families": [
        "functional"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "r",
      "name": "R",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "science"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "julia",
      "name": "Julia",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "science"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "fortran",
      "name": "Fortran",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "science"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "matlab",
      "name": "MATLAB",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "science"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "gnu-octave",
      "name": "GNU Octave",
      "aliases": [
        "Octave"
      ],
      "kind": "programming language",
      "families": [
        "science"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "wolfram-language",
      "name": "Wolfram Language",
      "aliases": [
        "Mathematica"
      ],
      "kind": "programming language",
      "families": [
        "science"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "sas",
      "name": "SAS",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "science"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "stata",
      "name": "Stata",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "science"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "spss-syntax",
      "name": "SPSS syntax",
      "aliases": [
        "SPSS"
      ],
      "kind": "statistical command language",
      "families": [
        "science"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "stan",
      "name": "Stan",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "science"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "modelica",
      "name": "Modelica",
      "aliases": [],
      "kind": "modeling language",
      "families": [
        "science"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "scilab",
      "name": "Scilab",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "science"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "maple",
      "name": "Maple",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "science"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "apl",
      "name": "APL",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "science"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "j",
      "name": "J",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "science"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "bqn",
      "name": "BQN",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "science"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "chapel",
      "name": "Chapel",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "science"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "posix-shell",
      "name": "POSIX shell",
      "aliases": [
        "sh"
      ],
      "kind": "shell language",
      "families": [
        "shell"
      ],
      "status": "tested",
      "official_sources": [
        {
          "id": "sh-bash-manual",
          "title": "Installed Bash 3.2 manual",
          "url": "man:bash(1)",
          "scope": "Quoting, positional parameters, loops, functions, arrays, redirections and pipeline status. Read from /usr/share/man/man1/bash.1.",
          "verified_on": "2026-10-25",
          "type": "installed official manual"
        },
        {
          "id": "sh-selector",
          "title": "Installed macOS sh manual",
          "url": "man:sh(1)",
          "scope": "macOS sh selects an implementation; this host selects /bin/bash 3.2.57.",
          "verified_on": "2026-10-25",
          "type": "installed official manual"
        },
        {
          "id": "sh-mktemp",
          "title": "Installed macOS mktemp manual",
          "url": "man:mktemp(1)",
          "scope": "Create a unique directory using a template; platform utility, not a portable POSIX utility claim.",
          "verified_on": "2026-10-25",
          "type": "installed official manual"
        },
        {
          "id": "sh-zsh-grammar",
          "title": "Zsh shell grammar",
          "url": "https://zsh.sourceforge.io/Doc/Release/Shell-Grammar.html",
          "scope": "Pipelines, conditionals, quoting and exit status.",
          "verified_on": "2026-10-25",
          "type": "official documentation"
        },
        {
          "id": "sh-zsh-parameters",
          "title": "Zsh parameters",
          "url": "https://zsh.sourceforge.io/Doc/Release/Parameters.html",
          "scope": "Native array indexing and parameter behavior.",
          "verified_on": "2026-10-25",
          "type": "official documentation"
        },
        {
          "id": "sh-zsh-options",
          "title": "Zsh options",
          "url": "https://zsh.sourceforge.io/Doc/Release/Options.html",
          "scope": "Native options, SH_WORD_SPLIT and pipeline behavior.",
          "verified_on": "2026-10-25",
          "type": "official documentation"
        }
      ],
      "source_verified_on": "2026-10-25",
      "source_note": "Scoped original introductory pack; examples must pass the recorded installed-runtime checks.",
      "constraints": {
        "language_version": "Conservative POSIX-style subset / Bash 3.2 / Zsh 5.9 as labeled",
        "runtime": "macOS 27.0.1 arm64: /bin/sh selects Bash 3.2.57; Bash 3.2.57; Zsh 5.9",
        "operating_systems": [
          "macOS 27.0.1 arm64 tested"
        ],
        "notes": "No other SQL engine or operating system tested. Shell portability is bounded evidence, not certification."
      },
      "risk_level": "high",
      "risk_note": "Execution effects are bounded to authored toy inputs; the language retains broader operational risk.",
      "pack_ids": [
        "shell-foundations"
      ]
    },
    {
      "id": "bash",
      "name": "Bash",
      "aliases": [],
      "kind": "shell language",
      "families": [
        "shell"
      ],
      "status": "tested",
      "official_sources": [
        {
          "id": "sh-bash-manual",
          "title": "Installed Bash 3.2 manual",
          "url": "man:bash(1)",
          "scope": "Quoting, positional parameters, loops, functions, arrays, redirections and pipeline status. Read from /usr/share/man/man1/bash.1.",
          "verified_on": "2026-10-25",
          "type": "installed official manual"
        },
        {
          "id": "sh-selector",
          "title": "Installed macOS sh manual",
          "url": "man:sh(1)",
          "scope": "macOS sh selects an implementation; this host selects /bin/bash 3.2.57.",
          "verified_on": "2026-10-25",
          "type": "installed official manual"
        },
        {
          "id": "sh-mktemp",
          "title": "Installed macOS mktemp manual",
          "url": "man:mktemp(1)",
          "scope": "Create a unique directory using a template; platform utility, not a portable POSIX utility claim.",
          "verified_on": "2026-10-25",
          "type": "installed official manual"
        },
        {
          "id": "sh-zsh-grammar",
          "title": "Zsh shell grammar",
          "url": "https://zsh.sourceforge.io/Doc/Release/Shell-Grammar.html",
          "scope": "Pipelines, conditionals, quoting and exit status.",
          "verified_on": "2026-10-25",
          "type": "official documentation"
        },
        {
          "id": "sh-zsh-parameters",
          "title": "Zsh parameters",
          "url": "https://zsh.sourceforge.io/Doc/Release/Parameters.html",
          "scope": "Native array indexing and parameter behavior.",
          "verified_on": "2026-10-25",
          "type": "official documentation"
        },
        {
          "id": "sh-zsh-options",
          "title": "Zsh options",
          "url": "https://zsh.sourceforge.io/Doc/Release/Options.html",
          "scope": "Native options, SH_WORD_SPLIT and pipeline behavior.",
          "verified_on": "2026-10-25",
          "type": "official documentation"
        }
      ],
      "source_verified_on": "2026-10-25",
      "source_note": "Scoped original introductory pack; examples must pass the recorded installed-runtime checks.",
      "constraints": {
        "language_version": "Conservative POSIX-style subset / Bash 3.2 / Zsh 5.9 as labeled",
        "runtime": "macOS 27.0.1 arm64: /bin/sh selects Bash 3.2.57; Bash 3.2.57; Zsh 5.9",
        "operating_systems": [
          "macOS 27.0.1 arm64 tested"
        ],
        "notes": "No other SQL engine or operating system tested. Shell portability is bounded evidence, not certification."
      },
      "risk_level": "high",
      "risk_note": "Execution effects are bounded to authored toy inputs; the language retains broader operational risk.",
      "pack_ids": [
        "shell-foundations"
      ]
    },
    {
      "id": "zsh",
      "name": "Zsh",
      "aliases": [],
      "kind": "shell language",
      "families": [
        "shell"
      ],
      "status": "tested",
      "official_sources": [
        {
          "id": "sh-bash-manual",
          "title": "Installed Bash 3.2 manual",
          "url": "man:bash(1)",
          "scope": "Quoting, positional parameters, loops, functions, arrays, redirections and pipeline status. Read from /usr/share/man/man1/bash.1.",
          "verified_on": "2026-10-25",
          "type": "installed official manual"
        },
        {
          "id": "sh-selector",
          "title": "Installed macOS sh manual",
          "url": "man:sh(1)",
          "scope": "macOS sh selects an implementation; this host selects /bin/bash 3.2.57.",
          "verified_on": "2026-10-25",
          "type": "installed official manual"
        },
        {
          "id": "sh-mktemp",
          "title": "Installed macOS mktemp manual",
          "url": "man:mktemp(1)",
          "scope": "Create a unique directory using a template; platform utility, not a portable POSIX utility claim.",
          "verified_on": "2026-10-25",
          "type": "installed official manual"
        },
        {
          "id": "sh-zsh-grammar",
          "title": "Zsh shell grammar",
          "url": "https://zsh.sourceforge.io/Doc/Release/Shell-Grammar.html",
          "scope": "Pipelines, conditionals, quoting and exit status.",
          "verified_on": "2026-10-25",
          "type": "official documentation"
        },
        {
          "id": "sh-zsh-parameters",
          "title": "Zsh parameters",
          "url": "https://zsh.sourceforge.io/Doc/Release/Parameters.html",
          "scope": "Native array indexing and parameter behavior.",
          "verified_on": "2026-10-25",
          "type": "official documentation"
        },
        {
          "id": "sh-zsh-options",
          "title": "Zsh options",
          "url": "https://zsh.sourceforge.io/Doc/Release/Options.html",
          "scope": "Native options, SH_WORD_SPLIT and pipeline behavior.",
          "verified_on": "2026-10-25",
          "type": "official documentation"
        }
      ],
      "source_verified_on": "2026-10-25",
      "source_note": "Scoped original introductory pack; examples must pass the recorded installed-runtime checks.",
      "constraints": {
        "language_version": "Conservative POSIX-style subset / Bash 3.2 / Zsh 5.9 as labeled",
        "runtime": "macOS 27.0.1 arm64: /bin/sh selects Bash 3.2.57; Bash 3.2.57; Zsh 5.9",
        "operating_systems": [
          "macOS 27.0.1 arm64 tested"
        ],
        "notes": "No other SQL engine or operating system tested. Shell portability is bounded evidence, not certification."
      },
      "risk_level": "high",
      "risk_note": "Execution effects are bounded to authored toy inputs; the language retains broader operational risk.",
      "pack_ids": [
        "shell-foundations"
      ]
    },
    {
      "id": "fish",
      "name": "Fish",
      "aliases": [],
      "kind": "shell language",
      "families": [
        "shell"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "high",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "powershell",
      "name": "PowerShell",
      "aliases": [
        "pwsh"
      ],
      "kind": "shell language",
      "families": [
        "shell"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "high",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "windows-batch",
      "name": "Windows batch",
      "aliases": [
        "batch",
        "cmd"
      ],
      "kind": "command script language",
      "families": [
        "shell"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "high",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "applescript",
      "name": "AppleScript",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "shell"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "high",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "javascript-for-automation",
      "name": "JavaScript for Automation",
      "aliases": [
        "JXA"
      ],
      "kind": "hosted language variant",
      "families": [
        "shell"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "high",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "autohotkey",
      "name": "AutoHotkey",
      "aliases": [
        "AHK"
      ],
      "kind": "programming language",
      "families": [
        "shell"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "high",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "tcl",
      "name": "Tcl",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "shell"
      ],
      "status": "tested",
      "official_sources": [
        {
          "id": "tcl-syntax",
          "title": "Tcl 8.5 command syntax",
          "url": "https://www.tcl-lang.org/man/tcl8.5/TclCmd/Tcl.htm",
          "scope": "Command words, substitution and grouping; web manual 8.5.19, tested interpreter 8.5.9.",
          "verified_on": "2026-10-26",
          "type": "maintainer documentation"
        },
        {
          "id": "tcl-list",
          "title": "Tcl 8.5 list",
          "url": "https://www.tcl-lang.org/man/tcl8.5/TclCmd/list.htm",
          "scope": "Structured list construction, not script interpolation.",
          "verified_on": "2026-10-26",
          "type": "maintainer documentation"
        },
        {
          "id": "tcl-expr",
          "title": "Tcl 8.5 expressions",
          "url": "https://www.tcl-lang.org/man/tcl8.5/TclCmd/expr.htm",
          "scope": "Braced expressions, numeric forms and comparison.",
          "verified_on": "2026-10-26",
          "type": "maintainer documentation"
        },
        {
          "id": "tcl-dict",
          "title": "Tcl 8.5 dictionaries",
          "url": "https://www.tcl-lang.org/man/tcl8.5/TclCmd/dict.htm",
          "scope": "Presence, accumulation and structured key-value data.",
          "verified_on": "2026-10-26",
          "type": "maintainer documentation"
        },
        {
          "id": "tcl-catch",
          "title": "Tcl 8.5 completion codes",
          "url": "https://www.tcl-lang.org/man/tcl8.5/TclCmd/catch.htm",
          "scope": "catch result/options and exceptional completion codes.",
          "verified_on": "2026-10-26",
          "type": "maintainer documentation"
        },
        {
          "id": "tcl-open",
          "title": "Tcl 8.5 open",
          "url": "https://www.tcl-lang.org/man/tcl8.5/TclCmd/open.htm",
          "scope": "Exclusive file creation and pipeline-path caveat.",
          "verified_on": "2026-10-26",
          "type": "maintainer documentation"
        },
        {
          "id": "tcl-channel",
          "title": "Tcl 8.5 channel configuration",
          "url": "https://www.tcl-lang.org/man/tcl8.5/TclCmd/fconfigure.htm",
          "scope": "Encoding, newline translation and buffering.",
          "verified_on": "2026-10-26",
          "type": "maintainer documentation"
        },
        {
          "id": "tcl-namespace",
          "title": "Tcl 8.5 namespaces",
          "url": "https://www.tcl-lang.org/man/tcl8.5/TclCmd/namespace.htm",
          "scope": "Qualified procedures and trusted namespace definitions.",
          "verified_on": "2026-10-26",
          "type": "maintainer documentation"
        },
        {
          "id": "tcl-proc-local",
          "title": "Installed Tcl proc manual",
          "url": "man:proc(n)",
          "scope": "Procedure arguments and local scope; web proc retrieval timed out.",
          "verified_on": "2026-10-26",
          "type": "installed official manual"
        },
        {
          "id": "tcl-release",
          "title": "Tcl 8.5 series release page",
          "url": "https://www.tcl-lang.org/software/tcltk/8.5.html",
          "scope": "Historical 8.5 series scope; no modern-runtime recommendation.",
          "verified_on": "2026-10-26",
          "type": "maintainer documentation"
        }
      ],
      "source_verified_on": "2026-10-26",
      "source_note": "Version-scoped primary sources and installed manuals. Actual local execution and independent review remain separate gates.",
      "constraints": {
        "language_version": "Tcl 8.5.9; macOS 27.0.1 arm64",
        "runtime": "Use installed /usr/bin/tclsh 8.5.9. This old interpreter is recorded teaching evidence, not a deployment recommendation. The accessible web manual is the later 8.5.19 series; actual 8.5.9 execution bounds the claims. Export one entry and its companions into a fresh toy folder. File example 08 creates only Atlas note.txt with exclusive creation and explicit UTF-8/LF, and refuses to overwrite it; the file remains for inspection. Source in example 09 loads only its authored companion. Data is never eval-ed. Tcl open can launch a pipeline for a leading | path; this pack uses fixed filenames. No sockets, exec, native extensions or downloaded packages. A script interpreter and temporary directory are not an arbitrary-code sandbox. Errors are evaluation outcomes, not a separate compiler pass.",
        "operating_system": "macOS 27.0.1 arm64",
        "notes": "Tcl programming language: command words and substitution, braced expressions, lists, dictionaries, control flow, procedures, namespaces, explicit file channels and errors. No Tk GUI, Tcl 8.6/9 features or arbitrary script evaluation."
      },
      "risk_level": "moderate",
      "risk_note": "Examples use fixed local toy files and trusted source companions. They are not a sandbox for arbitrary Tcl scripts or paths.",
      "pack_ids": [
        "tcl-foundations"
      ]
    },
    {
      "id": "expect",
      "name": "Expect",
      "aliases": [],
      "kind": "Tcl extension",
      "families": [
        "shell"
      ],
      "status": "tested",
      "official_sources": [
        {
          "id": "expect-local",
          "title": "Installed Expect manual",
          "url": "man:expect(1)",
          "scope": "spawn, send, exact/regexp matching, startup flags, timeout, exp_continue, EOF, wait and pseudo-terminal configuration.",
          "verified_on": "2026-10-26",
          "type": "installed official manual"
        },
        {
          "id": "expect-project",
          "title": "Expect project and successor notice",
          "url": "https://core.tcl-lang.org/expect/index",
          "scope": "Tcl extension role and old project notice; modern successor features excluded.",
          "verified_on": "2026-10-26",
          "type": "maintainer documentation"
        }
      ],
      "source_verified_on": "2026-10-26",
      "source_note": "Version-scoped primary sources and installed manuals. Actual local execution and independent review remain separate gates.",
      "constraints": {
        "language_version": "Expect 5.45 with Tcl 8.5.9; macOS 27.0.1 arm64",
        "runtime": "Use /usr/bin/expect -N -n with installed Expect 5.45 and embedded Tcl 8.5.9. These old installed versions are limited teaching evidence. -N and -n suppress system and user Expect startup files. Export Expect support.tcl, one entry .exp and its unique child companion into the same new toy directory. Each entry spawns only /usr/bin/tclsh with that authored child; no shell, sign-ins, network, secrets or external applications. Child transcripts are ASCII and use the tested local pseudo-terminal CRLF convention. stty_init changes only each newly spawned pseudo-terminal. log_user 0 suppresses transcript echo but is not a security boundary. Explicit timeouts, EOF and wait are distinct; a timeout never proves child exit. The harness retains native child handles and complete blocking wait receipts. Cooperative cleanup closes those channels and waits; it requires event-loop progress. An outer timeout collects only the direct controller and reports unresolved child cleanup as uncertain. Examples and support code are trusted; this is not an arbitrary-process sandbox.",
        "operating_system": "macOS 27.0.1 arm64",
        "notes": "Expect is a Tcl extension for scripted conversations with processes, not a second general-purpose language or a shell. This pack covers fixed toy children, literal/regular-expression matching, send, timeout, EOF, wait status, buffering and bounded conversation states. It does not automate real services."
      },
      "risk_level": "moderate",
      "risk_note": "Trusted authored source only; Expect controls only its own local toy children. Temporary directories and timeouts are not arbitrary-code sandboxes.",
      "pack_ids": [
        "expect-foundations"
      ]
    },
    {
      "id": "awk",
      "name": "awk",
      "aliases": [
        "AWK"
      ],
      "kind": "text processing language",
      "families": [
        "shell"
      ],
      "status": "tested",
      "official_sources": [
        {
          "id": "awk-local",
          "title": "Installed awk manual",
          "url": "man:awk(1)",
          "scope": "Installed 20200816 rules, records, fields, arrays, functions and I/O boundaries.",
          "verified_on": "2026-10-26",
          "type": "installed official manual"
        },
        {
          "id": "awk-upstream",
          "title": "One True Awk maintainer manual",
          "url": "https://raw.githubusercontent.com/onetrueawk/awk/master/awk.1",
          "scope": "Core semantics only; newer --csv support is excluded from this installed version.",
          "verified_on": "2026-10-26",
          "type": "maintainer documentation"
        },
        {
          "id": "regex-local",
          "title": "Installed regular-expression manual",
          "url": "man:re_format(7)",
          "scope": "Basic versus extended regular expressions; ASCII C-locale scope.",
          "verified_on": "2026-10-26",
          "type": "installed official manual"
        }
      ],
      "source_verified_on": "2026-10-26",
      "source_note": "Installed manuals and accessible maintainer documentation support this bounded introductory subset. POSIX web pages returned HTTP 403; no full conformance claim.",
      "constraints": {
        "language_version": "awk 20200816; macOS 27.0.1 arm64; LC_ALL=C",
        "runtime": "Use the exact invocation beside each example. Export its .awk script and input companion into a new practice folder; LC_ALL=C pins byte-oriented ASCII behavior. /usr/bin/awk --version reports 20200816. Current upstream awk has features absent here; no --csv, GNU awk sorting functions or whole-POSIX conformance is claimed. All programs write stdout only. The browser exports text and never executes it. Do not interpolate untrusted text into an awk program; -v values also interpret backslash escapes and are not a raw-byte transport. Only fixed authored scripts and bounded toy inputs are tested.",
        "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
        "notes": "Pattern/action processing, records and fields, validated numeric input, associative arrays, deterministic order, functions and reports. No CSV parser, GNU awk extensions, process execution or arbitrary file access."
      },
      "risk_level": "moderate",
      "risk_note": "Other scripts can access files or processes. Only trusted authored transformations, fixed input companions and stdout are exercised.",
      "pack_ids": [
        "awk-foundations"
      ]
    },
    {
      "id": "sed",
      "name": "sed",
      "aliases": [],
      "kind": "text transformation language",
      "families": [
        "shell"
      ],
      "status": "tested",
      "official_sources": [
        {
          "id": "sed-local",
          "title": "Installed macOS sed manual",
          "url": "man:sed(1)",
          "scope": "Editing cycle, addresses, substitution, hold space, branching and command-line flags.",
          "verified_on": "2026-10-26",
          "type": "installed official manual"
        },
        {
          "id": "sed-apple",
          "title": "Apple sed manual source",
          "url": "https://raw.githubusercontent.com/apple-oss-distributions/text_cmds/main/sed/sed.1",
          "scope": "Apple-maintained documentation; local binary and execution evidence remain authoritative.",
          "verified_on": "2026-10-26",
          "type": "maintainer documentation"
        },
        {
          "id": "regex-local",
          "title": "Installed regular-expression manual",
          "url": "man:re_format(7)",
          "scope": "Basic versus extended regular expressions; ASCII C-locale scope.",
          "verified_on": "2026-10-26",
          "type": "installed official manual"
        }
      ],
      "source_verified_on": "2026-10-26",
      "source_note": "Installed manuals and accessible maintainer documentation support this bounded introductory subset. POSIX web pages returned HTTP 403; no full conformance claim.",
      "constraints": {
        "language_version": "macOS /usr/bin/sed; macOS 27.0.1 arm64; LC_ALL=C",
        "runtime": "Use the exact invocation beside each example, including -n or -E where shown. Export the .sed script and input companion into a new practice folder. /usr/bin/sed is the macOS implementation; no independent version number is advertised, so the evidence pins OS and binary SHA-256. LC_ALL=C limits examples to ASCII byte behavior. Input files are read-only and outputs go to stdout. No -i/-I, w/r commands, executable extensions or arbitrary script interpolation are used. GNU sed behavior and complete POSIX conformance are not claimed. Empty output and exit zero can simply mean no match.",
        "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
        "notes": "Addressed stream editing, BRE/ERE distinctions, substitution and escaping, ranges, branching, pattern/hold spaces and bounded multiline examples. No in-place editing, file-write commands, arbitrary scripts or general data parsing."
      },
      "risk_level": "moderate",
      "risk_note": "Other scripts can access files or processes. Only trusted authored transformations, fixed input companions and stdout are exercised.",
      "pack_ids": [
        "sed-foundations"
      ]
    },
    {
      "id": "nushell",
      "name": "Nushell",
      "aliases": [
        "Nu"
      ],
      "kind": "shell language",
      "families": [
        "shell"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "high",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "rexx",
      "name": "REXX",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "shell"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "high",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "sql",
      "name": "SQL",
      "aliases": [],
      "kind": "query language",
      "families": [
        "query"
      ],
      "status": "tested",
      "official_sources": [
        {
          "id": "sql-select",
          "title": "SQLite SELECT",
          "url": "https://www.sqlite.org/lang_select.html",
          "scope": "Filtering, ordering and explicit joins.",
          "verified_on": "2026-10-25",
          "type": "official documentation"
        },
        {
          "id": "sql-schema",
          "title": "SQLite CREATE TABLE",
          "url": "https://www.sqlite.org/lang_createtable.html",
          "scope": "Keys, NOT NULL and CHECK constraints.",
          "verified_on": "2026-10-25",
          "type": "official documentation"
        },
        {
          "id": "sql-transactions",
          "title": "SQLite transactions",
          "url": "https://www.sqlite.org/lang_transaction.html",
          "scope": "BEGIN, COMMIT, ROLLBACK and single-writer scope.",
          "verified_on": "2026-10-25",
          "type": "official documentation"
        },
        {
          "id": "sql-expressions",
          "title": "SQLite expressions",
          "url": "https://www.sqlite.org/lang_expr.html",
          "scope": "NULL, CASE, comparisons and named parameters.",
          "verified_on": "2026-10-25",
          "type": "official documentation"
        },
        {
          "id": "sql-cli",
          "title": "SQLite command-line shell",
          "url": "https://www.sqlite.org/cli.html",
          "scope": "In-memory execution, safe mode, dot commands and the expression-evaluating .parameter command.",
          "verified_on": "2026-10-25",
          "type": "official documentation"
        },
        {
          "id": "sql-foreign-keys",
          "title": "SQLite foreign keys",
          "url": "https://www.sqlite.org/foreignkeys.html",
          "scope": "Enable enforcement per connection before a transaction.",
          "verified_on": "2026-10-25",
          "type": "official documentation"
        },
        {
          "id": "sql-types",
          "title": "SQLite datatypes",
          "url": "https://www.sqlite.org/datatype3.html",
          "scope": "Dynamic typing and affinity; no cross-dialect type guarantee.",
          "verified_on": "2026-10-25",
          "type": "official documentation"
        },
        {
          "id": "sql-quirks",
          "title": "SQLite quirks",
          "url": "https://www.sqlite.org/quirks.html",
          "scope": "Differences from other SQL implementations.",
          "verified_on": "2026-10-25",
          "type": "official documentation"
        },
        {
          "id": "sql-aggregate",
          "title": "SQLite aggregate functions",
          "url": "https://www.sqlite.org/lang_aggfunc.html",
          "scope": "COUNT, SUM and empty or NULL input.",
          "verified_on": "2026-10-25",
          "type": "official documentation"
        },
        {
          "id": "sql-cte",
          "title": "SQLite WITH clause",
          "url": "https://www.sqlite.org/lang_with.html",
          "scope": "Ordinary statement-scoped common table expressions.",
          "verified_on": "2026-10-25",
          "type": "official documentation"
        },
        {
          "id": "sql-bind",
          "title": "SQLite value binding API",
          "url": "https://www.sqlite.org/c3ref/bind_blob.html",
          "scope": "Bind literal values separately from statement structure; API discussion only, not an executed C example.",
          "verified_on": "2026-10-25",
          "type": "official documentation"
        }
      ],
      "source_verified_on": "2026-10-25",
      "source_note": "Scoped original introductory pack; examples must pass the recorded installed-runtime checks.",
      "constraints": {
        "language_version": "SQLite 3.54.0 subset",
        "runtime": "SQLite CLI 3.54.0 on macOS 27.0.1 arm64",
        "operating_systems": [
          "macOS 27.0.1 arm64 tested"
        ],
        "notes": "No other SQL engine or operating system tested. Shell portability is bounded evidence, not certification."
      },
      "risk_level": "medium",
      "risk_note": "Execution effects are bounded to authored toy inputs; the language retains broader operational risk.",
      "pack_ids": [
        "sql-foundations"
      ]
    },
    {
      "id": "postgresql-sql",
      "name": "PostgreSQL SQL",
      "aliases": [
        "Postgres SQL"
      ],
      "kind": "SQL dialect",
      "families": [
        "query"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "sqlite-sql",
      "name": "SQLite SQL",
      "aliases": [],
      "kind": "SQL dialect",
      "families": [
        "query"
      ],
      "status": "tested",
      "official_sources": [
        {
          "id": "sql-select",
          "title": "SQLite SELECT",
          "url": "https://www.sqlite.org/lang_select.html",
          "scope": "Filtering, ordering and explicit joins.",
          "verified_on": "2026-10-25",
          "type": "official documentation"
        },
        {
          "id": "sql-schema",
          "title": "SQLite CREATE TABLE",
          "url": "https://www.sqlite.org/lang_createtable.html",
          "scope": "Keys, NOT NULL and CHECK constraints.",
          "verified_on": "2026-10-25",
          "type": "official documentation"
        },
        {
          "id": "sql-transactions",
          "title": "SQLite transactions",
          "url": "https://www.sqlite.org/lang_transaction.html",
          "scope": "BEGIN, COMMIT, ROLLBACK and single-writer scope.",
          "verified_on": "2026-10-25",
          "type": "official documentation"
        },
        {
          "id": "sql-expressions",
          "title": "SQLite expressions",
          "url": "https://www.sqlite.org/lang_expr.html",
          "scope": "NULL, CASE, comparisons and named parameters.",
          "verified_on": "2026-10-25",
          "type": "official documentation"
        },
        {
          "id": "sql-cli",
          "title": "SQLite command-line shell",
          "url": "https://www.sqlite.org/cli.html",
          "scope": "In-memory execution, safe mode, dot commands and the expression-evaluating .parameter command.",
          "verified_on": "2026-10-25",
          "type": "official documentation"
        },
        {
          "id": "sql-foreign-keys",
          "title": "SQLite foreign keys",
          "url": "https://www.sqlite.org/foreignkeys.html",
          "scope": "Enable enforcement per connection before a transaction.",
          "verified_on": "2026-10-25",
          "type": "official documentation"
        },
        {
          "id": "sql-types",
          "title": "SQLite datatypes",
          "url": "https://www.sqlite.org/datatype3.html",
          "scope": "Dynamic typing and affinity; no cross-dialect type guarantee.",
          "verified_on": "2026-10-25",
          "type": "official documentation"
        },
        {
          "id": "sql-quirks",
          "title": "SQLite quirks",
          "url": "https://www.sqlite.org/quirks.html",
          "scope": "Differences from other SQL implementations.",
          "verified_on": "2026-10-25",
          "type": "official documentation"
        },
        {
          "id": "sql-aggregate",
          "title": "SQLite aggregate functions",
          "url": "https://www.sqlite.org/lang_aggfunc.html",
          "scope": "COUNT, SUM and empty or NULL input.",
          "verified_on": "2026-10-25",
          "type": "official documentation"
        },
        {
          "id": "sql-cte",
          "title": "SQLite WITH clause",
          "url": "https://www.sqlite.org/lang_with.html",
          "scope": "Ordinary statement-scoped common table expressions.",
          "verified_on": "2026-10-25",
          "type": "official documentation"
        },
        {
          "id": "sql-bind",
          "title": "SQLite value binding API",
          "url": "https://www.sqlite.org/c3ref/bind_blob.html",
          "scope": "Bind literal values separately from statement structure; API discussion only, not an executed C example.",
          "verified_on": "2026-10-25",
          "type": "official documentation"
        }
      ],
      "source_verified_on": "2026-10-25",
      "source_note": "Scoped original introductory pack; examples must pass the recorded installed-runtime checks.",
      "constraints": {
        "language_version": "SQLite 3.54.0 subset",
        "runtime": "SQLite CLI 3.54.0 on macOS 27.0.1 arm64",
        "operating_systems": [
          "macOS 27.0.1 arm64 tested"
        ],
        "notes": "No other SQL engine or operating system tested. Shell portability is bounded evidence, not certification."
      },
      "risk_level": "medium",
      "risk_note": "Execution effects are bounded to authored toy inputs; the language retains broader operational risk.",
      "pack_ids": [
        "sql-foundations"
      ]
    },
    {
      "id": "mysql-sql",
      "name": "MySQL SQL",
      "aliases": [],
      "kind": "SQL dialect",
      "families": [
        "query"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "mariadb-sql",
      "name": "MariaDB SQL",
      "aliases": [],
      "kind": "SQL dialect",
      "families": [
        "query"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "transact-sql",
      "name": "Transact-SQL",
      "aliases": [
        "T-SQL",
        "TSQL"
      ],
      "kind": "SQL dialect",
      "families": [
        "query"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "pl-sql",
      "name": "PL/SQL",
      "aliases": [
        "PLSQL"
      ],
      "kind": "procedural SQL language",
      "families": [
        "query"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "pl-pgsql",
      "name": "PL/pgSQL",
      "aliases": [
        "PLpgSQL"
      ],
      "kind": "procedural SQL language",
      "families": [
        "query"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "graphql",
      "name": "GraphQL",
      "aliases": [],
      "kind": "query language",
      "families": [
        "query"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "sparql",
      "name": "SPARQL",
      "aliases": [],
      "kind": "query language",
      "families": [
        "query"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "cypher",
      "name": "Cypher",
      "aliases": [],
      "kind": "query language",
      "families": [
        "query"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "gremlin",
      "name": "Gremlin",
      "aliases": [],
      "kind": "graph traversal language",
      "families": [
        "query"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "datalog",
      "name": "Datalog",
      "aliases": [],
      "kind": "logic query language",
      "families": [
        "query"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "xpath",
      "name": "XPath",
      "aliases": [],
      "kind": "query language",
      "families": [
        "query"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "xquery",
      "name": "XQuery",
      "aliases": [],
      "kind": "query language",
      "families": [
        "query"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "jq",
      "name": "jq",
      "aliases": [],
      "kind": "JSON query language",
      "families": [
        "query"
      ],
      "status": "tested",
      "official_sources": [
        {
          "id": "jq-manual",
          "title": "jq 1.7 manual",
          "url": "https://jqlang.org/manual/v1.7/",
          "scope": "Filter semantics, data parameters, input/output options and exit statuses.",
          "verified_on": "2026-10-26",
          "type": "maintainer documentation"
        },
        {
          "id": "jq-local",
          "title": "Installed jq manual",
          "url": "man:jq(1)",
          "scope": "Installed Apple jq 1.7.1 command-line behavior; executed examples remain authoritative.",
          "verified_on": "2026-10-26",
          "type": "installed official manual"
        }
      ],
      "source_verified_on": "2026-10-26",
      "source_note": "Version-scoped primary references and installed manuals; bounded authored examples require actual execution before promotion.",
      "constraints": {
        "language_version": "jq-1.7.1-apple; macOS 27.0.1 arm64",
        "runtime": "Export the fixed .jq program and companion input. /usr/bin/jq --version reports jq-1.7.1-apple; the upstream 1.7 manual is context, not proof of every Apple-build behavior. -c makes JSON output compact. -r would remove JSON quoting from string outputs and is not used here. Programs are trusted and inputs tiny. Use --arg or --argjson for data, never concatenate data into program text. No modules, environment access, external files or network commands are used. The HTML only exports text. -e result statuses and deliberate compile/runtime errors are separate outcomes. Numeric examples use small finite integers; exact large-integer or financial arithmetic is outside scope.",
        "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
        "notes": "JSON query language: filter streams, projection, selection, null/presence, data parameters, grouping, aggregation, updates and explicit validation. This is beyond parsing JSON; no remote data or schema conformance claim."
      },
      "risk_level": "moderate",
      "risk_note": "Only trusted programs and authored small inputs are exercised. Installed parsers are not recommended for arbitrary hostile documents; runtime flags and temporary directories are not a complete sandbox.",
      "pack_ids": [
        "jq-foundations"
      ]
    },
    {
      "id": "kusto-query-language",
      "name": "Kusto Query Language",
      "aliases": [
        "KQL"
      ],
      "kind": "query language",
      "families": [
        "query"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "promql",
      "name": "PromQL",
      "aliases": [],
      "kind": "query language",
      "families": [
        "query"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "logql",
      "name": "LogQL",
      "aliases": [],
      "kind": "query language",
      "families": [
        "query"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "splunk-search-processing-language",
      "name": "Splunk Search Processing Language",
      "aliases": [
        "SPL"
      ],
      "kind": "query language",
      "families": [
        "query"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "partiql",
      "name": "PartiQL",
      "aliases": [],
      "kind": "query language",
      "families": [
        "query"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "sql-psm",
      "name": "SQL/PSM",
      "aliases": [],
      "kind": "procedural SQL standard",
      "families": [
        "query"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "html",
      "name": "HTML",
      "aliases": [],
      "kind": "markup language",
      "families": [
        "markup"
      ],
      "status": "tested",
      "official_sources": [
        {
          "id": "html-mdn",
          "title": "MDN: Basic HTML syntax",
          "url": "https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/Structuring_content/Basic_HTML_syntax",
          "verified_on": "2026-10-25",
          "scope": "Elements, attributes, nesting and document structure.",
          "type": "maintainer documentation"
        },
        {
          "id": "html-spec",
          "title": "WHATWG HTML Living Standard",
          "url": "https://html.spec.whatwg.org/multipage/",
          "verified_on": "2026-10-25",
          "scope": "HTML semantics and document structure; living standard.",
          "type": "standard or specification"
        },
        {
          "id": "html-label",
          "title": "MDN: label element",
          "url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/label",
          "verified_on": "2026-10-25",
          "scope": "Explicit form label association.",
          "type": "maintainer documentation"
        }
      ],
      "source_verified_on": "2026-10-25",
      "source_note": "Sources checked for this introductory pack only.",
      "constraints": {
        "language_version": "HTML Living Standard",
        "runtime": "Browser; test evidence recorded at pack level",
        "operating_systems": [
          "macOS test host; other operating systems untested"
        ],
        "notes": "This is a limited foundations pack, not full language coverage or an engine compatibility claim."
      },
      "risk_level": "low",
      "risk_note": "Original local examples; no network, credentials or system commands.",
      "pack_ids": [
        "web-foundations"
      ]
    },
    {
      "id": "css",
      "name": "CSS",
      "aliases": [],
      "kind": "style sheet language",
      "families": [
        "markup"
      ],
      "status": "tested",
      "official_sources": [
        {
          "id": "css-mdn",
          "title": "MDN: Getting started with CSS",
          "url": "https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/Styling_basics/Getting_started",
          "verified_on": "2026-10-25",
          "scope": "Selectors, declarations and classes.",
          "type": "maintainer documentation"
        },
        {
          "id": "css-box",
          "title": "MDN: Introduction to the CSS box model",
          "url": "https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Box_model/Introduction",
          "verified_on": "2026-10-25",
          "scope": "Content, padding, border and margin.",
          "type": "maintainer documentation"
        },
        {
          "id": "css-spec",
          "title": "W3C: CSS Display Module Level 3",
          "url": "https://www.w3.org/TR/css-display-3/",
          "verified_on": "2026-10-25",
          "scope": "Block and inline layout; candidate recommendation draft, not a browser support promise.",
          "type": "standard or specification"
        },
        {
          "id": "css-grid",
          "title": "MDN: Basic concepts of grid layout",
          "url": "https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Grid_layout/Basic_concepts",
          "scope": "Grid tracks, repeat(3, 1fr) and gap.",
          "verified_on": "2026-10-25",
          "type": "maintainer documentation"
        },
        {
          "id": "css-media",
          "title": "MDN: Using media queries",
          "url": "https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Media_queries/Using",
          "scope": "Inclusive min-width viewport queries.",
          "verified_on": "2026-10-25",
          "type": "maintainer documentation"
        }
      ],
      "source_verified_on": "2026-10-25",
      "source_note": "Sources checked for this introductory pack only.",
      "constraints": {
        "language_version": "CSS modules: box model, selectors, grid and media queries",
        "runtime": "Browser; test evidence recorded at pack level",
        "operating_systems": [
          "macOS test host; other operating systems untested"
        ],
        "notes": "This is a limited foundations pack, not full language coverage or an engine compatibility claim."
      },
      "risk_level": "low",
      "risk_note": "Original local examples; no network, credentials or system commands.",
      "pack_ids": [
        "web-foundations"
      ]
    },
    {
      "id": "sass",
      "name": "Sass",
      "aliases": [
        "SCSS"
      ],
      "kind": "style sheet preprocessor language",
      "families": [
        "markup"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "less",
      "name": "Less",
      "aliases": [],
      "kind": "style sheet preprocessor language",
      "families": [
        "markup"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "svg",
      "name": "SVG",
      "aliases": [],
      "kind": "vector markup language",
      "families": [
        "markup"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "xml",
      "name": "XML",
      "aliases": [],
      "kind": "markup language",
      "families": [
        "markup"
      ],
      "status": "tested",
      "official_sources": [
        {
          "id": "data-xml-spec",
          "title": "W3C XML 1.0 fifth edition",
          "url": "https://www.w3.org/TR/xml/",
          "scope": "Well-formed XML and escaping.",
          "verified_on": "2026-10-25",
          "type": "official documentation or specification"
        },
        {
          "id": "data-xml-python",
          "title": "Python 3.9: ElementTree",
          "url": "https://docs.python.org/3.9/library/xml.etree.elementtree.html",
          "scope": "Tree construction, namespaces and parsing.",
          "verified_on": "2026-10-25",
          "type": "official documentation or specification"
        },
        {
          "id": "data-xml-security",
          "title": "Python 3.9: XML vulnerabilities",
          "url": "https://docs.python.org/3.9/library/xml.html#xml-vulnerabilities",
          "scope": "Untrusted XML boundary.",
          "verified_on": "2026-10-25",
          "type": "official documentation or specification"
        }
      ],
      "source_verified_on": "2026-10-25",
      "source_note": "Sources checked for this introductory pack only; no complete standards conformance claim.",
      "constraints": {
        "language_version": "JSON RFC 8259 / explicit CSV and TSV dialect / XML 1.0 / TOML 1.0 subset as applicable",
        "runtime": "CPython 3.9.6; json, csv, ElementTree; installed Tomli 1.0.3; macOS 27.0.1",
        "operating_systems": [
          "macOS 27.0.1 only; other systems untested"
        ],
        "notes": "Run each .py with the installed Python interpreter. Tests use CPython 3.9.6, which is unsupported upstream. JSON, CSV and XML use the standard library. TOML uses the already installed pip._vendor.tomli 1.0.3 fallback; this private API may change or disappear and is not a stable public pip interface. The preferred tomllib branch requires an already installed Python 3.11+ and is not tested here. No dependency is installed. XML examples are limited to tiny trusted authored strings; do not reuse their entry points for untrusted XML."
      },
      "risk_level": "low",
      "risk_note": "Authored bounded local examples only; no network, credentials or execution of parsed data. XML trust boundary must be preserved.",
      "pack_ids": [
        "data-formats-foundations"
      ]
    },
    {
      "id": "xslt",
      "name": "XSLT",
      "aliases": [],
      "kind": "transformation language",
      "families": [
        "markup"
      ],
      "status": "tested",
      "official_sources": [
        {
          "id": "xslt-spec",
          "title": "W3C XSLT 1.0 Recommendation",
          "url": "https://www.w3.org/TR/xslt-10/",
          "scope": "Templates, parameters, variables, keys, messages and serialization; version 1.0 only.",
          "verified_on": "2026-10-26",
          "type": "official specification"
        },
        {
          "id": "xpath-spec",
          "title": "W3C XPath 1.0 Recommendation",
          "url": "https://www.w3.org/TR/1999/REC-xpath-19991116/",
          "scope": "Supporting node selection, predicates, conversion and core functions only; standalone XPath remains planned.",
          "verified_on": "2026-10-26",
          "type": "official specification"
        },
        {
          "id": "xsltproc-manual",
          "title": "libxslt xsltproc manual",
          "url": "https://gnome.pages.gitlab.gnome.org/libxslt/xsltproc.html",
          "scope": "Command options, safety limits and separation of stylesheet/application errors.",
          "verified_on": "2026-10-26",
          "type": "maintainer documentation"
        },
        {
          "id": "xsltproc-local",
          "title": "Installed xsltproc manual",
          "url": "man:xsltproc(1)",
          "scope": "Installed libxslt 1.1.35 with libxml2 2.9.13; only local authored inputs and trusted stylesheets.",
          "verified_on": "2026-10-26",
          "type": "installed official manual"
        }
      ],
      "source_verified_on": "2026-10-26",
      "source_note": "Version-scoped primary references and installed manuals; bounded authored examples require actual execution before promotion.",
      "constraints": {
        "language_version": "libxslt 1.1.35 / libxml2 2.9.13; macOS 27.0.1 arm64",
        "runtime": "Export the fixed .xsl stylesheet and XML companion. The installed xsltproc reports libxslt 1.1.35 and libxml2 2.9.13; these old installed versions are a recorded learning environment, not a recommendation for untrusted-document processing. Every command uses --nonet --novalid --nowrite --nomkdir plus small depth/variable limits and empty catalogue environment variables. These flags are defense in depth, not a complete sandbox: local file reads can exist in other stylesheets. This pack has no DTD declarations, custom/external entities, document(), imports, includes, extensions or secondary output. Only authored toy XML and trusted stylesheets are tested. The HTML never runs them. Output is stdout; inputs remain unchanged. XPath 1.0 syntax is introduced only as needed by XSLT; the standalone XPath entry stays planned. Installed --stringparam cannot transport a value containing both single and double quotes: it exits with status 8. That documented CLI limitation is tested separately; no quote workaround is implied.",
        "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
        "notes": "XSLT 1.0 transformation language: templates, XPath 1.0 selections, namespaces, sorting, parameters, variables, named templates, identity transforms, keys and explicit input checks. Supporting XPath expressions do not constitute a standalone XPath pack. No XSLT 2.0/3.0, extension functions or arbitrary documents."
      },
      "risk_level": "moderate",
      "risk_note": "Only trusted programs and authored small inputs are exercised. Installed parsers are not recommended for arbitrary hostile documents; runtime flags and temporary directories are not a complete sandbox.",
      "pack_ids": [
        "xslt-foundations"
      ]
    },
    {
      "id": "markdown",
      "name": "Markdown",
      "aliases": [
        "CommonMark"
      ],
      "kind": "markup language",
      "families": [
        "markup"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "restructuredtext",
      "name": "reStructuredText",
      "aliases": [
        "reST"
      ],
      "kind": "markup language",
      "families": [
        "markup"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "asciidoc",
      "name": "AsciiDoc",
      "aliases": [],
      "kind": "markup language",
      "families": [
        "markup"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "latex",
      "name": "LaTeX",
      "aliases": [],
      "kind": "document preparation language",
      "families": [
        "markup"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "typst",
      "name": "Typst",
      "aliases": [],
      "kind": "typesetting language",
      "families": [
        "markup"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "jinja",
      "name": "Jinja",
      "aliases": [
        "Jinja2"
      ],
      "kind": "template language",
      "families": [
        "markup"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "liquid",
      "name": "Liquid",
      "aliases": [],
      "kind": "template language",
      "families": [
        "markup"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "handlebars",
      "name": "Handlebars",
      "aliases": [],
      "kind": "template language",
      "families": [
        "markup"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "mustache",
      "name": "Mustache",
      "aliases": [],
      "kind": "template language",
      "families": [
        "markup"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "django-template-language",
      "name": "Django template language",
      "aliases": [
        "Django templates"
      ],
      "kind": "template language",
      "families": [
        "markup"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "tex",
      "name": "TeX",
      "aliases": [],
      "kind": "typesetting language",
      "families": [
        "markup"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "mathml",
      "name": "MathML",
      "aliases": [],
      "kind": "mathematical markup language",
      "families": [
        "markup"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "json",
      "name": "JSON",
      "aliases": [],
      "kind": "data format",
      "families": [
        "data"
      ],
      "status": "tested",
      "official_sources": [
        {
          "id": "data-json-spec",
          "title": "IETF RFC 8259: JSON",
          "url": "https://www.rfc-editor.org/rfc/rfc8259",
          "scope": "JSON syntax and interoperability.",
          "verified_on": "2026-10-25",
          "type": "official documentation or specification"
        },
        {
          "id": "data-json-python",
          "title": "Python 3.9: json",
          "url": "https://docs.python.org/3.9/library/json.html",
          "scope": "Parser defaults, hooks and serializer.",
          "verified_on": "2026-10-25",
          "type": "official documentation or specification"
        }
      ],
      "source_verified_on": "2026-10-25",
      "source_note": "Sources checked for this introductory pack only; no complete standards conformance claim.",
      "constraints": {
        "language_version": "JSON RFC 8259 / explicit CSV and TSV dialect / XML 1.0 / TOML 1.0 subset as applicable",
        "runtime": "CPython 3.9.6; json, csv, ElementTree; installed Tomli 1.0.3; macOS 27.0.1",
        "operating_systems": [
          "macOS 27.0.1 only; other systems untested"
        ],
        "notes": "Run each .py with the installed Python interpreter. Tests use CPython 3.9.6, which is unsupported upstream. JSON, CSV and XML use the standard library. TOML uses the already installed pip._vendor.tomli 1.0.3 fallback; this private API may change or disappear and is not a stable public pip interface. The preferred tomllib branch requires an already installed Python 3.11+ and is not tested here. No dependency is installed. XML examples are limited to tiny trusted authored strings; do not reuse their entry points for untrusted XML."
      },
      "risk_level": "low",
      "risk_note": "Authored bounded local examples only; no network, credentials or execution of parsed data. XML trust boundary must be preserved.",
      "pack_ids": [
        "data-formats-foundations"
      ]
    },
    {
      "id": "json-schema",
      "name": "JSON Schema",
      "aliases": [],
      "kind": "schema language",
      "families": [
        "data"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "yaml",
      "name": "YAML",
      "aliases": [],
      "kind": "data format",
      "families": [
        "data"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "toml",
      "name": "TOML",
      "aliases": [],
      "kind": "configuration format",
      "families": [
        "data"
      ],
      "status": "tested",
      "official_sources": [
        {
          "id": "data-toml-spec",
          "title": "TOML 1.0.0 specification",
          "url": "https://toml.io/en/v1.0.0",
          "scope": "TOML 1.0 syntax and typed values.",
          "verified_on": "2026-10-25",
          "type": "official documentation or specification"
        },
        {
          "id": "data-tomllib",
          "title": "Python 3.11: tomllib",
          "url": "https://docs.python.org/3.11/library/tomllib.html",
          "scope": "Available since 3.11; documentation only, not installed execution evidence.",
          "verified_on": "2026-10-25",
          "type": "official documentation or specification"
        }
      ],
      "source_verified_on": "2026-10-25",
      "source_note": "Sources checked for this introductory pack only; no complete standards conformance claim.",
      "constraints": {
        "language_version": "JSON RFC 8259 / explicit CSV and TSV dialect / XML 1.0 / TOML 1.0 subset as applicable",
        "runtime": "CPython 3.9.6; json, csv, ElementTree; installed Tomli 1.0.3; macOS 27.0.1",
        "operating_systems": [
          "macOS 27.0.1 only; other systems untested"
        ],
        "notes": "Run each .py with the installed Python interpreter. Tests use CPython 3.9.6, which is unsupported upstream. JSON, CSV and XML use the standard library. TOML uses the already installed pip._vendor.tomli 1.0.3 fallback; this private API may change or disappear and is not a stable public pip interface. The preferred tomllib branch requires an already installed Python 3.11+ and is not tested here. No dependency is installed. XML examples are limited to tiny trusted authored strings; do not reuse their entry points for untrusted XML."
      },
      "risk_level": "low",
      "risk_note": "Authored bounded local examples only; no network, credentials or execution of parsed data. XML trust boundary must be preserved.",
      "pack_ids": [
        "data-formats-foundations"
      ]
    },
    {
      "id": "ini",
      "name": "INI",
      "aliases": [],
      "kind": "configuration format",
      "families": [
        "data"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "xml-schema",
      "name": "XML Schema",
      "aliases": [
        "XSD"
      ],
      "kind": "schema language",
      "families": [
        "data"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "protocol-buffers-schema",
      "name": "Protocol Buffers schema",
      "aliases": [
        "Protobuf"
      ],
      "kind": "interface definition language",
      "families": [
        "data"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "apache-avro-schema",
      "name": "Apache Avro schema",
      "aliases": [
        "Avro"
      ],
      "kind": "schema language",
      "families": [
        "data"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "hcl",
      "name": "HCL",
      "aliases": [],
      "kind": "configuration language",
      "families": [
        "data"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "jsonnet",
      "name": "Jsonnet",
      "aliases": [],
      "kind": "data templating language",
      "families": [
        "data"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "dhall",
      "name": "Dhall",
      "aliases": [],
      "kind": "configuration language",
      "families": [
        "data"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "cue",
      "name": "CUE",
      "aliases": [],
      "kind": "constraint and configuration language",
      "families": [
        "data"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "edn",
      "name": "EDN",
      "aliases": [],
      "kind": "data format",
      "families": [
        "data"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "csv",
      "name": "CSV",
      "aliases": [],
      "kind": "tabular data format",
      "families": [
        "data"
      ],
      "status": "tested",
      "official_sources": [
        {
          "id": "data-csv-spec",
          "title": "IETF RFC 4180: CSV",
          "url": "https://www.rfc-editor.org/rfc/rfc4180",
          "scope": "Common CSV form; informational RFC, not all dialects.",
          "verified_on": "2026-10-25",
          "type": "official documentation or specification"
        },
        {
          "id": "data-csv-python",
          "title": "Python 3.9: csv",
          "url": "https://docs.python.org/3.9/library/csv.html",
          "scope": "Dialects, reader/writer and newline handling.",
          "verified_on": "2026-10-25",
          "type": "official documentation or specification"
        }
      ],
      "source_verified_on": "2026-10-25",
      "source_note": "Sources checked for this introductory pack only; no complete standards conformance claim.",
      "constraints": {
        "language_version": "JSON RFC 8259 / explicit CSV and TSV dialect / XML 1.0 / TOML 1.0 subset as applicable",
        "runtime": "CPython 3.9.6; json, csv, ElementTree; installed Tomli 1.0.3; macOS 27.0.1",
        "operating_systems": [
          "macOS 27.0.1 only; other systems untested"
        ],
        "notes": "Run each .py with the installed Python interpreter. Tests use CPython 3.9.6, which is unsupported upstream. JSON, CSV and XML use the standard library. TOML uses the already installed pip._vendor.tomli 1.0.3 fallback; this private API may change or disappear and is not a stable public pip interface. The preferred tomllib branch requires an already installed Python 3.11+ and is not tested here. No dependency is installed. XML examples are limited to tiny trusted authored strings; do not reuse their entry points for untrusted XML."
      },
      "risk_level": "low",
      "risk_note": "Authored bounded local examples only; no network, credentials or execution of parsed data. XML trust boundary must be preserved.",
      "pack_ids": [
        "data-formats-foundations"
      ]
    },
    {
      "id": "tsv",
      "name": "TSV",
      "aliases": [],
      "kind": "tabular data format",
      "families": [
        "data"
      ],
      "status": "tested",
      "official_sources": [
        {
          "id": "data-csv-spec",
          "title": "IETF RFC 4180: CSV",
          "url": "https://www.rfc-editor.org/rfc/rfc4180",
          "scope": "Common CSV form; informational RFC, not all dialects.",
          "verified_on": "2026-10-25",
          "type": "official documentation or specification"
        },
        {
          "id": "data-csv-python",
          "title": "Python 3.9: csv",
          "url": "https://docs.python.org/3.9/library/csv.html",
          "scope": "Dialects, reader/writer and newline handling.",
          "verified_on": "2026-10-25",
          "type": "official documentation or specification"
        }
      ],
      "source_verified_on": "2026-10-25",
      "source_note": "Sources checked for this introductory pack only; no complete standards conformance claim.",
      "constraints": {
        "language_version": "JSON RFC 8259 / explicit CSV and TSV dialect / XML 1.0 / TOML 1.0 subset as applicable",
        "runtime": "CPython 3.9.6; json, csv, ElementTree; installed Tomli 1.0.3; macOS 27.0.1",
        "operating_systems": [
          "macOS 27.0.1 only; other systems untested"
        ],
        "notes": "Run each .py with the installed Python interpreter. Tests use CPython 3.9.6, which is unsupported upstream. JSON, CSV and XML use the standard library. TOML uses the already installed pip._vendor.tomli 1.0.3 fallback; this private API may change or disappear and is not a stable public pip interface. The preferred tomllib branch requires an already installed Python 3.11+ and is not tested here. No dependency is installed. XML examples are limited to tiny trusted authored strings; do not reuse their entry points for untrusted XML."
      },
      "risk_level": "low",
      "risk_note": "Authored bounded local examples only; no network, credentials or execution of parsed data. XML trust boundary must be preserved.",
      "pack_ids": [
        "data-formats-foundations"
      ]
    },
    {
      "id": "asn-1",
      "name": "ASN.1",
      "aliases": [],
      "kind": "interface definition language",
      "families": [
        "data"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "apache-thrift-idl",
      "name": "Apache Thrift IDL",
      "aliases": [],
      "kind": "interface definition language",
      "families": [
        "data"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "capn-proto-schema",
      "name": "Cap'n Proto schema",
      "aliases": [],
      "kind": "interface definition language",
      "families": [
        "data"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "web-idl",
      "name": "Web IDL",
      "aliases": [],
      "kind": "interface definition language",
      "families": [
        "data"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "openapi",
      "name": "OpenAPI",
      "aliases": [],
      "kind": "API description specification",
      "families": [
        "data"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "makefile",
      "name": "Makefile",
      "aliases": [
        "Make"
      ],
      "kind": "build language",
      "families": [
        "build"
      ],
      "status": "tested",
      "official_sources": [
        {
          "id": "make-381-manual",
          "title": "GNU Make 3.81 manual source",
          "url": "https://raw.githubusercontent.com/mirror/make/3.81/doc/make.texi",
          "scope": "Pinned upstream manual: rules, variables, recipes, automatic variables, order-only prerequisites and failure behavior.",
          "verified_on": "2026-10-25",
          "type": "maintainer documentation"
        },
        {
          "id": "make-installed-manual",
          "title": "Installed GNU Make command manual",
          "url": "man:make(1)",
          "scope": "Installed command flags; read with man make on this tested Mac.",
          "verified_on": "2026-10-25",
          "type": "installed official manual"
        }
      ],
      "source_verified_on": "2026-10-25",
      "source_note": "Official references plus recorded execution support introductory scope only; no full-language or dialect conformance claim.",
      "constraints": {
        "language_version": "GNU Make 3.81; macOS 27.0.1 arm64; /bin/sh recipes",
        "runtime": "GNU Make 3.81 is the installed older implementation. Save each example and its companions in a separate NEW practice directory. Run /usr/bin/make -rR --no-print-directory -f \"Example.mk\" (replace the filename). Recipe lines begin with a literal tab. Outputs are fixed toy filenames inside that directory. Built-in rules/variables are disabled; /bin/sh runs recipes. Do not run untrusted makefiles, pass untrusted variable overrides or point at existing documents. make -n is NOT a sandbox: makefile evaluation, included files and recursive commands can execute code. No .ONESHELL, grouped targets, downloads, recursive builds or destructive clean targets are used.",
        "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
        "notes": "Build-language basics: targets, prerequisite graphs, timestamps, phony actions, variables, automatic variables, pattern rules, order-only prerequisites, failure and observable tests. Not a general-purpose language or a replacement shell tutorial."
      },
      "risk_level": "moderate",
      "risk_note": "Compiled programs and Make recipes can invoke processes and affect files. Only fixed authored sources in fresh toy directories are exercised; not a sandbox.",
      "pack_ids": [
        "makefile-foundations"
      ]
    },
    {
      "id": "cmake-language",
      "name": "CMake language",
      "aliases": [
        "CMake"
      ],
      "kind": "build language",
      "families": [
        "build"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "high",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "starlark",
      "name": "Starlark",
      "aliases": [],
      "kind": "configuration language",
      "families": [
        "build"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "high",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "nix",
      "name": "Nix",
      "aliases": [],
      "kind": "expression language",
      "families": [
        "build"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "high",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "dockerfile",
      "name": "Dockerfile",
      "aliases": [],
      "kind": "build recipe format",
      "families": [
        "build"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "high",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "bicep",
      "name": "Bicep",
      "aliases": [],
      "kind": "infrastructure language",
      "families": [
        "build"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "high",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "rego",
      "name": "Rego",
      "aliases": [],
      "kind": "policy language",
      "families": [
        "build"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "high",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "meson-language",
      "name": "Meson language",
      "aliases": [
        "Meson"
      ],
      "kind": "build language",
      "families": [
        "build"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "high",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "justfile",
      "name": "Justfile",
      "aliases": [
        "Just"
      ],
      "kind": "command recipe language",
      "families": [
        "build"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "high",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "taskfile",
      "name": "Taskfile",
      "aliases": [],
      "kind": "task configuration format",
      "families": [
        "build"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "high",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "puppet-language",
      "name": "Puppet language",
      "aliases": [],
      "kind": "configuration language",
      "families": [
        "build"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "high",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "kconfig",
      "name": "Kconfig",
      "aliases": [],
      "kind": "configuration language",
      "families": [
        "build"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "high",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "glsl",
      "name": "GLSL",
      "aliases": [],
      "kind": "shader language",
      "families": [
        "gpu"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "hlsl",
      "name": "HLSL",
      "aliases": [],
      "kind": "shader language",
      "families": [
        "gpu"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "wgsl",
      "name": "WGSL",
      "aliases": [],
      "kind": "shader language",
      "families": [
        "gpu"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "metal-shading-language",
      "name": "Metal Shading Language",
      "aliases": [
        "MSL"
      ],
      "kind": "shader language",
      "families": [
        "gpu"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "cuda-cpp",
      "name": "CUDA C++",
      "aliases": [
        "CUDA"
      ],
      "kind": "language extension",
      "families": [
        "gpu"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "opencl-c",
      "name": "OpenCL C",
      "aliases": [
        "OpenCL"
      ],
      "kind": "kernel language",
      "families": [
        "gpu"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "ispc",
      "name": "ISPC",
      "aliases": [],
      "kind": "SPMD language",
      "families": [
        "gpu"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "verilog",
      "name": "Verilog",
      "aliases": [],
      "kind": "hardware description language",
      "families": [
        "hardware"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "high",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "systemverilog",
      "name": "SystemVerilog",
      "aliases": [],
      "kind": "hardware description and verification language",
      "families": [
        "hardware"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "high",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "vhdl",
      "name": "VHDL",
      "aliases": [],
      "kind": "hardware description language",
      "families": [
        "hardware"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "high",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "chisel",
      "name": "Chisel",
      "aliases": [],
      "kind": "hardware construction DSL",
      "families": [
        "hardware"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "high",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "iec-61131-3-structured-text",
      "name": "IEC 61131-3 Structured Text",
      "aliases": [
        "ST"
      ],
      "kind": "PLC language",
      "families": [
        "hardware"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "high",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "iec-61131-3-ladder-diagram",
      "name": "IEC 61131-3 Ladder Diagram",
      "aliases": [
        "LD",
        "ladder logic"
      ],
      "kind": "graphical PLC language",
      "families": [
        "hardware"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "high",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "iec-61131-3-function-block-diagram",
      "name": "IEC 61131-3 Function Block Diagram",
      "aliases": [
        "FBD"
      ],
      "kind": "graphical PLC language",
      "families": [
        "hardware"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "high",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "iec-61131-3-sequential-function-chart",
      "name": "IEC 61131-3 Sequential Function Chart",
      "aliases": [
        "SFC"
      ],
      "kind": "PLC sequencing notation",
      "families": [
        "hardware"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "high",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "iec-61131-3-instruction-list",
      "name": "IEC 61131-3 Instruction List",
      "aliases": [
        "IL"
      ],
      "kind": "legacy PLC language",
      "families": [
        "hardware"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "high",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "g-code",
      "name": "G-code",
      "aliases": [],
      "kind": "machine instruction language",
      "families": [
        "hardware"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "high",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "bluespec-systemverilog",
      "name": "Bluespec SystemVerilog",
      "aliases": [],
      "kind": "hardware description language",
      "families": [
        "hardware"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "high",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "vhdl-ams",
      "name": "VHDL-AMS",
      "aliases": [],
      "kind": "hardware modeling language",
      "families": [
        "hardware"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "high",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "verilog-ams",
      "name": "Verilog-AMS",
      "aliases": [],
      "kind": "hardware modeling language",
      "families": [
        "hardware"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "high",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "gdscript",
      "name": "GDScript",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "games"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "luau",
      "name": "Luau",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "games"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "gamemaker-language",
      "name": "GameMaker Language",
      "aliases": [
        "GML"
      ],
      "kind": "programming language",
      "families": [
        "games"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "unreal-blueprints",
      "name": "Unreal Blueprints",
      "aliases": [
        "Blueprints"
      ],
      "kind": "visual scripting system",
      "families": [
        "games"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "processing-language",
      "name": "Processing language",
      "aliases": [
        "Processing"
      ],
      "kind": "Java-based language dialect",
      "families": [
        "games"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "smalltalk",
      "name": "Smalltalk",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "games"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "scratch",
      "name": "Scratch",
      "aliases": [],
      "kind": "block-based programming language",
      "families": [
        "games"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "snap",
      "name": "Snap!",
      "aliases": [
        "Snap"
      ],
      "kind": "block-based programming language",
      "families": [
        "games"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "logo",
      "name": "Logo",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "games"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "netlogo",
      "name": "NetLogo",
      "aliases": [],
      "kind": "agent modeling language",
      "families": [
        "games"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "haxe",
      "name": "Haxe",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "games"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "alice",
      "name": "Alice",
      "aliases": [],
      "kind": "educational visual programming system",
      "families": [
        "games"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "supercollider-language",
      "name": "SuperCollider language",
      "aliases": [
        "sclang"
      ],
      "kind": "programming language",
      "families": [
        "music"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "csound",
      "name": "Csound",
      "aliases": [],
      "kind": "audio programming language",
      "families": [
        "music"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "chuck",
      "name": "ChucK",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "music"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "faust",
      "name": "Faust",
      "aliases": [],
      "kind": "signal processing language",
      "families": [
        "music"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "pure-data",
      "name": "Pure Data",
      "aliases": [
        "Pd"
      ],
      "kind": "visual dataflow language",
      "families": [
        "music"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "max",
      "name": "Max",
      "aliases": [
        "Max/MSP"
      ],
      "kind": "visual dataflow language",
      "families": [
        "music"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "tidalcycles",
      "name": "TidalCycles",
      "aliases": [],
      "kind": "Haskell DSL",
      "families": [
        "music"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "sonic-pi",
      "name": "Sonic Pi",
      "aliases": [],
      "kind": "Ruby-based music DSL",
      "families": [
        "music"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "strudel",
      "name": "Strudel",
      "aliases": [],
      "kind": "JavaScript-based music DSL",
      "families": [
        "music"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "nyquist",
      "name": "Nyquist",
      "aliases": [],
      "kind": "audio programming language",
      "families": [
        "music"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "lilypond",
      "name": "LilyPond",
      "aliases": [],
      "kind": "music engraving language",
      "families": [
        "music"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "abc-notation",
      "name": "ABC notation",
      "aliases": [
        "ABC"
      ],
      "kind": "music notation format",
      "families": [
        "music"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "cobol",
      "name": "COBOL",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "enterprise"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "pli",
      "name": "PL/I",
      "aliases": [
        "PLI"
      ],
      "kind": "programming language",
      "families": [
        "enterprise"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "rpg",
      "name": "RPG",
      "aliases": [
        "ILE RPG"
      ],
      "kind": "programming language",
      "families": [
        "enterprise"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "abap",
      "name": "ABAP",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "enterprise"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "apex",
      "name": "Apex",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "enterprise"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "visual-basic-for-applications",
      "name": "Visual Basic for Applications",
      "aliases": [
        "VBA"
      ],
      "kind": "programming language",
      "families": [
        "enterprise"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "classic-visual-basic",
      "name": "Classic Visual Basic",
      "aliases": [
        "VB6"
      ],
      "kind": "programming language",
      "families": [
        "enterprise"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "vbscript",
      "name": "VBScript",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "enterprise"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "jcl",
      "name": "JCL",
      "aliases": [],
      "kind": "job control language",
      "families": [
        "enterprise"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "natural",
      "name": "Natural",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "enterprise"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "sas-macro-language",
      "name": "SAS macro language",
      "aliases": [],
      "kind": "macro language",
      "families": [
        "enterprise"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "mumps",
      "name": "MUMPS",
      "aliases": [
        "M"
      ],
      "kind": "programming language",
      "families": [
        "enterprise"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "visual-foxpro",
      "name": "Visual FoxPro",
      "aliases": [
        "FoxPro"
      ],
      "kind": "programming language",
      "families": [
        "enterprise"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "eiffel",
      "name": "Eiffel",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "enterprise"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "openedge-abl",
      "name": "OpenEdge ABL",
      "aliases": [
        "Progress 4GL"
      ],
      "kind": "programming language",
      "families": [
        "enterprise"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "peoplecode",
      "name": "PeopleCode",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "enterprise"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "rpl",
      "name": "RPL",
      "aliases": [],
      "kind": "stack-based calculator language",
      "families": [
        "history"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "prolog",
      "name": "Prolog",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "formal"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "mercury",
      "name": "Mercury",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "formal"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "minikanren",
      "name": "miniKanren",
      "aliases": [],
      "kind": "logic language family",
      "families": [
        "formal"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "lean",
      "name": "Lean",
      "aliases": [],
      "kind": "proof assistant language",
      "families": [
        "formal"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "rocq",
      "name": "Rocq",
      "aliases": [
        "Coq"
      ],
      "kind": "proof assistant language",
      "families": [
        "formal"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "agda",
      "name": "Agda",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "formal"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "idris",
      "name": "Idris",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "formal"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "isabelle-isar",
      "name": "Isabelle/Isar",
      "aliases": [
        "Isabelle"
      ],
      "kind": "proof language",
      "families": [
        "formal"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "tla-plus",
      "name": "TLA+",
      "aliases": [
        "TLA"
      ],
      "kind": "formal specification language",
      "families": [
        "formal"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "pluscal",
      "name": "PlusCal",
      "aliases": [],
      "kind": "algorithm language",
      "families": [
        "formal"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "alloy",
      "name": "Alloy",
      "aliases": [],
      "kind": "modeling language",
      "families": [
        "formal"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "dafny",
      "name": "Dafny",
      "aliases": [],
      "kind": "verification language",
      "families": [
        "formal"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "whyml",
      "name": "WhyML",
      "aliases": [],
      "kind": "verification language",
      "families": [
        "formal"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "smt-lib",
      "name": "SMT-LIB",
      "aliases": [],
      "kind": "solver input language",
      "families": [
        "formal"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "z-notation",
      "name": "Z notation",
      "aliases": [
        "Z"
      ],
      "kind": "formal specification language",
      "families": [
        "formal"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "event-b",
      "name": "Event-B",
      "aliases": [],
      "kind": "formal modeling language",
      "families": [
        "formal"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "vdm-sl",
      "name": "VDM-SL",
      "aliases": [],
      "kind": "formal specification language",
      "families": [
        "formal"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "webassembly-text-format",
      "name": "WebAssembly text format",
      "aliases": [
        "WAT"
      ],
      "kind": "assembly-like text format",
      "families": [
        "compiler"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "llvm-ir",
      "name": "LLVM IR",
      "aliases": [],
      "kind": "intermediate representation",
      "families": [
        "compiler"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "regular-expressions",
      "name": "Regular expressions",
      "aliases": [
        "regex",
        "regexp"
      ],
      "kind": "pattern language family",
      "families": [
        "compiler"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "parsing-expression-grammar",
      "name": "Parsing expression grammar",
      "aliases": [
        "PEG"
      ],
      "kind": "grammar formalism",
      "families": [
        "compiler"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "antlr-grammar",
      "name": "ANTLR grammar",
      "aliases": [],
      "kind": "grammar language",
      "families": [
        "compiler"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "bison-grammar",
      "name": "Bison grammar",
      "aliases": [],
      "kind": "parser generator language",
      "families": [
        "compiler"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "yacc-grammar",
      "name": "Yacc grammar",
      "aliases": [],
      "kind": "parser generator language",
      "families": [
        "compiler"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "lex-specification",
      "name": "Lex specification",
      "aliases": [],
      "kind": "lexer generator language",
      "families": [
        "compiler"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "flex-specification",
      "name": "Flex specification",
      "aliases": [],
      "kind": "lexer generator language",
      "families": [
        "compiler"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "extended-backus-naur-form",
      "name": "Extended Backus-Naur form",
      "aliases": [
        "EBNF"
      ],
      "kind": "grammar notation family",
      "families": [
        "compiler"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "backus-naur-form",
      "name": "Backus-Naur form",
      "aliases": [
        "BNF"
      ],
      "kind": "grammar notation",
      "families": [
        "compiler"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "abnf",
      "name": "ABNF",
      "aliases": [],
      "kind": "grammar notation",
      "families": [
        "compiler"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "tree-sitter-grammar",
      "name": "Tree-sitter grammar",
      "aliases": [],
      "kind": "grammar DSL",
      "families": [
        "compiler"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "mlir",
      "name": "MLIR textual syntax",
      "aliases": [
        "MLIR"
      ],
      "kind": "intermediate representation notation",
      "families": [
        "compiler"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "solidity",
      "name": "Solidity",
      "aliases": [],
      "kind": "smart contract language",
      "families": [
        "specialist"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "high",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "vyper",
      "name": "Vyper",
      "aliases": [],
      "kind": "smart contract language",
      "families": [
        "specialist"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "high",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "move",
      "name": "Move",
      "aliases": [],
      "kind": "smart contract language family",
      "families": [
        "specialist"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "high",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "michelson",
      "name": "Michelson",
      "aliases": [],
      "kind": "smart contract language",
      "families": [
        "specialist"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "high",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "qsharp",
      "name": "Q#",
      "aliases": [
        "Q Sharp"
      ],
      "kind": "quantum language",
      "families": [
        "specialist"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "high",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "openqasm",
      "name": "OpenQASM",
      "aliases": [],
      "kind": "quantum assembly language",
      "families": [
        "specialist"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "high",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "p4",
      "name": "P4",
      "aliases": [],
      "kind": "packet processing language",
      "families": [
        "specialist"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "high",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "vala",
      "name": "Vala",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "specialist"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "high",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "gams",
      "name": "GAMS",
      "aliases": [],
      "kind": "optimization modeling language",
      "families": [
        "specialist"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "high",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "ampl",
      "name": "AMPL",
      "aliases": [],
      "kind": "optimization modeling language",
      "families": [
        "specialist"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "high",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "minizinc",
      "name": "MiniZinc",
      "aliases": [],
      "kind": "constraint modeling language",
      "families": [
        "specialist"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "high",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "basic",
      "name": "BASIC",
      "aliases": [],
      "kind": "language family",
      "families": [
        "history"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "algol",
      "name": "ALGOL",
      "aliases": [],
      "kind": "language family",
      "families": [
        "history"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "simula",
      "name": "Simula",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "history"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "bcpl",
      "name": "BCPL",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "history"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "modula-2",
      "name": "Modula-2",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "history"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "oberon",
      "name": "Oberon",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "history"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "io",
      "name": "Io",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "history"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "self",
      "name": "Self",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "history"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "icon",
      "name": "Icon",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "history"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "snobol",
      "name": "SNOBOL",
      "aliases": [],
      "kind": "language family",
      "families": [
        "history"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "factor",
      "name": "Factor",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "history"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "postscript",
      "name": "PostScript",
      "aliases": [],
      "kind": "page description language",
      "families": [
        "history"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "brainfuck",
      "name": "Brainfuck",
      "aliases": [],
      "kind": "esoteric language",
      "families": [
        "history"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "befunge",
      "name": "Befunge",
      "aliases": [],
      "kind": "esoteric language",
      "families": [
        "history"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "intercal",
      "name": "INTERCAL",
      "aliases": [],
      "kind": "esoteric language",
      "families": [
        "history"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "whitespace",
      "name": "Whitespace",
      "aliases": [],
      "kind": "esoteric language",
      "families": [
        "history"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "piet",
      "name": "Piet",
      "aliases": [],
      "kind": "visual esoteric language",
      "families": [
        "history"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "malbolge",
      "name": "Malbolge",
      "aliases": [],
      "kind": "esoteric language",
      "families": [
        "history"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "lolcode",
      "name": "LOLCODE",
      "aliases": [],
      "kind": "esoteric language",
      "families": [
        "history"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "apl2",
      "name": "APL2",
      "aliases": [],
      "kind": "APL dialect",
      "families": [
        "history"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "algol-68",
      "name": "ALGOL 68",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "history"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "modula-3",
      "name": "Modula-3",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "history"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "pl-m",
      "name": "PL/M",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "history"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "focal",
      "name": "FOCAL",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "history"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    },
    {
      "id": "comal",
      "name": "COMAL",
      "aliases": [],
      "kind": "programming language",
      "families": [
        "history"
      ],
      "status": "planned",
      "official_sources": [],
      "source_verified_on": null,
      "source_note": "Official-source research is pending. No tutorial or support claim is implied.",
      "constraints": {
        "language_version": "Not yet scoped",
        "runtime": "Not yet scoped",
        "operating_systems": [],
        "notes": "Runtime, dialect and operating-system constraints must be verified before drafting."
      },
      "risk_level": "medium",
      "risk_note": "Baseline for future execution recipes; does not indicate a defect in the language.",
      "pack_ids": []
    }
  ],
  "overlays": [
    {
      "id": "p5js",
      "name": "p5.js",
      "kind": "JavaScript library",
      "entry_ids": [
        "javascript"
      ],
      "status": "planned"
    },
    {
      "id": "openframeworks",
      "name": "openFrameworks",
      "kind": "C++ toolkit",
      "entry_ids": [
        "cpp"
      ],
      "status": "planned"
    },
    {
      "id": "nodejs",
      "name": "Node.js",
      "kind": "JavaScript runtime",
      "entry_ids": [
        "javascript"
      ],
      "status": "planned"
    },
    {
      "id": "deno",
      "name": "Deno",
      "kind": "JavaScript and TypeScript runtime",
      "entry_ids": [
        "javascript",
        "typescript"
      ],
      "status": "planned"
    },
    {
      "id": "bun",
      "name": "Bun",
      "kind": "JavaScript runtime and toolkit",
      "entry_ids": [
        "javascript",
        "typescript"
      ],
      "status": "planned"
    },
    {
      "id": "react",
      "name": "React",
      "kind": "UI library",
      "entry_ids": [
        "javascript",
        "typescript"
      ],
      "status": "planned"
    },
    {
      "id": "vue",
      "name": "Vue",
      "kind": "UI framework",
      "entry_ids": [
        "javascript",
        "typescript"
      ],
      "status": "planned"
    },
    {
      "id": "svelte",
      "name": "Svelte",
      "kind": "UI compiler and framework",
      "entry_ids": [
        "javascript",
        "typescript"
      ],
      "status": "planned"
    },
    {
      "id": "django",
      "name": "Django",
      "kind": "Python web framework",
      "entry_ids": [
        "python",
        "django-template-language"
      ],
      "status": "planned"
    },
    {
      "id": "flask",
      "name": "Flask",
      "kind": "Python web framework",
      "entry_ids": [
        "python"
      ],
      "status": "planned"
    },
    {
      "id": "fastapi",
      "name": "FastAPI",
      "kind": "Python web framework",
      "entry_ids": [
        "python"
      ],
      "status": "planned"
    },
    {
      "id": "rails",
      "name": "Ruby on Rails",
      "kind": "Ruby web framework",
      "entry_ids": [
        "ruby"
      ],
      "status": "planned"
    },
    {
      "id": "laravel",
      "name": "Laravel",
      "kind": "PHP framework",
      "entry_ids": [
        "php"
      ],
      "status": "planned"
    },
    {
      "id": "spring",
      "name": "Spring",
      "kind": "JVM framework",
      "entry_ids": [
        "java",
        "kotlin"
      ],
      "status": "planned"
    },
    {
      "id": "dotnet",
      "name": ".NET",
      "kind": "runtime and platform",
      "entry_ids": [
        "csharp",
        "fsharp",
        "visual-basic-net"
      ],
      "status": "planned"
    },
    {
      "id": "flutter",
      "name": "Flutter",
      "kind": "UI toolkit",
      "entry_ids": [
        "dart"
      ],
      "status": "planned"
    },
    {
      "id": "godot",
      "name": "Godot",
      "kind": "game engine",
      "entry_ids": [
        "gdscript",
        "csharp"
      ],
      "status": "planned"
    },
    {
      "id": "unity",
      "name": "Unity",
      "kind": "game engine",
      "entry_ids": [
        "csharp"
      ],
      "status": "planned"
    },
    {
      "id": "unreal",
      "name": "Unreal Engine",
      "kind": "game engine",
      "entry_ids": [
        "cpp",
        "unreal-blueprints"
      ],
      "status": "planned"
    },
    {
      "id": "terraform",
      "name": "Terraform",
      "kind": "infrastructure tool",
      "entry_ids": [
        "hcl"
      ],
      "status": "planned"
    },
    {
      "id": "ansible",
      "name": "Ansible",
      "kind": "automation tool",
      "entry_ids": [
        "yaml"
      ],
      "status": "planned"
    },
    {
      "id": "kubernetes",
      "name": "Kubernetes",
      "kind": "orchestration platform",
      "entry_ids": [
        "yaml"
      ],
      "status": "planned"
    },
    {
      "id": "git",
      "name": "Git",
      "kind": "version control tool",
      "entry_ids": [],
      "status": "planned"
    },
    {
      "id": "postgresql",
      "name": "PostgreSQL",
      "kind": "database runtime",
      "entry_ids": [
        "postgresql-sql",
        "pl-pgsql"
      ],
      "status": "planned"
    },
    {
      "id": "sqlite",
      "name": "SQLite",
      "kind": "database engine",
      "entry_ids": [
        "sqlite-sql"
      ],
      "status": "planned"
    },
    {
      "id": "jupyter",
      "name": "Jupyter",
      "kind": "notebook environment",
      "entry_ids": [
        "python",
        "r",
        "julia"
      ],
      "status": "planned"
    },
    {
      "id": "processing-env",
      "name": "Processing IDE",
      "kind": "creative coding environment",
      "entry_ids": [
        "processing-language"
      ],
      "status": "planned"
    },
    {
      "id": "docker",
      "name": "Docker",
      "kind": "container tool",
      "entry_ids": [
        "dockerfile"
      ],
      "status": "planned"
    },
    {
      "id": "llvm",
      "name": "LLVM",
      "kind": "compiler infrastructure",
      "entry_ids": [
        "llvm-ir"
      ],
      "status": "planned"
    },
    {
      "id": "cuda-toolkit",
      "name": "CUDA Toolkit",
      "kind": "GPU platform and tools",
      "entry_ids": [
        "cuda-cpp"
      ],
      "status": "planned"
    }
  ],
  "sources": [
    {
      "id": "html-mdn",
      "title": "MDN: Basic HTML syntax",
      "url": "https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/Structuring_content/Basic_HTML_syntax",
      "verified_on": "2026-10-25",
      "scope": "Elements, attributes, nesting and document structure.",
      "type": "maintainer documentation"
    },
    {
      "id": "html-spec",
      "title": "WHATWG HTML Living Standard",
      "url": "https://html.spec.whatwg.org/multipage/",
      "verified_on": "2026-10-25",
      "scope": "HTML semantics and document structure; living standard.",
      "type": "standard or specification"
    },
    {
      "id": "css-mdn",
      "title": "MDN: Getting started with CSS",
      "url": "https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/Styling_basics/Getting_started",
      "verified_on": "2026-10-25",
      "scope": "Selectors, declarations and classes.",
      "type": "maintainer documentation"
    },
    {
      "id": "css-box",
      "title": "MDN: Introduction to the CSS box model",
      "url": "https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Box_model/Introduction",
      "verified_on": "2026-10-25",
      "scope": "Content, padding, border and margin.",
      "type": "maintainer documentation"
    },
    {
      "id": "css-spec",
      "title": "W3C: CSS Display Module Level 3",
      "url": "https://www.w3.org/TR/css-display-3/",
      "verified_on": "2026-10-25",
      "scope": "Block and inline layout; candidate recommendation draft, not a browser support promise.",
      "type": "standard or specification"
    },
    {
      "id": "js-functions",
      "title": "MDN: JavaScript functions",
      "url": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Functions",
      "verified_on": "2026-10-25",
      "scope": "Parameters, return values and function scope.",
      "type": "maintainer documentation"
    },
    {
      "id": "dom-text",
      "title": "MDN: Node.textContent",
      "url": "https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent",
      "verified_on": "2026-10-25",
      "scope": "Plain text DOM updates rather than markup insertion.",
      "type": "maintainer documentation"
    },
    {
      "id": "dom-events",
      "title": "MDN: addEventListener",
      "url": "https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener",
      "verified_on": "2026-10-25",
      "scope": "Registering event handlers.",
      "type": "maintainer documentation"
    },
    {
      "id": "html-label",
      "title": "MDN: label element",
      "url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/label",
      "verified_on": "2026-10-25",
      "scope": "Explicit form label association.",
      "type": "maintainer documentation"
    },
    {
      "id": "storage",
      "title": "MDN: Window.localStorage",
      "url": "https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage",
      "verified_on": "2026-10-25",
      "scope": "file: persistence is not guaranteed and access can throw.",
      "type": "maintainer documentation"
    },
    {
      "id": "wcag",
      "title": "W3C: WCAG 2.2",
      "url": "https://www.w3.org/TR/WCAG22/",
      "verified_on": "2026-10-25",
      "scope": "Keyboard operation, labels, visible focus and text contrast. No conformance certification claimed.",
      "type": "standard or specification"
    },
    {
      "id": "css-grid",
      "title": "MDN: Basic concepts of grid layout",
      "url": "https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Grid_layout/Basic_concepts",
      "scope": "Grid tracks, repeat(3, 1fr) and gap.",
      "verified_on": "2026-10-25",
      "type": "maintainer documentation"
    },
    {
      "id": "css-media",
      "title": "MDN: Using media queries",
      "url": "https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Media_queries/Using",
      "scope": "Inclusive min-width viewport queries.",
      "verified_on": "2026-10-25",
      "type": "maintainer documentation"
    },
    {
      "id": "js-filter",
      "title": "MDN: Array.prototype.filter",
      "url": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter",
      "scope": "Selecting a matching subset without changing the source array.",
      "verified_on": "2026-10-25",
      "type": "maintainer documentation"
    },
    {
      "id": "js-reduce",
      "title": "MDN: Array.prototype.reduce",
      "url": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce",
      "scope": "Accumulation and an explicit initial value.",
      "verified_on": "2026-10-25",
      "type": "maintainer documentation"
    },
    {
      "id": "js-isfinite",
      "title": "MDN: Number.isFinite",
      "url": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isFinite",
      "scope": "Finite-number checks without coercion.",
      "verified_on": "2026-10-25",
      "type": "maintainer documentation"
    },
    {
      "id": "py-intro",
      "title": "Python 3.9 tutorial: Introduction",
      "url": "https://docs.python.org/3.9/tutorial/introduction.html",
      "scope": "Numbers, strings, lists and basic output.",
      "verified_on": "2026-10-25",
      "type": "official Python documentation"
    },
    {
      "id": "py-control",
      "title": "Python 3.9 tutorial: Control flow",
      "url": "https://docs.python.org/3.9/tutorial/controlflow.html",
      "scope": "if, for, range, function definitions and return values.",
      "verified_on": "2026-10-25",
      "type": "official Python documentation"
    },
    {
      "id": "py-data",
      "title": "Python 3.9 tutorial: Data structures",
      "url": "https://docs.python.org/3.9/tutorial/datastructures.html",
      "scope": "Lists, tuples, dictionaries, sets and comprehensions.",
      "verified_on": "2026-10-25",
      "type": "official Python documentation"
    },
    {
      "id": "py-io",
      "title": "Python 3.9 tutorial: Input and output",
      "url": "https://docs.python.org/3.9/tutorial/inputoutput.html",
      "scope": "Explicit text encoding, context managers and formatted output.",
      "verified_on": "2026-10-25",
      "type": "official Python documentation"
    },
    {
      "id": "py-errors",
      "title": "Python 3.9 tutorial: Errors and exceptions",
      "url": "https://docs.python.org/3.9/tutorial/errors.html",
      "scope": "Specific exception handling and cleanup.",
      "verified_on": "2026-10-25",
      "type": "official Python documentation"
    },
    {
      "id": "py-modules",
      "title": "Python 3.9 tutorial: Modules",
      "url": "https://docs.python.org/3.9/tutorial/modules.html",
      "scope": "Module imports and the __name__ main guard.",
      "verified_on": "2026-10-25",
      "type": "official Python documentation"
    },
    {
      "id": "py-unittest",
      "title": "Python 3.9 library: unittest",
      "url": "https://docs.python.org/3.9/library/unittest.html",
      "scope": "TestCase assertions and test runners.",
      "verified_on": "2026-10-25",
      "type": "official Python documentation"
    },
    {
      "id": "py-tempfile",
      "title": "Python 3.9 library: tempfile",
      "url": "https://docs.python.org/3.9/library/tempfile.html",
      "scope": "TemporaryDirectory lifecycle and cleanup.",
      "verified_on": "2026-10-25",
      "type": "official Python documentation"
    },
    {
      "id": "py-pathlib",
      "title": "Python 3.9 library: pathlib",
      "url": "https://docs.python.org/3.9/library/pathlib.html",
      "scope": "Path composition and UTF-8 text file operations.",
      "verified_on": "2026-10-25",
      "type": "official Python documentation"
    },
    {
      "id": "py-json",
      "title": "Python 3.9 library: json",
      "url": "https://docs.python.org/3.9/library/json.html",
      "scope": "JSON encoding/decoding and bounded input cautions.",
      "verified_on": "2026-10-25",
      "type": "official Python documentation"
    },
    {
      "id": "py-version-status",
      "title": "Python Developer Guide: version status",
      "url": "https://devguide.python.org/versions/",
      "scope": "Python 3.9 is no longer supported; the installed 3.9.6 runtime is a recorded local teaching environment, not a deployment recommendation.",
      "verified_on": "2026-10-25",
      "type": "official Python documentation"
    },
    {
      "id": "py-types",
      "title": "Python 3.9 library: Built-in types",
      "url": "https://docs.python.org/3.9/library/stdtypes.html",
      "scope": "Boolean and integer relationship, dictionary insertion order and string casefold.",
      "verified_on": "2026-10-25",
      "type": "official Python documentation"
    },
    {
      "id": "sql-select",
      "title": "SQLite SELECT",
      "url": "https://www.sqlite.org/lang_select.html",
      "scope": "Filtering, ordering and explicit joins.",
      "verified_on": "2026-10-25",
      "type": "official documentation"
    },
    {
      "id": "sql-schema",
      "title": "SQLite CREATE TABLE",
      "url": "https://www.sqlite.org/lang_createtable.html",
      "scope": "Keys, NOT NULL and CHECK constraints.",
      "verified_on": "2026-10-25",
      "type": "official documentation"
    },
    {
      "id": "sql-transactions",
      "title": "SQLite transactions",
      "url": "https://www.sqlite.org/lang_transaction.html",
      "scope": "BEGIN, COMMIT, ROLLBACK and single-writer scope.",
      "verified_on": "2026-10-25",
      "type": "official documentation"
    },
    {
      "id": "sql-expressions",
      "title": "SQLite expressions",
      "url": "https://www.sqlite.org/lang_expr.html",
      "scope": "NULL, CASE, comparisons and named parameters.",
      "verified_on": "2026-10-25",
      "type": "official documentation"
    },
    {
      "id": "sql-cli",
      "title": "SQLite command-line shell",
      "url": "https://www.sqlite.org/cli.html",
      "scope": "In-memory execution, safe mode, dot commands and the expression-evaluating .parameter command.",
      "verified_on": "2026-10-25",
      "type": "official documentation"
    },
    {
      "id": "sql-foreign-keys",
      "title": "SQLite foreign keys",
      "url": "https://www.sqlite.org/foreignkeys.html",
      "scope": "Enable enforcement per connection before a transaction.",
      "verified_on": "2026-10-25",
      "type": "official documentation"
    },
    {
      "id": "sql-types",
      "title": "SQLite datatypes",
      "url": "https://www.sqlite.org/datatype3.html",
      "scope": "Dynamic typing and affinity; no cross-dialect type guarantee.",
      "verified_on": "2026-10-25",
      "type": "official documentation"
    },
    {
      "id": "sql-quirks",
      "title": "SQLite quirks",
      "url": "https://www.sqlite.org/quirks.html",
      "scope": "Differences from other SQL implementations.",
      "verified_on": "2026-10-25",
      "type": "official documentation"
    },
    {
      "id": "sql-aggregate",
      "title": "SQLite aggregate functions",
      "url": "https://www.sqlite.org/lang_aggfunc.html",
      "scope": "COUNT, SUM and empty or NULL input.",
      "verified_on": "2026-10-25",
      "type": "official documentation"
    },
    {
      "id": "sql-cte",
      "title": "SQLite WITH clause",
      "url": "https://www.sqlite.org/lang_with.html",
      "scope": "Ordinary statement-scoped common table expressions.",
      "verified_on": "2026-10-25",
      "type": "official documentation"
    },
    {
      "id": "sql-bind",
      "title": "SQLite value binding API",
      "url": "https://www.sqlite.org/c3ref/bind_blob.html",
      "scope": "Bind literal values separately from statement structure; API discussion only, not an executed C example.",
      "verified_on": "2026-10-25",
      "type": "official documentation"
    },
    {
      "id": "sh-bash-manual",
      "title": "Installed Bash 3.2 manual",
      "url": "man:bash(1)",
      "scope": "Quoting, positional parameters, loops, functions, arrays, redirections and pipeline status. Read from /usr/share/man/man1/bash.1.",
      "verified_on": "2026-10-25",
      "type": "installed official manual"
    },
    {
      "id": "sh-selector",
      "title": "Installed macOS sh manual",
      "url": "man:sh(1)",
      "scope": "macOS sh selects an implementation; this host selects /bin/bash 3.2.57.",
      "verified_on": "2026-10-25",
      "type": "installed official manual"
    },
    {
      "id": "sh-mktemp",
      "title": "Installed macOS mktemp manual",
      "url": "man:mktemp(1)",
      "scope": "Create a unique directory using a template; platform utility, not a portable POSIX utility claim.",
      "verified_on": "2026-10-25",
      "type": "installed official manual"
    },
    {
      "id": "sh-zsh-grammar",
      "title": "Zsh shell grammar",
      "url": "https://zsh.sourceforge.io/Doc/Release/Shell-Grammar.html",
      "scope": "Pipelines, conditionals, quoting and exit status.",
      "verified_on": "2026-10-25",
      "type": "official documentation"
    },
    {
      "id": "sh-zsh-parameters",
      "title": "Zsh parameters",
      "url": "https://zsh.sourceforge.io/Doc/Release/Parameters.html",
      "scope": "Native array indexing and parameter behavior.",
      "verified_on": "2026-10-25",
      "type": "official documentation"
    },
    {
      "id": "sh-zsh-options",
      "title": "Zsh options",
      "url": "https://zsh.sourceforge.io/Doc/Release/Options.html",
      "scope": "Native options, SH_WORD_SPLIT and pipeline behavior.",
      "verified_on": "2026-10-25",
      "type": "official documentation"
    },
    {
      "id": "ts-basics",
      "title": "TypeScript: The basics",
      "url": "https://www.typescriptlang.org/docs/handbook/2/basic-types.html",
      "scope": "Static checks, erased types and JavaScript output.",
      "verified_on": "2026-10-25",
      "type": "official documentation or specification"
    },
    {
      "id": "ts-everyday",
      "title": "TypeScript: Everyday types",
      "url": "https://www.typescriptlang.org/docs/handbook/2/everyday-types.html",
      "scope": "Primitive, union and object types.",
      "verified_on": "2026-10-25",
      "type": "official documentation or specification"
    },
    {
      "id": "ts-narrowing",
      "title": "TypeScript: Narrowing",
      "url": "https://www.typescriptlang.org/docs/handbook/2/narrowing.html",
      "scope": "Guards, discriminators and never.",
      "verified_on": "2026-10-25",
      "type": "official documentation or specification"
    },
    {
      "id": "ts-functions",
      "title": "TypeScript: Functions",
      "url": "https://www.typescriptlang.org/docs/handbook/2/functions.html",
      "scope": "Function signatures and unknown.",
      "verified_on": "2026-10-25",
      "type": "official documentation or specification"
    },
    {
      "id": "ts-objects",
      "title": "TypeScript: Object types",
      "url": "https://www.typescriptlang.org/docs/handbook/2/objects.html",
      "scope": "Optional and readonly fields.",
      "verified_on": "2026-10-25",
      "type": "official documentation or specification"
    },
    {
      "id": "ts-generics",
      "title": "TypeScript: Generics",
      "url": "https://www.typescriptlang.org/docs/handbook/2/generics.html",
      "scope": "Relationships between types.",
      "verified_on": "2026-10-25",
      "type": "official documentation or specification"
    },
    {
      "id": "ts-strict",
      "title": "TypeScript: strict",
      "url": "https://www.typescriptlang.org/tsconfig/strict.html",
      "scope": "Strict checking group.",
      "verified_on": "2026-10-25",
      "type": "official documentation or specification"
    },
    {
      "id": "ts-no-emit",
      "title": "TypeScript: noEmitOnError",
      "url": "https://www.typescriptlang.org/tsconfig/noEmitOnError.html",
      "scope": "Suppress output on errors.",
      "verified_on": "2026-10-25",
      "type": "official documentation or specification"
    },
    {
      "id": "ts-indexed",
      "title": "TypeScript: noUncheckedIndexedAccess",
      "url": "https://www.typescriptlang.org/tsconfig/noUncheckedIndexedAccess.html",
      "scope": "Unchecked indices include undefined.",
      "verified_on": "2026-10-25",
      "type": "official documentation or specification"
    },
    {
      "id": "ts-optional",
      "title": "TypeScript: exactOptionalPropertyTypes",
      "url": "https://www.typescriptlang.org/tsconfig/exactOptionalPropertyTypes.html",
      "scope": "Absent versus undefined fields.",
      "verified_on": "2026-10-25",
      "type": "official documentation or specification"
    },
    {
      "id": "ts-module",
      "title": "TypeScript: Module reference",
      "url": "https://www.typescriptlang.org/docs/handbook/modules/reference.html",
      "scope": "Node16 and extension resolution.",
      "verified_on": "2026-10-25",
      "type": "official documentation or specification"
    },
    {
      "id": "data-json-spec",
      "title": "IETF RFC 8259: JSON",
      "url": "https://www.rfc-editor.org/rfc/rfc8259",
      "scope": "JSON syntax and interoperability.",
      "verified_on": "2026-10-25",
      "type": "official documentation or specification"
    },
    {
      "id": "data-json-python",
      "title": "Python 3.9: json",
      "url": "https://docs.python.org/3.9/library/json.html",
      "scope": "Parser defaults, hooks and serializer.",
      "verified_on": "2026-10-25",
      "type": "official documentation or specification"
    },
    {
      "id": "data-csv-spec",
      "title": "IETF RFC 4180: CSV",
      "url": "https://www.rfc-editor.org/rfc/rfc4180",
      "scope": "Common CSV form; informational RFC, not all dialects.",
      "verified_on": "2026-10-25",
      "type": "official documentation or specification"
    },
    {
      "id": "data-csv-python",
      "title": "Python 3.9: csv",
      "url": "https://docs.python.org/3.9/library/csv.html",
      "scope": "Dialects, reader/writer and newline handling.",
      "verified_on": "2026-10-25",
      "type": "official documentation or specification"
    },
    {
      "id": "data-xml-spec",
      "title": "W3C XML 1.0 fifth edition",
      "url": "https://www.w3.org/TR/xml/",
      "scope": "Well-formed XML and escaping.",
      "verified_on": "2026-10-25",
      "type": "official documentation or specification"
    },
    {
      "id": "data-xml-python",
      "title": "Python 3.9: ElementTree",
      "url": "https://docs.python.org/3.9/library/xml.etree.elementtree.html",
      "scope": "Tree construction, namespaces and parsing.",
      "verified_on": "2026-10-25",
      "type": "official documentation or specification"
    },
    {
      "id": "data-xml-security",
      "title": "Python 3.9: XML vulnerabilities",
      "url": "https://docs.python.org/3.9/library/xml.html#xml-vulnerabilities",
      "scope": "Untrusted XML boundary.",
      "verified_on": "2026-10-25",
      "type": "official documentation or specification"
    },
    {
      "id": "data-toml-spec",
      "title": "TOML 1.0.0 specification",
      "url": "https://toml.io/en/v1.0.0",
      "scope": "TOML 1.0 syntax and typed values.",
      "verified_on": "2026-10-25",
      "type": "official documentation or specification"
    },
    {
      "id": "data-tomllib",
      "title": "Python 3.11: tomllib",
      "url": "https://docs.python.org/3.11/library/tomllib.html",
      "scope": "Available since 3.11; documentation only, not installed execution evidence.",
      "verified_on": "2026-10-25",
      "type": "official documentation or specification"
    },
    {
      "id": "c-draft",
      "title": "WG14 N1570 C11 committee draft",
      "url": "https://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf",
      "scope": "Core objects, arrays, functions, storage duration, formatted output, allocation and conversion semantics used in the C17 subset; not a C17 draft or full-conformance claim.",
      "verified_on": "2026-10-25",
      "type": "official documentation, committee draft or author guidance"
    },
    {
      "id": "clang-user",
      "title": "Clang compiler user manual",
      "url": "https://clang.llvm.org/docs/UsersManual.html",
      "scope": "Compiler driver, standard modes and diagnostics; upstream documentation is not an Apple feature guarantee.",
      "verified_on": "2026-10-25",
      "type": "official documentation, committee draft or author guidance"
    },
    {
      "id": "clang-c-status",
      "title": "Clang C implementation status",
      "url": "https://clang.llvm.org/c_status.html",
      "scope": "C mode support and known limits; actual examples pin Apple Clang C17.",
      "verified_on": "2026-10-25",
      "type": "official documentation, committee draft or author guidance"
    },
    {
      "id": "clang-cpp-status",
      "title": "Clang C++ implementation status",
      "url": "https://clang.llvm.org/cxx_status.html",
      "scope": "C++20 mode and partial feature coverage; actual subset tested locally.",
      "verified_on": "2026-10-25",
      "type": "official documentation, committee draft or author guidance"
    },
    {
      "id": "libcpp-status",
      "title": "libc++ C++20 implementation status",
      "url": "https://libcxx.llvm.org/Status/Cxx20.html",
      "scope": "Library feature status; Apple-shipped version verified locally.",
      "verified_on": "2026-10-25",
      "type": "official documentation, committee draft or author guidance"
    },
    {
      "id": "cpp-guidelines",
      "title": "C++ Core Guidelines",
      "url": "https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines",
      "scope": "Ownership, lifetimes and resource management guidance, not normative standard text.",
      "verified_on": "2026-10-25",
      "type": "official documentation, committee draft or author guidance"
    },
    {
      "id": "cpp-lifetime",
      "title": "C++ working draft: object lifetime",
      "url": "https://eel.is/c++draft/basic.life",
      "scope": "Living working draft; lifetime concepts only, not a C++20 publication.",
      "verified_on": "2026-10-25",
      "type": "official documentation, committee draft or author guidance"
    },
    {
      "id": "cpp-unique",
      "title": "C++ working draft: unique ownership",
      "url": "https://eel.is/c++draft/unique.ptr",
      "scope": "Living draft; elementary unique_ptr ownership and move semantics, excluding later additions.",
      "verified_on": "2026-10-25",
      "type": "official documentation, committee draft or author guidance"
    },
    {
      "id": "cpp-span",
      "title": "C++ working draft: span",
      "url": "https://eel.is/c++draft/views.span",
      "scope": "Living draft; borrowing and length concepts; later span APIs excluded from C++20 exercises.",
      "verified_on": "2026-10-25",
      "type": "official documentation, committee draft or author guidance"
    },
    {
      "id": "cpp-optional",
      "title": "C++ working draft: optional",
      "url": "https://eel.is/c++draft/optional",
      "scope": "Living draft; engaged value and absence only; later APIs excluded.",
      "verified_on": "2026-10-25",
      "type": "official documentation, committee draft or author guidance"
    },
    {
      "id": "clang-asan",
      "title": "Clang AddressSanitizer",
      "url": "https://clang.llvm.org/docs/AddressSanitizer.html",
      "scope": "Instrumented checking of some memory errors on executed paths; not safety proof.",
      "verified_on": "2026-10-25",
      "type": "official documentation, committee draft or author guidance"
    },
    {
      "id": "clang-ubsan",
      "title": "Clang UndefinedBehaviorSanitizer",
      "url": "https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html",
      "scope": "Checks for selected undefined behavior; coverage is incomplete.",
      "verified_on": "2026-10-25",
      "type": "official documentation, committee draft or author guidance"
    },
    {
      "id": "cpp-from-chars",
      "title": "C++ working draft: from_chars",
      "url": "https://eel.is/c++draft/charconv.from.chars",
      "scope": "Living draft; integer error code, end-pointer and no-throw concepts available in the exercised C++20 subset. Later constexpr additions are not used.",
      "verified_on": "2026-10-25",
      "type": "committee working draft"
    },
    {
      "id": "ruby-eol",
      "title": "Ruby 2.6.10 release and end of life",
      "url": "https://www.ruby-lang.org/en/news/2022/04/12/ruby-2-6-10-released/",
      "scope": "Installed 2.6.10 is end of life; offline teaching only.",
      "verified_on": "2026-10-25"
    },
    {
      "id": "ruby-control",
      "title": "Ruby 2.6 control expressions",
      "url": "https://docs.ruby-lang.org/en/2.6.0/syntax/control_expressions_rdoc.html",
      "scope": "Truth values, branches, loops and blocks.",
      "verified_on": "2026-10-25"
    },
    {
      "id": "ruby-methods",
      "title": "Ruby 2.6 methods",
      "url": "https://docs.ruby-lang.org/en/2.6.0/syntax/methods_rdoc.html",
      "scope": "Method parameters and return semantics.",
      "verified_on": "2026-10-25"
    },
    {
      "id": "ruby-kernel",
      "title": "Ruby 2.6 Kernel",
      "url": "https://docs.ruby-lang.org/en/2.6.0/Kernel.html",
      "scope": "Integer conversion, exceptions, require_relative and Kernel.open process boundary.",
      "verified_on": "2026-10-25"
    },
    {
      "id": "ruby-array",
      "title": "Ruby 2.6 Array",
      "url": "https://docs.ruby-lang.org/en/2.6.0/Array.html",
      "scope": "Array iteration and shallow collection copying.",
      "verified_on": "2026-10-25"
    },
    {
      "id": "ruby-hash",
      "title": "Ruby 2.6 Hash",
      "url": "https://docs.ruby-lang.org/en/2.6.0/Hash.html",
      "scope": "Keys, fetch and shared defaults.",
      "verified_on": "2026-10-25"
    },
    {
      "id": "ruby-string",
      "title": "Ruby 2.6 String",
      "url": "https://docs.ruby-lang.org/en/2.6.0/String.html",
      "scope": "Mutation, character and byte lengths.",
      "verified_on": "2026-10-25"
    },
    {
      "id": "ruby-io",
      "title": "Ruby 2.6 IO",
      "url": "https://docs.ruby-lang.org/en/2.6.0/IO.html",
      "scope": "Block closing and explicit encoding.",
      "verified_on": "2026-10-25"
    },
    {
      "id": "ruby-tmpdir",
      "title": "Ruby 2.6.10 tmpdir source documentation",
      "url": "https://raw.githubusercontent.com/ruby/ruby/v2_6_10/lib/tmpdir.rb",
      "scope": "New temporary directory and block-scoped cleanup.",
      "verified_on": "2026-10-25"
    },
    {
      "id": "ruby-json",
      "title": "Ruby 2.6 JSON",
      "url": "https://docs.ruby-lang.org/en/2.6.0/JSON.html",
      "scope": "Serialization, parsing and object-additions boundary.",
      "verified_on": "2026-10-25"
    },
    {
      "id": "ruby-modules",
      "title": "Ruby 2.6 modules and classes",
      "url": "https://docs.ruby-lang.org/en/2.6.0/syntax/modules_and_classes_rdoc.html",
      "scope": "Namespaces and singleton methods.",
      "verified_on": "2026-10-25"
    },
    {
      "id": "perl-intro",
      "title": "Perl 5.34.1 introduction",
      "url": "https://perldoc.perl.org/5.34.1/perlintro",
      "scope": "Scalar/list context, truth, lexical variables and control flow.",
      "verified_on": "2026-10-25"
    },
    {
      "id": "perl-subs",
      "title": "Perl 5.34.1 subroutines",
      "url": "https://perldoc.perl.org/5.34.1/perlsub",
      "scope": "Argument array and explicit returns.",
      "verified_on": "2026-10-25"
    },
    {
      "id": "perl-ref",
      "title": "Perl 5.34.1 references",
      "url": "https://perldoc.perl.org/5.34.1/perlref",
      "scope": "Nested arrays, references and aliasing.",
      "verified_on": "2026-10-25"
    },
    {
      "id": "perl-regex",
      "title": "Perl 5.34.1 regular expressions",
      "url": "https://perldoc.perl.org/5.34.1/perlre",
      "scope": "Whole-string anchors and literal quoting.",
      "verified_on": "2026-10-25"
    },
    {
      "id": "perl-open",
      "title": "Perl 5.34.1 open",
      "url": "https://perldoc.perl.org/5.34.1/functions/open",
      "scope": "Three-argument open, lexical handles and encoding layers.",
      "verified_on": "2026-10-25"
    },
    {
      "id": "perl-temp",
      "title": "Perl 5.34.1 File::Temp",
      "url": "https://perldoc.perl.org/5.34.1/File::Temp",
      "scope": "Unique toy directory and normal-exit cleanup.",
      "verified_on": "2026-10-25"
    },
    {
      "id": "perl-json",
      "title": "Perl 5.34.1 JSON::PP",
      "url": "https://perldoc.perl.org/5.34.1/JSON::PP",
      "scope": "Canonical encoding, bounded parser and scalar representation limits.",
      "verified_on": "2026-10-25"
    },
    {
      "id": "perl-modules",
      "title": "Perl 5.34.1 modules",
      "url": "https://perldoc.perl.org/5.34.1/perlmod",
      "scope": "Package namespace and module loading.",
      "verified_on": "2026-10-25"
    },
    {
      "id": "perl-run",
      "title": "Perl 5.34.1 invocation",
      "url": "https://raw.githubusercontent.com/Perl/perl5/v5.34.1/pod/perlrun.pod",
      "scope": "Syntax checking may run compile-time code; not an arbitrary-code sandbox.",
      "verified_on": "2026-10-25"
    },
    {
      "id": "perl-tests",
      "title": "Perl 5.34.1 Test::More",
      "url": "https://perldoc.perl.org/5.34.1/Test::More",
      "scope": "Named executed tests and TAP plan.",
      "verified_on": "2026-10-25"
    },
    {
      "id": "ruby-encoding",
      "title": "Ruby 2.6 Encoding",
      "url": "https://docs.ruby-lang.org/en/2.6.0/Encoding.html",
      "scope": "ASCII-compatible encoding guard; valid encoding is separate from application syntax.",
      "verified_on": "2026-10-25"
    },
    {
      "id": "swift-basics",
      "title": "Swift book: The Basics",
      "url": "https://raw.githubusercontent.com/swiftlang/swift-book/main/TSPL.docc/LanguageGuide/TheBasics.md",
      "scope": "Types, constants and optionals.",
      "verified_on": "2026-10-25",
      "type": "maintainer documentation"
    },
    {
      "id": "swift-collections",
      "title": "Swift book: Collection Types",
      "url": "https://raw.githubusercontent.com/swiftlang/swift-book/main/TSPL.docc/LanguageGuide/CollectionTypes.md",
      "scope": "Array, set and dictionary semantics.",
      "verified_on": "2026-10-25",
      "type": "maintainer documentation"
    },
    {
      "id": "swift-values",
      "title": "Swift book: Structures and Classes",
      "url": "https://raw.githubusercontent.com/swiftlang/swift-book/main/TSPL.docc/LanguageGuide/ClassesAndStructures.md",
      "scope": "Value versus reference semantics.",
      "verified_on": "2026-10-25",
      "type": "maintainer documentation"
    },
    {
      "id": "swift-functions",
      "title": "Swift book: Functions",
      "url": "https://raw.githubusercontent.com/swiftlang/swift-book/main/TSPL.docc/LanguageGuide/Functions.md",
      "scope": "Parameters, labels, return values and bounds-oriented function design.",
      "verified_on": "2026-10-25",
      "type": "maintainer documentation"
    },
    {
      "id": "swift-text",
      "title": "Swift book: Strings and Characters",
      "url": "https://raw.githubusercontent.com/swiftlang/swift-book/main/TSPL.docc/LanguageGuide/StringsAndCharacters.md",
      "scope": "Character, Unicode representation and string indexing.",
      "verified_on": "2026-10-25",
      "type": "maintainer documentation"
    },
    {
      "id": "swift-errors",
      "title": "Swift book: Error Handling",
      "url": "https://raw.githubusercontent.com/swiftlang/swift-book/main/TSPL.docc/LanguageGuide/ErrorHandling.md",
      "scope": "Throws, try and recoverable errors.",
      "verified_on": "2026-10-25",
      "type": "maintainer documentation"
    },
    {
      "id": "make-381-manual",
      "title": "GNU Make 3.81 manual source",
      "url": "https://raw.githubusercontent.com/mirror/make/3.81/doc/make.texi",
      "scope": "Pinned upstream manual: rules, variables, recipes, automatic variables, order-only prerequisites and failure behavior.",
      "verified_on": "2026-10-25",
      "type": "maintainer documentation"
    },
    {
      "id": "make-installed-manual",
      "title": "Installed GNU Make command manual",
      "url": "man:make(1)",
      "scope": "Installed command flags; read with man make on this tested Mac.",
      "verified_on": "2026-10-25",
      "type": "installed official manual"
    },
    {
      "id": "swift-flow",
      "title": "Swift book: Control Flow",
      "url": "https://raw.githubusercontent.com/swiftlang/swift-book/main/TSPL.docc/LanguageGuide/ControlFlow.md",
      "scope": "Branches, switch exhaustiveness and loops.",
      "verified_on": "2026-10-25",
      "type": "maintainer documentation"
    },
    {
      "id": "swift-arc",
      "title": "Swift book: Automatic Reference Counting",
      "url": "https://raw.githubusercontent.com/swiftlang/swift-book/main/TSPL.docc/LanguageGuide/AutomaticReferenceCounting.md",
      "scope": "Class instance lifetime and reference ownership; cycles are outside the exercised examples.",
      "verified_on": "2026-10-25",
      "type": "maintainer documentation"
    },
    {
      "id": "awk-local",
      "title": "Installed awk manual",
      "url": "man:awk(1)",
      "scope": "Installed 20200816 rules, records, fields, arrays, functions and I/O boundaries.",
      "verified_on": "2026-10-26",
      "type": "installed official manual"
    },
    {
      "id": "awk-upstream",
      "title": "One True Awk maintainer manual",
      "url": "https://raw.githubusercontent.com/onetrueawk/awk/master/awk.1",
      "scope": "Core semantics only; newer --csv support is excluded from this installed version.",
      "verified_on": "2026-10-26",
      "type": "maintainer documentation"
    },
    {
      "id": "sed-local",
      "title": "Installed macOS sed manual",
      "url": "man:sed(1)",
      "scope": "Editing cycle, addresses, substitution, hold space, branching and command-line flags.",
      "verified_on": "2026-10-26",
      "type": "installed official manual"
    },
    {
      "id": "sed-apple",
      "title": "Apple sed manual source",
      "url": "https://raw.githubusercontent.com/apple-oss-distributions/text_cmds/main/sed/sed.1",
      "scope": "Apple-maintained documentation; local binary and execution evidence remain authoritative.",
      "verified_on": "2026-10-26",
      "type": "maintainer documentation"
    },
    {
      "id": "regex-local",
      "title": "Installed regular-expression manual",
      "url": "man:re_format(7)",
      "scope": "Basic versus extended regular expressions; ASCII C-locale scope.",
      "verified_on": "2026-10-26",
      "type": "installed official manual"
    },
    {
      "id": "jq-manual",
      "title": "jq 1.7 manual",
      "url": "https://jqlang.org/manual/v1.7/",
      "scope": "Filter semantics, data parameters, input/output options and exit statuses.",
      "verified_on": "2026-10-26",
      "type": "maintainer documentation"
    },
    {
      "id": "jq-local",
      "title": "Installed jq manual",
      "url": "man:jq(1)",
      "scope": "Installed Apple jq 1.7.1 command-line behavior; executed examples remain authoritative.",
      "verified_on": "2026-10-26",
      "type": "installed official manual"
    },
    {
      "id": "xslt-spec",
      "title": "W3C XSLT 1.0 Recommendation",
      "url": "https://www.w3.org/TR/xslt-10/",
      "scope": "Templates, parameters, variables, keys, messages and serialization; version 1.0 only.",
      "verified_on": "2026-10-26",
      "type": "official specification"
    },
    {
      "id": "xpath-spec",
      "title": "W3C XPath 1.0 Recommendation",
      "url": "https://www.w3.org/TR/1999/REC-xpath-19991116/",
      "scope": "Supporting node selection, predicates, conversion and core functions only; standalone XPath remains planned.",
      "verified_on": "2026-10-26",
      "type": "official specification"
    },
    {
      "id": "xsltproc-manual",
      "title": "libxslt xsltproc manual",
      "url": "https://gnome.pages.gitlab.gnome.org/libxslt/xsltproc.html",
      "scope": "Command options, safety limits and separation of stylesheet/application errors.",
      "verified_on": "2026-10-26",
      "type": "maintainer documentation"
    },
    {
      "id": "xsltproc-local",
      "title": "Installed xsltproc manual",
      "url": "man:xsltproc(1)",
      "scope": "Installed libxslt 1.1.35 with libxml2 2.9.13; only local authored inputs and trusted stylesheets.",
      "verified_on": "2026-10-26",
      "type": "installed official manual"
    },
    {
      "id": "tcl-syntax",
      "title": "Tcl 8.5 command syntax",
      "url": "https://www.tcl-lang.org/man/tcl8.5/TclCmd/Tcl.htm",
      "scope": "Command words, substitution and grouping; web manual 8.5.19, tested interpreter 8.5.9.",
      "verified_on": "2026-10-26",
      "type": "maintainer documentation"
    },
    {
      "id": "tcl-list",
      "title": "Tcl 8.5 list",
      "url": "https://www.tcl-lang.org/man/tcl8.5/TclCmd/list.htm",
      "scope": "Structured list construction, not script interpolation.",
      "verified_on": "2026-10-26",
      "type": "maintainer documentation"
    },
    {
      "id": "tcl-expr",
      "title": "Tcl 8.5 expressions",
      "url": "https://www.tcl-lang.org/man/tcl8.5/TclCmd/expr.htm",
      "scope": "Braced expressions, numeric forms and comparison.",
      "verified_on": "2026-10-26",
      "type": "maintainer documentation"
    },
    {
      "id": "tcl-dict",
      "title": "Tcl 8.5 dictionaries",
      "url": "https://www.tcl-lang.org/man/tcl8.5/TclCmd/dict.htm",
      "scope": "Presence, accumulation and structured key-value data.",
      "verified_on": "2026-10-26",
      "type": "maintainer documentation"
    },
    {
      "id": "tcl-catch",
      "title": "Tcl 8.5 completion codes",
      "url": "https://www.tcl-lang.org/man/tcl8.5/TclCmd/catch.htm",
      "scope": "catch result/options and exceptional completion codes.",
      "verified_on": "2026-10-26",
      "type": "maintainer documentation"
    },
    {
      "id": "tcl-open",
      "title": "Tcl 8.5 open",
      "url": "https://www.tcl-lang.org/man/tcl8.5/TclCmd/open.htm",
      "scope": "Exclusive file creation and pipeline-path caveat.",
      "verified_on": "2026-10-26",
      "type": "maintainer documentation"
    },
    {
      "id": "tcl-channel",
      "title": "Tcl 8.5 channel configuration",
      "url": "https://www.tcl-lang.org/man/tcl8.5/TclCmd/fconfigure.htm",
      "scope": "Encoding, newline translation and buffering.",
      "verified_on": "2026-10-26",
      "type": "maintainer documentation"
    },
    {
      "id": "tcl-namespace",
      "title": "Tcl 8.5 namespaces",
      "url": "https://www.tcl-lang.org/man/tcl8.5/TclCmd/namespace.htm",
      "scope": "Qualified procedures and trusted namespace definitions.",
      "verified_on": "2026-10-26",
      "type": "maintainer documentation"
    },
    {
      "id": "tcl-proc-local",
      "title": "Installed Tcl proc manual",
      "url": "man:proc(n)",
      "scope": "Procedure arguments and local scope; web proc retrieval timed out.",
      "verified_on": "2026-10-26",
      "type": "installed official manual"
    },
    {
      "id": "tcl-release",
      "title": "Tcl 8.5 series release page",
      "url": "https://www.tcl-lang.org/software/tcltk/8.5.html",
      "scope": "Historical 8.5 series scope; no modern-runtime recommendation.",
      "verified_on": "2026-10-26",
      "type": "maintainer documentation"
    },
    {
      "id": "expect-local",
      "title": "Installed Expect manual",
      "url": "man:expect(1)",
      "scope": "spawn, send, exact/regexp matching, startup flags, timeout, exp_continue, EOF, wait and pseudo-terminal configuration.",
      "verified_on": "2026-10-26",
      "type": "installed official manual"
    },
    {
      "id": "expect-project",
      "title": "Expect project and successor notice",
      "url": "https://core.tcl-lang.org/expect/index",
      "scope": "Tcl extension role and old project notice; modern successor features excluded.",
      "verified_on": "2026-10-26",
      "type": "maintainer documentation"
    },
    {
      "id": "objc-overview",
      "title": "Apple: About Objective-C",
      "url": "https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/Introduction/Introduction.html",
      "scope": "Language and framework distinction. Archived guide; historical UI and network recipes excluded.",
      "verified_on": "2026-10-26",
      "type": "official archived documentation"
    },
    {
      "id": "objc-classes",
      "title": "Apple: Defining Classes",
      "url": "https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/DefiningClasses/DefiningClasses.html",
      "scope": "Interfaces, implementations and method declarations. Archived guide; historical UI and network recipes excluded.",
      "verified_on": "2026-10-26",
      "type": "official archived documentation"
    },
    {
      "id": "objc-objects",
      "title": "Apple: Working with Objects",
      "url": "https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/WorkingwithObjects/WorkingwithObjects.html",
      "scope": "Messages, initialization and nil. Archived guide; historical UI and network recipes excluded.",
      "verified_on": "2026-10-26",
      "type": "official archived documentation"
    },
    {
      "id": "objc-properties",
      "title": "Apple: Encapsulating Data",
      "url": "https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/EncapsulatingData/EncapsulatingData.html",
      "scope": "Property copying, ARC relationships and weak references. Archived guide; historical UI and network recipes excluded.",
      "verified_on": "2026-10-26",
      "type": "official archived documentation"
    },
    {
      "id": "objc-collections",
      "title": "Apple: Values and Collections",
      "url": "https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/FoundationTypesandCollections/FoundationTypesandCollections.html",
      "scope": "Boxing, object collections and absence. Archived guide; historical UI and network recipes excluded.",
      "verified_on": "2026-10-26",
      "type": "official archived documentation"
    },
    {
      "id": "objc-protocols",
      "title": "Apple: Working with Protocols",
      "url": "https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/WorkingwithProtocols/WorkingwithProtocols.html",
      "scope": "Declared protocol contracts. Archived guide; historical UI and network recipes excluded.",
      "verified_on": "2026-10-26",
      "type": "official archived documentation"
    },
    {
      "id": "objc-categories",
      "title": "Apple: Customizing Existing Classes",
      "url": "https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/CustomizingExistingClasses/CustomizingExistingClasses.html",
      "scope": "Class extensions and category method naming. Archived guide; historical UI and network recipes excluded.",
      "verified_on": "2026-10-26",
      "type": "official archived documentation"
    },
    {
      "id": "objc-blocks",
      "title": "Apple: Working with Blocks",
      "url": "https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/WorkingwithBlocks/WorkingwithBlocks.html",
      "scope": "Captures, __block and ownership cycles. Archived guide; historical UI and network recipes excluded.",
      "verified_on": "2026-10-26",
      "type": "official archived documentation"
    },
    {
      "id": "objc-errors",
      "title": "Apple: Dealing with Errors",
      "url": "https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/ErrorHandling/ErrorHandling.html",
      "scope": "Return values and NSError conventions. Archived guide; historical UI and network recipes excluded.",
      "verified_on": "2026-10-26",
      "type": "official archived documentation"
    },
    {
      "id": "objc-arc",
      "title": "Clang: Objective-C ARC",
      "url": "https://clang.llvm.org/docs/AutomaticReferenceCounting.html",
      "scope": "ARC flags and ownership semantics; Apple compiler subset is tested locally.",
      "verified_on": "2026-10-26",
      "type": "compiler documentation"
    },
    {
      "id": "objc-literals",
      "title": "Clang: Objective-C Literals",
      "url": "https://clang.llvm.org/docs/ObjectiveCLiterals.html",
      "scope": "Boxing and collection literal semantics; Apple compiler subset is tested locally.",
      "verified_on": "2026-10-26",
      "type": "compiler documentation"
    },
    {
      "id": "objc-string-units",
      "title": "Apple: Characters and Grapheme Clusters",
      "url": "https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/Strings/Articles/stringsClusters.html",
      "scope": "Archived NSString guide: UTF-16 units, composed sequences and range boundaries.",
      "verified_on": "2026-10-26",
      "type": "official archived documentation"
    }
  ],
  "workflow": [
    "planned",
    "sourced",
    "drafted",
    "tested",
    "reviewed",
    "released"
  ],
  "status_definitions": {
    "planned": "Named scope only; source and runtime research pending.",
    "sourced": "Relevant official sources verified.",
    "drafted": "Original pack authored; checks pending.",
    "tested": "Documented examples passed the recorded tests.",
    "reviewed": "Functional, accessibility and content review completed for defined scope.",
    "released": "Versioned downloadable edition published to the agreed local or Library destination."
  },
  "future_homes": [
    {
      "name": "Library",
      "host": "intent.purposed.in",
      "role": "Canonical learning catalogue and packs"
    },
    {
      "name": "AFG Tools",
      "host": "tools.allfrontierglobal.com",
      "role": "Interactive workbench"
    },
    {
      "name": "Live Vibe Coding",
      "host": "purposed.in",
      "role": "Guided walkthroughs"
    },
    {
      "name": "AFG Automation",
      "host": "automation.allfrontierglobal.com",
      "role": "Automation recipes"
    },
    {
      "name": "DeployCloud",
      "host": null,
      "role": "Deployment guides; target not yet resolved"
    },
    {
      "name": "ONE",
      "host": null,
      "role": "Optional AI assistance; target not yet resolved"
    }
  ],
  "deployment_status": "Local and downloadable. Website publication is outside this authoring release. Library save identities and versions are recorded in separate delivery receipts.",
  "packs": [
    {
      "id": "web-foundations",
      "title": "Web Foundations: HTML, CSS and JavaScript",
      "version": "0.10.0",
      "status": "tested",
      "entry_ids": [
        "html",
        "css",
        "javascript"
      ],
      "audience": "Beginners who can save a plain text file and open it in a browser.",
      "estimated_practice": "3 to 5 hours, at your own pace.",
      "scope": "Structure, styling, pure functions, input handling, events and local list filtering. No backend, deployment, authentication, network APIs or framework instruction.",
      "lessons": [
        {
          "title": "Start with a small, observable change",
          "text": "Save a copy of an example with an .html extension and open that copy in a browser. Keep the Atlas open as a reference. Change one value, reload the example and compare the result with its expected output. Use the browser developer tools console for errors and the Elements panel for structure and computed styles. The Atlas itself does not run pasted code. These examples are complete files, so there is no build step, package manager or server."
        },
        {
          "title": "HTML gives content its structure",
          "text": "Use a descriptive title, the page language and a viewport declaration. Put the main content in main, identify it with a meaningful h1, and use headings in a logical hierarchy. Lists express a collection of related items. Use buttons for actions and links for navigation. Associate a visible label with each input. These choices help readers, keyboards and assistive technology before any CSS or JavaScript is added. See examples 01 and 05."
        },
        {
          "title": "CSS controls presentation and layout",
          "text": "A rule pairs a selector with declarations. Scope a component with a class rather than changing every element globally. The box model distinguishes content, padding, border and margin; border-box includes padding and border within a declared width. In example 02, grid defines columns and gap separates the cards. Start with a narrow layout and add a media query only when the content benefits. Inspect the computed style when a declaration appears not to work."
        },
        {
          "title": "JavaScript transforms data and reacts to events",
          "text": "Use const when the binding will not be reassigned and let when state will change. A function takes inputs and returns a result; a return ends that function call. Keep calculations separate from DOM updates so boundary cases can be tested directly. Arrays hold ordered values; filter keeps matching items, while reduce combines them. Use explicit input validation rather than allowing text or missing values to become surprising numbers. See examples 03 and 06."
        },
        {
          "title": "Events connect behavior to controls",
          "text": "Use addEventListener to register a handler. Keep state and displayed output synchronized through one rendering function when multiple controls affect the same value. A form submit handler can use preventDefault to stay on the page. textContent inserts text without interpreting it as HTML; use it for names, search terms and other input. A polite status region can announce changes, but it does not replace visible text or proper labels. See examples 04 and 05."
        },
        {
          "title": "Debug with a reproducible observation",
          "text": "Record the smallest steps that show the problem, the input, expected output, actual output and exact error message. Check the first console error before treating later errors as independent failures. A missing DOM element often indicates a selector typo or code running before the element exists. A layout problem can come from the wrong selector, an overridden declaration or an overflowing width. Reduce the failing case, make one change, then rerun both the failing case and a normal case."
        },
        {
          "title": "Test behavior, boundaries and access",
          "text": "For each interaction test the initial state, a normal input, an empty or boundary input, repeated actions and recovery. Try Tab, Shift+Tab, Enter and Space on native controls. Check visible focus, narrow widths and text zoom. Confirm labels remain visible and errors offer a next action. Automated checks here cover recorded invariants in one browser; they do not prove every accessibility criterion or cross-browser behavior. A screen reader and another browser remain useful follow-up checks."
        },
        {
          "title": "Refactor and document after behavior is stable",
          "text": "Write down the observable contract before reorganizing code. Extract repeated rendering or validation into a named function; preserve inputs, outputs and error behavior. Rerun the same tests afterward. Document how to open the file, required runtime, expected output, limitations and test date. Do not put tokens, passwords or private work into a prompt preset. Export presets if you need a durable copy: file-URL localStorage behavior can vary or be blocked."
        }
      ],
      "reference": [
        {
          "area": "HTML",
          "syntax": "main / section / article",
          "meaning": "Main content; thematic group; independently meaningful content. Choose by meaning."
        },
        {
          "area": "HTML",
          "syntax": "h1 through h6",
          "meaning": "Headings describe hierarchy; do not choose a level only for its font size."
        },
        {
          "area": "HTML",
          "syntax": "label for=\"id\"",
          "meaning": "Associate a visible label with the input whose id matches."
        },
        {
          "area": "HTML",
          "syntax": "button type=\"button\"",
          "meaning": "An action button that does not implicitly submit a surrounding form."
        },
        {
          "area": "HTML",
          "syntax": "required / maxlength",
          "meaning": "Useful browser input constraints; still validate application-specific rules."
        },
        {
          "area": "CSS",
          "syntax": ".class / element / #id",
          "meaning": "Class, type and ID selectors target different sets of elements."
        },
        {
          "area": "CSS",
          "syntax": "box-sizing: border-box",
          "meaning": "Declared dimensions include padding and border; margin remains outside."
        },
        {
          "area": "CSS",
          "syntax": "display: grid / gap",
          "meaning": "Create a grid layout and separate its tracks without spacer elements."
        },
        {
          "area": "CSS",
          "syntax": "@media (min-width: 48rem)",
          "meaning": "Apply a rule only when the viewport condition matches."
        },
        {
          "area": "CSS",
          "syntax": ":focus-visible",
          "meaning": "Make keyboard focus easy to locate; never remove a useful outline without a replacement."
        },
        {
          "area": "JavaScript",
          "syntax": "const / let",
          "meaning": "Use const for bindings you do not reassign; let for bindings you do."
        },
        {
          "area": "JavaScript",
          "syntax": "Number.isFinite(value)",
          "meaning": "Accept a finite number without coercing a string to a number."
        },
        {
          "area": "JavaScript",
          "syntax": "array.filter / array.reduce",
          "meaning": "Build a subset; combine a sequence into a result."
        },
        {
          "area": "DOM",
          "syntax": "querySelector / createElement",
          "meaning": "Locate an element; create a new element explicitly."
        },
        {
          "area": "DOM",
          "syntax": "addEventListener / textContent",
          "meaning": "React to an event; display plain text."
        },
        {
          "area": "DOM",
          "syntax": "replaceChildren",
          "meaning": "Replace the child nodes, useful for reconstructing a small local result list."
        }
      ],
      "templates": [
        {
          "id": "build",
          "name": "Build a small example",
          "text": "Create a minimal {language} example for: {goal}. Runtime: {runtime}. Constraints: {constraints}. Explain the structure, provide complete local files, and give expected output plus manual checks. Do not add libraries unless requested."
        },
        {
          "id": "debug",
          "name": "Debug a reproducible failure",
          "text": "Help debug this {language} case. Goal: {goal}. Runtime: {runtime}. Constraints: {constraints}. Ask for missing reproduction steps, exact error, expected result and actual result. Suggest the smallest evidence-based change and a regression check. Label guesses."
        },
        {
          "id": "test",
          "name": "Design meaningful tests",
          "text": "Design tests for this {language} behavior: {goal}. Runtime: {runtime}. Constraints: {constraints}. Cover initial state, ordinary input, boundaries, invalid input, repeated actions and recovery. Give expected outputs. Include keyboard and narrow-screen checks for UI. Distinguish executed tests from proposed tests."
        },
        {
          "id": "refactor",
          "name": "Refactor without changing behavior",
          "text": "Refactor this {language} implementation for: {goal}. Runtime: {runtime}. Constraints: {constraints}. State its observable contract, identify duplication, propose a small change, then show how existing tests establish preserved behavior. Do not change public inputs or outputs without flagging it."
        },
        {
          "id": "document",
          "name": "Document the actual behavior",
          "text": "Document this {language} artifact: {goal}. Runtime: {runtime}. Constraints: {constraints}. Include purpose, setup, inputs, outputs, errors, one complete usage example, limitations and the real test evidence. Mark anything unverified and do not invent a compatibility claim."
        },
        {
          "id": "explain",
          "name": "Explain a concept with practice",
          "text": "Explain this {language} concept: {goal}. Runtime: {runtime}. Constraints: {constraints}. Use an original small example, predict its output, explain each meaningful step, then provide an exercise and a separate solution. Keep language features distinct from libraries and runtime APIs."
        }
      ],
      "examples": [
        {
          "id": "semantic-card",
          "title": "01 - Structure a useful page",
          "concepts": [
            "HTML structure",
            "headings",
            "lists"
          ],
          "filename": "01 Structure a useful page.html",
          "code": "<!doctype html>\n<html lang=\"en\">\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<meta http-equiv=\"Content-Security-Policy\" content=\"default-src 'none'; style-src 'unsafe-inline'; script-src 'unsafe-inline'; connect-src 'none'; form-action 'none'; base-uri 'none'\">\n<title>01 - Structure a useful page</title>\n<style>\nbody { font: 18px/1.5 system-ui; margin: 2rem; color: #173344; }\nbutton, input { font: inherit; padding: .4rem; }\n:focus-visible { outline: 3px solid #964b00; outline-offset: 3px; }\n\n</style>\n<main>\n<h1>Weekend workshop</h1>\n<p>Build a small page from plain text.</p>\n<section aria-labelledby=\"materials\">\n  <h2 id=\"materials\">Bring these materials</h2>\n  <ul><li>A text editor</li><li>A browser</li></ul>\n</section>\n</main>\n\n</html>\n",
          "expected_output": "One main landmark, one level-one heading and a two-item list.",
          "explanation": "The heading identifies the page. A named section groups the checklist. Native list markup preserves item relationships without styling or JavaScript.",
          "checks": [
            [
              "document.querySelectorAll(\"main\").length",
              1
            ],
            [
              "document.querySelector(\"h1\").textContent",
              "Weekend workshop"
            ],
            [
              "document.querySelectorAll(\"li\").length",
              2
            ]
          ],
          "exercise": null,
          "test": {
            "status": "passed",
            "runtime": "Chrome/155.0.8059.86",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "Browser validation.json; expected outputs and assertion expressions in source JSON"
          }
        },
        {
          "id": "responsive-cards",
          "title": "02 - Build a responsive layout",
          "concepts": [
            "CSS selectors",
            "box model",
            "grid",
            "media queries"
          ],
          "filename": "02 Build a responsive layout.html",
          "code": "<!doctype html>\n<html lang=\"en\">\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<meta http-equiv=\"Content-Security-Policy\" content=\"default-src 'none'; style-src 'unsafe-inline'; script-src 'unsafe-inline'; connect-src 'none'; form-action 'none'; base-uri 'none'\">\n<title>02 - Build a responsive layout</title>\n<style>\nbody { font: 18px/1.5 system-ui; margin: 2rem; color: #173344; }\nbutton, input { font: inherit; padding: .4rem; }\n:focus-visible { outline: 3px solid #964b00; outline-offset: 3px; }\n* { box-sizing: border-box; }\n.cards { display: grid; grid-template-columns: 1fr; gap: 1rem; }\narticle { border: 2px solid #426c80; padding: 1rem; }\n@media (min-width: 48rem) {\n  .cards { grid-template-columns: repeat(3, 1fr); }\n}\n</style>\n<main>\n<h1>Study plan</h1>\n<div class=\"cards\">\n  <article><h2>Read</h2><p>Inspect one example.</p></article>\n  <article><h2>Change</h2><p>Alter one value.</p></article>\n  <article><h2>Test</h2><p>Check the result.</p></article>\n</div>\n</main>\n\n</html>\n",
          "expected_output": "One card column at 375px; three columns at 1024px. Padding stays inside each border-box.",
          "explanation": "A class selector scopes the layout. The default is one column; the media query changes it at 48rem. Gap separates cards, while padding separates each card border from its content.",
          "checks": [
            [
              "document.querySelectorAll(\"article\").length",
              3
            ],
            [
              "getComputedStyle(document.querySelector(\"article\")).boxSizing",
              "border-box"
            ]
          ],
          "exercise": null,
          "test": {
            "status": "passed",
            "runtime": "Chrome/155.0.8059.86",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "Browser validation.json; expected outputs and assertion expressions in source JSON"
          }
        },
        {
          "id": "pure-total",
          "title": "03 - Separate calculation from display",
          "concepts": [
            "JavaScript functions",
            "arrays",
            "validation"
          ],
          "filename": "03 Separate calculation from display.html",
          "code": "<!doctype html>\n<html lang=\"en\">\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<meta http-equiv=\"Content-Security-Policy\" content=\"default-src 'none'; style-src 'unsafe-inline'; script-src 'unsafe-inline'; connect-src 'none'; form-action 'none'; base-uri 'none'\">\n<title>03 - Separate calculation from display</title>\n<style>\nbody { font: 18px/1.5 system-ui; margin: 2rem; color: #173344; }\nbutton, input { font: inherit; padding: .4rem; }\n:focus-visible { outline: 3px solid #964b00; outline-offset: 3px; }\n\n</style>\n<main>\n<h1>Workshop total</h1>\n<p id=\"result\"></p>\n</main>\n<script>\nfunction totalMinutes(values) {\n  if (!Array.isArray(values) || values.some(value =>\n      !Number.isFinite(value) || value < 0)) {\n    throw new TypeError(\"Use an array of non-negative numbers.\");\n  }\n  return values.reduce((sum, value) => sum + value, 0);\n}\ndocument.querySelector(\"#result\").textContent =\n  `Total: ${totalMinutes([15, 20, 10])} minutes`;\n</script>\n</html>\n",
          "expected_output": "Total: 45 minutes. An empty array returns 0. Negative or nonnumeric values throw TypeError.",
          "explanation": "A pure calculation returns a value without changing the page. Validation rejects bad inputs at the boundary. The final statement formats a result and writes plain text into the document.",
          "checks": [
            [
              "document.querySelector(\"#result\").textContent",
              "Total: 45 minutes"
            ],
            [
              "totalMinutes([])",
              0
            ],
            [
              "totalMinutes([2.5, 3])",
              5.5
            ],
            [
              "(()=>{try{totalMinutes([-1]);return false}catch(e){return e instanceof TypeError}})()",
              true
            ],
            [
              "(()=>{try{totalMinutes([\"3\"]);return false}catch(e){return e instanceof TypeError}})()",
              true
            ]
          ],
          "exercise": null,
          "test": {
            "status": "passed",
            "runtime": "Chrome/155.0.8059.86",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "Browser validation.json; expected outputs and assertion expressions in source JSON"
          }
        },
        {
          "id": "counter",
          "title": "04 - Connect a button to state",
          "concepts": [
            "DOM events",
            "state",
            "live status"
          ],
          "filename": "04 Connect a button to state.html",
          "code": "<!doctype html>\n<html lang=\"en\">\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<meta http-equiv=\"Content-Security-Policy\" content=\"default-src 'none'; style-src 'unsafe-inline'; script-src 'unsafe-inline'; connect-src 'none'; form-action 'none'; base-uri 'none'\">\n<title>04 - Connect a button to state</title>\n<style>\nbody { font: 18px/1.5 system-ui; margin: 2rem; color: #173344; }\nbutton, input { font: inherit; padding: .4rem; }\n:focus-visible { outline: 3px solid #964b00; outline-offset: 3px; }\n\n</style>\n<main>\n<h1>Practice counter</h1>\n<button id=\"add\" type=\"button\">Add one</button>\n<p id=\"count\" role=\"status\">Count: 0</p>\n</main>\n<script>\nlet count = 0;\ndocument.querySelector(\"#add\").addEventListener(\"click\", () => {\n  count += 1;\n  document.querySelector(\"#count\").textContent = `Count: ${count}`;\n});\n</script>\n</html>\n",
          "expected_output": "Starts at Count: 0. Each activation adds one; three activations display Count: 3.",
          "explanation": "The variable stores state. An event listener updates that state after a button activation. A native button supplies keyboard behavior. A status region makes a polite announcement possible in assistive technology.",
          "checks": [
            [
              "document.querySelector(\"#count\").textContent",
              "Count: 0"
            ],
            [
              "(()=>{for(let i=0;i<3;i++)document.querySelector(\"#add\").click();return document.querySelector(\"#count\").textContent})()",
              "Count: 3"
            ]
          ],
          "exercise": null,
          "test": {
            "status": "passed",
            "runtime": "Chrome/155.0.8059.86",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "Browser validation.json; expected outputs and assertion expressions in source JSON"
          }
        },
        {
          "id": "greeting-form",
          "title": "05 - Handle form input safely",
          "concepts": [
            "forms",
            "labels",
            "submit events",
            "textContent"
          ],
          "filename": "05 Handle form input safely.html",
          "code": "<!doctype html>\n<html lang=\"en\">\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<meta http-equiv=\"Content-Security-Policy\" content=\"default-src 'none'; style-src 'unsafe-inline'; script-src 'unsafe-inline'; connect-src 'none'; form-action 'none'; base-uri 'none'\">\n<title>05 - Handle form input safely</title>\n<style>\nbody { font: 18px/1.5 system-ui; margin: 2rem; color: #173344; }\nbutton, input { font: inherit; padding: .4rem; }\n:focus-visible { outline: 3px solid #964b00; outline-offset: 3px; }\n\n</style>\n<main>\n<h1>Personal greeting</h1>\n<form id=\"greeting\">\n  <label for=\"name\">Your name</label>\n  <input id=\"name\" name=\"name\" maxlength=\"60\" required>\n  <button type=\"submit\">Greet me</button>\n</form>\n<p id=\"message\" role=\"status\"></p>\n</main>\n<script>\ndocument.querySelector(\"#greeting\").addEventListener(\"submit\", event => {\n  event.preventDefault();\n  const name = document.querySelector(\"#name\").value.trim();\n  document.querySelector(\"#message\").textContent =\n    name ? `Hello, ${name}!` : \"Enter a name with visible characters.\";\n});\n</script>\n</html>\n",
          "expected_output": "Ada produces Hello, Ada! Spaces produce a useful message. Markup-like text is displayed literally.",
          "explanation": "The label matches the input ID. The submit handler prevents navigation, trims whitespace and renders text. Native required validation catches an empty value; the explicit check also catches whitespace-only input.",
          "checks": [
            [
              "(()=>{document.querySelector(\"#name\").value=\" Ada \";document.querySelector(\"form\").requestSubmit();return document.querySelector(\"#message\").textContent})()",
              "Hello, Ada!"
            ],
            [
              "(()=>{document.querySelector(\"#name\").value=\"   \";document.querySelector(\"form\").requestSubmit();return document.querySelector(\"#message\").textContent})()",
              "Enter a name with visible characters."
            ],
            [
              "(()=>{document.querySelector(\"#name\").value=\"<b>Ada</b>\";document.querySelector(\"form\").requestSubmit();return document.querySelector(\"#message\").innerHTML})()",
              "Hello, &lt;b&gt;Ada&lt;/b&gt;!"
            ]
          ],
          "exercise": null,
          "test": {
            "status": "passed",
            "runtime": "Chrome/155.0.8059.86",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "Browser validation.json; expected outputs and assertion expressions in source JSON"
          }
        },
        {
          "id": "filter-list",
          "title": "06 - Filter a local list",
          "concepts": [
            "arrays",
            "case normalization",
            "DOM construction"
          ],
          "filename": "06 Filter a local list.html",
          "code": "<!doctype html>\n<html lang=\"en\">\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<meta http-equiv=\"Content-Security-Policy\" content=\"default-src 'none'; style-src 'unsafe-inline'; script-src 'unsafe-inline'; connect-src 'none'; form-action 'none'; base-uri 'none'\">\n<title>06 - Filter a local list</title>\n<style>\nbody { font: 18px/1.5 system-ui; margin: 2rem; color: #173344; }\nbutton, input { font: inherit; padding: .4rem; }\n:focus-visible { outline: 3px solid #964b00; outline-offset: 3px; }\n\n</style>\n<main>\n<h1>Find a study topic</h1>\n<label for=\"query\">Search topics</label>\n<input id=\"query\" type=\"search\">\n<p id=\"matches\" role=\"status\"></p>\n<ul id=\"topics\"></ul>\n</main>\n<script>\nconst topics = [\"HTML structure\", \"CSS layout\", \"JavaScript events\"];\nfunction renderTopics() {\n  const query = document.querySelector(\"#query\").value.trim().toLowerCase();\n  const matches = topics.filter(topic => topic.toLowerCase().includes(query));\n  const list = document.querySelector(\"#topics\");\n  list.replaceChildren();\n  for (const topic of matches) {\n    const item = document.createElement(\"li\");\n    item.textContent = topic;\n    list.append(item);\n  }\n  document.querySelector(\"#matches\").textContent = `${matches.length} topics`;\n}\ndocument.querySelector(\"#query\").addEventListener(\"input\", renderTopics);\nrenderTopics();\n</script>\n</html>\n",
          "expected_output": "Initially 3 topics. Searching CSS leaves CSS layout. An unmatched search gives 0 topics.",
          "explanation": "Filter creates a matching array without modifying the source list. The render function rebuilds the displayed list using text nodes. An empty result has an explicit count rather than an unexplained blank space.",
          "checks": [
            [
              "document.querySelectorAll(\"li\").length",
              3
            ],
            [
              "(()=>{document.querySelector(\"#query\").value=\"CSS\";renderTopics();return document.querySelector(\"#topics\").textContent})()",
              "CSS layout"
            ],
            [
              "(()=>{document.querySelector(\"#query\").value=\"missing\";renderTopics();return document.querySelector(\"#matches\").textContent})()",
              "0 topics"
            ]
          ],
          "exercise": null,
          "test": {
            "status": "passed",
            "runtime": "Chrome/155.0.8059.86",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "Browser validation.json; expected outputs and assertion expressions in source JSON"
          }
        },
        {
          "id": "solution-counter",
          "title": "Exercise A solution - Step and reset",
          "concepts": [
            "state",
            "functions",
            "reset"
          ],
          "filename": "Exercise A solution Step and reset.html",
          "code": "<!doctype html>\n<html lang=\"en\">\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<meta http-equiv=\"Content-Security-Policy\" content=\"default-src 'none'; style-src 'unsafe-inline'; script-src 'unsafe-inline'; connect-src 'none'; form-action 'none'; base-uri 'none'\">\n<title>Exercise A solution - Step and reset</title>\n<style>\nbody { font: 18px/1.5 system-ui; margin: 2rem; color: #173344; }\nbutton, input { font: inherit; padding: .4rem; }\n:focus-visible { outline: 3px solid #964b00; outline-offset: 3px; }\n\n</style>\n<main>\n<h1>Practice in pairs</h1>\n<button id=\"add\" type=\"button\">Add two</button>\n<button id=\"reset\" type=\"button\">Reset</button>\n<p id=\"count\" role=\"status\">Count: 0</p>\n</main>\n<script>\nlet count = 0;\nfunction render() {\n  document.querySelector(\"#count\").textContent = `Count: ${count}`;\n}\ndocument.querySelector(\"#add\").addEventListener(\"click\", () => {\n  count += 2;\n  render();\n});\ndocument.querySelector(\"#reset\").addEventListener(\"click\", () => {\n  count = 0;\n  render();\n});\n</script>\n</html>\n",
          "expected_output": "Two Add two activations display Count: 4. Reset displays Count: 0.",
          "explanation": "Both handlers share rendering, so the displayed text has one owner. Reset updates the state as well as the text, avoiding a stale count on the next activation.",
          "checks": [
            [
              "(()=>{document.querySelector(\"#add\").click();document.querySelector(\"#add\").click();return document.querySelector(\"#count\").textContent})()",
              "Count: 4"
            ],
            [
              "(()=>{document.querySelector(\"#reset\").click();return document.querySelector(\"#count\").textContent})()",
              "Count: 0"
            ]
          ],
          "exercise": "Starting from example 04, add two per activation and provide Reset. Keep both updates in one render function. Check two activations and a reset with the keyboard.",
          "test": {
            "status": "passed",
            "runtime": "Chrome/155.0.8059.86",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "Browser validation.json; expected outputs and assertion expressions in source JSON"
          }
        },
        {
          "id": "solution-budget",
          "title": "Exercise B solution - Remaining minutes",
          "concepts": [
            "validation",
            "pure functions",
            "boundaries"
          ],
          "filename": "Exercise B solution Remaining minutes.html",
          "code": "<!doctype html>\n<html lang=\"en\">\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<meta http-equiv=\"Content-Security-Policy\" content=\"default-src 'none'; style-src 'unsafe-inline'; script-src 'unsafe-inline'; connect-src 'none'; form-action 'none'; base-uri 'none'\">\n<title>Exercise B solution - Remaining minutes</title>\n<style>\nbody { font: 18px/1.5 system-ui; margin: 2rem; color: #173344; }\nbutton, input { font: inherit; padding: .4rem; }\n:focus-visible { outline: 3px solid #964b00; outline-offset: 3px; }\n\n</style>\n<main>\n<h1>Time left</h1><p id=\"remaining\"></p>\n</main>\n<script>\nfunction remainingMinutes(limit, used) {\n  if (![limit, used].every(value => Number.isFinite(value) && value >= 0)) {\n    throw new TypeError(\"Use non-negative finite numbers.\");\n  }\n  return Math.max(0, limit - used);\n}\ndocument.querySelector(\"#remaining\").textContent =\n  `Remaining: ${remainingMinutes(60, 45)} minutes`;\n</script>\n</html>\n",
          "expected_output": "Remaining: 15 minutes. Over budget returns 0. Invalid input throws TypeError.",
          "explanation": "Validation defines the accepted domain. Math.max supplies an explicit lower bound. No browser-specific operation is needed inside the calculation.",
          "checks": [
            [
              "document.querySelector(\"#remaining\").textContent",
              "Remaining: 15 minutes"
            ],
            [
              "remainingMinutes(10, 12)",
              0
            ],
            [
              "remainingMinutes(0, 0)",
              0
            ],
            [
              "(()=>{try{remainingMinutes(Infinity,0);return false}catch(e){return e instanceof TypeError}})()",
              true
            ]
          ],
          "exercise": "Write remainingMinutes(limit, used). Reject negative, infinite and nonnumeric inputs. Clamp overspending to zero. Test equal, under and over budget cases.",
          "test": {
            "status": "passed",
            "runtime": "Chrome/155.0.8059.86",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "Browser validation.json; expected outputs and assertion expressions in source JSON"
          }
        },
        {
          "id": "solution-filter",
          "title": "Exercise C solution - A useful empty state",
          "concepts": [
            "filtering",
            "empty state",
            "singular labels"
          ],
          "filename": "Exercise C solution A useful empty state.html",
          "code": "<!doctype html>\n<html lang=\"en\">\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<meta http-equiv=\"Content-Security-Policy\" content=\"default-src 'none'; style-src 'unsafe-inline'; script-src 'unsafe-inline'; connect-src 'none'; form-action 'none'; base-uri 'none'\">\n<title>Exercise C solution - A useful empty state</title>\n<style>\nbody { font: 18px/1.5 system-ui; margin: 2rem; color: #173344; }\nbutton, input { font: inherit; padding: .4rem; }\n:focus-visible { outline: 3px solid #964b00; outline-offset: 3px; }\n\n</style>\n<main>\n<h1>Search practice topics</h1>\n<label for=\"query\">Search topics</label><input id=\"query\" type=\"search\">\n<p id=\"matches\" role=\"status\"></p><ul id=\"topics\"></ul>\n</main>\n<script>\nconst topics = [\"HTML structure\", \"CSS layout\", \"JavaScript events\"];\nfunction renderTopics() {\n  const query = document.querySelector(\"#query\").value.trim().toLowerCase();\n  const matches = topics.filter(topic => topic.toLowerCase().includes(query));\n  const list = document.querySelector(\"#topics\");\n  list.replaceChildren();\n  for (const topic of matches) {\n    const item = document.createElement(\"li\");\n    item.textContent = topic;\n    list.append(item);\n  }\n  document.querySelector(\"#matches\").textContent = matches.length === 0\n    ? \"No topics match. Clear the search to see all topics.\"\n    : `${matches.length} ${matches.length === 1 ? \"topic\" : \"topics\"}`;\n}\ndocument.querySelector(\"#query\").addEventListener(\"input\", renderTopics);\nrenderTopics();\n</script>\n</html>\n",
          "expected_output": "CSS gives 1 topic. An unmatched query gives a recovery message. Clearing restores 3 topics.",
          "explanation": "The empty state tells the learner how to recover. The source array stays unchanged, so clearing the query can always reconstruct the complete list.",
          "checks": [
            [
              "(()=>{document.querySelector(\"#query\").value=\"css\";renderTopics();return document.querySelector(\"#matches\").textContent})()",
              "1 topic"
            ],
            [
              "(()=>{document.querySelector(\"#query\").value=\"missing\";renderTopics();return document.querySelector(\"#matches\").textContent})()",
              "No topics match. Clear the search to see all topics."
            ],
            [
              "(()=>{document.querySelector(\"#query\").value=\"\";renderTopics();return document.querySelectorAll(\"li\").length})()",
              3
            ]
          ],
          "exercise": "Extend example 06 with a singular count and a useful empty-result message. Confirm an empty query restores the entire list.",
          "test": {
            "status": "passed",
            "runtime": "Chrome/155.0.8059.86",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "Browser validation.json; expected outputs and assertion expressions in source JSON"
          }
        }
      ],
      "test_summary": {
        "status": "passed",
        "runtime": "Chrome/155.0.8059.86",
        "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
        "tested_on": "2026-10-26",
        "assertion_count": 607,
        "evidence": "evidence/Browser validation.json",
        "limitations": [
          "Single installed Chrome on macOS.",
          "No outside human review or screen-reader session."
        ]
      },
      "languages": [
        "HTML / CSS / JavaScript",
        "HTML",
        "CSS",
        "JavaScript"
      ],
      "default_goal": "Build an accessible local study checklist.",
      "default_runtime": "A modern browser; specify your exact browser version and operating system",
      "default_constraints": "Offline, no dependencies, semantic HTML, keyboard access, no network calls."
    },
    {
      "id": "python-foundations",
      "title": "Python Foundations",
      "version": "0.10.0",
      "status": "tested",
      "entry_ids": [
        "python"
      ],
      "languages": [
        "Python"
      ],
      "default_goal": "Summarize a small list of study sessions.",
      "default_runtime": "CPython 3.9.6 on macOS 27.0.1; local offline teaching scope",
      "default_constraints": "Standard library only; tiny fixed input; no network; file examples use only new temporary directories.",
      "audience": "Beginners who can save a text file and run an installed Python interpreter.",
      "estimated_practice": "4 to 6 hours, at your own pace.",
      "scope": "Core types, control flow, functions, collections, temporary toy files, JSON, expected errors, local modules and unittest. No package installation, external data, deployment or service integration.",
      "runtime_note": "This pack was tested with the installed CPython 3.9.6 on macOS 27.0.1. Python 3.9 is no longer supported upstream; this is a recorded offline learning environment, not a recommended deployment runtime. The cited 3.9 documentation currently describes 3.9.25, while the actual examples were tested on 3.9.6. No installation is needed or performed here. Save the example in a practice folder and run python3 followed by its quoted filename. Modules need the companion file beside the entry file. The browser Atlas exports text only and never runs Python.",
      "lessons": [
        {
          "title": "Run the installed interpreter deliberately",
          "text": "This pack was tested with the installed CPython 3.9.6 on macOS 27.0.1. Python 3.9 is no longer supported upstream; this is a recorded offline learning environment, not a recommended deployment runtime. The cited 3.9 documentation currently describes 3.9.25, while the actual examples were tested on 3.9.6. No installation is needed or performed here. Save the example in a practice folder and run python3 followed by its quoted filename. Modules need the companion file beside the entry file. The browser Atlas exports text only and never runs Python."
        },
        {
          "title": "Values, names and explicit conversions",
          "text": "Python names refer to objects. This pack starts with int, float, bool, str and None, then collections. Use type or isinstance to investigate a value. The int constructor converts integer text and raises an error for invalid text. Use f-strings to format an output without changing the underlying value. A float is not an exact decimal arithmetic model; these examples use minutes and simple teaching values rather than financial calculations. Strings are immutable, so methods such as strip return a result you can assign or use."
        },
        {
          "title": "Control flow follows indentation",
          "text": "Use if, elif and else for conditions. A for loop visits items in an iterable; enumerate adds a counter and range produces integers with an excluded stop value. A while loop needs a condition that can become false. Four spaces per indentation level make the examples easy to inspect. Keep state changes close to the condition they affect. Predict the first, last and empty-loop cases before running. Example 02 combines iteration, a conditional expression and a bounded countdown."
        },
        {
          "title": "Functions make contracts visible",
          "text": "A function binds arguments to parameters and returns a result; without an explicit return value it returns None. Keep reusable calculations separate from printing or file access. State the accepted types, boundary values and errors. Avoid mutable default arguments in beginner helpers; create a fresh list inside a function when needed. Boolean is a subclass of integer, so a contract that excludes True and False needs an explicit check. Example 03 deliberately accepts whole-number minutes and tests invalid input."
        },
        {
          "title": "Choose a collection for the relationship",
          "text": "Lists represent ordered mutable sequences, tuples fixed groupings, dictionaries key/value relationships and sets unique values. A comprehension can transform or filter a list, but a simple loop is often clearer when it also updates a dictionary. Use get with a default for counting. Sets have no promised display order; sort one before making deterministic output. A new list of references does not deep-copy the contained objects. The examples read records and build summaries without mutating the source records."
        },
        {
          "title": "Keep file practice small and disposable",
          "text": "File paths have effects, so the toy examples create a new TemporaryDirectory inside the current writable practice folder. They use fixed filenames inside it, explicit UTF-8 encoding and context managers. They read only what they wrote, then let the context manager remove the temporary directory. A with block closes a file even when an exception interrupts the block. JSON is data, not code: serialize a tiny dictionary and decode only that bounded input. Never substitute a real document path into these exercises."
        },
        {
          "title": "Errors should support recovery",
          "text": "Read the final exception type and message, then follow the traceback to the relevant call. Catch a specific expected exception where you can recover or add context; do not hide every error with a bare except. Validation can raise TypeError for the wrong kind of input and ValueError for a value outside the contract. A try/except/else structure distinguishes successful work from recovery. Keep the input that triggered a failure so a test can reproduce it. Examples 05 and Exercise B show deliberate recovery."
        },
        {
          "title": "Modules and tests keep changes controlled",
          "text": "A module is a Python file. Save study_tools.py beside example 08 and import its named function. The main guard separates importing definitions from running the demonstration. Avoid naming your files json.py or unittest.py, which can hide the standard library modules in normal script execution. Use unittest to check normal, boundary and invalid cases. The included harness runs each authored example in a fresh temporary directory with a timeout and bytecode writing disabled; that is controlled testing of trusted examples, not a security sandbox for arbitrary code."
        }
      ],
      "reference": [
        {
          "area": "Types",
          "syntax": "int / float / bool / str / None",
          "meaning": "Whole numbers, floating-point values, truth values, text and absence of a value."
        },
        {
          "area": "Flow",
          "syntax": "if / elif / else",
          "meaning": "Choose a block using a condition."
        },
        {
          "area": "Flow",
          "syntax": "for / enumerate / range",
          "meaning": "Visit values, add counters and generate bounded integer sequences."
        },
        {
          "area": "Flow",
          "syntax": "while",
          "meaning": "Repeat while a condition remains true; ensure progress toward stopping."
        },
        {
          "area": "Functions",
          "syntax": "def / return",
          "meaning": "Define a reusable operation and give its result to the caller."
        },
        {
          "area": "Collections",
          "syntax": "list / tuple",
          "meaning": "Ordered mutable sequence / fixed grouping."
        },
        {
          "area": "Collections",
          "syntax": "dict.get(key, default)",
          "meaning": "Look up a key with an explicit fallback."
        },
        {
          "area": "Collections",
          "syntax": "set / sorted",
          "meaning": "Deduplicate, then sort when stable output matters."
        },
        {
          "area": "Errors",
          "syntax": "try / except / else",
          "meaning": "Handle a specific failure and separate the successful branch."
        },
        {
          "area": "Errors",
          "syntax": "raise TypeError / ValueError",
          "meaning": "Signal a contract violation rather than silently producing a misleading result."
        },
        {
          "area": "Files",
          "syntax": "with open(..., encoding=\"utf-8\")",
          "meaning": "Close the handle reliably and make text encoding explicit."
        },
        {
          "area": "Files",
          "syntax": "TemporaryDirectory(dir=\".\")",
          "meaning": "Create a disposable toy directory under the practice folder."
        },
        {
          "area": "Data",
          "syntax": "json.dumps / json.loads",
          "meaning": "Encode and decode bounded JSON data."
        },
        {
          "area": "Modules",
          "syntax": "from study_tools import total_minutes",
          "meaning": "Reuse a named function from a companion module."
        },
        {
          "area": "Modules",
          "syntax": "if __name__ == \"__main__\"",
          "meaning": "Run the demonstration only when executed as the entry script."
        },
        {
          "area": "Tests",
          "syntax": "unittest.TestCase / assertEqual / assertRaises",
          "meaning": "Check observable results and expected errors."
        }
      ],
      "templates": [
        {
          "id": "build",
          "name": "Build a small example",
          "text": "Create a minimal {language} example for: {goal}. Runtime: {runtime}. Constraints: {constraints}. Explain the structure, provide complete Python files, and give expected output plus standard-library tests and manual checks. Do not add libraries unless requested."
        },
        {
          "id": "debug",
          "name": "Debug a reproducible failure",
          "text": "Help debug this {language} case. Goal: {goal}. Runtime: {runtime}. Constraints: {constraints}. Ask for missing reproduction steps, exact error, expected result and actual result. Suggest the smallest evidence-based change and a regression check. Label guesses."
        },
        {
          "id": "test",
          "name": "Design meaningful tests",
          "text": "Design tests for this {language} behavior: {goal}. Runtime: {runtime}. Constraints: {constraints}. Cover initial state, ordinary input, boundaries, invalid input, repeated actions and recovery. Give expected outputs. For file examples, use a fresh temporary directory and verify cleanup. Distinguish executed tests from proposed tests."
        },
        {
          "id": "refactor",
          "name": "Refactor without changing behavior",
          "text": "Refactor this {language} implementation for: {goal}. Runtime: {runtime}. Constraints: {constraints}. State its observable contract, identify duplication, propose a small change, then show how existing tests establish preserved behavior. Do not change public inputs or outputs without flagging it."
        },
        {
          "id": "document",
          "name": "Document the actual behavior",
          "text": "Document this {language} artifact: {goal}. Runtime: {runtime}. Constraints: {constraints}. Include purpose, setup, inputs, outputs, errors, one complete usage example, limitations and the real test evidence. Mark anything unverified and do not invent a compatibility claim."
        },
        {
          "id": "explain",
          "name": "Explain a concept with practice",
          "text": "Explain this {language} concept: {goal}. Runtime: {runtime}. Constraints: {constraints}. Use an original small example, predict its output, explain each meaningful step, then provide an exercise and a separate solution. Keep language features distinct from libraries and runtime APIs."
        }
      ],
      "examples": [
        {
          "id": "py-types",
          "title": "Python 01 - Values and strings",
          "filename": "Python 01 Values and strings.py",
          "code": "name = \"Ada\"\nminutes = 45\nsessions = 2\naverage = minutes / sessions\nready = sessions > 0\nprint(f\"{name}: {minutes} minutes\")\nprint(f\"Average: {average:.1f}\")\nprint(type(minutes).__name__, type(average).__name__, type(ready).__name__)\nprint(\"  Python  \".strip().upper())\n",
          "expected_output": "Ada: 45 minutes\nAverage: 22.5\nint float bool\nPYTHON",
          "expected_stdout": "Ada: 45 minutes\nAverage: 22.5\nint float bool\nPYTHON\n",
          "checks": [
            [
              "minutes == 45 and average == 22.5",
              true
            ],
            [
              "isinstance(name, str) and ready is True",
              true
            ]
          ],
          "explanation": "Names refer to values. Division produces a float here, while a comparison produces a Boolean. The f-string formats display without changing the stored value. String methods return strings.",
          "exercise": null,
          "concepts": [],
          "runner": "python",
          "files": [],
          "test": {
            "status": "passed",
            "runtime": "CPython 3.9.6",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Python validation.json; isolated subprocess, exact output and boundary checks"
          }
        },
        {
          "id": "py-control",
          "title": "Python 02 - Branches and loops",
          "filename": "Python 02 Branches and loops.py",
          "code": "minutes = [5, 20, 10]\nfor index, value in enumerate(minutes, start=1):\n    label = \"long\" if value >= 15 else \"short\"\n    print(f\"Session {index}: {label}\")\ncountdown = 3\nwhile countdown > 0:\n    countdown -= 1\nprint(f\"Countdown: {countdown}\")\nprint(f\"Range sum: {sum(range(1, 4))}\")\n",
          "expected_output": "Session 1: short\nSession 2: long\nSession 3: short\nCountdown: 0\nRange sum: 6",
          "expected_stdout": "Session 1: short\nSession 2: long\nSession 3: short\nCountdown: 0\nRange sum: 6\n",
          "checks": [
            [
              "countdown == 0",
              true
            ],
            [
              "list(range(1,4)) == [1,2,3]",
              true
            ]
          ],
          "explanation": "Indentation defines blocks. enumerate gives each item a number. The while loop changes the value that controls termination. The stop value of range is excluded.",
          "exercise": null,
          "concepts": [],
          "runner": "python",
          "files": [],
          "test": {
            "status": "passed",
            "runtime": "CPython 3.9.6",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Python validation.json; isolated subprocess, exact output and boundary checks"
          }
        },
        {
          "id": "py-functions",
          "title": "Python 03 - Functions and contracts",
          "filename": "Python 03 Functions and contracts.py",
          "code": "def remaining_minutes(limit, used):\n    if any(type(value) is not int for value in (limit, used)):\n        raise TypeError(\"Use whole-number minutes.\")\n    if limit < 0 or used < 0:\n        raise ValueError(\"Minutes must be non-negative.\")\n    return max(0, limit - used)\n\nprint(f\"Remaining: {remaining_minutes(60, 45)}\")\nprint(f\"Over budget: {remaining_minutes(10, 12)}\")\n",
          "expected_output": "Remaining: 15\nOver budget: 0",
          "expected_stdout": "Remaining: 15\nOver budget: 0\n",
          "checks": [
            [
              "remaining_minutes(0,0)",
              0
            ],
            [
              "remaining_minutes(20,5)",
              15
            ],
            [
              "raises(TypeError, remaining_minutes, True, 0)",
              true
            ],
            [
              "raises(ValueError, remaining_minutes, -1, 0)",
              true
            ]
          ],
          "explanation": "This function accepts only integer minute counts, explicitly excluding Boolean values. It returns a result rather than printing internally. Errors define the input contract, and zero is the lower bound.",
          "exercise": null,
          "concepts": [],
          "runner": "python",
          "files": [],
          "test": {
            "status": "passed",
            "runtime": "CPython 3.9.6",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Python validation.json; isolated subprocess, exact output and boundary checks"
          }
        },
        {
          "id": "py-collections",
          "title": "Python 04 - Collections and transformations",
          "filename": "Python 04 Collections and transformations.py",
          "code": "sessions = [{\"topic\": \"HTML\", \"minutes\": 20},\n            {\"topic\": \"Python\", \"minutes\": 30},\n            {\"topic\": \"Python\", \"minutes\": 15}]\nlong_sessions = [item[\"topic\"] for item in sessions if item[\"minutes\"] >= 20]\ntopics = sorted({item[\"topic\"] for item in sessions})\ntotals = {}\nfor item in sessions:\n    topic = item[\"topic\"]\n    totals[topic] = totals.get(topic, 0) + item[\"minutes\"]\ncoordinate = (2, 3)\nprint(\", \".join(long_sessions))\nprint(\", \".join(topics))\nprint(f\"Python total: {totals['Python']}\")\nprint(f\"Coordinate: {coordinate[0]}, {coordinate[1]}\")\n",
          "expected_output": "HTML, Python\nHTML, Python\nPython total: 45\nCoordinate: 2, 3",
          "expected_stdout": "HTML, Python\nHTML, Python\nPython total: 45\nCoordinate: 2, 3\n",
          "checks": [
            [
              "totals == {\"HTML\":20,\"Python\":45}",
              true
            ],
            [
              "len(sessions)",
              3
            ]
          ],
          "explanation": "A list keeps an ordered sequence, dictionaries associate keys with values, a set deduplicates topics and a tuple holds a fixed pair. Sorting the set makes printed output deterministic. Filtering does not mutate the source list.",
          "exercise": null,
          "concepts": [],
          "runner": "python",
          "files": [],
          "test": {
            "status": "passed",
            "runtime": "CPython 3.9.6",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Python validation.json; isolated subprocess, exact output and boundary checks"
          }
        },
        {
          "id": "py-errors",
          "title": "Python 05 - Handle expected errors",
          "filename": "Python 05 Handle expected errors.py",
          "code": "def parse_minutes(text):\n    if not isinstance(text, str):\n        raise TypeError(\"Expected text.\")\n    value = int(text.strip())\n    if value < 0:\n        raise ValueError(\"Minutes cannot be negative.\")\n    return value\n\nfor raw in [\" 15 \", \"oops\", \"-2\"]:\n    try:\n        print(f\"Accepted: {parse_minutes(raw)}\")\n    except ValueError:\n        print(\"Use a non-negative whole number.\")\n",
          "expected_output": "Accepted: 15\nUse a non-negative whole number.\nUse a non-negative whole number.",
          "expected_stdout": "Accepted: 15\nUse a non-negative whole number.\nUse a non-negative whole number.\n",
          "checks": [
            [
              "parse_minutes(\"0\")",
              0
            ],
            [
              "raises(ValueError, parse_minutes, \"\")",
              true
            ],
            [
              "raises(TypeError, parse_minutes, None)",
              true
            ]
          ],
          "explanation": "Catch the error you expect at the boundary where recovery makes sense. An unrelated programming error should remain visible. The parser accepts the integer text formats supported by int, including signs; it is not a strict digit-only validator.",
          "exercise": null,
          "concepts": [],
          "runner": "python",
          "files": [],
          "test": {
            "status": "passed",
            "runtime": "CPython 3.9.6",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Python validation.json; isolated subprocess, exact output and boundary checks"
          }
        },
        {
          "id": "py-files",
          "title": "Python 06 - Read and write a toy file",
          "filename": "Python 06 Read and write a toy file.py",
          "code": "from pathlib import Path\nfrom tempfile import TemporaryDirectory\n\nwith TemporaryDirectory(prefix=\"atlas-toy-\", dir=\".\") as folder:\n    path = Path(folder) / \"notes.txt\"\n    with path.open(\"w\", encoding=\"utf-8\") as stream:\n        stream.write(\"Read one example\\nChange one value\\n\")\n    with path.open(\"r\", encoding=\"utf-8\") as stream:\n        lines = stream.read().splitlines()\n    print(f\"Line count: {len(lines)}\")\n    print(f\"First: {lines[0]}\")\nprint(f\"Temporary folder removed: {not Path(folder).exists()}\")\n",
          "expected_output": "Line count: 2\nFirst: Read one example\nTemporary folder removed: True",
          "expected_stdout": "Line count: 2\nFirst: Read one example\nTemporary folder removed: True\n",
          "checks": [
            [
              "lines == [\"Read one example\",\"Change one value\"]",
              true
            ],
            [
              "not Path(folder).exists()",
              true
            ]
          ],
          "explanation": "The file path is fixed inside a newly created toy directory, and both file handles close at the end of their with blocks. TemporaryDirectory then removes that directory. No existing document is read or overwritten. Run from a writable practice folder.",
          "exercise": null,
          "concepts": [],
          "runner": "python",
          "files": [],
          "test": {
            "status": "passed",
            "runtime": "CPython 3.9.6",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Python validation.json; isolated subprocess, exact output and boundary checks"
          }
        },
        {
          "id": "py-json",
          "title": "Python 07 - Round trip small JSON",
          "filename": "Python 07 Round trip small JSON.py",
          "code": "import json\n\nrecord = {\"topic\": \"Python\", \"minutes\": 25, \"done\": False}\nencoded = json.dumps(record, sort_keys=True)\ndecoded = json.loads(encoded)\nprint(encoded)\nprint(f\"Same values: {decoded == record}\")\nprint(f\"Minutes: {decoded['minutes']}\")\n",
          "expected_output": "{\"done\": false, \"minutes\": 25, \"topic\": \"Python\"}\nSame values: True\nMinutes: 25",
          "expected_stdout": "{\"done\": false, \"minutes\": 25, \"topic\": \"Python\"}\nSame values: True\nMinutes: 25\n",
          "checks": [
            [
              "decoded == record",
              true
            ],
            [
              "isinstance(decoded[\"done\"], bool)",
              true
            ]
          ],
          "explanation": "JSON serializes a small data record. JSON false becomes Python False when decoded. This example handles only its own tiny string; it does not parse an external or unbounded input and does not execute JSON as code.",
          "exercise": null,
          "concepts": [],
          "runner": "python",
          "files": [],
          "test": {
            "status": "passed",
            "runtime": "CPython 3.9.6",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Python validation.json; isolated subprocess, exact output and boundary checks"
          }
        },
        {
          "id": "py-modules",
          "title": "Python 08 - Reuse a local module",
          "filename": "Python 08 Reuse a local module.py",
          "code": "from study_tools import total_minutes\n\ndef main():\n    print(f\"Total: {total_minutes([10, 20, 5])}\")\n\nif __name__ == \"__main__\":\n    main()\n",
          "expected_output": "Total: 35",
          "expected_stdout": "Total: 35\n",
          "checks": [
            [
              "total_minutes([])",
              0
            ],
            [
              "raises(ValueError,total_minutes,[-1])",
              true
            ],
            [
              "total_minutes(iter([10,20,5]))",
              35
            ],
            [
              "raises(ValueError,total_minutes,iter([-1]))",
              true
            ]
          ],
          "explanation": "Save both files in the same practice folder. The module provides a reusable function. The main guard runs the demonstration when the entry file is executed directly. Importing that entry file does not call main.",
          "exercise": null,
          "concepts": [],
          "runner": "python",
          "files": [
            {
              "name": "study_tools.py",
              "code": "def total_minutes(values):\n    values = tuple(values)\n    if any(type(value) is not int for value in values):\n        raise TypeError(\"Use integers.\")\n    if any(value < 0 for value in values):\n        raise ValueError(\"Use non-negative minutes.\")\n    return sum(values)\n"
            }
          ],
          "test": {
            "status": "passed",
            "runtime": "CPython 3.9.6",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Python validation.json; isolated subprocess, exact output and boundary checks"
          }
        },
        {
          "id": "py-tests",
          "title": "Python 09 - Test behavior with unittest",
          "filename": "Python 09 Test behavior with unittest.py",
          "code": "import unittest\n\ndef square(value):\n    if type(value) is not int:\n        raise TypeError(\"Use an integer.\")\n    return value * value\n\nclass SquareTests(unittest.TestCase):\n    def test_positive(self):\n        self.assertEqual(square(3), 9)\n    def test_zero(self):\n        self.assertEqual(square(0), 0)\n    def test_negative(self):\n        self.assertEqual(square(-2), 4)\n    def test_invalid(self):\n        with self.assertRaises(TypeError):\n            square(\"3\")\n\nsuite = unittest.defaultTestLoader.loadTestsFromTestCase(SquareTests)\nresult = unittest.TestResult()\nsuite.run(result)\nprint(f\"Tests: {result.testsRun}; failures: {len(result.failures)}; errors: {len(result.errors)}\")\nif not result.wasSuccessful():\n    raise SystemExit(1)\n",
          "expected_output": "Tests: 4; failures: 0; errors: 0",
          "expected_stdout": "Tests: 4; failures: 0; errors: 0\n",
          "checks": [
            [
              "result.testsRun",
              4
            ],
            [
              "result.wasSuccessful()",
              true
            ]
          ],
          "explanation": "Tests compare observable behavior with a contract, including an invalid input. The suite uses a deterministic summary. A failing test changes the process exit code; proposed tests alone are not evidence that they ran.",
          "exercise": null,
          "concepts": [],
          "runner": "python",
          "files": [],
          "test": {
            "status": "passed",
            "runtime": "CPython 3.9.6",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Python validation.json; isolated subprocess, exact output and boundary checks"
          }
        },
        {
          "id": "py-solution-a",
          "title": "Python Exercise A - Count study topics",
          "filename": "Python Exercise A Count study topics.py",
          "code": "def count_topics(topics):\n    counts = {}\n    for topic in topics:\n        normalized = topic.strip().casefold()\n        if normalized:\n            counts[normalized] = counts.get(normalized, 0) + 1\n    return counts\n\nprint(count_topics([\" Python \", \"HTML\", \"python\", \" \"]))\nprint(count_topics([]))\n",
          "expected_output": "{'python': 2, 'html': 1}\n{}",
          "expected_stdout": "{'python': 2, 'html': 1}\n{}\n",
          "checks": [
            [
              "count_topics([\" A \",\"a\"])",
              {
                "a": 2
              }
            ],
            [
              "count_topics([\" \"])",
              {}
            ]
          ],
          "explanation": "The function keeps insertion order in the dictionary and returns an empty dictionary for no topics. It expects an iterable of strings; values of other types are outside this exercise contract.",
          "exercise": "Count a list of topic strings without changing it. Ignore whitespace-only entries, normalize case and return a dictionary of counts. Test an empty list and repeated topics.",
          "concepts": [],
          "runner": "python",
          "files": [],
          "test": {
            "status": "passed",
            "runtime": "CPython 3.9.6",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Python validation.json; isolated subprocess, exact output and boundary checks"
          }
        },
        {
          "id": "py-solution-b",
          "title": "Python Exercise B - Recover from input errors",
          "filename": "Python Exercise B Recover from input errors.py",
          "code": "def collect_minutes(values):\n    accepted = []\n    rejected = 0\n    for raw in values:\n        try:\n            number = int(raw)\n            if number < 0:\n                raise ValueError(\"Negative minutes\")\n        except ValueError:\n            rejected += 1\n        else:\n            accepted.append(number)\n    return sum(accepted), rejected\n\ntotal, rejected = collect_minutes([\"10\", \"bad\", \"-1\", \"5\"])\nprint(f\"Total: {total}; rejected: {rejected}\")\n",
          "expected_output": "Total: 15; rejected: 2",
          "expected_stdout": "Total: 15; rejected: 2\n",
          "checks": [
            [
              "collect_minutes([])",
              [
                0,
                0
              ]
            ],
            [
              "collect_minutes([\"0\",\"2\"])",
              [
                2,
                0
              ]
            ],
            [
              "collect_minutes([\"bad\",\"-1\"])",
              [
                0,
                2
              ]
            ]
          ],
          "explanation": "The exercise accepts a list of strings. Catching ValueError recovers from invalid integer text while leaving unrelated exceptions visible. Each item is accounted for as accepted or rejected.",
          "exercise": "Given strings representing minutes, sum valid non-negative integers and count invalid entries. Return a pair. Do not stop at the first bad string; test empty input and all-invalid input.",
          "concepts": [],
          "runner": "python",
          "files": [],
          "test": {
            "status": "passed",
            "runtime": "CPython 3.9.6",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Python validation.json; isolated subprocess, exact output and boundary checks"
          }
        },
        {
          "id": "py-solution-c",
          "title": "Python Exercise C - A temporary JSON file",
          "filename": "Python Exercise C A temporary JSON file.py",
          "code": "import json\nfrom pathlib import Path\nfrom tempfile import TemporaryDirectory\n\nwith TemporaryDirectory(prefix=\"atlas-json-\", dir=\".\") as folder:\n    path = Path(folder) / \"progress.json\"\n    progress = {\"completed\": [\"types\", \"loops\"], \"next\": \"functions\"}\n    path.write_text(json.dumps(progress), encoding=\"utf-8\")\n    restored = json.loads(path.read_text(encoding=\"utf-8\"))\n    print(f\"Completed: {len(restored['completed'])}\")\n    print(f\"Next: {restored['next']}\")\nprint(f\"Cleaned up: {not Path(folder).exists()}\")\n",
          "expected_output": "Completed: 2\nNext: functions\nCleaned up: True",
          "expected_stdout": "Completed: 2\nNext: functions\nCleaned up: True\n",
          "checks": [
            [
              "restored == progress",
              true
            ],
            [
              "not Path(folder).exists()",
              true
            ]
          ],
          "explanation": "The temporary directory owns the file lifecycle. The code reads only the small record it just wrote, and cleanup is observable after leaving the context.",
          "exercise": "Write a tiny progress dictionary as UTF-8 JSON inside a new temporary directory, read it back, print a summary and show that the directory is removed. Never use an existing file path.",
          "concepts": [],
          "runner": "python",
          "files": [],
          "test": {
            "status": "passed",
            "runtime": "CPython 3.9.6",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Python validation.json; isolated subprocess, exact output and boundary checks"
          }
        }
      ],
      "test_summary": {
        "result": "passed",
        "tested_on": "2026-10-25",
        "runtime": "CPython 3.9.6",
        "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
        "assertion_count": 55,
        "example_count": 12,
        "limitations": [
          "Installed Python 3.9.6 is unsupported upstream.",
          "Only macOS 27.0.1 and this interpreter were tested."
        ]
      }
    },
    {
      "id": "sql-foundations",
      "title": "SQL Foundations",
      "version": "0.10.0",
      "status": "tested",
      "entry_ids": [
        "sql",
        "sqlite-sql"
      ],
      "languages": [
        "SQL concepts / SQLite",
        "SQLite SQL"
      ],
      "default_goal": "Summarize tiny study-session tables with a zero-session case.",
      "default_runtime": "SQLite CLI 3.54.0 on macOS 27.0.1 arm64",
      "default_constraints": "Fresh :memory: database per example; fixed toy SQL; no existing database or external input.",
      "audience": "Beginners who can save plain text and run an installed command-line runtime.",
      "estimated_practice": "4 to 6 hours, at your own pace.",
      "scope": "Queries, schema, joins, grouping, NULL, transactions, fixed CLI parameters and exercises. Portable concepts are distinguished from tested SQLite behavior.",
      "runtime_note": "SQL is a language family with implementation differences. This pack executes only the installed SQLite CLI 3.54.0 on macOS 27.0.1 arm64. SELECT, WHERE, explicit joins, grouping and NULL reasoning transfer broadly, but no other engine was tested. Dot commands, PRAGMA, typeof and SQLite affinity are labeled dialect details. Open each complete .sql file with sqlite3 -batch -init /dev/null -safe :memory: followed by input redirection from its quoted filename. Each invocation gets a new disposable in-memory database; never substitute an existing database path.",
      "lessons": [
        {
          "title": "Start with a named dialect",
          "text": "SQL is a language family with implementation differences. This pack executes only the installed SQLite CLI 3.54.0 on macOS 27.0.1 arm64. SELECT, WHERE, explicit joins, grouping and NULL reasoning transfer broadly, but no other engine was tested. Dot commands, PRAGMA, typeof and SQLite affinity are labeled dialect details. Open each complete .sql file with sqlite3 -batch -init /dev/null -safe :memory: followed by input redirection from its quoted filename. Each invocation gets a new disposable in-memory database; never substitute an existing database path."
        },
        {
          "title": "Read a query as a question",
          "text": "Name the required columns, source tables, row conditions and desired order. SELECT does not promise an order without ORDER BY. Use a stable tie breaker when equal sort keys matter. Write explicit JOIN ... ON rather than a comma join, and qualify ambiguous column names with aliases. Start with tiny records whose result you can predict by hand. A query that returns no rows is different from a query that failed; keep stderr and exit status in the test record."
        },
        {
          "title": "Give stored rows a contract",
          "text": "A primary key identifies a row, UNIQUE expresses a uniqueness rule and NOT NULL prevents absence. CHECK expresses a row condition. In SQLite ordinary type declarations give affinity rather than a universal rigid type contract. Example 02 combines an integer-affinity column with a SQLite typeof check. A nullable CHECK alone does not reject NULL; use NOT NULL when required. Foreign-key declarations need enforcement enabled per SQLite connection, outside an active transaction."
        },
        {
          "title": "Treat missing values deliberately",
          "text": "NULL is not zero or empty text. Use IS NULL or IS NOT NULL for presence tests. Many comparisons with NULL produce unknown and are not retained by WHERE. COUNT(*) includes all rows, while COUNT(expression) ignores NULL results. SUM of no non-NULL inputs returns NULL. Choose COALESCE only when the replacement has a stated meaning. NOT EXISTS is useful for missing relationships; NOT IN behaves differently if its candidate set includes NULL."
        },
        {
          "title": "Join first, then count the right thing",
          "text": "INNER JOIN retains matching pairs; LEFT JOIN also retains unmatched rows from the left. One-to-many matches can multiply rows and inflate totals if you join several child tables at once. Count the child primary key for zero-on-no-match summaries. A right-table predicate in WHERE may remove the unmatched rows you wanted to keep; placing a matching condition in ON has different semantics. Test an unmatched parent and multiple matches before trusting an aggregate."
        },
        {
          "title": "Group and name intermediate results",
          "text": "WHERE filters before aggregation; HAVING filters groups. List non-aggregate output columns in GROUP BY rather than depending on SQLite bare-column behavior. An ordinary WITH clause can name a summary for the current statement. CASE makes a result choice visible. These tools make a query understandable, but readability does not prove performance. Index selection, query plans, recursive CTEs and window functions remain later topics."
        },
        {
          "title": "Transactions need explicit outcomes",
          "text": "BEGIN groups changes until COMMIT or ROLLBACK. This pack rehearses updates and reversals only in memory. Keep a specific WHERE predicate and inspect affected state. An SQL error does not always abort the entire transaction; handle failure deliberately in application code. SQLite permits only one simultaneous writer, and transaction behavior and isolation differ between engines. Nested BEGIN is not a nesting mechanism; savepoints are a later topic."
        },
        {
          "title": "Separate values from SQL structure",
          "text": "Bind external values through the application driver instead of concatenating them into SQL text. Parameters represent literal values, not identifiers or keywords; choose identifiers from an allowlist in a real application. Example 07 uses only fixed authored CLI literals. SQLite .parameter set evaluates its value as an expression before fallback handling, so it is not a safe string-input API. The quote-shaped toy shows bound-query behavior, not an application security certification. Test constraints, NULL, missing rows and rollback as well as happy paths."
        }
      ],
      "reference": [
        {
          "area": "Query",
          "syntax": "SELECT columns FROM table",
          "meaning": "Name the output and its source."
        },
        {
          "area": "Filter",
          "syntax": "WHERE condition",
          "meaning": "Keep rows whose condition is true."
        },
        {
          "area": "Order",
          "syntax": "ORDER BY key, id",
          "meaning": "Specify deterministic ordering."
        },
        {
          "area": "Schema",
          "syntax": "PRIMARY KEY / UNIQUE",
          "meaning": "Identity and uniqueness rules."
        },
        {
          "area": "Schema",
          "syntax": "NOT NULL / CHECK",
          "meaning": "Presence and row-condition constraints."
        },
        {
          "area": "SQLite",
          "syntax": "typeof(value)",
          "meaning": "SQLite storage-class inspection, not portable SQL."
        },
        {
          "area": "Missing",
          "syntax": "IS NULL / IS NOT NULL",
          "meaning": "Test absence explicitly."
        },
        {
          "area": "Missing",
          "syntax": "COALESCE(value, fallback)",
          "meaning": "Choose a meaningful fallback."
        },
        {
          "area": "Join",
          "syntax": "JOIN ... ON / LEFT JOIN",
          "meaning": "Matching pairs / retain unmatched left rows."
        },
        {
          "area": "Aggregate",
          "syntax": "COUNT(*) / COUNT(column)",
          "meaning": "Rows / non-NULL column values."
        },
        {
          "area": "Aggregate",
          "syntax": "GROUP BY / HAVING",
          "meaning": "Form and filter group summaries."
        },
        {
          "area": "Query",
          "syntax": "WITH name AS (...)",
          "meaning": "Name a statement-scoped query step."
        },
        {
          "area": "Query",
          "syntax": "CASE WHEN ... THEN ... ELSE ... END",
          "meaning": "Compute a conditional result."
        },
        {
          "area": "Query",
          "syntax": "EXISTS / NOT EXISTS",
          "meaning": "Test whether matching rows exist."
        },
        {
          "area": "Transaction",
          "syntax": "BEGIN / COMMIT / ROLLBACK",
          "meaning": "Group, keep or reverse a toy change."
        },
        {
          "area": "Parameters",
          "syntax": ":minimum / driver binding API",
          "meaning": "Bind values; CLI .parameter is a separate expression parser."
        }
      ],
      "templates": [
        {
          "id": "build",
          "name": "Build an example",
          "text": "Create an original {language} example for {goal}. Runtime: {runtime}. Constraints: {constraints}. State the dialect, input contract, complete files and exact expected output. Use only tiny authored inputs in an isolated local practice environment. No production data, network, secrets, installations or destructive shell commands. Distinguish proposed tests from executed evidence."
        },
        {
          "id": "debug",
          "name": "Debug a failure",
          "text": "Debug this {language} behavior for {goal} under {runtime}. Constraints: {constraints}. Ask for the smallest reproducer, explain the failure, and suggest a focused correction with a regression case. Use only tiny authored inputs in an isolated local practice environment. No production data, network, secrets, installations or destructive shell commands. Distinguish proposed tests from executed evidence."
        },
        {
          "id": "test",
          "name": "Test the contract",
          "text": "Design tests for {goal} in {language} under {runtime}. Constraints: {constraints}. Cover empty input, boundaries, invalid values, status and side effects; provide expected outputs and an isolated test procedure. Use only tiny authored inputs in an isolated local practice environment. No production data, network, secrets, installations or destructive shell commands. Distinguish proposed tests from executed evidence."
        },
        {
          "id": "refactor",
          "name": "Refactor with evidence",
          "text": "Refactor {goal} in {language} for clarity under {runtime}. Constraints: {constraints}. Preserve behavior, identify dialect assumptions and compare results before and after. Use only tiny authored inputs in an isolated local practice environment. No production data, network, secrets, installations or destructive shell commands. Distinguish proposed tests from executed evidence."
        },
        {
          "id": "document",
          "name": "Document a local recipe",
          "text": "Document {goal} in {language} under {runtime}. Constraints: {constraints}. Explain inputs, exact invocation, outputs, failure handling, effects and limitations. Label SQLite details clearly. Use only tiny authored inputs in an isolated local practice environment. No production data, network, secrets, installations or destructive shell commands. Distinguish proposed tests from executed evidence."
        },
        {
          "id": "review",
          "name": "Review safety and portability",
          "text": "Review {goal} in {language} for SQLite portability and safety under {runtime}. Constraints: {constraints}. Check quoting or binding boundaries, unintended effects and failure behavior; distinguish observed facts from assumptions. Use only tiny authored inputs in an isolated local practice environment. No production data, network, secrets, installations or destructive shell commands. Distinguish proposed tests from executed evidence."
        }
      ],
      "examples": [
        {
          "id": "sql-query",
          "title": "SQL 01 Filter and order",
          "filename": "SQL 01 Filter and order.sql",
          "code": ".bail on\n.headers off\n.mode list\n.nullvalue NULL\nCREATE TABLE sessions (id INTEGER PRIMARY KEY, topic TEXT, minutes INTEGER);\nINSERT INTO sessions VALUES (1,'HTML',20),(2,'SQL',30),(3,'SQL',10);\nSELECT topic, minutes FROM sessions\nWHERE minutes >= 20 ORDER BY minutes DESC, id;\n",
          "expected_output": "SQL|30\nHTML|20",
          "expected_stdout": "SQL|30\nHTML|20\n",
          "explanation": "WHERE chooses rows; ORDER BY defines the displayed order, including a tie breaker. These clauses transfer broadly, but this complete file uses SQLite CLI dot commands. Every file starts with its own data.",
          "runner": "sqlite",
          "exercise": null,
          "checks": [
            [
              "SELECT COUNT(*) FROM sessions WHERE minutes > 100;",
              "0\n"
            ],
            [
              "SELECT COUNT(*) FROM sessions WHERE minutes >= 20;",
              "2\n"
            ]
          ],
          "concepts": [],
          "files": [],
          "test": {
            "status": "passed",
            "runtime": "SQLite CLI 3.54.0",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "SQL validation.json; exact stdout and additional assertions"
          },
          "dialect": "SQLite CLI; SQL concepts noted separately"
        },
        {
          "id": "sql-schema",
          "title": "SQL 02 Define a contract",
          "filename": "SQL 02 Define a contract.sql",
          "code": ".bail on\n.headers off\n.mode list\n.nullvalue NULL\nCREATE TABLE topics (\n  id INTEGER PRIMARY KEY,\n  name TEXT NOT NULL UNIQUE,\n  minutes INTEGER NOT NULL CHECK (typeof(minutes) = 'integer' AND minutes >= 0)\n);\nINSERT INTO topics VALUES (1,'SQL',25),(2,'Shell',0);\nSELECT id, name, minutes FROM topics ORDER BY id;\n",
          "expected_output": "1|SQL|25\n2|Shell|0",
          "expected_stdout": "1|SQL|25\n2|Shell|0\n",
          "explanation": "Keys identify rows, UNIQUE rejects duplicate names and NOT NULL rejects absence. SQLite affinity alone is not a rigid type contract: typeof in this CHECK is SQLite-specific. This is not portable schema DDL.",
          "runner": "sqlite",
          "exercise": null,
          "checks": [
            [
              "SELECT COUNT(*) FROM topics WHERE minutes = 0;",
              "1\n"
            ]
          ],
          "concepts": [],
          "files": [],
          "test": {
            "status": "passed",
            "runtime": "SQLite CLI 3.54.0",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "SQL validation.json; exact stdout and additional assertions"
          },
          "dialect": "SQLite CLI; SQL concepts noted separately"
        },
        {
          "id": "sql-null",
          "title": "SQL 03 Reason about NULL",
          "filename": "SQL 03 Reason about NULL.sql",
          "code": ".bail on\n.headers off\n.mode list\n.nullvalue NULL\nCREATE TABLE notes (id INTEGER PRIMARY KEY, minutes INTEGER);\nINSERT INTO notes VALUES (1,10),(2,NULL),(3,0);\nSELECT COUNT(*), COUNT(minutes), SUM(minutes) FROM notes;\nSELECT id, COALESCE(minutes, -1) FROM notes ORDER BY id;\nSELECT COUNT(*) FROM notes WHERE minutes = NULL;\nSELECT COUNT(*) FROM notes WHERE minutes IS NULL;\n",
          "expected_output": "3|2|10\n1|10\n2|-1\n3|0\n0\n1",
          "expected_stdout": "3|2|10\n1|10\n2|-1\n3|0\n0\n1\n",
          "explanation": "NULL represents a missing value. Equality with NULL does not become true; use IS NULL. COUNT(*) counts rows, COUNT(column) counts non-NULL values. COALESCE here uses -1 only as a display marker, not a stored replacement.",
          "runner": "sqlite",
          "exercise": null,
          "checks": [
            [
              "SELECT SUM(minutes) FROM notes WHERE id > 9;",
              "NULL\n"
            ]
          ],
          "concepts": [],
          "files": [],
          "test": {
            "status": "passed",
            "runtime": "SQLite CLI 3.54.0",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "SQL validation.json; exact stdout and additional assertions"
          },
          "dialect": "SQLite CLI; SQL concepts noted separately"
        },
        {
          "id": "sql-join",
          "title": "SQL 04 Keep unmatched topics",
          "filename": "SQL 04 Keep unmatched topics.sql",
          "code": ".bail on\n.headers off\n.mode list\n.nullvalue NULL\nPRAGMA foreign_keys = ON;\nCREATE TABLE topics (id INTEGER PRIMARY KEY, name TEXT NOT NULL);\nCREATE TABLE sessions (id INTEGER PRIMARY KEY,\n  topic_id INTEGER NOT NULL REFERENCES topics(id), minutes INTEGER NOT NULL);\nINSERT INTO topics VALUES (1,'SQL'),(2,'Shell'),(3,'Python');\nINSERT INTO sessions VALUES (1,1,20),(2,1,10),(3,2,15);\nSELECT t.name, COUNT(s.id), COALESCE(SUM(s.minutes),0)\nFROM topics AS t LEFT JOIN sessions AS s ON s.topic_id = t.id\nGROUP BY t.id, t.name ORDER BY t.id;\n",
          "expected_output": "SQL|2|30\nShell|1|15\nPython|0|0",
          "expected_stdout": "SQL|2|30\nShell|1|15\nPython|0|0\n",
          "explanation": "LEFT JOIN keeps each topic even without a session. Count the non-null child key rather than COUNT(*) to show zero for an unmatched row. A right-side filter in WHERE can remove unmatched rows. PRAGMA foreign_keys is SQLite-specific and set before writes.",
          "runner": "sqlite",
          "exercise": null,
          "checks": [
            [
              "PRAGMA foreign_keys;",
              "1\n"
            ],
            [
              "SELECT COUNT(*) FROM topics t JOIN sessions s ON s.topic_id=t.id;",
              "3\n"
            ]
          ],
          "concepts": [],
          "files": [],
          "test": {
            "status": "passed",
            "runtime": "SQLite CLI 3.54.0",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "SQL validation.json; exact stdout and additional assertions"
          },
          "dialect": "SQLite CLI; SQL concepts noted separately"
        },
        {
          "id": "sql-groups",
          "title": "SQL 05 Aggregate and filter groups",
          "filename": "SQL 05 Aggregate and filter groups.sql",
          "code": ".bail on\n.headers off\n.mode list\n.nullvalue NULL\nCREATE TABLE sessions (topic TEXT NOT NULL, minutes INTEGER NOT NULL);\nINSERT INTO sessions VALUES ('SQL',20),('SQL',15),('Shell',10);\nSELECT topic, COUNT(*), SUM(minutes) AS total\nFROM sessions WHERE minutes > 0\nGROUP BY topic HAVING SUM(minutes) >= 30 ORDER BY topic;\n",
          "expected_output": "SQL|2|35",
          "expected_stdout": "SQL|2|35\n",
          "explanation": "WHERE filters input rows, GROUP BY forms groups and HAVING filters group results. Every selected non-aggregate column appears in GROUP BY; avoid SQLite bare-column shortcuts when writing queries meant to transfer.",
          "runner": "sqlite",
          "exercise": null,
          "checks": [
            [
              "SELECT COUNT(*) FROM sessions;",
              "3\n"
            ]
          ],
          "concepts": [],
          "files": [],
          "test": {
            "status": "passed",
            "runtime": "SQLite CLI 3.54.0",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "SQL validation.json; exact stdout and additional assertions"
          },
          "dialect": "SQLite CLI; SQL concepts noted separately"
        },
        {
          "id": "sql-transactions",
          "title": "SQL 06 Commit and roll back",
          "filename": "SQL 06 Commit and roll back.sql",
          "code": ".bail on\n.headers off\n.mode list\n.nullvalue NULL\nCREATE TABLE progress (id INTEGER PRIMARY KEY, minutes INTEGER NOT NULL);\nINSERT INTO progress VALUES (1,10),(2,20);\nBEGIN;\nUPDATE progress SET minutes = minutes + 5 WHERE id = 1;\nROLLBACK;\nSELECT 'rolled back', minutes FROM progress WHERE id = 1;\nBEGIN;\nUPDATE progress SET minutes = minutes + 5 WHERE id = 1;\nCOMMIT;\nSELECT 'committed', minutes FROM progress WHERE id = 1;\nSELECT 'unchanged', minutes FROM progress WHERE id = 2;\n",
          "expected_output": "rolled back|10\ncommitted|15\nunchanged|20",
          "expected_stdout": "rolled back|10\ncommitted|15\nunchanged|20\n",
          "explanation": "Run only in the new in-memory database. The first change is undone; the second persists for this connection. The explicit key predicate limits the update. Do not assume every statement error rolls back a whole transaction; applications must handle errors and rollback deliberately.",
          "runner": "sqlite",
          "exercise": null,
          "checks": [
            [
              "SELECT SUM(minutes) FROM progress;",
              "35\n"
            ]
          ],
          "concepts": [],
          "files": [],
          "test": {
            "status": "passed",
            "runtime": "SQLite CLI 3.54.0",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "SQL validation.json; exact stdout and additional assertions"
          },
          "dialect": "SQLite CLI; SQL concepts noted separately"
        },
        {
          "id": "sql-parameters",
          "title": "SQL 07 Bind fixed toy values",
          "filename": "SQL 07 Bind fixed toy values.sql",
          "code": ".bail on\n.headers off\n.mode list\n.nullvalue NULL\nCREATE TABLE topics (name TEXT NOT NULL, minutes INTEGER NOT NULL);\nINSERT INTO topics VALUES ('SQL',30),('Shell',20);\n.parameter init\n.parameter set :minimum 25\nSELECT name FROM topics WHERE minutes >= :minimum ORDER BY name;\n.parameter set :topic \"'x'' OR 1=1 --'\"\nSELECT COUNT(*) FROM topics WHERE name = :topic;\nSELECT :topic;\n",
          "expected_output": "SQL\n0\nx' OR 1=1 --",
          "expected_stdout": "SQL\n0\nx' OR 1=1 --\n",
          "explanation": "The statement uses bound values, including a fixed quote-shaped string that stays data. The CLI .parameter set command itself evaluates SQL expressions; never construct it from untrusted text. In applications use the driver binding API with a fixed SQL statement. Placeholders cannot stand for table names or keywords.",
          "runner": "sqlite",
          "exercise": null,
          "checks": [
            [
              "SELECT COUNT(*) FROM topics;",
              "2\n"
            ],
            [
              "SELECT :not_set IS NULL;",
              "1\n"
            ]
          ],
          "concepts": [],
          "files": [],
          "test": {
            "status": "passed",
            "runtime": "SQLite CLI 3.54.0",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "SQL validation.json; exact stdout and additional assertions"
          },
          "dialect": "SQLite CLI; SQL concepts noted separately"
        },
        {
          "id": "sql-cte",
          "title": "SQL 08 Name a query step",
          "filename": "SQL 08 Name a query step.sql",
          "code": ".bail on\n.headers off\n.mode list\n.nullvalue NULL\nCREATE TABLE sessions (topic TEXT, minutes INTEGER);\nINSERT INTO sessions VALUES ('SQL',20),('SQL',15),('Shell',10);\nWITH totals AS (\n  SELECT topic, SUM(minutes) AS minutes FROM sessions GROUP BY topic\n)\nSELECT topic, minutes,\n  CASE WHEN minutes >= 30 THEN 'ready' ELSE 'practice' END AS next_step\nFROM totals ORDER BY topic;\n",
          "expected_output": "SQL|35|ready\nShell|10|practice",
          "expected_stdout": "SQL|35|ready\nShell|10|practice\n",
          "explanation": "An ordinary CTE names an intermediate query for one statement. CASE expresses a result choice. Neither is a persistent table here; a CTE is a readability tool, not a promise of a faster query.",
          "runner": "sqlite",
          "exercise": null,
          "checks": [
            [
              "SELECT COUNT(*) FROM sessions;",
              "3\n"
            ]
          ],
          "concepts": [],
          "files": [],
          "test": {
            "status": "passed",
            "runtime": "SQLite CLI 3.54.0",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "SQL validation.json; exact stdout and additional assertions"
          },
          "dialect": "SQLite CLI; SQL concepts noted separately"
        },
        {
          "id": "sql-exists",
          "title": "SQL 09 Find missing relationships",
          "filename": "SQL 09 Find missing relationships.sql",
          "code": ".bail on\n.headers off\n.mode list\n.nullvalue NULL\nCREATE TABLE topics (id INTEGER PRIMARY KEY, name TEXT);\nCREATE TABLE sessions (topic_id INTEGER);\nINSERT INTO topics VALUES (1,'SQL'),(2,'Shell');\nINSERT INTO sessions VALUES (1),(NULL);\nSELECT name FROM topics AS t\nWHERE NOT EXISTS (SELECT 1 FROM sessions AS s WHERE s.topic_id = t.id)\nORDER BY name;\n",
          "expected_output": "Shell",
          "expected_stdout": "Shell\n",
          "explanation": "NOT EXISTS tests whether a matching row exists. This deliberately includes a NULL in the child table: a NOT IN subquery containing NULL has different three-valued logic and can surprise beginners.",
          "runner": "sqlite",
          "exercise": null,
          "checks": [
            [
              "SELECT COUNT(*) FROM topics WHERE id NOT IN (SELECT topic_id FROM sessions);",
              "0\n"
            ]
          ],
          "concepts": [],
          "files": [],
          "test": {
            "status": "passed",
            "runtime": "SQLite CLI 3.54.0",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "SQL validation.json; exact stdout and additional assertions"
          },
          "dialect": "SQLite CLI; SQL concepts noted separately"
        },
        {
          "id": "sql-solution-a",
          "title": "SQL Exercise A Count all topics",
          "filename": "SQL Exercise A Count all topics.sql",
          "code": ".bail on\n.headers off\n.mode list\n.nullvalue NULL\nCREATE TABLE topics (id INTEGER PRIMARY KEY, name TEXT);\nCREATE TABLE sessions (id INTEGER PRIMARY KEY, topic_id INTEGER);\nINSERT INTO topics VALUES (1,'SQL'),(2,'Shell');\nINSERT INTO sessions VALUES (1,1),(2,1);\nSELECT t.name, COUNT(s.id) FROM topics AS t\nLEFT JOIN sessions AS s ON s.topic_id = t.id\nGROUP BY t.id, t.name ORDER BY t.name;\n",
          "expected_output": "SQL|2\nShell|0",
          "expected_stdout": "SQL|2\nShell|0\n",
          "explanation": "Count a non-null child key and group by the parent identity as well as its name. This keeps the topic with no sessions.",
          "runner": "sqlite",
          "exercise": "Return every topic and its session count, including zero. Sort names. Test a topic with no sessions.",
          "checks": [
            [
              "SELECT COUNT(*) FROM topics;",
              "2\n"
            ]
          ],
          "concepts": [],
          "files": [],
          "test": {
            "status": "passed",
            "runtime": "SQLite CLI 3.54.0",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "SQL validation.json; exact stdout and additional assertions"
          },
          "dialect": "SQLite CLI; SQL concepts noted separately"
        },
        {
          "id": "sql-solution-b",
          "title": "SQL Exercise B Preserve unknown minutes",
          "filename": "SQL Exercise B Preserve unknown minutes.sql",
          "code": ".bail on\n.headers off\n.mode list\n.nullvalue NULL\nCREATE TABLE sessions (id INTEGER PRIMARY KEY, minutes INTEGER);\nINSERT INTO sessions VALUES (1,0),(2,NULL),(3,15);\nSELECT COUNT(*) AS rows, COUNT(minutes) AS known,\n  COUNT(*) - COUNT(minutes) AS unknown,\n  SUM(minutes) AS known_total FROM sessions;\n",
          "expected_output": "3|2|1|15",
          "expected_stdout": "3|2|1|15\n",
          "explanation": "Zero is a known value; NULL is unknown. The total summarizes only the known values and must not be described as the complete total.",
          "runner": "sqlite",
          "exercise": "Summarize row count, known count, unknown count and known-minute total without turning unknown into zero.",
          "checks": [
            [
              "SELECT COUNT(minutes), SUM(minutes) FROM sessions WHERE id > 9;",
              "0|NULL\n"
            ],
            [
              "SELECT COUNT(*), COUNT(minutes), COUNT(*) - COUNT(minutes), SUM(minutes) FROM sessions WHERE id > 9;",
              "0|0|0|NULL\n"
            ]
          ],
          "concepts": [],
          "files": [],
          "test": {
            "status": "passed",
            "runtime": "SQLite CLI 3.54.0",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "SQL validation.json; exact stdout and additional assertions"
          },
          "dialect": "SQLite CLI; SQL concepts noted separately"
        },
        {
          "id": "sql-solution-c",
          "title": "SQL Exercise C Rehearse a change",
          "filename": "SQL Exercise C Rehearse a change.sql",
          "code": ".bail on\n.headers off\n.mode list\n.nullvalue NULL\nCREATE TABLE progress (id INTEGER PRIMARY KEY, minutes INTEGER CHECK(minutes >= 0));\nINSERT INTO progress VALUES (1,20);\nBEGIN;\nUPDATE progress SET minutes = 25 WHERE id = 1;\nSELECT 'preview', minutes FROM progress WHERE id = 1;\nROLLBACK;\nSELECT 'restored', minutes FROM progress WHERE id = 1;\n",
          "expected_output": "preview|25\nrestored|20",
          "expected_stdout": "preview|25\nrestored|20\n",
          "explanation": "The preview is a reversible transaction in an isolated in-memory toy database, not a production change plan.",
          "runner": "sqlite",
          "exercise": "Change one toy row inside a transaction, display it, roll back and prove the original value remains.",
          "checks": [
            [
              "SELECT COUNT(*) FROM progress;",
              "1\n"
            ]
          ],
          "concepts": [],
          "files": [],
          "test": {
            "status": "passed",
            "runtime": "SQLite CLI 3.54.0",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "SQL validation.json; exact stdout and additional assertions"
          },
          "dialect": "SQLite CLI; SQL concepts noted separately"
        }
      ],
      "test_summary": {
        "result": "passed",
        "tested_on": "2026-10-25",
        "runtime": "SQLite CLI 3.54.0",
        "full_runtime_version": "3.54.0 2026-04-09 12:25:13 8fa8248e303219400c646a885e36dfc52eae33d83f4412e3f369b2be5373aapl (64-bit)",
        "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
        "example_count": 12,
        "assertion_count": 74,
        "limitations": [
          "Only the installed SQLite CLI was executed; no other SQL dialect tested.",
          "CLI .parameter fixtures contain only fixed authored literals; no application input binding implementation was tested."
        ]
      }
    },
    {
      "id": "shell-foundations",
      "title": "Shell Foundations",
      "version": "0.10.0",
      "status": "tested",
      "entry_ids": [
        "posix-shell",
        "bash",
        "zsh"
      ],
      "languages": [
        "POSIX-style shell",
        "Bash",
        "Zsh"
      ],
      "default_goal": "Plan a tiny report and write it only inside a new toy directory.",
      "default_runtime": "macOS 27.0.1 arm64: /bin/sh selects Bash 3.2.57; Bash 3.2.57; Zsh 5.9",
      "default_constraints": "Quoted data; bounded input; new toy directories only; default dry run; no network, secrets or deletion commands.",
      "audience": "Beginners who can save plain text and run an installed command-line runtime.",
      "estimated_practice": "4 to 6 hours, at your own pace.",
      "scope": "Quoting, pipes, status, toy files, loops, functions and safe automation patterns. POSIX-style syntax, Bash 3.2 and native Zsh are distinguished.",
      "runtime_note": "The terminal is an interface; sh, Bash and Zsh interpret command text. This pack tests macOS /bin/sh (selecting Bash 3.2.57), /bin/bash 3.2.57 and /bin/zsh 5.9. POSIX-style examples use a conservative shared syntax subset; Bash and Zsh examples name their extensions. Run scripts using the stated interpreter and a quoted filename; executable permission is unnecessary. A shebang documents the intended interpreter when a script is launched directly, but an explicit shell command chooses the interpreter regardless of the shebang.",
      "lessons": [
        {
          "title": "A shell is an interpreter, not a terminal",
          "text": "The terminal is an interface; sh, Bash and Zsh interpret command text. This pack tests macOS /bin/sh (selecting Bash 3.2.57), /bin/bash 3.2.57 and /bin/zsh 5.9. POSIX-style examples use a conservative shared syntax subset; Bash and Zsh examples name their extensions. Run scripts using the stated interpreter and a quoted filename; executable permission is unnecessary. A shebang documents the intended interpreter when a script is launched directly, but an explicit shell command chooses the interpreter regardless of the shebang."
        },
        {
          "title": "Preserve data as arguments",
          "text": "Shell parsing, expansion and argument construction happen before a command runs. Use single quotes for fixed literal text and double quotes around variable expansions. Use \"$@\" to pass positional arguments individually. A wildcard stored in quoted data stays text. Avoid eval, command strings and sourcing untrusted files. printf with a fixed format is more predictable than treating user text as the format. Names with spaces, leading dashes or newlines need deliberate treatment; these exercises never use arguments as arbitrary file paths."
        },
        {
          "title": "Make failures observable",
          "text": "An exit status of zero means success; nonzero meanings depend on the command. Inspect $? immediately or put the command in an if condition. && runs its right side after success; || runs its right side after failure. stderr is separate from stdout. Do not assume set -e provides complete error handling: context changes its behavior. Script checks here record stdout, stderr and exit status, including invalid inputs. A syntax check catches parse errors, not incorrect behavior."
        },
        {
          "title": "Pipes need a status policy",
          "text": "A pipeline connects stdout to the next command. Without pipefail its status comes from the final command, so a failed earlier command can be hidden. Bash and Zsh support pipefail but differ in syntax and other behaviors. POSIX.1-2024 includes pipefail; older portability targets do not. This pack keeps the shared example at default behavior and labels dialect-specific checks. Avoid relying on a variable assigned inside a piped loop remaining visible outside it; shells differ. Feed a current-shell loop with redirection or a here-document."
        },
        {
          "title": "File practice owns a small new directory",
          "text": "Redirection can overwrite files before a command runs. The file examples use macOS mktemp -d with a template under the current writable practice directory, umask 077 and fixed filenames inside the new directory. mktemp is a platform utility and not claimed as universal POSIX tooling. Only files created by the example are read. The scripts retain toy folders for inspection and contain no deletion commands. The harness removes only its own outer temporary directory. Never substitute a real document path."
        },
        {
          "title": "Read and loop without losing text",
          "text": "IFS= read -r preserves leading/trailing whitespace and backslashes in a line. The examples use fixed newline-terminated text; a general arbitrary-file reader also needs a policy for a final line without a newline and cannot treat NUL-delimited data as ordinary shell strings. A quoted here-document delimiter suppresses expansion in its body. A for loop over positional parameters keeps argument boundaries. Bound while loops with validated inputs and test zero, maximum and invalid cases."
        },
        {
          "title": "Functions and dialect boundaries",
          "text": "A shell function can communicate success through return and text through stdout. Prefer small functions with explicit input contracts. Bash 3.2 has zero-based indexed arrays but no associative arrays. Native Zsh arrays usually start at one, and its scalar splitting and glob defaults differ. Shell options can alter these behaviors, so the Zsh example uses emulate to establish native mode. The portable examples avoid arrays, [[ ... ]], local and shell-specific substitutions; passing three invocation modes across two implementations is evidence, not a standards certificate."
        },
        {
          "title": "Build automation with a dry run first",
          "text": "Separate deciding from doing. Default to a printed plan, accept only documented modes, validate inputs before arithmetic or file access, and stop when creating the toy directory fails. The explicit write mode creates only a new fixed report. No cron jobs, network commands, permission changes or production integrations are included. Run tests with an empty controlled environment and a small PATH. Timeouts and a fresh directory bound trusted teaching examples; they are not a sandbox for arbitrary downloaded shell code."
        }
      ],
      "reference": [
        {
          "area": "Quoting",
          "syntax": "'literal' / \"$value\"",
          "meaning": "Literal text / one expanded argument."
        },
        {
          "area": "Arguments",
          "syntax": "\"$@\" / \"$#\"",
          "meaning": "Separate arguments / argument count."
        },
        {
          "area": "Output",
          "syntax": "printf '%s\\n' \"$value\"",
          "meaning": "Use a fixed format for text."
        },
        {
          "area": "Status",
          "syntax": "if command; then ...; else ...; fi",
          "meaning": "Handle success and failure explicitly."
        },
        {
          "area": "Status",
          "syntax": "$? / return / exit",
          "meaning": "Previous status / function outcome / process outcome."
        },
        {
          "area": "Flow",
          "syntax": "&& / ||",
          "meaning": "Continue after success / failure."
        },
        {
          "area": "Streams",
          "syntax": "producer | consumer",
          "meaning": "Connect stdout; decide how failures propagate."
        },
        {
          "area": "Streams",
          "syntax": "> / >> / 2>",
          "meaning": "Overwrite / append / redirect stderr; paths have effects."
        },
        {
          "area": "Input",
          "syntax": "IFS= read -r line",
          "meaning": "Preserve whitespace and backslashes."
        },
        {
          "area": "Flow",
          "syntax": "for item do ... done",
          "meaning": "Iterate over positional arguments."
        },
        {
          "area": "Flow",
          "syntax": "case \"$value\" in ... esac",
          "meaning": "Match a small allowed input set."
        },
        {
          "area": "Functions",
          "syntax": "name() { ...; }",
          "meaning": "Define a reusable shell operation."
        },
        {
          "area": "Files",
          "syntax": "mktemp -d './atlas-shell.XXXXXX'",
          "meaning": "macOS utility: create a new local toy folder."
        },
        {
          "area": "Bash",
          "syntax": "array=(...); \"${array[0]}\"",
          "meaning": "Bash indexed arrays start at zero."
        },
        {
          "area": "Zsh",
          "syntax": "emulate -L zsh; \"${array[1]}\"",
          "meaning": "Native Zsh mode; first array element is one."
        },
        {
          "area": "Safety",
          "syntax": "--dry-run / --write-toy",
          "meaning": "Example-specific allowlisted modes, not universal command flags."
        }
      ],
      "templates": [
        {
          "id": "build",
          "name": "Build an example",
          "text": "Create an original {language} example for {goal}. Runtime: {runtime}. Constraints: {constraints}. State the dialect, input contract, complete files and exact expected output. Use only tiny authored inputs in an isolated local practice environment. No production data, network, secrets, installations or destructive shell commands. Distinguish proposed tests from executed evidence."
        },
        {
          "id": "debug",
          "name": "Debug a failure",
          "text": "Debug this {language} behavior for {goal} under {runtime}. Constraints: {constraints}. Ask for the smallest reproducer, explain the failure, and suggest a focused correction with a regression case. Use only tiny authored inputs in an isolated local practice environment. No production data, network, secrets, installations or destructive shell commands. Distinguish proposed tests from executed evidence."
        },
        {
          "id": "test",
          "name": "Test the contract",
          "text": "Design tests for {goal} in {language} under {runtime}. Constraints: {constraints}. Cover empty input, boundaries, invalid values, status and side effects; provide expected outputs and an isolated test procedure. Use only tiny authored inputs in an isolated local practice environment. No production data, network, secrets, installations or destructive shell commands. Distinguish proposed tests from executed evidence."
        },
        {
          "id": "refactor",
          "name": "Refactor with evidence",
          "text": "Refactor {goal} in {language} for clarity under {runtime}. Constraints: {constraints}. Preserve behavior, identify dialect assumptions and compare results before and after. Use only tiny authored inputs in an isolated local practice environment. No production data, network, secrets, installations or destructive shell commands. Distinguish proposed tests from executed evidence."
        },
        {
          "id": "document",
          "name": "Document a local recipe",
          "text": "Document {goal} in {language} under {runtime}. Constraints: {constraints}. Explain inputs, exact invocation, outputs, failure handling, effects and limitations. Label shell dialect details clearly. Use only tiny authored inputs in an isolated local practice environment. No production data, network, secrets, installations or destructive shell commands. Distinguish proposed tests from executed evidence."
        },
        {
          "id": "review",
          "name": "Review safety and portability",
          "text": "Review {goal} in {language} for shell dialect portability and safety under {runtime}. Constraints: {constraints}. Check quoting or binding boundaries, unintended effects and failure behavior; distinguish observed facts from assumptions. Use only tiny authored inputs in an isolated local practice environment. No production data, network, secrets, installations or destructive shell commands. Distinguish proposed tests from executed evidence."
        }
      ],
      "examples": [
        {
          "id": "sh-quote",
          "title": "Shell 01 Preserve argument boundaries",
          "filename": "Shell 01 Preserve argument boundaries.sh",
          "code": "#!/bin/sh\ntopic='SQL and Shell'\nliteral='*.txt; $(not_a_command)'\nprintf 'Topic: %s\\n' \"$topic\"\nprintf 'Literal: %s\\n' \"$literal\"\nset -- \"$topic\" \"$literal\" ''\nprintf 'Arguments: %s\\n' \"$#\"\n",
          "expected_output": "Topic: SQL and Shell\nLiteral: *.txt; $(not_a_command)\nArguments: 3",
          "expected_stdout": "Topic: SQL and Shell\nLiteral: *.txt; $(not_a_command)\nArguments: 3\n",
          "explanation": "Single quotes hold literal text; double quotes preserve an expanded value as one argument. Quoting data does not execute the characters stored in it. Use a fixed printf format. The empty argument is retained.",
          "runner": "shell",
          "exercise": null,
          "checks": [],
          "concepts": [],
          "files": [],
          "test": {
            "status": "passed",
            "runtime": "macOS sh (Bash 3.2.57) / Bash 3.2.57 / Zsh 5.9",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Shell validation.json; interpreter matrix, exact streams/status and file effects"
          }
        },
        {
          "id": "sh-status",
          "title": "Shell 02 Inspect exit status",
          "filename": "Shell 02 Inspect exit status.sh",
          "code": "#!/bin/sh\nif false; then\n  printf '%s\\n' 'Unexpected success'\nelse\n  result=$?\n  printf 'Handled status: %s\\n' \"$result\"\nfi\nprintf '%s\\n' 'Continue deliberately'\n",
          "expected_output": "Handled status: 1\nContinue deliberately",
          "expected_stdout": "Handled status: 1\nContinue deliberately\n",
          "explanation": "Zero means success; nonzero denotes failure or another documented outcome. Save $? immediately. This example handles a known failure in if instead of relying on set -e, whose contextual rules can surprise learners.",
          "runner": "shell",
          "exercise": null,
          "checks": [],
          "concepts": [],
          "files": [],
          "test": {
            "status": "passed",
            "runtime": "macOS sh (Bash 3.2.57) / Bash 3.2.57 / Zsh 5.9",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Shell validation.json; interpreter matrix, exact streams/status and file effects"
          }
        },
        {
          "id": "sh-pipe",
          "title": "Shell 03 Transform a tiny stream",
          "filename": "Shell 03 Transform a tiny stream.sh",
          "code": "#!/bin/sh\nprintf '%s\\n' beta alpha beta | LC_ALL=C sort | uniq\nfalse | cat\nresult=$?\nprintf 'Default pipeline status: %s\\n' \"$result\"\n",
          "expected_output": "alpha\nbeta\nDefault pipeline status: 0",
          "expected_stdout": "alpha\nbeta\nDefault pipeline status: 0\n",
          "explanation": "A pipe sends stdout to the next command. Sorting groups duplicates for uniq. With pipefail disabled, the final command determines the status; the failed first command is hidden here. Older POSIX shell targets do not promise pipefail; POSIX.1-2024 adds it, while installed-runtime support still needs checking.",
          "runner": "shell",
          "exercise": null,
          "checks": [],
          "concepts": [],
          "files": [],
          "test": {
            "status": "passed",
            "runtime": "macOS sh (Bash 3.2.57) / Bash 3.2.57 / Zsh 5.9",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Shell validation.json; interpreter matrix, exact streams/status and file effects"
          }
        },
        {
          "id": "sh-files",
          "title": "Shell 04 Write only a new toy file",
          "filename": "Shell 04 Write only a new toy file.sh",
          "code": "#!/bin/sh\numask 077\ntoy_dir=$(mktemp -d './atlas-shell.XXXXXX') || exit 1\nprintf '%s\\n' 'Read one example' 'Change one value' > \"$toy_dir/notes.txt\" || exit 1\ncount=0\nwhile IFS= read -r line; do\n  count=$((count + 1))\n  printf 'Line %s: %s\\n' \"$count\" \"$line\"\ndone < \"$toy_dir/notes.txt\"\nprintf 'Lines: %s\\n' \"$count\"\nprintf '%s\\n' 'Toy folder retained for inspection.'\n",
          "expected_output": "Line 1: Read one example\nLine 2: Change one value\nLines: 2\nToy folder retained for inspection.",
          "expected_stdout": "Line 1: Read one example\nLine 2: Change one value\nLines: 2\nToy folder retained for inspection.\n",
          "explanation": "macOS mktemp creates a new directory inside the writable practice folder. Its utility syntax is platform-specific. Fixed names inside that new directory cannot overwrite a previous document. IFS= read -r preserves spaces and backslashes. No deletion command is included; the test harness cleans its own outer directory.",
          "runner": "shell",
          "exercise": null,
          "checks": [],
          "concepts": [],
          "files": [],
          "test": {
            "status": "passed",
            "runtime": "macOS sh (Bash 3.2.57) / Bash 3.2.57 / Zsh 5.9",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Shell validation.json; interpreter matrix, exact streams/status and file effects"
          },
          "creates_toy": true
        },
        {
          "id": "sh-loops",
          "title": "Shell 05 Loop over quoted values",
          "filename": "Shell 05 Loop over quoted values.sh",
          "code": "#!/bin/sh\nset -- 'SQL basics' 'Shell basics' 'Python basics'\ncount=0\nfor topic do\n  count=$((count + 1))\n  printf '%s: %s\\n' \"$count\" \"$topic\"\ndone\nprintf 'Visited: %s\\n' \"$count\"\n",
          "expected_output": "1: SQL basics\n2: Shell basics\n3: Python basics\nVisited: 3",
          "expected_stdout": "1: SQL basics\n2: Shell basics\n3: Python basics\nVisited: 3\n",
          "explanation": "The for loop without an in-list visits positional parameters as separate values. Arithmetic is used only on an internal counter. Do not feed untrusted strings into shell arithmetic or turn command text into code.",
          "runner": "shell",
          "exercise": null,
          "checks": [],
          "concepts": [],
          "files": [],
          "test": {
            "status": "passed",
            "runtime": "macOS sh (Bash 3.2.57) / Bash 3.2.57 / Zsh 5.9",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Shell validation.json; interpreter matrix, exact streams/status and file effects"
          }
        },
        {
          "id": "sh-functions",
          "title": "Shell 06 Validate with a function",
          "filename": "Shell 06 Validate with a function.sh",
          "code": "#!/bin/sh\nvalid_topic() {\n  case \"$1\" in\n    ''|*[!ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-]*) return 1 ;;\n    *) return 0 ;;\n  esac\n}\nfor candidate in 'sql_01' 'two words' '' '../notes' 'é' 'Ä'; do\n  if valid_topic \"$candidate\"; then\n    printf 'Accepted: <%s>\\n' \"$candidate\"\n  else\n    printf 'Rejected: <%s>\\n' \"$candidate\"\n  fi\ndone\n",
          "expected_output": "Accepted: <sql_01>\nRejected: <two words>\nRejected: <>\nRejected: <../notes>\nRejected: <é>\nRejected: <Ä>",
          "expected_stdout": "Accepted: <sql_01>\nRejected: <two words>\nRejected: <>\nRejected: <../notes>\nRejected: <é>\nRejected: <Ä>\n",
          "explanation": "The function returns a status, not a text result. The allowlist accepts a deliberately small ASCII token. It is a demonstration contract, not a universal filename sanitizer. No path is opened.",
          "runner": "shell",
          "exercise": null,
          "checks": [],
          "concepts": [],
          "files": [],
          "test": {
            "status": "passed",
            "runtime": "macOS sh (Bash 3.2.57) / Bash 3.2.57 / Zsh 5.9",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Shell validation.json; interpreter matrix, exact streams/status and file effects"
          },
          "variants": [
            {
              "args": [],
              "stdout": "Accepted: <sql_01>\nRejected: <two words>\nRejected: <>\nRejected: <../notes>\nRejected: <é>\nRejected: <Ä>\n",
              "stderr": "",
              "exit_code": 0,
              "toy": false,
              "locale": "en_US.UTF-8"
            }
          ]
        },
        {
          "id": "sh-plan",
          "title": "Shell 07 Default to a dry run",
          "filename": "Shell 07 Default to a dry run.sh",
          "code": "#!/bin/sh\nmode=${1---dry-run}\ncase \"$mode\" in\n  --dry-run) printf '%s\\n' 'Would create a new toy report.' ;;\n  --write-toy)\n    umask 077\n    toy_dir=$(mktemp -d './atlas-shell.XXXXXX') || exit 1\n    printf '%s\\n' 'Study: SQL and Shell' > \"$toy_dir/report.txt\" || exit 1\n    printf '%s\\n' 'Created one new toy report; folder retained.' ;;\n  *) printf '%s\\n' 'Use --dry-run or --write-toy.' >&2; exit 2 ;;\nesac\n",
          "expected_output": "Would create a new toy report.",
          "expected_stdout": "Would create a new toy report.\n",
          "explanation": "No argument previews the operation. An explicit allowlisted mode creates one fixed report inside a new toy directory. Invalid modes fail before a write. This is a safe teaching pattern, not a scheduler or production automation system.",
          "runner": "shell",
          "exercise": null,
          "checks": [],
          "concepts": [],
          "files": [],
          "test": {
            "status": "passed",
            "runtime": "macOS sh (Bash 3.2.57) / Bash 3.2.57 / Zsh 5.9",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Shell validation.json; interpreter matrix, exact streams/status and file effects"
          },
          "variants": [
            {
              "args": [
                "--write-toy"
              ],
              "stdout": "Created one new toy report; folder retained.\n",
              "stderr": "",
              "exit_code": 0,
              "toy": true
            },
            {
              "args": [
                "--bad"
              ],
              "stdout": "",
              "stderr": "Use --dry-run or --write-toy.\n",
              "exit_code": 2,
              "toy": false
            },
            {
              "args": [
                ""
              ],
              "stdout": "",
              "stderr": "Use --dry-run or --write-toy.\n",
              "exit_code": 2,
              "toy": false
            }
          ]
        },
        {
          "id": "sh-bash",
          "title": "Shell 08 Use Bash features explicitly",
          "filename": "Shell 08 Use Bash features explicitly.bash",
          "code": "#!/bin/bash\ntopics=('SQL basics' 'Shell basics')\nprintf 'First: %s\\n' \"${topics[0]}\"\nprintf 'Count: %s\\n' \"${#topics[@]}\"\nfor topic in \"${topics[@]}\"; do printf '<%s>\\n' \"$topic\"; done\nset -o pipefail\nif false | cat; then\n  printf '%s\\n' 'Unexpected success'\nelse\n  printf 'Bash pipeline status: %s\\n' \"$?\"\nfi\n",
          "expected_output": "First: SQL basics\nCount: 2\n<SQL basics>\n<Shell basics>\nBash pipeline status: 1",
          "expected_stdout": "First: SQL basics\nCount: 2\n<SQL basics>\n<Shell basics>\nBash pipeline status: 1\n",
          "explanation": "Run with Bash 3.2.57, not sh. Indexed arrays are zero-based, and quoted array expansion preserves each element. This old Bash lacks modern associative arrays. pipefail exposes the failed producer in this example.",
          "runner": "bash",
          "exercise": null,
          "checks": [],
          "concepts": [],
          "files": [],
          "test": {
            "status": "passed",
            "runtime": "Bash 3.2.57",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Shell validation.json; interpreter matrix, exact streams/status and file effects"
          }
        },
        {
          "id": "sh-zsh",
          "title": "Shell 09 Use native Zsh deliberately",
          "filename": "Shell 09 Use native Zsh deliberately.zsh",
          "code": "#!/bin/zsh\nemulate -L zsh\ntopics=('SQL basics' 'Shell basics')\nprintf 'First: %s\\n' \"${topics[1]}\"\nprintf 'Count: %s\\n' \"${#topics[@]}\"\nfor topic in \"${topics[@]}\"; do printf '<%s>\\n' \"$topic\"; done\nsetopt PIPE_FAIL\nif false | cat; then\n  printf '%s\\n' 'Unexpected success'\nelse\n  printf 'Zsh pipeline status: %s\\n' \"$?\"\nfi\n",
          "expected_output": "First: SQL basics\nCount: 2\n<SQL basics>\n<Shell basics>\nZsh pipeline status: 1",
          "expected_stdout": "First: SQL basics\nCount: 2\n<SQL basics>\n<Shell basics>\nZsh pipeline status: 1\n",
          "explanation": "Native Zsh normally indexes arrays from one. emulate establishes the intended option mode. Default unquoted scalar splitting and unmatched glob behavior differ from Bash; these examples quote values and avoid ambiguous globbing. Use the named interpreter.",
          "runner": "zsh",
          "exercise": null,
          "checks": [],
          "concepts": [],
          "files": [],
          "test": {
            "status": "passed",
            "runtime": "Zsh 5.9",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Shell validation.json; interpreter matrix, exact streams/status and file effects"
          }
        },
        {
          "id": "sh-solution-a",
          "title": "Shell Exercise A Keep every argument",
          "filename": "Shell Exercise A Keep every argument.sh",
          "code": "#!/bin/sh\nif [ \"$#\" -eq 0 ]; then set -- 'SQL basics' '*.txt' ''; fi\ncount=0\nfor item do\n  count=$((count + 1))\n  printf '%s: <%s>\\n' \"$count\" \"$item\"\ndone\nprintf 'Arguments: %s\\n' \"$count\"\n",
          "expected_output": "1: <SQL basics>\n2: <*.txt>\n3: <>\nArguments: 3",
          "expected_stdout": "1: <SQL basics>\n2: <*.txt>\n3: <>\nArguments: 3\n",
          "explanation": "No-argument mode supplies three toy values; explicit arguments are kept exactly as separate strings. The wildcard is printed literally.",
          "runner": "shell",
          "exercise": "Print each argument and a count, preserving spaces, empty strings and wildcard characters. With no arguments use the three toy values.",
          "checks": [],
          "concepts": [],
          "files": [],
          "test": {
            "status": "passed",
            "runtime": "macOS sh (Bash 3.2.57) / Bash 3.2.57 / Zsh 5.9",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Shell validation.json; interpreter matrix, exact streams/status and file effects"
          },
          "variants": [
            {
              "args": [
                "a b",
                "",
                "*.txt"
              ],
              "stdout": "1: <a b>\n2: <>\n3: <*.txt>\nArguments: 3\n",
              "stderr": "",
              "exit_code": 0,
              "toy": false
            }
          ]
        },
        {
          "id": "sh-solution-b",
          "title": "Shell Exercise B Count literal lines",
          "filename": "Shell Exercise B Count literal lines.sh",
          "code": "#!/bin/sh\ncount=0\nwhile IFS= read -r line; do\n  case \"$line\" in '') continue ;; esac\n  count=$((count + 1))\n  printf '<%s>\\n' \"$line\"\ndone <<'LESSON_TEXT'\nSQL basics\n\n  keep spaces  \nliteral\\backslash\nLESSON_TEXT\nprintf 'Nonempty lines: %s\\n' \"$count\"\n",
          "expected_output": "<SQL basics>\n<  keep spaces  >\n<literal\\backslash>\nNonempty lines: 3",
          "expected_stdout": "<SQL basics>\n<  keep spaces  >\n<literal\\backslash>\nNonempty lines: 3\n",
          "explanation": "A quoted here-document supplies fixed literal input. The loop stays in the current shell and preserves its counter. Empty means zero characters here; a whitespace-only line would count.",
          "runner": "shell",
          "exercise": "Count nonempty lines from literal toy input while preserving leading/trailing spaces and backslashes. Keep the final count outside the loop.",
          "checks": [],
          "concepts": [],
          "files": [],
          "test": {
            "status": "passed",
            "runtime": "macOS sh (Bash 3.2.57) / Bash 3.2.57 / Zsh 5.9",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Shell validation.json; interpreter matrix, exact streams/status and file effects"
          }
        },
        {
          "id": "sh-solution-c",
          "title": "Shell Exercise C Bound a small loop",
          "filename": "Shell Exercise C Bound a small loop.sh",
          "code": "#!/bin/sh\nrequested=${1-3}\ncase \"$requested\" in\n  0|1|2|3|4|5) ;;\n  *) printf '%s\\n' 'Use one digit from 0 to 5.' >&2; exit 2 ;;\nesac\ncount=0\nwhile [ \"$count\" -lt \"$requested\" ]; do\n  count=$((count + 1))\n  printf 'Practice %s\\n' \"$count\"\ndone\nprintf 'Completed: %s\\n' \"$count\"\n",
          "expected_output": "Practice 1\nPractice 2\nPractice 3\nCompleted: 3",
          "expected_stdout": "Practice 1\nPractice 2\nPractice 3\nCompleted: 3\n",
          "explanation": "An exact allowlist bounds the loop before numeric comparison. It rejects negative, large, empty and expression-shaped inputs. This avoids arithmetic interpretation of arbitrary text.",
          "runner": "shell",
          "exercise": "Accept only one digit from 0 to 5, default to 3, print that many steps and a summary. Reject every other argument before the loop.",
          "checks": [],
          "concepts": [],
          "files": [],
          "test": {
            "status": "passed",
            "runtime": "macOS sh (Bash 3.2.57) / Bash 3.2.57 / Zsh 5.9",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Shell validation.json; interpreter matrix, exact streams/status and file effects"
          },
          "variants": [
            {
              "args": [
                "0"
              ],
              "stdout": "Completed: 0\n",
              "stderr": "",
              "exit_code": 0,
              "toy": false
            },
            {
              "args": [
                "5"
              ],
              "stdout": "Practice 1\nPractice 2\nPractice 3\nPractice 4\nPractice 5\nCompleted: 5\n",
              "stderr": "",
              "exit_code": 0,
              "toy": false
            },
            {
              "args": [
                ""
              ],
              "stdout": "",
              "stderr": "Use one digit from 0 to 5.\n",
              "exit_code": 2,
              "toy": false
            },
            {
              "args": [
                "-1"
              ],
              "stdout": "",
              "stderr": "Use one digit from 0 to 5.\n",
              "exit_code": 2,
              "toy": false
            },
            {
              "args": [
                "6"
              ],
              "stdout": "",
              "stderr": "Use one digit from 0 to 5.\n",
              "exit_code": 2,
              "toy": false
            },
            {
              "args": [
                "1+1"
              ],
              "stdout": "",
              "stderr": "Use one digit from 0 to 5.\n",
              "exit_code": 2,
              "toy": false
            },
            {
              "args": [
                "$(bad)"
              ],
              "stdout": "",
              "stderr": "Use one digit from 0 to 5.\n",
              "exit_code": 2,
              "toy": false
            },
            {
              "args": [
                "03"
              ],
              "stdout": "",
              "stderr": "Use one digit from 0 to 5.\n",
              "exit_code": 2,
              "toy": false
            }
          ]
        }
      ],
      "test_summary": {
        "result": "passed",
        "tested_on": "2026-10-25",
        "runtime": "macOS sh (Bash 3.2.57), Bash 3.2.57, Zsh 5.9",
        "full_runtime_versions": {
          "sh": "3.2.57(1)-release",
          "bash": "GNU bash, version 3.2.57(1)-release (arm64-apple-darwin26)",
          "zsh": "zsh 5.9 (arm64-apple-darwin26.0)"
        },
        "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
        "example_count": 12,
        "execution_count": 71,
        "assertion_count": 515,
        "limitations": [
          "macOS only; sh selects Bash on this host and is not a third independent implementation.",
          "Conservative POSIX-style subset; not conformance certification.",
          "The fresh directory, empty environment and resource limits are not a sandbox for arbitrary scripts."
        ]
      }
    },
    {
      "id": "typescript-foundations",
      "title": "TypeScript Foundations",
      "version": "0.10.0",
      "status": "tested",
      "entry_ids": [
        "typescript"
      ],
      "languages": [
        "TypeScript"
      ],
      "default_goal": "Build a typed local study summary with an explicit input contract.",
      "default_runtime": "TypeScript 6.0.3 and Node 24.18.0 on macOS 27.0.1",
      "default_constraints": "Installed compiler only; strict configuration; no packages or network; separate static diagnostics from runtime checks.",
      "audience": "Learners familiar with the Web Foundations JavaScript examples.",
      "estimated_practice": "4 to 6 hours.",
      "scope": "Types, unions, narrowing, functions, objects, collections, runtime checks, discriminated unions, generics and local modules. Introductory static and runtime coverage only.",
      "runtime_note": "Compiler: /usr/local/lib/node_modules/openclaw/node_modules/typescript/lib/tsc.js (6.0.3), invoked with installed Node 24.18.0. It is bundled with an existing package and is not on PATH. No package manager was run. Use the supplied tsconfig.json and package.json in a fresh practice directory, with one entry example and any companion. Check with node followed by the quoted compiler path and --project . --noEmit; emit with the same command without --noEmit; run the emitted .js with node. The browser exports source text only. See README for exact commands and limits.",
      "lessons": [
        {
          "title": "Types and execution",
          "text": "TypeScript checks source before execution. Node runs the emitted JavaScript separately. Passing one stage does not prove the other; annotations are erased and do not validate incoming JSON. These examples use TypeScript 6.0.3 and Node 24.18.0, not Node type stripping."
        },
        {
          "title": "A reproducible compiler contract",
          "text": "The included tsconfig enables strict, noUncheckedIndexedAccess and exactOptionalPropertyTypes, with ES2020 and Node16 module resolution. types: [] prevents ambient packages from changing the exercise. DOM declarations are included here for console typing; they also declare browser APIs that Node does not supply. Use the installed compiler path recorded in the toolchain evidence."
        },
        {
          "title": "Values, functions and collections",
          "text": "Start with inference and annotate public contracts where useful. Unions describe alternatives. readonly parameters restrict mutations through that reference. Empty arrays and missing keys need explicit outcomes; defaults should preserve zero and false."
        },
        {
          "title": "Objects and absence",
          "text": "An optional property can be absent. The exact optional flag distinguishes absence from explicitly writing undefined unless undefined is part of its declared type. readonly is a static restriction rather than a runtime freeze or an ownership system."
        },
        {
          "title": "Narrowing and runtime validation",
          "text": "Use typeof, null checks and discriminators to narrow unions. unknown requires a check before use; any bypasses useful checks. JSON.parse can return anything and a cast only changes what the compiler believes. Bound inputs before parsing, then validate the application contract."
        },
        {
          "title": "Errors and exhaustiveness",
          "text": "An error diagnostic is a static result, while a thrown Error is a runtime event. catch values are unknown under strict checking. A never assignment can reveal a missing branch in a discriminated union. noEmitOnError must be enabled to prevent output after compiler errors."
        },
        {
          "title": "Generics and local modules",
          "text": "Generics preserve relationships between types rather than providing runtime introspection. A local module exports a value and imports it by a path. Module settings, filename suffixes and package.json determine emitted behavior; this pack deliberately fixes one CommonJS configuration."
        },
        {
          "title": "Practice and limits",
          "text": "Run each example in its own folder with its companions and the supplied config. First check with --noEmit, then emit only after checks pass and run the corresponding .js file. Expected failures are kept in source JSON and the test evidence. No JSX, frameworks, package installation, deployment, advanced type metaprogramming or cross-platform claim is included."
        }
      ],
      "reference": [
        {
          "area": "Values",
          "syntax": "const count: number = 2",
          "meaning": "Annotation or inference constrains assignments."
        },
        {
          "area": "Union",
          "syntax": "string | number",
          "meaning": "Check the active case before case-specific methods."
        },
        {
          "area": "Function",
          "syntax": "(x: number): number",
          "meaning": "Types describe parameter and return contracts."
        },
        {
          "area": "Collection",
          "syntax": "readonly number[]",
          "meaning": "Restricts writes through this reference."
        },
        {
          "area": "Optional",
          "syntax": "minutes?: number",
          "meaning": "May be absent; explicit undefined depends on flags/type."
        },
        {
          "area": "Default",
          "syntax": "value ?? fallback",
          "meaning": "Uses fallback only for null or undefined."
        },
        {
          "area": "Index",
          "syntax": "Record<string, number>",
          "meaning": "Unknown keys need checking with the chosen flags."
        },
        {
          "area": "Unknown",
          "syntax": "value: unknown",
          "meaning": "Requires narrowing before use."
        },
        {
          "area": "Guard",
          "syntax": "typeof value === \"string\"",
          "meaning": "Runtime test that narrows a static type."
        },
        {
          "area": "Discriminator",
          "syntax": "kind: \"ok\" | \"error\"",
          "meaning": "Literal tags can identify object variants."
        },
        {
          "area": "Exhaustiveness",
          "syntax": "const impossible: never = value",
          "meaning": "Unhandled cases become type errors."
        },
        {
          "area": "Generic",
          "syntax": "function first<T>(xs: T[])",
          "meaning": "Relates input and output types."
        },
        {
          "area": "Module",
          "syntax": "import {x} from \"./module.js\"",
          "meaning": "Resolves .ts source and names emitted .js output here."
        },
        {
          "area": "Static check",
          "syntax": "node <compiler> --project . --noEmit",
          "meaning": "Checks only; no JavaScript execution."
        },
        {
          "area": "Emit",
          "syntax": "noEmitOnError: true",
          "meaning": "Suppresses output on compiler diagnostics."
        },
        {
          "area": "Run",
          "syntax": "node \"Example.js\"",
          "meaning": "Executes emitted code; does not perform typechecking."
        }
      ],
      "templates": [
        {
          "id": "ts-build",
          "name": "Build a small example",
          "text": "For {language}, help me {goal}. Environment: {runtime}. Constraints: {constraints}. Return complete runnable files, expected output and a minimal verification procedure. Keep compile diagnostics, JavaScript output and runtime observations separate."
        },
        {
          "id": "ts-debug",
          "name": "Diagnose a failure",
          "text": "For {language}, help me {goal}. Environment: {runtime}. Constraints: {constraints}. Use the exact diagnostic or traceback. Explain one cause, one minimal correction and a regression check. Keep compile diagnostics, JavaScript output and runtime observations separate."
        },
        {
          "id": "ts-test",
          "name": "Design boundary tests",
          "text": "For {language}, help me {goal}. Environment: {runtime}. Constraints: {constraints}. Include valid, invalid, empty and missing values. Distinguish proposed tests from executed evidence. Keep compile diagnostics, JavaScript output and runtime observations separate."
        },
        {
          "id": "ts-refactor",
          "name": "Refactor with preserved behavior",
          "text": "For {language}, help me {goal}. Environment: {runtime}. Constraints: {constraints}. Show the before/after contract, preserve observed outputs and list changed assumptions. Keep compile diagnostics, JavaScript output and runtime observations separate."
        },
        {
          "id": "ts-document",
          "name": "Document a contract",
          "text": "For {language}, help me {goal}. Environment: {runtime}. Constraints: {constraints}. Explain inputs, outputs, errors, encoding and environmental requirements, including unsupported cases. Keep compile diagnostics, JavaScript output and runtime observations separate."
        },
        {
          "id": "ts-review",
          "name": "Review trust boundaries",
          "text": "For {language}, help me {goal}. Environment: {runtime}. Constraints: {constraints}. Inspect parsing, type assumptions and resource bounds. Explain what the checks do not guarantee. Keep compile diagnostics, JavaScript output and runtime observations separate."
        }
      ],
      "examples": [
        {
          "id": "ts-values",
          "title": "TypeScript 01 - Values and inference",
          "filename": "TypeScript 01 Values.ts",
          "code": "const learnerName: string = \"Ada\";\nconst minutes = 25;\nconst ready: boolean = minutes > 0;\nconsole.log(`${learnerName}: ${minutes} minutes`);\nconsole.log(ready, typeof minutes);\n",
          "expected_output": "Ada: 25 minutes\ntrue number",
          "expected_stdout": "Ada: 25 minutes\ntrue number\n",
          "explanation": "Annotations constrain assignments; inference also records a type. typeof here is a JavaScript runtime operation. Type annotations disappear from emitted JavaScript.",
          "checks": [],
          "exercise": null,
          "files": [],
          "concepts": [],
          "runner": "typescript",
          "negative": [
            [
              "const minutes: number = \"25\";",
              2322
            ]
          ],
          "test": {
            "status": "passed",
            "runtime": "TypeScript 6.0.3 static check and emit; Node 24.18.0 JavaScript execution",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "TypeScript validation.json; separate static acceptance/rejection, no-emit checks and exact runtime output"
          }
        },
        {
          "id": "ts-unions",
          "title": "TypeScript 02 - Narrow a union",
          "filename": "TypeScript 02 Unions.ts",
          "code": "function label(value: string | number): string {\n  return typeof value === \"string\"\n    ? value.trim().toUpperCase() : value.toFixed(1);\n}\nconsole.log(label(\"  notes \"));\nconsole.log(label(2.5));\n",
          "expected_output": "NOTES\n2.5",
          "expected_stdout": "NOTES\n2.5\n",
          "explanation": "A typeof guard narrows each branch. No assertion or any is needed.",
          "checks": [],
          "exercise": null,
          "files": [],
          "concepts": [],
          "runner": "typescript",
          "negative": [
            [
              "function f(x: string | number) { return x.toUpperCase(); }",
              2339
            ]
          ],
          "test": {
            "status": "passed",
            "runtime": "TypeScript 6.0.3 static check and emit; Node 24.18.0 JavaScript execution",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "TypeScript validation.json; separate static acceptance/rejection, no-emit checks and exact runtime output"
          }
        },
        {
          "id": "ts-functions",
          "title": "TypeScript 03 - Function contracts",
          "filename": "TypeScript 03 Functions.ts",
          "code": "function total(values: readonly number[], bonus = 0): number {\n  return values.reduce((sum, value) => sum + value, bonus);\n}\nconsole.log(total([10, 20], 5));\nconsole.log(total([]));\n",
          "expected_output": "35\n0",
          "expected_stdout": "35\n0\n",
          "explanation": "readonly describes this function parameter; it is not a deep runtime freeze. The initial accumulator handles an empty list.",
          "checks": [],
          "exercise": null,
          "files": [],
          "concepts": [],
          "runner": "typescript",
          "negative": [
            [
              "function total(x: number): number { return x; }\ntotal(\"5\");",
              2345
            ]
          ],
          "test": {
            "status": "passed",
            "runtime": "TypeScript 6.0.3 static check and emit; Node 24.18.0 JavaScript execution",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "TypeScript validation.json; separate static acceptance/rejection, no-emit checks and exact runtime output"
          }
        },
        {
          "id": "ts-objects",
          "title": "TypeScript 04 - Optional object fields",
          "filename": "TypeScript 04 Objects.ts",
          "code": "type Note = { readonly title: string; minutes?: number };\nfunction describe(note: Note): string {\n  return `${note.title}: ${note.minutes ?? 0}`;\n}\nconsole.log(describe({title: \"Read\"}));\nconsole.log(describe({title: \"Practice\", minutes: 20}));\n",
          "expected_output": "Read: 0\nPractice: 20",
          "expected_stdout": "Read: 0\nPractice: 20\n",
          "explanation": "With exactOptionalPropertyTypes, an absent minutes field differs from explicitly supplying undefined. readonly checks assignment through this type, not mutation by all possible aliases.",
          "checks": [],
          "exercise": null,
          "files": [],
          "concepts": [],
          "runner": "typescript",
          "negative": [
            [
              "type N = { minutes?: number };\nconst n: N = { minutes: undefined };",
              2375
            ],
            [
              "const n: {readonly title: string} = {title: \"A\"};\nn.title = \"B\";",
              2540
            ]
          ],
          "test": {
            "status": "passed",
            "runtime": "TypeScript 6.0.3 static check and emit; Node 24.18.0 JavaScript execution",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "TypeScript validation.json; separate static acceptance/rejection, no-emit checks and exact runtime output"
          }
        },
        {
          "id": "ts-indexes",
          "title": "TypeScript 05 - Missing indexed values",
          "filename": "TypeScript 05 Indexes.ts",
          "code": "const minutes: Record<string, number> = {read: 20};\nconst first: number[] = [];\nconsole.log(minutes[\"read\"] ?? 0);\nconsole.log(minutes[\"missing\"] ?? 0);\nconsole.log(first[0] ?? \"empty\");\n",
          "expected_output": "20\n0\nempty",
          "expected_stdout": "20\n0\nempty\n",
          "explanation": "noUncheckedIndexedAccess makes uncertain index results include undefined. Nullish defaults preserve legitimate zero values.",
          "checks": [],
          "exercise": null,
          "files": [],
          "concepts": [],
          "runner": "typescript",
          "negative": [
            [
              "const xs: number[] = [];\nconst x: number = xs[0];",
              2322
            ]
          ],
          "test": {
            "status": "passed",
            "runtime": "TypeScript 6.0.3 static check and emit; Node 24.18.0 JavaScript execution",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "TypeScript validation.json; separate static acceptance/rejection, no-emit checks and exact runtime output"
          }
        },
        {
          "id": "ts-unknown",
          "title": "TypeScript 06 - Check runtime data",
          "filename": "TypeScript 06 Unknown.ts",
          "code": "function minutes(value: unknown): number {\n  if (typeof value !== \"object\" || value === null ||\n      !(\"minutes\" in value) ||\n      typeof value.minutes !== \"number\" ||\n      !Number.isFinite(value.minutes) || value.minutes < 0) {\n    throw new Error(\"invalid minutes\");\n  }\n  return value.minutes;\n}\nconst raw: unknown = JSON.parse('{\"minutes\":15}');\nconsole.log(minutes(raw));\ntry { minutes({minutes: \"15\"}); }\ncatch (error) {\n  console.log(error instanceof Error ? error.message : \"error\");\n}\n",
          "expected_output": "15\ninvalid minutes",
          "expected_stdout": "15\ninvalid minutes\n",
          "explanation": "Assign untrusted-shaped values to unknown and check the runtime contract. This toy accepts extra keys and fractional nonnegative minutes; it is not JSON Schema validation. Type assertions would not validate input.",
          "checks": [],
          "exercise": null,
          "files": [],
          "concepts": [],
          "runner": "typescript",
          "negative": [
            [
              "const value: unknown = 1;\nvalue.toFixed();",
              18046
            ]
          ],
          "test": {
            "status": "passed",
            "runtime": "TypeScript 6.0.3 static check and emit; Node 24.18.0 JavaScript execution",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "TypeScript validation.json; separate static acceptance/rejection, no-emit checks and exact runtime output"
          }
        },
        {
          "id": "ts-results",
          "title": "TypeScript 07 - Discriminated results",
          "filename": "TypeScript 07 Results.ts",
          "code": "type Result = {kind: \"ok\"; value: number} |\n              {kind: \"error\"; message: string};\nfunction show(result: Result): string {\n  switch (result.kind) {\n    case \"ok\": return `Value: ${result.value}`;\n    case \"error\": return `Error: ${result.message}`;\n    default: {\n      const impossible: never = result;\n      return impossible;\n    }\n  }\n}\nconsole.log(show({kind: \"ok\", value: 3}));\nconsole.log(show({kind: \"error\", message: \"missing\"}));\n",
          "expected_output": "Value: 3\nError: missing",
          "expected_stdout": "Value: 3\nError: missing\n",
          "explanation": "A literal discriminator narrows the object. The never assignment makes a newly added, unhandled variant a compile-time error.",
          "checks": [],
          "exercise": null,
          "files": [],
          "concepts": [],
          "runner": "typescript",
          "negative": [
            [
              "type R = {kind:\"ok\"} | {kind:\"wait\"};\nfunction f(r:R) { if(r.kind===\"ok\") return;\nconst impossible: never = r; }",
              2322
            ]
          ],
          "test": {
            "status": "passed",
            "runtime": "TypeScript 6.0.3 static check and emit; Node 24.18.0 JavaScript execution",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "TypeScript validation.json; separate static acceptance/rejection, no-emit checks and exact runtime output"
          }
        },
        {
          "id": "ts-generics",
          "title": "TypeScript 08 - Preserve a type relationship",
          "filename": "TypeScript 08 Generics.ts",
          "code": "function first<T>(items: readonly T[]): T | undefined {\n  return items[0];\n}\nconsole.log(first([\"alpha\", \"beta\"]) ?? \"empty\");\nconsole.log(first<number>([]) ?? \"empty\");\n",
          "expected_output": "alpha\nempty",
          "expected_stdout": "alpha\nempty\n",
          "explanation": "The generic relates the input element type to the output. It does not invent a value when the collection is empty.",
          "checks": [],
          "exercise": null,
          "files": [],
          "concepts": [],
          "runner": "typescript",
          "negative": [
            [
              "function first<T>(xs:T[]):T|undefined {return xs[0];}\nconst n: number = first([\"one\"]);",
              2322
            ]
          ],
          "test": {
            "status": "passed",
            "runtime": "TypeScript 6.0.3 static check and emit; Node 24.18.0 JavaScript execution",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "TypeScript validation.json; separate static acceptance/rejection, no-emit checks and exact runtime output"
          }
        },
        {
          "id": "ts-modules",
          "title": "TypeScript 09 - A local module",
          "filename": "TypeScript 09 Modules.ts",
          "code": "import { double } from \"./Atlas math.js\";\nconsole.log(double(6));\n",
          "expected_output": "12",
          "expected_stdout": "12\n",
          "explanation": "Keep the companion beside the entry file. The .js import matches the emitted file; Node16 resolution finds its .ts source for checking. The supplied package.json selects CommonJS output; no package download is involved.",
          "checks": [],
          "exercise": null,
          "files": [
            {
              "name": "Atlas math.ts",
              "code": "export function double(value: number): number {\n  return value * 2;\n}\n"
            }
          ],
          "concepts": [],
          "runner": "typescript",
          "negative": [],
          "test": {
            "status": "passed",
            "runtime": "TypeScript 6.0.3 static check and emit; Node 24.18.0 JavaScript execution",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "TypeScript validation.json; separate static acceptance/rejection, no-emit checks and exact runtime output"
          }
        },
        {
          "id": "ts-exercise-a",
          "title": "TypeScript exercise A - A safe average",
          "filename": "TypeScript Exercise A Average.ts",
          "code": "function average(values: readonly number[]): number | undefined {\n  if (values.length === 0) return undefined;\n  return values.reduce((sum, n) => sum + n, 0) / values.length;\n}\nconsole.log(average([10, 20]) ?? \"empty\");\nconsole.log(average([]) ?? \"empty\");\n",
          "expected_output": "15\nempty",
          "expected_stdout": "15\nempty\n",
          "explanation": "A union return type forces the caller to account for an empty input. The finite-number requirement remains the caller contract.",
          "checks": [],
          "exercise": "Write average for a finite-number array. Return undefined for an empty array and display a useful fallback.",
          "files": [],
          "concepts": [],
          "runner": "typescript",
          "negative": [],
          "test": {
            "status": "passed",
            "runtime": "TypeScript 6.0.3 static check and emit; Node 24.18.0 JavaScript execution",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "TypeScript validation.json; separate static acceptance/rejection, no-emit checks and exact runtime output"
          }
        },
        {
          "id": "ts-exercise-b",
          "title": "TypeScript exercise B - Validate a label",
          "filename": "TypeScript Exercise B Label.ts",
          "code": "function label(value: unknown): string {\n  if (typeof value !== \"string\" || value.trim().length === 0) {\n    throw new Error(\"label required\");\n  }\n  return value.trim();\n}\nfor (const value of [\"  Practice \", \" \", 7]) {\n  try { console.log(label(value)); }\n  catch (error) {\n    console.log(error instanceof Error ? error.message : \"error\");\n  }\n}\n",
          "expected_output": "Practice\nlabel required\nlabel required",
          "expected_stdout": "Practice\nlabel required\nlabel required\n",
          "explanation": "Validation is runtime code and survives compilation. It checks type and nonblank content, not a universal naming policy.",
          "checks": [],
          "exercise": "Accept unknown, return a trimmed nonblank string, and reject whitespace-only or non-string inputs.",
          "files": [],
          "concepts": [],
          "runner": "typescript",
          "negative": [],
          "test": {
            "status": "passed",
            "runtime": "TypeScript 6.0.3 static check and emit; Node 24.18.0 JavaScript execution",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "TypeScript validation.json; separate static acceptance/rejection, no-emit checks and exact runtime output"
          }
        },
        {
          "id": "ts-exercise-c",
          "title": "TypeScript exercise C - Summarize a tagged task",
          "filename": "TypeScript Exercise C Task.ts",
          "code": "type Task = {state: \"open\"; title: string} |\n            {state: \"done\"; title: string; minutes: number};\nfunction summary(task: Task): string {\n  return task.state === \"done\"\n    ? `${task.title}: ${task.minutes} minutes`\n    : `${task.title}: open`;\n}\nconsole.log(summary({state: \"open\", title: \"Read\"}));\nconsole.log(summary({state: \"done\", title: \"Code\", minutes: 30}));\n",
          "expected_output": "Read: open\nCode: 30 minutes",
          "expected_stdout": "Read: open\nCode: 30 minutes\n",
          "explanation": "The shared discriminator gives access to minutes only in the done branch.",
          "checks": [],
          "exercise": "Use a union so an open task cannot require minutes. Display both states without any or type assertions.",
          "files": [],
          "concepts": [],
          "runner": "typescript",
          "negative": [],
          "test": {
            "status": "passed",
            "runtime": "TypeScript 6.0.3 static check and emit; Node 24.18.0 JavaScript execution",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "TypeScript validation.json; separate static acceptance/rejection, no-emit checks and exact runtime output"
          }
        }
      ],
      "test_summary": {
        "result": "passed",
        "tested_on": "2026-10-25",
        "runtime": "TypeScript 6.0.3; Node 24.18.0",
        "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
        "assertion_count": 99,
        "example_count": 12,
        "static_positive_cases": 12,
        "static_negative_cases": 9,
        "runtime_execution_count": 12,
        "limitations": [
          "Only the stated compiler, Node and macOS host were tested.",
          "Fresh directories, timeouts and CPU/output bounds for authored examples; not a general code sandbox.",
          "Static types do not validate runtime data; no Node type-stripping claim."
        ]
      },
      "support_files": [
        {
          "name": "tsconfig.json",
          "code": "{\n  \"compilerOptions\": {\n    \"target\": \"ES2020\",\n    \"module\": \"Node16\",\n    \"moduleResolution\": \"Node16\",\n    \"strict\": true,\n    \"noUncheckedIndexedAccess\": true,\n    \"exactOptionalPropertyTypes\": true,\n    \"noEmitOnError\": true,\n    \"types\": [],\n    \"lib\": [\n      \"ES2020\",\n      \"DOM\"\n    ]\n  },\n  \"include\": [\n    \"*.ts\"\n  ]\n}\n"
        },
        {
          "name": "package.json",
          "code": "{\"type\":\"commonjs\"}\n"
        }
      ]
    },
    {
      "id": "data-formats-foundations",
      "title": "Data Formats Foundations",
      "version": "0.10.0",
      "status": "tested",
      "entry_ids": [
        "json",
        "csv",
        "tsv",
        "xml",
        "toml"
      ],
      "languages": [
        "JSON / CSV / TSV / XML / TOML",
        "JSON",
        "CSV",
        "TSV",
        "XML",
        "TOML"
      ],
      "default_goal": "Parse a tiny authored data sample and validate a stated contract.",
      "default_runtime": "CPython 3.9.6; json, csv, ElementTree; installed Tomli 1.0.3; macOS 27.0.1",
      "default_constraints": "Small in-memory authored strings only; no arbitrary XML, network, secrets or installations; distinguish parser and schema checks.",
      "audience": "Learners comfortable with the Python Foundations examples.",
      "estimated_practice": "4 to 6 hours.",
      "scope": "JSON, CSV/TSV, XML and TOML reading, serialization where supported, explicit encoding, escaping, dialects, syntax errors and small hand-written contracts. No schema engine, external files or untrusted XML parsing.",
      "runtime_note": "Run each .py with the installed Python interpreter. Tests use CPython 3.9.6, which is unsupported upstream. JSON, CSV and XML use the standard library. TOML uses the already installed pip._vendor.tomli 1.0.3 fallback; this private API may change or disappear and is not a stable public pip interface. The preferred tomllib branch requires an already installed Python 3.11+ and is not tested here. No dependency is installed. XML examples are limited to tiny trusted authored strings; do not reuse their entry points for untrusted XML.",
      "lessons": [
        {
          "title": "Formats are not programming languages",
          "text": "JSON and CSV/TSV are data formats, TOML is a configuration format, and XML is a markup language. Parsers turn text into values or trees; they do not automatically enforce an application schema. JSON Schema and XML Schema remain planned registry entries."
        },
        {
          "title": "Encoding and resource bounds",
          "text": "Agree on UTF-8 at file boundaries and use strict decoding; do not silently replace invalid bytes. Keep examples tiny and in memory. Apply byte, row and value limits before expensive processing where possible. Limits in these toys do not make an arbitrary deeply nested or malicious document safe."
        },
        {
          "title": "JSON syntax and policy",
          "text": "JSON values include objects, arrays, strings, numbers, booleans and null. Use serializers for escaping; do not build JSON by string concatenation. Python defaults accept NaN and repeated object names, so a stricter contract can reject both with hooks. Reject nonfinite values before encoding; huge JSON numeric exponents also need finite-value checks after decoding."
        },
        {
          "title": "CSV and TSV dialects",
          "text": "A delimiter alone is not a complete dialect. Specify quoting, escaping, line endings, headers and encoding. Do not split lines on commas or tabs when quoted fields may contain those characters. Parse first, then check row width and convert selected cells. Do not infer a schema just because a numeric-looking cell parses."
        },
        {
          "title": "Safe export boundaries",
          "text": "CSV writers quote delimiters and line breaks; this prevents structural corruption, not spreadsheet formula execution. Values beginning with formula-like characters require a destination-specific reviewed export policy before spreadsheet use. No spreadsheet is opened by the examples. JSON, XML and CSV need their own serializers; escaping is context-specific."
        },
        {
          "title": "XML trees and trust",
          "text": "XML well-formedness, namespaces and application structure are different checks. Build elements and assign text instead of splicing markup. ElementTree is not hardened for malicious XML; this pack only parses tiny authored strings and never accepts untrusted XML files, DTDs or entity definitions. Installing a hardened parser is outside this task."
        },
        {
          "title": "TOML configuration",
          "text": "TOML 1.0 has tables, arrays, strings, booleans, numbers and date/time values. Keys cannot be defined twice. A parser returns typed values; it does not enforce required application settings. Date/time values may need explicit conversion when moving into JSON. The examples use a small subset and do not test TOML 1.1 or writing TOML."
        },
        {
          "title": "Error handling and schema boundaries",
          "text": "Catch the relevant parser error and validate the resulting values separately. Our hand-written contracts are narrow educational checks, not a JSON Schema or XSD engine. Python 3.9.6 and its private pip-vendored Tomli fallback are installed test constraints, not deployment recommendations. Use only authored local examples; all other runtimes remain untested."
        }
      ],
      "reference": [
        {
          "area": "Encoding",
          "syntax": "text.encode(\"utf-8\")",
          "meaning": "Converts text to bytes; record the encoding."
        },
        {
          "area": "JSON read",
          "syntax": "json.loads(text)",
          "meaning": "Parses syntax; add policy and contract checks."
        },
        {
          "area": "JSON write",
          "syntax": "json.dumps(value, allow_nan=False)",
          "meaning": "Rejects nonfinite numbers while serializing."
        },
        {
          "area": "Duplicate keys",
          "syntax": "object_pairs_hook=unique",
          "meaning": "Can reject repeated names at each object level."
        },
        {
          "area": "JSON constants",
          "syntax": "parse_constant=reject",
          "meaning": "Can reject NaN and Infinity tokens."
        },
        {
          "area": "Contract",
          "syntax": "type(value) is int",
          "meaning": "Excludes bool when an exact integer is required."
        },
        {
          "area": "CSV read",
          "syntax": "csv.reader(stream, strict=True)",
          "meaning": "Parses a specified dialect; returns string cells."
        },
        {
          "area": "CSV write",
          "syntax": "csv.writer(stream).writerows(rows)",
          "meaning": "Quotes fields; not spreadsheet formula mitigation."
        },
        {
          "area": "File newline",
          "syntax": "open(path, newline=\"\", encoding=\"utf-8\")",
          "meaning": "Leaves newline handling to csv for real files."
        },
        {
          "area": "TSV",
          "syntax": "delimiter=\"\\t\"",
          "meaning": "Specifies tabs plus the remaining csv dialect rules."
        },
        {
          "area": "XML build",
          "syntax": "ET.Element(\"note\")",
          "meaning": "Creates a node; set text without markup interpolation."
        },
        {
          "area": "XML serialize",
          "syntax": "ET.tostring(root, encoding=\"unicode\")",
          "meaning": "Escapes text; does not preserve original byte formatting."
        },
        {
          "area": "XML find",
          "syntax": "root.find(\"a:note\", {\"a\":\"urn:atlas\"})",
          "meaning": "Matches namespace URI and local name."
        },
        {
          "area": "XML safety",
          "syntax": "ET.fromstring(authored_text)",
          "meaning": "Only trusted toy inputs in this pack."
        },
        {
          "area": "TOML read",
          "syntax": "toml.loads(text)",
          "meaning": "Installed Tomli returns typed table values."
        },
        {
          "area": "Schema boundary",
          "syntax": "validate(parsed_value)",
          "meaning": "A separate application step; no schema engine included."
        }
      ],
      "templates": [
        {
          "id": "data-build",
          "name": "Build a small example",
          "text": "For {language}, help me {goal}. Environment: {runtime}. Constraints: {constraints}. Return complete runnable files, expected output and a minimal verification procedure. Identify the format, parser version, trust boundary and schema limits. Do not execute parsed content."
        },
        {
          "id": "data-debug",
          "name": "Diagnose a failure",
          "text": "For {language}, help me {goal}. Environment: {runtime}. Constraints: {constraints}. Use the exact diagnostic or traceback. Explain one cause, one minimal correction and a regression check. Identify the format, parser version, trust boundary and schema limits. Do not execute parsed content."
        },
        {
          "id": "data-test",
          "name": "Design boundary tests",
          "text": "For {language}, help me {goal}. Environment: {runtime}. Constraints: {constraints}. Include valid, invalid, empty and missing values. Distinguish proposed tests from executed evidence. Identify the format, parser version, trust boundary and schema limits. Do not execute parsed content."
        },
        {
          "id": "data-refactor",
          "name": "Refactor with preserved behavior",
          "text": "For {language}, help me {goal}. Environment: {runtime}. Constraints: {constraints}. Show the before/after contract, preserve observed outputs and list changed assumptions. Identify the format, parser version, trust boundary and schema limits. Do not execute parsed content."
        },
        {
          "id": "data-document",
          "name": "Document a contract",
          "text": "For {language}, help me {goal}. Environment: {runtime}. Constraints: {constraints}. Explain inputs, outputs, errors, encoding and environmental requirements, including unsupported cases. Identify the format, parser version, trust boundary and schema limits. Do not execute parsed content."
        },
        {
          "id": "data-review",
          "name": "Review trust boundaries",
          "text": "For {language}, help me {goal}. Environment: {runtime}. Constraints: {constraints}. Inspect parsing, type assumptions and resource bounds. Explain what the checks do not guarantee. Identify the format, parser version, trust boundary and schema limits. Do not execute parsed content."
        }
      ],
      "examples": [
        {
          "id": "data-json-roundtrip",
          "title": "Data 01 - JSON round trip",
          "filename": "Data 01 JSON round trip.py",
          "code": "import json\nvalue = {\"title\": \"Café\", \"minutes\": 25, \"done\": False}\ntext = json.dumps(value, ensure_ascii=False, allow_nan=False)\nencoded = text.encode(\"utf-8\")\nrestored = json.loads(encoded.decode(\"utf-8\"))\nprint(restored[\"title\"], restored[\"minutes\"], restored[\"done\"])\nprint(restored == value)\n",
          "expected_output": "Café 25 False\nTrue",
          "expected_stdout": "Café 25 False\nTrue\n",
          "explanation": "Use a JSON serializer for quotes and escapes. Bytes require an encoding; this example uses UTF-8. Round trips preserve these JSON-compatible values, not every Python type.",
          "checks": [
            [
              "restored == value",
              true
            ],
            [
              "len(encoded) > len(text)",
              true
            ]
          ],
          "exercise": null,
          "files": [],
          "concepts": [],
          "runner": "data-python",
          "negative": [],
          "test": {
            "status": "passed",
            "runtime": "CPython 3.9.6; stdlib json/csv/ElementTree; Tomli 1.0.3 where applicable",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Data Formats validation.json; isolated subprocess, parser/error/contract checks and exact output"
          }
        },
        {
          "id": "data-json-policy",
          "title": "Data 02 - Reject ambiguous JSON",
          "filename": "Data 02 Reject ambiguous JSON.py",
          "code": "import json\ndef reject_constant(value):\n    raise ValueError(\"nonstandard number\")\ndef unique(pairs):\n    result = {}\n    for key, value in pairs:\n        if key in result:\n            raise ValueError(\"duplicate key\")\n        result[key] = value\n    return result\nfor text in ['{\"x\":1,\"x\":2}', '{\"x\":NaN}', '{\"x\":}']:\n    try:\n        json.loads(text, object_pairs_hook=unique,\n                   parse_constant=reject_constant)\n    except ValueError:\n        print(\"rejected\")\n",
          "expected_output": "rejected\nrejected\nrejected",
          "expected_stdout": "rejected\nrejected\nrejected\n",
          "explanation": "Python json accepts duplicate names and nonstandard NaN by default. These hooks enforce a stricter local policy. Syntax validity still does not enforce a schema or prevent large/deep input resource costs.",
          "checks": [
            [
              "raises(ValueError, unique, [(\"x\",1),(\"x\",2)])",
              true
            ],
            [
              "unique([(\"x\",1)])",
              {
                "x": 1
              }
            ]
          ],
          "exercise": null,
          "files": [],
          "concepts": [],
          "runner": "data-python",
          "negative": [],
          "test": {
            "status": "passed",
            "runtime": "CPython 3.9.6; stdlib json/csv/ElementTree; Tomli 1.0.3 where applicable",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Data Formats validation.json; isolated subprocess, parser/error/contract checks and exact output"
          }
        },
        {
          "id": "data-csv-read",
          "title": "Data 03 - Read quoted CSV",
          "filename": "Data 03 Read quoted CSV.py",
          "code": "import csv, io\ntext = 'title,minutes\\r\\n\"Read, then code\",20\\r\\n\"Say \"\"hello\"\"\",5\\r\\n'\nrows = list(csv.reader(io.StringIO(text, newline=\"\"), strict=True))\nprint(rows[1][0], rows[1][1])\nprint(rows[2][0], type(rows[2][1]).__name__)\n",
          "expected_output": "Read, then code 20\nSay \"hello\" str",
          "expected_stdout": "Read, then code 20\nSay \"hello\" str\n",
          "explanation": "CSV is a family of dialects, not a typed schema. Delimiter, quoting, headers, row width and encoding need agreement. A reader keeps numeric-looking cells as strings by default.",
          "checks": [
            [
              "len(rows)",
              3
            ],
            [
              "rows[1]",
              [
                "Read, then code",
                "20"
              ]
            ]
          ],
          "exercise": null,
          "files": [],
          "concepts": [],
          "runner": "data-python",
          "negative": [],
          "test": {
            "status": "passed",
            "runtime": "CPython 3.9.6; stdlib json/csv/ElementTree; Tomli 1.0.3 where applicable",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Data Formats validation.json; isolated subprocess, parser/error/contract checks and exact output"
          }
        },
        {
          "id": "data-csv-write",
          "title": "Data 04 - Write CSV safely",
          "filename": "Data 04 Write CSV safely.py",
          "code": "import csv, io\nrows = [[\"title\", \"note\"], [\"Café\", 'Line 1\\nLine \"2\"']]\nbuffer = io.StringIO(newline=\"\")\ncsv.writer(buffer, lineterminator=\"\\r\\n\").writerows(rows)\ntext = buffer.getvalue()\nrestored = list(csv.reader(io.StringIO(text, newline=\"\")))\nprint(restored == rows)\nprint(restored[1][1].splitlines()[1])\n",
          "expected_output": "True\nLine \"2\"",
          "expected_stdout": "True\nLine \"2\"\n",
          "explanation": "The writer handles embedded commas, quotes and newlines. When using real files pass encoding=\"utf-8\" and newline=\"\". CSV quoting does not neutralize spreadsheet formulas; these examples are parser exercises, not spreadsheet-safe exports.",
          "checks": [
            [
              "restored == rows",
              true
            ],
            [
              "'\"\"2\"\"' in text",
              true
            ]
          ],
          "exercise": null,
          "files": [],
          "concepts": [],
          "runner": "data-python",
          "negative": [],
          "test": {
            "status": "passed",
            "runtime": "CPython 3.9.6; stdlib json/csv/ElementTree; Tomli 1.0.3 where applicable",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Data Formats validation.json; isolated subprocess, parser/error/contract checks and exact output"
          }
        },
        {
          "id": "data-tsv",
          "title": "Data 05 - Choose a TSV dialect",
          "filename": "Data 05 Choose a TSV dialect.py",
          "code": "import csv, io\ntext = \"title\\tminutes\\nRead\\t10\\nCode\\t20\\n\"\nrows = list(csv.reader(io.StringIO(text, newline=\"\"), delimiter=\"\\t\"))\nif rows[0] != [\"title\", \"minutes\"] or any(len(r) != 2 for r in rows):\n    raise ValueError(\"unexpected columns\")\nprint(rows[1][0], rows[2][0])\nprint(sum(int(r[1]) for r in rows[1:]))\n",
          "expected_output": "Read Code\n30",
          "expected_stdout": "Read Code\n30\n",
          "explanation": "TSV changes the delimiter, but quoting and newline conventions still need agreement. This toy uses Python csv default quote rules with a tab delimiter. Conversion to int is a separate application step.",
          "checks": [
            [
              "len(rows)",
              3
            ],
            [
              "rows[0]",
              [
                "title",
                "minutes"
              ]
            ]
          ],
          "exercise": null,
          "files": [],
          "concepts": [],
          "runner": "data-python",
          "negative": [],
          "test": {
            "status": "passed",
            "runtime": "CPython 3.9.6; stdlib json/csv/ElementTree; Tomli 1.0.3 where applicable",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Data Formats validation.json; isolated subprocess, parser/error/contract checks and exact output"
          }
        },
        {
          "id": "data-xml-escape",
          "title": "Data 06 - Build XML text",
          "filename": "Data 06 Build XML text.py",
          "code": "import xml.etree.ElementTree as ET\nroot = ET.Element(\"note\", {\"kind\": \"study\"})\nroot.text = 'A & B < C'\ntext = ET.tostring(root, encoding=\"unicode\")\nrestored = ET.fromstring(text)\nprint(text)\nprint(restored.text)\n",
          "expected_output": "<note kind=\"study\">A &amp; B &lt; C</note>\nA & B < C",
          "expected_stdout": "<note kind=\"study\">A &amp; B &lt; C</note>\nA & B < C\n",
          "explanation": "Construct a tree and serialize text to escape markup. Only tiny authored XML is parsed here. ElementTree is not a hardened parser for malicious data; no untrusted files, DTDs or external entities are accepted by this teaching workflow.",
          "checks": [
            [
              "restored.tag",
              "note"
            ],
            [
              "restored.attrib",
              {
                "kind": "study"
              }
            ]
          ],
          "exercise": null,
          "files": [],
          "concepts": [],
          "runner": "data-python",
          "negative": [],
          "test": {
            "status": "passed",
            "runtime": "CPython 3.9.6; stdlib json/csv/ElementTree; Tomli 1.0.3 where applicable",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Data Formats validation.json; isolated subprocess, parser/error/contract checks and exact output"
          }
        },
        {
          "id": "data-xml-namespace",
          "title": "Data 07 - XML namespaces and errors",
          "filename": "Data 07 XML namespaces and errors.py",
          "code": "import xml.etree.ElementTree as ET\ntext = '<notes xmlns=\"urn:atlas\"><note>Read</note></notes>'\nroot = ET.fromstring(text)\nitem = root.find(\"a:note\", {\"a\": \"urn:atlas\"})\nprint(root.tag)\nprint(item.text if item is not None else \"missing\")\ntry:\n    ET.fromstring(\"<note></notes>\")\nexcept ET.ParseError:\n    print(\"malformed XML\")\n",
          "expected_output": "{urn:atlas}notes\nRead\nmalformed XML",
          "expected_stdout": "{urn:atlas}notes\nRead\nmalformed XML\n",
          "explanation": "Namespace identity is a URI, not a particular prefix. A parse error concerns well-formedness, not XSD validation. Explicit is not None avoids confusing an empty element with a missing one.",
          "checks": [
            [
              "root.find(\"note\") is None",
              true
            ],
            [
              "item.tag",
              "{urn:atlas}note"
            ]
          ],
          "exercise": null,
          "files": [],
          "concepts": [],
          "runner": "data-python",
          "negative": [],
          "test": {
            "status": "passed",
            "runtime": "CPython 3.9.6; stdlib json/csv/ElementTree; Tomli 1.0.3 where applicable",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Data Formats validation.json; isolated subprocess, parser/error/contract checks and exact output"
          }
        },
        {
          "id": "data-toml",
          "title": "Data 08 - Read TOML settings",
          "filename": "Data 08 Read TOML settings.py",
          "code": "try:\n    import tomllib as toml\nexcept ImportError:\n    from pip._vendor import tomli as toml\n\ntext = '[study]\\ntitle = \"Café\"\\nminutes = 25\\nactive = true\\n'\nvalue = toml.loads(text)\nprint(value[\"study\"][\"title\"])\nprint(value[\"study\"][\"minutes\"], value[\"study\"][\"active\"])\n",
          "expected_output": "Café\n25 True",
          "expected_stdout": "Café\n25 True\n",
          "explanation": "Tested with installed Tomli 1.0.3, a private pip-vendored fallback on Python 3.9.6. The tomllib branch is for an already installed Python 3.11+ and was not executed here. No installation occurs. This covers a TOML 1.0 subset, not TOML 1.1.",
          "checks": [
            [
              "type(value[\"study\"][\"minutes\"]) is int",
              true
            ],
            [
              "value[\"study\"][\"active\"] is True",
              true
            ]
          ],
          "exercise": null,
          "files": [],
          "concepts": [],
          "runner": "data-python",
          "negative": [],
          "test": {
            "status": "passed",
            "runtime": "CPython 3.9.6; stdlib json/csv/ElementTree; Tomli 1.0.3 where applicable",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Data Formats validation.json; isolated subprocess, parser/error/contract checks and exact output"
          }
        },
        {
          "id": "data-toml-errors",
          "title": "Data 09 - Reject invalid TOML",
          "filename": "Data 09 Reject invalid TOML.py",
          "code": "try:\n    import tomllib as toml\nexcept ImportError:\n    from pip._vendor import tomli as toml\n\nfor text in ['minutes = 1\\nminutes = 2', 'active = True', 'title = \"open']:\n    try:\n        toml.loads(text)\n    except toml.TOMLDecodeError:\n        print(\"invalid TOML\")\n",
          "expected_output": "invalid TOML\ninvalid TOML\ninvalid TOML",
          "expected_stdout": "invalid TOML\ninvalid TOML\ninvalid TOML\n",
          "explanation": "Duplicate keys, uppercase True and unterminated strings violate these TOML rules. Syntactically valid settings still need an application contract.",
          "checks": [
            [
              "raises(toml.TOMLDecodeError,toml.loads,'x = 1\\nx = 2')",
              true
            ],
            [
              "toml.loads(\"x = false\")",
              {
                "x": false
              }
            ]
          ],
          "exercise": null,
          "files": [],
          "concepts": [],
          "runner": "data-python",
          "negative": [],
          "test": {
            "status": "passed",
            "runtime": "CPython 3.9.6; stdlib json/csv/ElementTree; Tomli 1.0.3 where applicable",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Data Formats validation.json; isolated subprocess, parser/error/contract checks and exact output"
          }
        },
        {
          "id": "data-exercise-a",
          "title": "Data exercise A - Validate JSON minutes",
          "filename": "Data exercise A Validate JSON minutes.py",
          "code": "import json\n\ndef load_minutes(text):\n    if len(text.encode(\"utf-8\")) > 256:\n        raise ValueError(\"too large\")\n    value = json.loads(text)\n    if not isinstance(value, dict) or set(value) != {\"minutes\"}:\n        raise ValueError(\"keys\")\n    n = value[\"minutes\"]\n    if type(n) is not int or not 0 <= n <= 120:\n        raise ValueError(\"minutes\")\n    return n\n\nfor text in ['{\"minutes\":20}', '{\"minutes\":true}', '{\"minutes\":121}']:\n    try:\n        print(load_minutes(text))\n    except ValueError:\n        print(\"invalid\")\n",
          "expected_output": "20\ninvalid\ninvalid",
          "expected_stdout": "20\ninvalid\ninvalid\n",
          "explanation": "A small application contract requires exactly one key and an integer in range; bool is intentionally rejected even though it subclasses int in Python. This version uses default duplicate-key handling; combine example 02 hooks if duplicate rejection is required. A size cap alone is not comprehensive hostile-input protection.",
          "checks": [
            [
              "load_minutes('{\"minutes\":0}')",
              0
            ],
            [
              "raises(ValueError,load_minutes,'{\"minutes\":20,\"extra\":0}')",
              true
            ],
            [
              "raises(ValueError,load_minutes,\" \"*257)",
              true
            ]
          ],
          "exercise": "Accept exactly the minutes key and an integer from 0 to 120. Reject booleans, extra keys and UTF-8 input longer than 256 bytes. State the duplicate-key policy.",
          "files": [],
          "concepts": [],
          "runner": "data-python",
          "negative": [],
          "test": {
            "status": "passed",
            "runtime": "CPython 3.9.6; stdlib json/csv/ElementTree; Tomli 1.0.3 where applicable",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Data Formats validation.json; isolated subprocess, parser/error/contract checks and exact output"
          }
        },
        {
          "id": "data-exercise-b",
          "title": "Data exercise B - Convert CSV records",
          "filename": "Data exercise B Convert CSV records.py",
          "code": "import csv, io\n\ndef total(text):\n    if len(text.encode(\"utf-8\")) > 1024:\n        raise ValueError(\"too large\")\n    rows = list(csv.reader(io.StringIO(text, newline=\"\"), strict=True))\n    if not rows or rows[0] != [\"title\", \"minutes\"] or len(rows) > 11:\n        raise ValueError(\"header or row count\")\n    result = 0\n    for row in rows[1:]:\n        if len(row) != 2 or not row[0].strip() or not row[1].isascii() or not row[1].isdigit():\n            raise ValueError(\"record\")\n        n = int(row[1])\n        if n > 120:\n            raise ValueError(\"range\")\n        result += n\n    return result\n\nprint(total(\"title,minutes\\nRead,10\\nCode,20\\n\"))\ntry:\n    total(\"title,minutes\\nRead,-1\\n\")\nexcept ValueError:\n    print(\"invalid record\")\n",
          "expected_output": "30\ninvalid record",
          "expected_stdout": "30\ninvalid record\n",
          "explanation": "Row shape, header, nonblank labels and ASCII integer syntax are checked after parsing. This bounded toy totals at most ten records. csv.Error is a distinct possible syntax failure for malformed quoting.",
          "checks": [
            [
              "total('title,minutes\\n')",
              0
            ],
            [
              "raises(ValueError,total,'title,minutes\\nRead,121\\n')",
              true
            ],
            [
              "raises(ValueError,total,'title,minutes\\nRead,1,2\\n')",
              true
            ]
          ],
          "exercise": "Read a fixed two-column CSV dialect, validate up to ten records, and sum minutes. Reject negative values, extra columns and values over 120.",
          "files": [],
          "concepts": [],
          "runner": "data-python",
          "negative": [],
          "test": {
            "status": "passed",
            "runtime": "CPython 3.9.6; stdlib json/csv/ElementTree; Tomli 1.0.3 where applicable",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Data Formats validation.json; isolated subprocess, parser/error/contract checks and exact output"
          }
        },
        {
          "id": "data-exercise-c",
          "title": "Data exercise C - Check XML structure",
          "filename": "Data exercise C Check XML structure.py",
          "code": "import xml.etree.ElementTree as ET\n\ndef title(text):\n    root = ET.fromstring(text)\n    children = list(root)\n    if root.tag != \"note\" or root.attrib or len(children) != 1:\n        raise ValueError(\"note structure\")\n    child = children[0]\n    if child.tag != \"title\" or child.attrib or len(child):\n        raise ValueError(\"title structure\")\n    if (root.text or \"\").strip() or (child.tail or \"\").strip():\n        raise ValueError(\"mixed content\")\n    value = (child.text or \"\").strip()\n    if not value:\n        raise ValueError(\"empty title\")\n    return value\n\nprint(title(\"<note><title> Read </title></note>\"))\ntry:\n    title(\"<note><title /></note>\")\nexcept ValueError:\n    print(\"invalid title\")\n",
          "expected_output": "Read\ninvalid title",
          "expected_stdout": "Read\ninvalid title\n",
          "explanation": "This application check is for tiny trusted authored strings only. It is not an XSD validator, a byte-preserving round trip or a safe untrusted XML entry point. Default ElementTree parsing can discard comments and processing instructions.",
          "checks": [
            [
              "raises(ValueError,title,\"<note><title>A</title><title>B</title></note>\")",
              true
            ],
            [
              "raises(ValueError,title,\"<note>x<title>A</title></note>\")",
              true
            ],
            [
              "raises(ValueError,title,\"<note><title><b>A</b></title></note>\")",
              true
            ]
          ],
          "exercise": "Require a note root with one nonblank title child, no attributes/nested elements, and no non-whitespace mixed text. Explain the trust boundary.",
          "files": [],
          "concepts": [],
          "runner": "data-python",
          "negative": [],
          "test": {
            "status": "passed",
            "runtime": "CPython 3.9.6; stdlib json/csv/ElementTree; Tomli 1.0.3 where applicable",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Data Formats validation.json; isolated subprocess, parser/error/contract checks and exact output"
          }
        }
      ],
      "test_summary": {
        "result": "passed",
        "tested_on": "2026-10-25",
        "runtime": "CPython 3.9.6; installed Tomli 1.0.3",
        "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
        "assertion_count": 51,
        "example_count": 12,
        "limitations": [
          "Python 3.9.6 is unsupported upstream.",
          "Only tiny authored input; no malicious XML parsing or schema engine.",
          "pip._vendor.tomli is a private installed fallback, not a stable API. The tomllib branch was not run.",
          "UTF-8, quoting, errors and bounded contracts tested; not a complete format conformance suite."
        ]
      }
    },
    {
      "id": "c-foundations",
      "title": "C Foundations",
      "version": "0.10.0",
      "status": "tested",
      "entry_ids": [
        "c"
      ],
      "languages": [
        "C"
      ],
      "default_goal": "Build a bounded study-summary example with clear ownership and observable errors.",
      "default_runtime": "c17; Apple Clang 21.0.0 (clang-2100.3.34.2); arm64 macOS 27.0.1",
      "default_constraints": "Installed compiler and standard library only; authored small inputs; no network or production files; preserve bounds and lifetimes; separate compile, link and execution.",
      "audience": "Learners who have practiced basic control flow and can invoke an installed compiler.",
      "estimated_practice": "5 to 7 hours.",
      "scope": "Core types, control flow, functions, arrays, strings, ownership and lifetimes, expected errors, separate build stages and tests. Introductory c17 subset only.",
      "runtime_note": "Export one entry source and any companion files to a fresh practice folder. Compile with clang -std=c17 -Wall -Wextra -Wpedantic -Werror \"C 01 Values.c\" -o \"Atlas example\", then run ./\"Atlas example\" only after compilation succeeds. The C two-file example also needs \"Atlas math.c\" on the command line. These are recorded installed tools; do not run a package manager. The browser exports source only and never invokes the compiler. Use separate fresh directories to avoid executing stale output. Exact test environment: Apple Clang 21.0.0 (clang-2100.3.34.2); arm64 macOS 27.0.1.",
      "lessons": [
        {
          "title": "Choose C17 deliberately",
          "text": "C and C++ are separate languages. Compile .c files with clang -std=c17; this pack uses a hosted subset, not every C17 facility. Apple Clang 21.0.0 is the tested implementation. Integer widths, plain-char signedness, object layout and diagnostics vary; the examples avoid relying on a specific int width."
        },
        {
          "title": "Build stages are distinct",
          "text": "Preprocessing includes headers, compilation checks and translates each translation unit, and linking resolves definitions. A declaration in a header is not a separately linked definition. A successful build does not demonstrate expected output. The harness checks syntax, creates objects, links and executes in fresh directories."
        },
        {
          "title": "Values and control flow",
          "text": "Initialize objects before reading them, use matching printf format specifiers and keep conditions explicit. Signed integer overflow is undefined behavior. Tiny fixed values make simple examples tractable; the checked-addition exercise checks limits before adding."
        },
        {
          "title": "Functions carry contracts",
          "text": "An int pointer alone does not communicate a valid length or lifetime. A function taking a pointer and count depends on the caller providing actual live elements. Use return status plus an output value for expected failures, and avoid using an output value unless the call succeeded."
        },
        {
          "title": "Arrays and strings need bounds",
          "text": "Arrays hold a fixed number of elements. Most array expressions convert to pointers, so a pointer parameter loses the array bound. C strings require a zero terminator. Bound formatting, check truncation, and do not use unchecked strcpy, gets or unbounded input recipes. Byte lengths are not Unicode text lengths."
        },
        {
          "title": "Storage duration and ownership",
          "text": "Automatic objects live for their scope; string literals have static storage duration. Allocated storage lasts until it is freed. Establish one responsible owner, check allocation, release once and stop using all aliases afterward. Returning a pointer to a local object or reading freed storage is not a valid teaching pattern."
        },
        {
          "title": "Errors and tests",
          "text": "Check conversion status, end pointers and range policy. Expected invalid data is different from undefined behavior. assert provides test checks only while NDEBUG is undefined; input validation needs ordinary control flow. Deliberately invalid source fixtures are compiler rejection tests and are never executed."
        },
        {
          "title": "Practice within limits",
          "text": "All inputs are authored, tiny and local. The harness also runs accepted examples with installed AddressSanitizer and UndefinedBehaviorSanitizer when verified available. These can detect some faults on executed paths; they do not prove safety or general correctness. No file I/O, arbitrary pointers, networking, concurrency, production integration or allocation-failure injection is included."
        }
      ],
      "reference": [
        {
          "area": "Entry",
          "syntax": "int main(void)",
          "meaning": "Hosted C entry point returns a process status."
        },
        {
          "area": "Boolean",
          "syntax": "#include <stdbool.h>",
          "meaning": "C17 bool, true and false macros."
        },
        {
          "area": "Output",
          "syntax": "printf(\"%d\", value)",
          "meaning": "Format must match promoted argument type."
        },
        {
          "area": "Length",
          "syntax": "size_t / %zu",
          "meaning": "Unsigned size type and matching printf conversion."
        },
        {
          "area": "Branch",
          "syntax": "if (condition) { ... }",
          "meaning": "An explicit conditional block."
        },
        {
          "area": "Loop",
          "syntax": "for (size_t i = 0; i < count; ++i)",
          "meaning": "Index only valid elements."
        },
        {
          "area": "Function",
          "syntax": "bool operation(int input, int *out)",
          "meaning": "Separate success from result."
        },
        {
          "area": "Read-only access",
          "syntax": "const int *values",
          "meaning": "Does not grant ownership or validate lifetime."
        },
        {
          "area": "Array length",
          "syntax": "sizeof a / sizeof a[0]",
          "meaning": "Only at an actual array, not a pointer parameter."
        },
        {
          "area": "Formatting",
          "syntax": "snprintf(buffer, capacity, ...)",
          "meaning": "Check negative return and required size."
        },
        {
          "area": "String length",
          "syntax": "strlen(terminated_string)",
          "meaning": "Requires a valid terminator; counts bytes."
        },
        {
          "area": "Allocation",
          "syntax": "calloc(count, sizeof *pointer)",
          "meaning": "Check failure; bound count and lifetime."
        },
        {
          "area": "Release",
          "syntax": "free(pointer)",
          "meaning": "Release owned allocated storage once."
        },
        {
          "area": "Conversion",
          "syntax": "strtol(text, &end, 10)",
          "meaning": "Check no-conversion, trailing content and ERANGE."
        },
        {
          "area": "Test",
          "syntax": "assert(condition)",
          "meaning": "Can disappear when NDEBUG is defined."
        },
        {
          "area": "Stages",
          "syntax": "-fsyntax-only / -c / link / run",
          "meaning": "Different checks with different failure modes."
        }
      ],
      "templates": [
        {
          "id": "c-build",
          "name": "Build a bounded example",
          "text": "For {language}, help me {goal}. Environment: {runtime}. Constraints: {constraints}. Return complete source and companion files, exact compiler flags, expected output and resource ownership. Do not claim tests ran without evidence."
        },
        {
          "id": "c-debug",
          "name": "Diagnose a build or runtime failure",
          "text": "For {language}, help me {goal}. Environment: {runtime}. Constraints: {constraints}. Separate compiler, linker and runtime symptoms. Show a minimal correction and a regression check. Do not claim tests ran without evidence."
        },
        {
          "id": "c-test",
          "name": "Design boundary tests",
          "text": "For {language}, help me {goal}. Environment: {runtime}. Constraints: {constraints}. Cover empty, boundary and rejected input. Separate static rejection fixtures from successful programs and actual execution. Do not claim tests ran without evidence."
        },
        {
          "id": "c-refactor",
          "name": "Refactor with clear ownership",
          "text": "For {language}, help me {goal}. Environment: {runtime}. Constraints: {constraints}. Preserve output and explain lifetimes, bounds and ownership before and after the change. Do not claim tests ran without evidence."
        },
        {
          "id": "c-document",
          "name": "Document a contract",
          "text": "For {language}, help me {goal}. Environment: {runtime}. Constraints: {constraints}. State pointer/view preconditions, ranges, outputs, failure behavior, compiler mode and unsupported cases. Do not claim tests ran without evidence."
        },
        {
          "id": "c-review",
          "name": "Review lifetime and arithmetic risks",
          "text": "For {language}, help me {goal}. Environment: {runtime}. Constraints: {constraints}. Check dangling views, invalid bounds, format mismatches, unchecked allocation and integer overflow. Do not introduce deliberate undefined behavior. Do not claim tests ran without evidence."
        }
      ],
      "examples": [
        {
          "id": "c-values",
          "title": "C 01 - Types and output",
          "filename": "C 01 Values.c",
          "code": "#include <stdbool.h>\n#include <stdio.h>\nint main(void) {\n    const int minutes = 25;\n    const double hours = minutes / 60.0;\n    const bool ready = minutes > 0;\n    printf(\"Minutes: %d\\nHours: %.2f\\nReady: %s\\n\",\n           minutes, hours, ready ? \"yes\" : \"no\");\n    return 0;\n}\n",
          "expected_output": "Minutes: 25\nHours: 0.42\nReady: yes",
          "expected_stdout": "Minutes: 25\nHours: 0.42\nReady: yes\n",
          "explanation": "C17 uses stdbool.h for bool. Format specifiers must match argument types. Division by a floating operand produces a floating result; the display rounds to two decimal places.",
          "exercise": null,
          "files": [],
          "negative": [
            {
              "code": "int main(void) { const int n = 1; n = 2; return n; }",
              "diagnostic": "const-qualified"
            }
          ],
          "checks": [],
          "concepts": [],
          "runner": "c",
          "test": {
            "status": "passed",
            "runtime": "Apple clang version 21.0.0 (clang-2100.3.34.2); c17 normal and AddressSanitizer/UndefinedBehaviorSanitizer builds",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "C validation.json; syntax/object/link/runtime and instrumented stdout checks"
          }
        },
        {
          "id": "c-control",
          "title": "C 02 - Branches and loops",
          "filename": "C 02 Control.c",
          "code": "#include <stdio.h>\nint main(void) {\n    int total = 0;\n    for (int n = 1; n <= 4; ++n) {\n        if (n % 2 == 0) { total += n; }\n    }\n    printf(\"Even total: %d\\n\", total);\n    return 0;\n}\n",
          "expected_output": "Even total: 6",
          "expected_stdout": "Even total: 6\n",
          "explanation": "The loop is bounded and the small integer sum cannot overflow. Braces make the scope of each branch explicit. Do not generalize the arithmetic bound to arbitrary input.",
          "exercise": null,
          "files": [],
          "negative": [],
          "checks": [],
          "concepts": [],
          "runner": "c",
          "test": {
            "status": "passed",
            "runtime": "Apple clang version 21.0.0 (clang-2100.3.34.2); c17 normal and AddressSanitizer/UndefinedBehaviorSanitizer builds",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "C validation.json; syntax/object/link/runtime and instrumented stdout checks"
          }
        },
        {
          "id": "c-functions",
          "title": "C 03 - A checked function",
          "filename": "C 03 Functions.c",
          "code": "#include <stdbool.h>\n#include <stdio.h>\nstatic bool valid_minutes(int n) { return n >= 0 && n <= 120; }\nstatic bool double_minutes(int n, int *out) {\n    if (out == NULL || !valid_minutes(n)) { return false; }\n    *out = n * 2;\n    return true;\n}\nint main(void) {\n    int result = 0;\n    if (!double_minutes(20, &result)) { return 1; }\n    printf(\"Double: %d\\n\", result);\n    printf(\"Invalid rejected: %s\\n\",\n           !double_minutes(-1, &result) ? \"yes\" : \"no\");\n    return 0;\n}\n",
          "expected_output": "Double: 40\nInvalid rejected: yes",
          "expected_stdout": "Double: 40\nInvalid rejected: yes\n",
          "explanation": "Return status separately from an output value. A non-null output pointer must also point to a live writable int; a null check alone cannot validate pointer lifetime or ownership.",
          "exercise": null,
          "files": [],
          "negative": [
            {
              "code": "static int twice(int n) { return n * 2; }\nint main(void) { return twice(); }",
              "diagnostic": "too few arguments"
            }
          ],
          "checks": [],
          "concepts": [],
          "runner": "c",
          "test": {
            "status": "passed",
            "runtime": "Apple clang version 21.0.0 (clang-2100.3.34.2); c17 normal and AddressSanitizer/UndefinedBehaviorSanitizer builds",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "C validation.json; syntax/object/link/runtime and instrumented stdout checks"
          }
        },
        {
          "id": "c-arrays",
          "title": "C 04 - Arrays and lengths",
          "filename": "C 04 Arrays.c",
          "code": "#include <stddef.h>\n#include <stdio.h>\nstatic int total(const int *values, size_t count) {\n    int result = 0;\n    for (size_t i = 0; i < count; ++i) { result += values[i]; }\n    return result;\n}\nint main(void) {\n    const int values[] = {10, 20, 30};\n    const size_t count = sizeof values / sizeof values[0];\n    printf(\"Count: %zu\\nTotal: %d\\n\", count, total(values, count));\n    printf(\"Empty: %d\\n\", total(NULL, 0));\n    return 0;\n}\n",
          "expected_output": "Count: 3\nTotal: 60\nEmpty: 0",
          "expected_stdout": "Count: 3\nTotal: 60\nEmpty: 0\n",
          "explanation": "The count expression works where values is an array, not after it becomes a pointer parameter. For a nonzero count the caller must supply that many live elements, and every intermediate sum as well as the final sum must fit int. The empty case never dereferences NULL.",
          "exercise": null,
          "files": [],
          "negative": [],
          "checks": [],
          "concepts": [],
          "runner": "c",
          "test": {
            "status": "passed",
            "runtime": "Apple clang version 21.0.0 (clang-2100.3.34.2); c17 normal and AddressSanitizer/UndefinedBehaviorSanitizer builds",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "C validation.json; syntax/object/link/runtime and instrumented stdout checks"
          }
        },
        {
          "id": "c-strings",
          "title": "C 05 - Bounded string formatting",
          "filename": "C 05 Strings.c",
          "code": "#include <stdio.h>\n#include <string.h>\nint main(void) {\n    char label[16];\n    int n = snprintf(label, sizeof label, \"%s:%d\", \"Read\", 20);\n    if (n < 0 || (size_t)n >= sizeof label) { return 1; }\n    printf(\"%s (%zu bytes)\\n\", label, strlen(label));\n    char tiny[4];\n    n = snprintf(tiny, sizeof tiny, \"%s\", \"abcdef\");\n    if (n < 0) { return 1; }\n    printf(\"Truncation detected: %s\\n\",\n           (size_t)n >= sizeof tiny ? \"yes\" : \"no\");\n    return 0;\n}\n",
          "expected_output": "Read:20 (7 bytes)\nTruncation detected: yes",
          "expected_stdout": "Read:20 (7 bytes)\nTruncation detected: yes\n",
          "explanation": "A C string needs a terminating zero byte. snprintf reports the number of characters that would have been written, excluding the terminator. Check negative returns before conversion. strlen counts bytes here, not user-perceived Unicode characters.",
          "exercise": null,
          "files": [],
          "negative": [],
          "checks": [],
          "concepts": [],
          "runner": "c",
          "test": {
            "status": "passed",
            "runtime": "Apple clang version 21.0.0 (clang-2100.3.34.2); c17 normal and AddressSanitizer/UndefinedBehaviorSanitizer builds",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "C validation.json; syntax/object/link/runtime and instrumented stdout checks"
          }
        },
        {
          "id": "c-structs",
          "title": "C 06 - Structs and explicit state",
          "filename": "C 06 Structs.c",
          "code": "#include <stdio.h>\nenum State { OPEN, DONE };\nstruct Task { const char *title; int minutes; enum State state; };\nint main(void) {\n    struct Task task = {\"Read\", 20, OPEN};\n    struct Task copy = task;\n    copy.state = DONE;\n    printf(\"%s: %d\\n\", task.title, task.minutes);\n    printf(\"Original open: %s; copy done: %s\\n\",\n           task.state == OPEN ? \"yes\" : \"no\",\n           copy.state == DONE ? \"yes\" : \"no\");\n    return 0;\n}\n",
          "expected_output": "Read: 20\nOriginal open: yes; copy done: yes",
          "expected_stdout": "Read: 20\nOriginal open: yes; copy done: yes\n",
          "explanation": "Struct assignment copies member values. The title pointer is copied, not the pointed-to text. Both point to the same string literal with static lifetime; neither code path writes through it.",
          "exercise": null,
          "files": [],
          "negative": [],
          "checks": [],
          "concepts": [],
          "runner": "c",
          "test": {
            "status": "passed",
            "runtime": "Apple clang version 21.0.0 (clang-2100.3.34.2); c17 normal and AddressSanitizer/UndefinedBehaviorSanitizer builds",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "C validation.json; syntax/object/link/runtime and instrumented stdout checks"
          }
        },
        {
          "id": "c-ownership",
          "title": "C 07 - One allocation and one owner",
          "filename": "C 07 Ownership.c",
          "code": "#include <stdio.h>\n#include <stdlib.h>\nint main(void) {\n    const size_t count = 3;\n    int *values = calloc(count, sizeof *values);\n    if (values == NULL) { fputs(\"Allocation failed\\n\", stderr); return 1; }\n    for (size_t i = 0; i < count; ++i) { values[i] = (int)i + 1; }\n    printf(\"Values: %d %d %d\\n\", values[0], values[1], values[2]);\n    free(values);\n    values = NULL;\n    puts(\"Owner released storage\");\n    return 0;\n}\n",
          "expected_output": "Values: 1 2 3\nOwner released storage",
          "expected_stdout": "Values: 1 2 3\nOwner released storage\n",
          "explanation": "This function owns one small allocation, checks failure, uses it only during its lifetime, then frees it once. Assigning NULL only changes this pointer; it would not repair dangling aliases. Prefer fixed arrays when dynamic storage is unnecessary. Allocation failure is handled but not fault-injected by this pack.",
          "exercise": null,
          "files": [],
          "negative": [],
          "checks": [],
          "concepts": [],
          "runner": "c",
          "test": {
            "status": "passed",
            "runtime": "Apple clang version 21.0.0 (clang-2100.3.34.2); c17 normal and AddressSanitizer/UndefinedBehaviorSanitizer builds",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "C validation.json; syntax/object/link/runtime and instrumented stdout checks"
          }
        },
        {
          "id": "c-errors",
          "title": "C 08 - Parse and report errors",
          "filename": "C 08 Errors.c",
          "code": "#include <errno.h>\n#include <stdbool.h>\n#include <stdio.h>\n#include <stdlib.h>\nstatic bool parse_minutes(const char *s, int *out) {\n    if (s == NULL || out == NULL) { return false; }\n    char *end = NULL;\n    errno = 0;\n    long value = strtol(s, &end, 10);\n    if (s == end || *end != '\\0' || errno == ERANGE ||\n        value < 0 || value > 120) { return false; }\n    *out = (int)value;\n    return true;\n}\nint main(void) {\n    const char *inputs[] = {\"20\", \"x\", \"121\", \"15tail\"};\n    for (size_t i = 0; i < 4; ++i) {\n        int value = 0;\n        if (parse_minutes(inputs[i], &value)) { printf(\"%d\\n\", value); }\n        else { puts(\"invalid\"); }\n    }\n    return 0;\n}\n",
          "expected_output": "20\ninvalid\ninvalid\ninvalid",
          "expected_stdout": "20\ninvalid\ninvalid\ninvalid\n",
          "explanation": "For these valid zero-terminated strings, strtol supplies an end pointer and range status. This policy accepts leading whitespace and a sign if the final value is in range; it rejects trailing content. The output is only assigned after success.",
          "exercise": null,
          "files": [],
          "negative": [],
          "checks": [],
          "concepts": [],
          "runner": "c",
          "test": {
            "status": "passed",
            "runtime": "Apple clang version 21.0.0 (clang-2100.3.34.2); c17 normal and AddressSanitizer/UndefinedBehaviorSanitizer builds",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "C validation.json; syntax/object/link/runtime and instrumented stdout checks"
          }
        },
        {
          "id": "c-build",
          "title": "C 09 - Compile and link two files",
          "filename": "C 09 Build.c",
          "code": "#include <stdio.h>\n#include \"Atlas math.h\"\nint main(void) {\n    printf(\"Double: %d\\n\", atlas_double(6));\n    return 0;\n}\n",
          "expected_output": "Double: 12",
          "expected_stdout": "Double: 12\n",
          "explanation": "The header declares the contract; a separate .c file defines it. Compile both source files and link their objects, or pass both .c files to one compiler invocation. The function contract is a value from 0 to 120.",
          "exercise": null,
          "files": [
            {
              "name": "Atlas math.h",
              "code": "#ifndef ATLAS_MATH_H\n#define ATLAS_MATH_H\nint atlas_double(int value); /* caller supplies 0..120 */\n#endif\n"
            },
            {
              "name": "Atlas math.c",
              "code": "#include \"Atlas math.h\"\nint atlas_double(int value) { return value * 2; }\n"
            }
          ],
          "negative": [
            {
              "code": "#include <stdio.h>\nint main(void) { printf(\"%d\\n\", \"text\"); return 0; }",
              "diagnostic": "format specifies type"
            }
          ],
          "checks": [],
          "concepts": [],
          "runner": "c",
          "test": {
            "status": "passed",
            "runtime": "Apple clang version 21.0.0 (clang-2100.3.34.2); c17 normal and AddressSanitizer/UndefinedBehaviorSanitizer builds",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "C validation.json; syntax/object/link/runtime and instrumented stdout checks"
          }
        },
        {
          "id": "c-exercise-a",
          "title": "C exercise A - An empty average",
          "filename": "C Exercise A Average.c",
          "code": "#include <stdbool.h>\n#include <stddef.h>\n#include <stdio.h>\nstatic bool average(const int *xs, size_t n, double *out) {\n    if (xs == NULL || out == NULL || n == 0 || n > 10) { return false; }\n    int sum = 0;\n    for (size_t i = 0; i < n; ++i) {\n        if (xs[i] < 0 || xs[i] > 120) { return false; }\n        sum += xs[i];\n    }\n    *out = (double)sum / (double)n;\n    return true;\n}\nint main(void) {\n    const int xs[] = {10, 20}; double result = 0;\n    if (!average(xs, 2, &result)) { return 1; }\n    printf(\"Average: %.1f\\n\", result);\n    puts(!average(NULL, 0, &result) ? \"empty rejected\" : \"unexpected\");\n    return 0;\n}\n",
          "expected_output": "Average: 15.0\nempty rejected",
          "expected_stdout": "Average: 15.0\nempty rejected\n",
          "explanation": "At most ten values in 0..120 keeps the sum bounded. The caller still owns the array and must supply n actual live elements. Failure leaves the output unchanged.",
          "exercise": "Return an explicit success status for an average. Reject an empty input, more than ten entries or out-of-range minutes without dividing by zero.",
          "files": [],
          "negative": [],
          "checks": [],
          "concepts": [],
          "runner": "c",
          "test": {
            "status": "passed",
            "runtime": "Apple clang version 21.0.0 (clang-2100.3.34.2); c17 normal and AddressSanitizer/UndefinedBehaviorSanitizer builds",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "C validation.json; syntax/object/link/runtime and instrumented stdout checks"
          }
        },
        {
          "id": "c-exercise-b",
          "title": "C exercise B - Checked addition",
          "filename": "C Exercise B Addition.c",
          "code": "#include <limits.h>\n#include <stdbool.h>\n#include <stdio.h>\nstatic bool add(int a, int b, int *out) {\n    if (out == NULL || (b > 0 && a > INT_MAX - b) ||\n        (b < 0 && a < INT_MIN - b)) { return false; }\n    *out = a + b;\n    return true;\n}\nint main(void) {\n    int result = 0;\n    if (!add(10, 20, &result)) { return 1; }\n    printf(\"Sum: %d\\n\", result);\n    puts(!add(INT_MAX, 1, &result) ? \"upper rejected\" : \"unexpected\");\n    puts(!add(INT_MIN, -1, &result) ? \"lower rejected\" : \"unexpected\");\n    return 0;\n}\n",
          "expected_output": "Sum: 30\nupper rejected\nlower rejected",
          "expected_stdout": "Sum: 30\nupper rejected\nlower rejected\n",
          "explanation": "Check limits before performing signed addition. Signed overflow is undefined behavior; checking the result afterward is too late. The subtraction guards are themselves valid for their sign branches.",
          "exercise": "Add two ints only when their mathematical sum fits int. Demonstrate both boundary rejections without actually overflowing.",
          "files": [],
          "negative": [],
          "checks": [],
          "concepts": [],
          "runner": "c",
          "test": {
            "status": "passed",
            "runtime": "Apple clang version 21.0.0 (clang-2100.3.34.2); c17 normal and AddressSanitizer/UndefinedBehaviorSanitizer builds",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "C validation.json; syntax/object/link/runtime and instrumented stdout checks"
          }
        },
        {
          "id": "c-exercise-c",
          "title": "C exercise C - Runtime assertions",
          "filename": "C Exercise C Tests.c",
          "code": "#include <assert.h>\n#include <stdbool.h>\n#include <stdio.h>\nstatic bool valid_minutes(int n) { return n >= 0 && n <= 120; }\nint main(void) {\n    assert(valid_minutes(0));\n    assert(valid_minutes(120));\n    assert(!valid_minutes(-1));\n    assert(!valid_minutes(121));\n    puts(\"Assertions: 4 passed\");\n    return 0;\n}\n",
          "expected_output": "Assertions: 4 passed",
          "expected_stdout": "Assertions: 4 passed\n",
          "explanation": "These four runtime assertions run with NDEBUG undefined in the test build. assert can be compiled out and is not a substitute for validating external input in released software.",
          "exercise": "Write four boundary assertions for inclusive 0..120. Explain why a successful compilation does not prove these assertions were executed.",
          "files": [],
          "negative": [
            {
              "code": "_Static_assert(sizeof(char) == 2, \"deliberate failure\");\nint main(void) { return 0; }",
              "diagnostic": "static assertion failed"
            }
          ],
          "checks": [],
          "concepts": [],
          "runner": "c",
          "test": {
            "status": "passed",
            "runtime": "Apple clang version 21.0.0 (clang-2100.3.34.2); c17 normal and AddressSanitizer/UndefinedBehaviorSanitizer builds",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "C validation.json; syntax/object/link/runtime and instrumented stdout checks"
          }
        }
      ],
      "support_files": [
        {
          "name": "Build instructions.txt",
          "code": "Export one entry source and any companion files to a fresh practice folder. Compile with clang -std=c17 -Wall -Wextra -Wpedantic -Werror \"C 01 Values.c\" -o \"Atlas example\", then run ./\"Atlas example\" only after compilation succeeds. The C two-file example also needs \"Atlas math.c\" on the command line. These are recorded installed tools; do not run a package manager. The browser exports source only and never invokes the compiler. Use separate fresh directories to avoid executing stale output.\n"
        }
      ],
      "build": {
        "compiler": "/usr/bin/clang",
        "standard": "c17",
        "flags": [
          "-Wall",
          "-Wextra",
          "-Wpedantic",
          "-Werror"
        ]
      },
      "test_summary": {
        "result": "passed",
        "tested_on": "2026-10-25",
        "runtime": "Apple clang version 21.0.0 (clang-2100.3.34.2); c17",
        "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
        "assertion_count": 119,
        "example_count": 12,
        "accepted_programs": 12,
        "normal_execution_count": 12,
        "sanitizer_execution_count": 12,
        "expected_compiler_rejection_cases": 4,
        "boundary_fixture_count": 5,
        "boundary_assertions_executed": 31,
        "embedded_example_assertions": 4,
        "limitations": [
          "Fixed authored inputs and this macOS compiler/library only.",
          "No allocation failure injection; no full standard or memory-safety proof.",
          "Leak detection disabled; sanitizer evidence is only for executed paths.",
          "Fresh temporary directories, CPU/output/time bounds; not an arbitrary-code sandbox."
        ]
      }
    },
    {
      "id": "cpp-foundations",
      "title": "C++ Foundations",
      "version": "0.10.0",
      "status": "tested",
      "entry_ids": [
        "cpp"
      ],
      "languages": [
        "C++"
      ],
      "default_goal": "Build a bounded study-summary example with clear ownership and observable errors.",
      "default_runtime": "c++20; Apple Clang 21.0.0 (clang-2100.3.34.2); arm64 macOS 27.0.1; libc++ 220106",
      "default_constraints": "Installed compiler and standard library only; authored small inputs; no network or production files; preserve bounds and lifetimes; separate compile, link and execution.",
      "audience": "Learners who have practiced basic control flow and can invoke an installed compiler.",
      "estimated_practice": "5 to 7 hours.",
      "scope": "Core types, control flow, functions, arrays, strings, ownership and lifetimes, expected errors, separate build stages and tests. Introductory c++20 subset only.",
      "runtime_note": "Export one entry source and any companion files to a fresh practice folder. Compile with clang++ -std=c++20 -Wall -Wextra -Wpedantic -Werror \"C++ 01 Values.cpp\" -o \"Atlas example\", then run ./\"Atlas example\" only after compilation succeeds. These are recorded installed tools; do not run a package manager. The browser exports source only and never invokes the compiler. Use separate fresh directories to avoid executing stale output. Exact test environment: Apple Clang 21.0.0 (clang-2100.3.34.2); arm64 macOS 27.0.1; libc++ 220106.",
      "lessons": [
        {
          "title": "Choose C++20 deliberately",
          "text": "Compile .cpp files with clang++ -std=c++20 so the driver links the C++ library. The installed Apple Clang 21.0.0 and libc++ 220106 support the subset actually tested here. Enabling a standard mode does not prove every feature is implemented; modules, ranges pipelines, coroutines and platform-specific APIs are outside this pack."
        },
        {
          "title": "Prefer owning values",
          "text": "Use std::string, std::array and std::vector to express ownership. Copying a value container copies its values rather than simply sharing a C pointer. A vector can reallocate and invalidate pointers or views; the examples do not retain such views across mutation."
        },
        {
          "title": "References and views borrow",
          "text": "A reference, string_view or span does not own the referred object and does not extend its lifetime. Keep the owner alive and storage stable for all uses. span carries a bound but C++20 operator[] is not a bounds-checked operation; range iteration or a deliberately checked access is often clearer."
        },
        {
          "title": "Functions express results",
          "text": "An optional result represents expected absence without inventing a sentinel or exposing an output pointer. Check engagement before dereferencing. const restricts mutation through the given access path; it is not a general ownership or thread-safety guarantee."
        },
        {
          "title": "RAII and unique ownership",
          "text": "Resource Acquisition Is Initialization associates a resource with an object lifetime. Containers and unique_ptr release owned storage automatically at normal destruction. std::move enables move operations; it does not itself transfer or destroy anything. This unique_ptr move empties its source, while other moved-from types have different contracts."
        },
        {
          "title": "Errors remain observable",
          "text": "Use an optional for expected missing results, error codes where an API defines them, and exceptions where appropriate. Catch the expected exception by reference. vector::at throws on an invalid index; accessing an unchecked invalid index would be undefined behavior and is never demonstrated here."
        },
        {
          "title": "Build and test separately",
          "text": "Header definitions, object compilation and linking have distinct roles. constexpr permits compile-time evaluation when its conditions are met; static_assert demands a compile-time truth. Runtime assert and stdout checks are separate evidence. Negative compiler fixtures are intentionally invalid and are not counted as successfully executing programs."
        },
        {
          "title": "Practice within limits",
          "text": "The examples avoid raw owning new/delete, unchecked C string operations and arbitrary external input. Lifetime rules still matter in C++. Sanitizer success is limited to the executed paths and cannot certify safety. No deployment, concurrency, ABI compatibility, allocation-failure injection or full standard conformance is claimed."
        }
      ],
      "reference": [
        {
          "area": "Initialization",
          "syntax": "int count{3}",
          "meaning": "Braces reject many narrowing conversions."
        },
        {
          "area": "Owning text",
          "syntax": "std::string",
          "meaning": "Owns character storage with value semantics."
        },
        {
          "area": "Fixed array",
          "syntax": "std::array<T, N>",
          "meaning": "Owns a fixed number of elements."
        },
        {
          "area": "Dynamic sequence",
          "syntax": "std::vector<T>",
          "meaning": "Owns elements; mutation may invalidate views."
        },
        {
          "area": "Borrowed range",
          "syntax": "std::span<const T>",
          "meaning": "C++20 view, with length but no ownership."
        },
        {
          "area": "Borrowed text",
          "syntax": "std::string_view",
          "meaning": "Does not extend owner lifetime or require a terminator."
        },
        {
          "area": "Optional",
          "syntax": "std::optional<T> / std::nullopt",
          "meaning": "A result value or explicit absence."
        },
        {
          "area": "Unique owner",
          "syntax": "std::make_unique<T>(...)",
          "meaning": "Creates storage managed by unique_ptr."
        },
        {
          "area": "Move",
          "syntax": "std::move(value)",
          "meaning": "Enables move selection; follow type-specific postconditions."
        },
        {
          "area": "Checked access",
          "syntax": "values.at(index)",
          "meaning": "Throws out_of_range if invalid."
        },
        {
          "area": "Exception",
          "syntax": "catch (const std::out_of_range&)",
          "meaning": "Handle the expected failure type."
        },
        {
          "area": "Parsing",
          "syntax": "std::from_chars(first, last, value)",
          "meaning": "Integer conversion reports end pointer and error code."
        },
        {
          "area": "Compile-time test",
          "syntax": "static_assert(expression)",
          "meaning": "Must be a constant expression evaluating true."
        },
        {
          "area": "Runtime test",
          "syntax": "assert(expression)",
          "meaning": "Executes only when enabled; not input validation."
        },
        {
          "area": "Cleanup",
          "syntax": "~Type()",
          "meaning": "Destructor runs at normal object destruction."
        },
        {
          "area": "Driver",
          "syntax": "clang++ -std=c++20",
          "meaning": "Pins language mode and links the C++ library."
        }
      ],
      "templates": [
        {
          "id": "cpp-build",
          "name": "Build a bounded example",
          "text": "For {language}, help me {goal}. Environment: {runtime}. Constraints: {constraints}. Return complete source and companion files, exact compiler flags, expected output and resource ownership. Do not claim tests ran without evidence."
        },
        {
          "id": "cpp-debug",
          "name": "Diagnose a build or runtime failure",
          "text": "For {language}, help me {goal}. Environment: {runtime}. Constraints: {constraints}. Separate compiler, linker and runtime symptoms. Show a minimal correction and a regression check. Do not claim tests ran without evidence."
        },
        {
          "id": "cpp-test",
          "name": "Design boundary tests",
          "text": "For {language}, help me {goal}. Environment: {runtime}. Constraints: {constraints}. Cover empty, boundary and rejected input. Separate static rejection fixtures from successful programs and actual execution. Do not claim tests ran without evidence."
        },
        {
          "id": "cpp-refactor",
          "name": "Refactor with clear ownership",
          "text": "For {language}, help me {goal}. Environment: {runtime}. Constraints: {constraints}. Preserve output and explain lifetimes, bounds and ownership before and after the change. Do not claim tests ran without evidence."
        },
        {
          "id": "cpp-document",
          "name": "Document a contract",
          "text": "For {language}, help me {goal}. Environment: {runtime}. Constraints: {constraints}. State pointer/view preconditions, ranges, outputs, failure behavior, compiler mode and unsupported cases. Do not claim tests ran without evidence."
        },
        {
          "id": "cpp-review",
          "name": "Review lifetime and arithmetic risks",
          "text": "For {language}, help me {goal}. Environment: {runtime}. Constraints: {constraints}. Check dangling views, invalid bounds, format mismatches, unchecked allocation and integer overflow. Do not introduce deliberate undefined behavior. Do not claim tests ran without evidence."
        }
      ],
      "examples": [
        {
          "id": "cpp-values",
          "title": "C++ 01 - Values and initialization",
          "filename": "C++ 01 Values.cpp",
          "code": "#include <iostream>\n#include <string>\nint main() {\n    const std::string title{\"Read\"};\n    const int minutes{25};\n    const bool ready{minutes > 0};\n    std::cout << title << \": \" << minutes << '\\n';\n    std::cout << std::boolalpha << ready << '\\n';\n    return 0;\n}\n",
          "expected_output": "Read: 25\ntrue",
          "expected_stdout": "Read: 25\ntrue\n",
          "explanation": "std::string owns its character storage. Braced initialization rejects many narrowing conversions. Stream output does not use C printf format strings.",
          "exercise": null,
          "files": [],
          "negative": [
            {
              "code": "int main() { int n{1.5}; return n; }",
              "diagnostic": "cannot be narrowed"
            }
          ],
          "checks": [],
          "concepts": [],
          "runner": "cpp",
          "test": {
            "status": "passed",
            "runtime": "Apple clang version 21.0.0 (clang-2100.3.34.2); c++20 normal and AddressSanitizer/UndefinedBehaviorSanitizer builds",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "C++ validation.json; syntax/object/link/runtime and instrumented stdout checks"
          }
        },
        {
          "id": "cpp-control",
          "title": "C++ 02 - Iterate over a value collection",
          "filename": "C++ 02 Control.cpp",
          "code": "#include <array>\n#include <iostream>\nint main() {\n    const std::array<int, 4> values{1, 2, 3, 4};\n    int total{0};\n    for (const int value : values) {\n        if (value % 2 == 0) { total += value; }\n    }\n    std::cout << \"Even total: \" << total << '\\n';\n    return 0;\n}\n",
          "expected_output": "Even total: 6",
          "expected_stdout": "Even total: 6\n",
          "explanation": "Range iteration avoids manually maintaining an index for this operation. The fixed small values keep integer arithmetic in range; containers do not make signed overflow defined.",
          "exercise": null,
          "files": [],
          "negative": [],
          "checks": [],
          "concepts": [],
          "runner": "cpp",
          "test": {
            "status": "passed",
            "runtime": "Apple clang version 21.0.0 (clang-2100.3.34.2); c++20 normal and AddressSanitizer/UndefinedBehaviorSanitizer builds",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "C++ validation.json; syntax/object/link/runtime and instrumented stdout checks"
          }
        },
        {
          "id": "cpp-functions",
          "title": "C++ 03 - Return an optional result",
          "filename": "C++ 03 Functions.cpp",
          "code": "#include <iostream>\n#include <optional>\nstd::optional<int> double_minutes(int value) {\n    if (value < 0 || value > 120) { return std::nullopt; }\n    return value * 2;\n}\nint main() {\n    const auto good = double_minutes(20);\n    if (good) { std::cout << \"Double: \" << *good << '\\n'; }\n    std::cout << \"Invalid rejected: \" << std::boolalpha\n              << !double_minutes(-1).has_value() << '\\n';\n    return 0;\n}\n",
          "expected_output": "Double: 40\nInvalid rejected: true",
          "expected_stdout": "Double: 40\nInvalid rejected: true\n",
          "explanation": "optional represents a value or absence without an output pointer. Check that a value exists before dereferencing. This C++20 example does not use later optional monadic or range APIs.",
          "exercise": null,
          "files": [],
          "negative": [],
          "checks": [],
          "concepts": [],
          "runner": "cpp",
          "test": {
            "status": "passed",
            "runtime": "Apple clang version 21.0.0 (clang-2100.3.34.2); c++20 normal and AddressSanitizer/UndefinedBehaviorSanitizer builds",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "C++ validation.json; syntax/object/link/runtime and instrumented stdout checks"
          }
        },
        {
          "id": "cpp-arrays",
          "title": "C++ 04 - Owning arrays and borrowed spans",
          "filename": "C++ 04 Arrays.cpp",
          "code": "#include <array>\n#include <iostream>\n#include <span>\nint total(std::span<const int> values) {\n    int sum{0};\n    for (const int value : values) { sum += value; }\n    return sum;\n}\nint main() {\n    const std::array<int, 3> values{10, 20, 30};\n    std::cout << \"Total: \" << total(values) << '\\n';\n    std::cout << \"Empty: \" << total(std::span<const int>{}) << '\\n';\n    return 0;\n}\n",
          "expected_output": "Total: 60\nEmpty: 0",
          "expected_stdout": "Total: 60\nEmpty: 0\n",
          "explanation": "std::array owns its elements; C++20 std::span borrows a contiguous sequence and carries its length. A span does not extend lifetime and C++20 operator[] does not promise bounds checking. This loop consumes the span while the owner is alive. Every intermediate sum and the final sum must fit int; this is the arithmetic precondition, independent of span bounds.",
          "exercise": null,
          "files": [],
          "negative": [],
          "checks": [],
          "concepts": [],
          "runner": "cpp",
          "test": {
            "status": "passed",
            "runtime": "Apple clang version 21.0.0 (clang-2100.3.34.2); c++20 normal and AddressSanitizer/UndefinedBehaviorSanitizer builds",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "C++ validation.json; syntax/object/link/runtime and instrumented stdout checks"
          }
        },
        {
          "id": "cpp-strings",
          "title": "C++ 05 - Strings and borrowed views",
          "filename": "C++ 05 Strings.cpp",
          "code": "#include <iostream>\n#include <string>\n#include <string_view>\nint main() {\n    const std::string label{\"Read:20\"};\n    const std::string_view view{label};\n    std::cout << view.substr(0, 4) << '\\n';\n    std::cout << \"Bytes: \" << label.size() << '\\n';\n    const std::string copy{view};\n    std::cout << \"Copy: \" << copy << '\\n';\n    return 0;\n}\n",
          "expected_output": "Read\nBytes: 7\nCopy: Read:20",
          "expected_stdout": "Read\nBytes: 7\nCopy: Read:20\n",
          "explanation": "string_view borrows; string owns. The owner remains alive and unmodified for every use of view. A view need not be zero-terminated. Byte counts are not general Unicode character counts.",
          "exercise": null,
          "files": [],
          "negative": [],
          "checks": [],
          "concepts": [],
          "runner": "cpp",
          "test": {
            "status": "passed",
            "runtime": "Apple clang version 21.0.0 (clang-2100.3.34.2); c++20 normal and AddressSanitizer/UndefinedBehaviorSanitizer builds",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "C++ validation.json; syntax/object/link/runtime and instrumented stdout checks"
          }
        },
        {
          "id": "cpp-values-copy",
          "title": "C++ 06 - Value semantics",
          "filename": "C++ 06 Structs.cpp",
          "code": "#include <iostream>\n#include <string>\nstruct Task { std::string title; int minutes; };\nint main() {\n    const Task original{\"Read\", 20};\n    Task copy = original;\n    copy.title = \"Code\";\n    std::cout << original.title << \": \" << original.minutes << '\\n';\n    std::cout << copy.title << \": \" << copy.minutes << '\\n';\n    return 0;\n}\n",
          "expected_output": "Read: 20\nCode: 20",
          "expected_stdout": "Read: 20\nCode: 20\n",
          "explanation": "The std::string member has value semantics, so changing the copy does not change the original. Contrast C struct copying a pointer member: that copies the address rather than the referenced characters.",
          "exercise": null,
          "files": [],
          "negative": [],
          "checks": [],
          "concepts": [],
          "runner": "cpp",
          "test": {
            "status": "passed",
            "runtime": "Apple clang version 21.0.0 (clang-2100.3.34.2); c++20 normal and AddressSanitizer/UndefinedBehaviorSanitizer builds",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "C++ validation.json; syntax/object/link/runtime and instrumented stdout checks"
          }
        },
        {
          "id": "cpp-ownership",
          "title": "C++ 07 - Transfer unique ownership",
          "filename": "C++ 07 Ownership.cpp",
          "code": "#include <iostream>\n#include <memory>\n#include <utility>\nint main() {\n    auto first = std::make_unique<int>(42);\n    auto second = std::move(first);\n    std::cout << \"First empty: \" << std::boolalpha << !first << '\\n';\n    std::cout << \"Value: \" << *second << '\\n';\n    return 0;\n}\n",
          "expected_output": "First empty: true\nValue: 42",
          "expected_stdout": "First empty: true\nValue: 42\n",
          "explanation": "unique_ptr owns one allocation and releases it automatically at scope exit. Moving transfers ownership; the source unique_ptr becomes empty. Do not generalize that empty-state guarantee to every moved-from type. Allocation failure is not fault-injected.",
          "exercise": null,
          "files": [],
          "negative": [
            {
              "code": "#include <memory>\nint main() { auto a = std::make_unique<int>(1); auto b = a; }",
              "diagnostic": "implicitly-deleted copy constructor"
            }
          ],
          "checks": [],
          "concepts": [],
          "runner": "cpp",
          "test": {
            "status": "passed",
            "runtime": "Apple clang version 21.0.0 (clang-2100.3.34.2); c++20 normal and AddressSanitizer/UndefinedBehaviorSanitizer builds",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "C++ validation.json; syntax/object/link/runtime and instrumented stdout checks"
          }
        },
        {
          "id": "cpp-errors",
          "title": "C++ 08 - Recover from an expected exception",
          "filename": "C++ 08 Errors.cpp",
          "code": "#include <iostream>\n#include <stdexcept>\n#include <vector>\nint main() {\n    const std::vector<int> values{10, 20};\n    std::cout << \"First: \" << values.at(0) << '\\n';\n    try {\n        std::cout << values.at(9) << '\\n';\n    } catch (const std::out_of_range&) {\n        std::cout << \"Index rejected\\n\";\n    }\n    return 0;\n}\n",
          "expected_output": "First: 10\nIndex rejected",
          "expected_stdout": "First: 10\nIndex rejected\n",
          "explanation": "vector::at checks the index and throws out_of_range. vector::operator[] does not provide that guarantee in the C++20 contract. Catch the expected type by reference; no out-of-bounds access is performed.",
          "exercise": null,
          "files": [],
          "negative": [],
          "checks": [],
          "concepts": [],
          "runner": "cpp",
          "test": {
            "status": "passed",
            "runtime": "Apple clang version 21.0.0 (clang-2100.3.34.2); c++20 normal and AddressSanitizer/UndefinedBehaviorSanitizer builds",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "C++ validation.json; syntax/object/link/runtime and instrumented stdout checks"
          }
        },
        {
          "id": "cpp-build",
          "title": "C++ 09 - A header and compile-time contract",
          "filename": "C++ 09 Build.cpp",
          "code": "#include <iostream>\n#include \"Atlas math.hpp\"\nstatic_assert(atlas_double(6) == 12);\nint main() {\n    std::cout << \"Double: \" << atlas_double(6) << '\\n';\n    return 0;\n}\n",
          "expected_output": "Double: 12",
          "expected_stdout": "Double: 12\n",
          "explanation": "The inline constexpr definition is visible in the header. static_assert is checked during compilation; the printed output is separate runtime evidence. This is ordinary header inclusion, not C++20 modules.",
          "exercise": null,
          "files": [
            {
              "name": "Atlas math.hpp",
              "code": "#ifndef ATLAS_MATH_HPP\n#define ATLAS_MATH_HPP\n// Caller supplies 0..120.\ninline constexpr int atlas_double(int value) { return value * 2; }\n#endif\n"
            }
          ],
          "negative": [
            {
              "code": "static_assert(2 + 2 == 5, \"deliberate failure\");\nint main() {}",
              "diagnostic": "static assertion failed"
            }
          ],
          "checks": [],
          "concepts": [],
          "runner": "cpp",
          "test": {
            "status": "passed",
            "runtime": "Apple clang version 21.0.0 (clang-2100.3.34.2); c++20 normal and AddressSanitizer/UndefinedBehaviorSanitizer builds",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "C++ validation.json; syntax/object/link/runtime and instrumented stdout checks"
          }
        },
        {
          "id": "cpp-exercise-a",
          "title": "C++ exercise A - An optional average",
          "filename": "C++ Exercise A Average.cpp",
          "code": "#include <array>\n#include <iostream>\n#include <optional>\n#include <span>\nstd::optional<double> average(std::span<const int> values) {\n    if (values.empty() || values.size() > 10) { return std::nullopt; }\n    int sum{0};\n    for (const int n : values) {\n        if (n < 0 || n > 120) { return std::nullopt; }\n        sum += n;\n    }\n    return static_cast<double>(sum) / static_cast<double>(values.size());\n}\nint main() {\n    const std::array<int, 2> values{10, 20};\n    const auto result = average(values);\n    if (!result) { return 1; }\n    std::cout << \"Average: \" << *result << '\\n';\n    std::cout << \"Empty rejected: \" << std::boolalpha\n              << !average(std::span<const int>{}).has_value() << '\\n';\n    return 0;\n}\n",
          "expected_output": "Average: 15\nEmpty rejected: true",
          "expected_stdout": "Average: 15\nEmpty rejected: true\n",
          "explanation": "The span borrows valid storage, while optional owns a result value or represents absence. The function validates at most ten minute values and never divides by zero.",
          "exercise": "Return an optional average over at most ten values in 0..120. Demonstrate empty input without dereferencing an empty optional.",
          "files": [],
          "negative": [],
          "checks": [],
          "concepts": [],
          "runner": "cpp",
          "test": {
            "status": "passed",
            "runtime": "Apple clang version 21.0.0 (clang-2100.3.34.2); c++20 normal and AddressSanitizer/UndefinedBehaviorSanitizer builds",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "C++ validation.json; syntax/object/link/runtime and instrumented stdout checks"
          }
        },
        {
          "id": "cpp-exercise-b",
          "title": "C++ exercise B - Parse a complete number",
          "filename": "C++ Exercise B Parsing.cpp",
          "code": "#include <charconv>\n#include <initializer_list>\n#include <iostream>\n#include <optional>\n#include <string_view>\n#include <system_error>\nstd::optional<int> minutes(std::string_view text) {\n    if (text.empty()) { return std::nullopt; }\n    int value{0};\n    const auto result = std::from_chars(text.data(), text.data() + text.size(), value);\n    if (result.ec != std::errc{} || result.ptr != text.data() + text.size() ||\n        value < 0 || value > 120) { return std::nullopt; }\n    return value;\n}\nint main() {\n    for (const auto text : {\"20\", \"x\", \"121\", \"15tail\"}) {\n        const auto result = minutes(text);\n        if (result) { std::cout << *result << '\\n'; }\n        else { std::cout << \"invalid\\n\"; }\n    }\n    return 0;\n}\n",
          "expected_output": "20\ninvalid\ninvalid\ninvalid",
          "expected_stdout": "20\ninvalid\ninvalid\ninvalid\n",
          "explanation": "Integer from_chars reports an error code and end pointer without throwing. Unlike strtol, this conversion does not skip leading whitespace or accept a leading plus sign. The policy requires complete consumption and values in 0..120.",
          "exercise": "Parse the entire supplied view, reject errors and trailing content, and keep range policy separate from conversion.",
          "files": [],
          "negative": [],
          "checks": [],
          "concepts": [],
          "runner": "cpp",
          "test": {
            "status": "passed",
            "runtime": "Apple clang version 21.0.0 (clang-2100.3.34.2); c++20 normal and AddressSanitizer/UndefinedBehaviorSanitizer builds",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "C++ validation.json; syntax/object/link/runtime and instrumented stdout checks"
          }
        },
        {
          "id": "cpp-exercise-c",
          "title": "C++ exercise C - Test a lifetime boundary",
          "filename": "C++ Exercise C Lifetime.cpp",
          "code": "#include <cassert>\n#include <iostream>\nstruct Counter {\n    int& live;\n    explicit Counter(int& count) : live(count) { ++live; }\n    ~Counter() { --live; }\n    Counter(const Counter&) = delete;\n    Counter& operator=(const Counter&) = delete;\n};\nint main() {\n    int live{0};\n    {\n        Counter owner{live};\n        assert(live == 1);\n        std::cout << \"Inside: \" << live << '\\n';\n    }\n    assert(live == 0);\n    std::cout << \"After scope: \" << live << '\\n';\n    return 0;\n}\n",
          "expected_output": "Inside: 1\nAfter scope: 0",
          "expected_stdout": "Inside: 1\nAfter scope: 0\n",
          "explanation": "A destructor runs at this ordinary scope exit. The referenced count outlives the Counter, and copying is disabled to preserve this toy invariant. This does not demonstrate cleanup after forced termination, leaks, concurrency or every exceptional path.",
          "exercise": "Track one automatic object with a constructor and destructor. Assert the live count inside and after its scope; ensure the count outlives the object.",
          "files": [],
          "negative": [
            {
              "code": "int main() { const int n = 1; n = 2; return n; }",
              "diagnostic": "const-qualified"
            }
          ],
          "checks": [],
          "concepts": [],
          "runner": "cpp",
          "test": {
            "status": "passed",
            "runtime": "Apple clang version 21.0.0 (clang-2100.3.34.2); c++20 normal and AddressSanitizer/UndefinedBehaviorSanitizer builds",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "C++ validation.json; syntax/object/link/runtime and instrumented stdout checks"
          }
        }
      ],
      "support_files": [
        {
          "name": "Build instructions.txt",
          "code": "Export one entry source and any companion files to a fresh practice folder. Compile with clang++ -std=c++20 -Wall -Wextra -Wpedantic -Werror \"C++ 01 Values.cpp\" -o \"Atlas example\", then run ./\"Atlas example\" only after compilation succeeds. These are recorded installed tools; do not run a package manager. The browser exports source only and never invokes the compiler. Use separate fresh directories to avoid executing stale output.\n"
        }
      ],
      "build": {
        "compiler": "/usr/bin/clang++",
        "standard": "c++20",
        "flags": [
          "-Wall",
          "-Wextra",
          "-Wpedantic",
          "-Werror"
        ]
      },
      "test_summary": {
        "result": "passed",
        "tested_on": "2026-10-25",
        "runtime": "Apple clang version 21.0.0 (clang-2100.3.34.2); c++20; libc++ 220106",
        "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
        "assertion_count": 116,
        "example_count": 12,
        "accepted_programs": 12,
        "normal_execution_count": 12,
        "sanitizer_execution_count": 12,
        "expected_compiler_rejection_cases": 4,
        "boundary_fixture_count": 4,
        "boundary_assertions_executed": 21,
        "embedded_example_assertions": 2,
        "limitations": [
          "Fixed authored inputs and this macOS compiler/library only.",
          "No allocation failure injection; no full standard or memory-safety proof.",
          "Leak detection disabled; sanitizer evidence is only for executed paths.",
          "Fresh temporary directories, CPU/output/time bounds; not an arbitrary-code sandbox."
        ]
      }
    },
    {
      "id": "ruby-foundations",
      "title": "Ruby Foundations",
      "version": "0.10.0",
      "status": "tested",
      "entry_ids": [
        "ruby"
      ],
      "languages": [
        "Ruby"
      ],
      "default_goal": "Summarize small authored study records with an explicit input contract.",
      "default_runtime": "Ruby 2.6.10p210; macOS 27.0.1 arm64",
      "default_constraints": "Installed core libraries only; bounded authored input; no network, secrets or installations; file work only in a new temporary toy directory.",
      "audience": "Learners comfortable saving a source file and running an installed interpreter.",
      "estimated_practice": "4 to 6 hours.",
      "scope": "Core values, control flow, functions, collections, text, regular expressions, temporary files, expected errors, JSON, local modules and tests. No external data, packages or deployment.",
      "runtime_note": "Ruby 2.6.10p210 is installed and end-of-life upstream. Run /usr/bin/ruby followed by the quoted entry filename in a new practice folder. Save companions beside the entry file. Core libraries only; no package manager is used. The browser exports text and never executes it. Syntax checks are distinct from runtime tests and are not arbitrary-code sandboxes.",
      "lessons": [
        {
          "title": "Pin the installed interpreter",
          "text": "Ruby 2.6.10 is an end-of-life branch. This pack records offline teaching behavior on this Mac, not a deployment recommendation. Ruby 3 differences and installed gems are outside its scope. Run a saved .rb with /usr/bin/ruby; the browser only exports text."
        },
        {
          "title": "Objects, truth and conversion",
          "text": "Ruby variables refer to objects. Only false and nil are false-valued: 0 and empty strings are true-valued. Integer division floors toward negative infinity; fdiv produces floating-point division. Validate the intended input policy before converting text; to_i is not strict whole-input validation."
        },
        {
          "title": "Methods and blocks",
          "text": "Methods return their last expression unless return is explicit. each yields values to a block, and select builds a filtered array. Keep calculations separate from output and catch only expected exceptions. The examples use ordinary Ruby 2.6 syntax, not later pattern-matching or endless-method syntax."
        },
        {
          "title": "Collections and mutation",
          "text": "Arrays and hashes store object references. dup is shallow; copying the outer array does not duplicate its nested rows. Our row-copy exercise is deliberately limited to one known structure. Do not use a single mutable Hash default object as if it were independent per key."
        },
        {
          "title": "Strings and regular expressions",
          "text": "Strings have an encoding. Character length and byte size differ, and character count is not grapheme count. Use Regexp.escape for literal pattern data and \\A/\\z for the entire string. These bounded authored patterns are not a general defense against hostile regex workloads."
        },
        {
          "title": "Files have ownership",
          "text": "Only newly created temporary toy directories are writable in the file example. File.open uses an explicit UTF-8 mode and a block to close the handle. Kernel.open is avoided because pipe-prefixed input can invoke a process. No real-document path or network input is accepted."
        },
        {
          "title": "Errors and JSON contracts",
          "text": "A rescue handles a selected exception, while nil can represent an absent result when documented. JSON.parse with create_additions: false produces data; it does not enforce an application schema or reject duplicate names by itself. No Marshal loading or arbitrary code evaluation is used."
        },
        {
          "title": "Modules and tests",
          "text": "require_relative loads the supplied trusted companion. Code loading can execute code, so a practice folder must contain only files you control. Syntax acceptance is separate from actual program output and boundary tests. Four assertion cases demonstrate observable failure; the harness is not a sandbox for arbitrary submissions."
        }
      ],
      "reference": [
        {
          "area": "Values",
          "syntax": "Integer / Float / String / nil",
          "meaning": "Objects and absence; / differs for integer operands."
        },
        {
          "area": "Truth",
          "syntax": "false / nil",
          "meaning": "Only these two are false-valued."
        },
        {
          "area": "Flow",
          "syntax": "if / elsif / else / end",
          "meaning": "Choose a branch."
        },
        {
          "area": "Blocks",
          "syntax": "each { |value| ... }",
          "meaning": "Visit each element; next skips an iteration."
        },
        {
          "area": "Methods",
          "syntax": "def / return",
          "meaning": "Last expression is also an implicit return."
        },
        {
          "area": "Arrays",
          "syntax": "[] / fetch / select",
          "meaning": "Ordered values; fetch can report missing indices."
        },
        {
          "area": "Hashes",
          "syntax": "{} / fetch / keys.sort",
          "meaning": "Mappings with explicit lookup and report order."
        },
        {
          "area": "Mutation",
          "syntax": "dup / map(&:dup)",
          "meaning": "Shallow copy only; nested objects can remain shared."
        },
        {
          "area": "Strings",
          "syntax": "length / bytesize",
          "meaning": "Characters versus bytes, not grapheme count."
        },
        {
          "area": "Patterns",
          "syntax": "\\A / \\z / Regexp.escape",
          "meaning": "Whole-string boundaries and escaped literal data."
        },
        {
          "area": "Parsing",
          "syntax": "Integer(text, 10)",
          "meaning": "Explicit conversion; validate the intended policy."
        },
        {
          "area": "Errors",
          "syntax": "raise / rescue ArgumentError",
          "meaning": "Signal and recover from a specific expected error."
        },
        {
          "area": "Files",
          "syntax": "File.open(path, mode) { |f| ... }",
          "meaning": "Fixed toy path, explicit encoding, block closes handle."
        },
        {
          "area": "Temporary",
          "syntax": "Dir.mktmpdir(prefix, \".\") { ... }",
          "meaning": "Own and clean one newly created directory."
        },
        {
          "area": "Modules",
          "syntax": "require_relative / module",
          "meaning": "Load trusted companion code and namespace methods."
        },
        {
          "area": "JSON",
          "syntax": "JSON.generate / JSON.parse",
          "meaning": "Serialization and parsing are separate from contract checks."
        }
      ],
      "templates": [
        {
          "id": "build",
          "name": "Build a bounded example",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Provide complete source and companion files, expected stdout and a small input contract. Do not claim tests ran without evidence."
        },
        {
          "id": "debug",
          "name": "Debug a reproducible failure",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Separate syntax diagnostics, loading errors and runtime exceptions; preserve a minimal reproduction. Do not claim tests ran without evidence."
        },
        {
          "id": "test",
          "name": "Design boundary tests",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Cover zero, empty, invalid and upper-bound cases; distinguish proposed checks from executed checks. Do not claim tests ran without evidence."
        },
        {
          "id": "refactor",
          "name": "Refactor observable behavior",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Preserve outputs, exceptions, aliasing and cleanup; explain the regression evidence. Do not claim tests ran without evidence."
        },
        {
          "id": "document",
          "name": "Document the actual contract",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. State types or scalar representations, encoding, errors, ownership, runtime limits and real evidence. Do not claim tests ran without evidence."
        },
        {
          "id": "explain",
          "name": "Explain with practice",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Use an original small example, predicted output, exercise and separate solution. Do not claim tests ran without evidence."
        }
      ],
      "examples": [
        {
          "id": "rb-values",
          "title": "Ruby 01 - Values and interpolation",
          "filename": "Ruby 01 Values.rb",
          "code": "name = \"Ada\"\nminutes = 25\nputs \"#{name}: #{minutes} minutes\"\nputs \"Integer division: #{minutes / 2}\"\nputs \"Float division: #{minutes / 2.0}\"\nputs [minutes.class, name.class, nil.class].join(\", \")\n",
          "expected_output": "Ada: 25 minutes\nInteger division: 12\nFloat division: 12.5\nInteger, String, NilClass",
          "expected_stdout": "Ada: 25 minutes\nInteger division: 12\nFloat division: 12.5\nInteger, String, NilClass\n",
          "explanation": "Values are objects. Integer division and floating-point division differ; interpolation formats values without changing them. nil represents absence.",
          "exercise": null,
          "files": [],
          "checks": [],
          "negative": [
            {
              "code": "def unfinished(\n",
              "diagnostic": "syntax error"
            }
          ],
          "runner": "ruby",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Ruby 2.6.10p210",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Ruby validation.json; syntax, exact stdout, isolated execution, boundary checks and toy cleanup"
          }
        },
        {
          "id": "rb-control",
          "title": "Ruby 02 - Blocks and truth values",
          "filename": "Ruby 02 Control.rb",
          "code": "total = 0\n[1, 2, 3, 4].each do |value|\n  next if value.odd?\n  total += value\nend\nputs \"Even total: #{total}\"\nzero = 0\nempty = ''\nabsent = nil\nputs \"Zero is #{zero ? 'true-valued' : 'false-valued'}\"\nputs \"Empty text is #{empty ? 'true-valued' : 'false-valued'}\"\nputs \"Nil is #{absent ? 'true-valued' : 'false-valued'}\"\n",
          "expected_output": "Even total: 6\nZero is true-valued\nEmpty text is true-valued\nNil is false-valued",
          "expected_stdout": "Even total: 6\nZero is true-valued\nEmpty text is true-valued\nNil is false-valued\n",
          "explanation": "Only false and nil are false-valued in Ruby. Zero and empty strings are true-valued. each yields values to a block; next skips the rest of that iteration.",
          "exercise": null,
          "files": [],
          "checks": [],
          "negative": [
            {
              "code": "self = 1\n",
              "diagnostic": "self"
            }
          ],
          "runner": "ruby",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Ruby 2.6.10p210",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Ruby validation.json; syntax, exact stdout, isolated execution, boundary checks and toy cleanup"
          }
        },
        {
          "id": "rb-functions",
          "title": "Ruby 03 - A method contract",
          "filename": "Ruby 03 Methods.rb",
          "code": "def double_minutes(value)\n  raise ArgumentError, 'whole minutes 0..120 required' unless\n    value.is_a?(Integer) && value.between?(0, 120)\n  value * 2\nend\nputs \"Double: #{double_minutes(20)}\"\nbegin\n  double_minutes('20')\nrescue ArgumentError\n  puts 'Text rejected'\nend\n",
          "expected_output": "Double: 40\nText rejected",
          "expected_stdout": "Double: 40\nText rejected\n",
          "explanation": "The final expression is returned. Validate before calculating; rescue only the expected ArgumentError. This contract accepts Integer values, not numeric text or floating point.",
          "exercise": null,
          "files": [],
          "checks": [
            [
              "double_minutes(0) == 0",
              true
            ],
            [
              "double_minutes(120) == 240",
              true
            ],
            [
              "raises?(ArgumentError) { double_minutes(-1) }",
              true
            ],
            [
              "raises?(ArgumentError) { double_minutes(true) }",
              true
            ]
          ],
          "negative": [
            {
              "code": "def value\n  AtlasConstant = 1\nend\n",
              "diagnostic": "dynamic constant assignment"
            }
          ],
          "runner": "ruby",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Ruby 2.6.10p210",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Ruby validation.json; syntax, exact stdout, isolated execution, boundary checks and toy cleanup"
          }
        },
        {
          "id": "rb-collections",
          "title": "Ruby 04 - Arrays and hash totals",
          "filename": "Ruby 04 Collections.rb",
          "code": "sessions = [['read', 20], ['code', 30], ['read', 10]]\ntotals = Hash.new(0)\nsessions.each { |topic, minutes| totals[topic] += minutes }\ntotals.keys.sort.each { |topic| puts \"#{topic}: #{totals.fetch(topic)}\" }\nputs \"Long sessions: #{sessions.select { |_, n| n >= 20 }.length}\"\n",
          "expected_output": "code: 30\nread: 30\nLong sessions: 2",
          "expected_stdout": "code: 30\nread: 30\nLong sessions: 2\n",
          "explanation": "An array is ordered; a hash maps keys to values. Sorting keys makes the report order deliberate. Hash.new(0) uses an immutable Integer default; do not generalize this pattern to one shared mutable default array.",
          "exercise": null,
          "files": [],
          "checks": [],
          "negative": [
            {
              "code": "def value(AtlasConstant)\nend\n",
              "diagnostic": "formal argument cannot be a constant"
            }
          ],
          "runner": "ruby",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Ruby 2.6.10p210",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Ruby validation.json; syntax, exact stdout, isolated execution, boundary checks and toy cleanup"
          }
        },
        {
          "id": "rb-strings",
          "title": "Ruby 05 - Text, bytes and literal patterns",
          "filename": "Ruby 05 Strings.rb",
          "code": "label = \"café\"\nputs \"Characters: #{label.length}; UTF-8 bytes: #{label.bytesize}\"\nliteral = 'a+b'\npattern = /\\A#{Regexp.escape(literal)}\\z/\nputs \"Literal match: #{pattern.match?('a+b')}\"\nputs \"Different text: #{pattern.match?('aaab')}\"\nputs \"Digits only: #{/\\A[0-9]+\\z/.match?(\"20\\n\")}\"\n",
          "expected_output": "Characters: 4; UTF-8 bytes: 5\nLiteral match: true\nDifferent text: false\nDigits only: false",
          "expected_stdout": "Characters: 4; UTF-8 bytes: 5\nLiteral match: true\nDifferent text: false\nDigits only: false\n",
          "explanation": "Source is UTF-8. String length counts characters, not grapheme clusters; bytesize counts encoded bytes. Escape a literal before placing it into a regular expression. The whole-string anchors are \\A and \\z; line anchors have different semantics.",
          "exercise": null,
          "files": [],
          "checks": [],
          "negative": [],
          "runner": "ruby",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Ruby 2.6.10p210",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Ruby validation.json; syntax, exact stdout, isolated execution, boundary checks and toy cleanup"
          }
        },
        {
          "id": "rb-files",
          "title": "Ruby 06 - A disposable UTF-8 file",
          "filename": "Ruby 06 Files.rb",
          "code": "require 'tmpdir'\nfolder = nil\nDir.mktmpdir('atlas-ruby-', '.') do |dir|\n  folder = dir\n  path = File.join(dir, 'note.txt')\n  File.open(path, 'w:UTF-8') { |file| file.write(\"café\\n\") }\n  text = File.open(path, 'r:UTF-8') { |file| file.read }\n  puts \"Read: #{text.chomp}\"\nend\nputs \"Toy directory removed: #{!File.exist?(folder)}\"\n",
          "expected_output": "Read: café\nToy directory removed: true",
          "expected_stdout": "Read: café\nToy directory removed: true\n",
          "explanation": "The block owns a newly created toy directory under the current practice folder. File.open blocks close their handles; mktmpdir removes its own directory when its block finishes. File.open is intentional: Kernel.open can interpret pipe-prefixed strings as process commands. No external path is accepted.",
          "exercise": null,
          "files": [],
          "checks": [],
          "negative": [],
          "runner": "ruby",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Ruby 2.6.10p210",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Ruby validation.json; syntax, exact stdout, isolated execution, boundary checks and toy cleanup"
          }
        },
        {
          "id": "rb-errors",
          "title": "Ruby 07 - Parse a narrow input contract",
          "filename": "Ruby 07 Errors.rb",
          "code": "def minutes(text)\n  return nil unless text.is_a?(String) && text.valid_encoding? &&\n    text.encoding.ascii_compatible? &&\n    /\\A(?:0|[1-9][0-9]{0,2})\\z/.match?(text)\n  number = Integer(text, 10)\n  number <= 120 ? number : nil\nend\n['20', '0', '121', ' 20', '+20', '20x'].each do |text|\n  value = minutes(text)\n  puts(value.nil? ? 'invalid' : value)\nend\n",
          "expected_output": "20\n0\ninvalid\ninvalid\ninvalid\ninvalid",
          "expected_stdout": "20\n0\ninvalid\ninvalid\ninvalid\ninvalid\n",
          "explanation": "This policy accepts decimal text 0..120 without signs, surrounding whitespace or leading zeroes. The regex bounds length before conversion. Checking nil preserves zero as a valid result. Integer alone accepts a broader syntax; to_i would silently parse some partial input. Malformed or non-ASCII-compatible string encoding is rejected before regular-expression matching.",
          "exercise": null,
          "files": [],
          "checks": [
            [
              "minutes(\"120\") == 120",
              true
            ],
            [
              "minutes(\"00\").nil?",
              true
            ],
            [
              "minutes(\"20\\n\").nil?",
              true
            ],
            [
              "minutes(nil).nil?",
              true
            ],
            [
              "minutes(\"9\" * 1000).nil?",
              true
            ],
            [
              "minutes(\"\\xFF\".force_encoding(\"UTF-8\")).nil?",
              true
            ],
            [
              "minutes(\"20\".encode(\"UTF-16LE\")).nil?",
              true
            ]
          ],
          "negative": [],
          "runner": "ruby",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Ruby 2.6.10p210",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Ruby validation.json; syntax, exact stdout, isolated execution, boundary checks and toy cleanup"
          }
        },
        {
          "id": "rb-modules",
          "title": "Ruby 08 - A local module",
          "filename": "Ruby 08 Modules.rb",
          "code": "require_relative 'Atlas minutes'\nputs \"Total: #{AtlasMinutes.total([20, 30])}\"\n",
          "expected_output": "Total: 50",
          "expected_stdout": "Total: 50\n",
          "explanation": "Save the companion beside the entry file. require_relative resolves relative to this source file. A module provides a namespace; self.total defines a callable module method. The module has no demonstration output when loaded.",
          "exercise": null,
          "files": [
            {
              "name": "Atlas minutes.rb",
              "code": "module AtlasMinutes\n  def self.total(values)\n    raise ArgumentError, 'at most ten whole minutes 0..120' unless\n      values.is_a?(Array) && values.length <= 10 &&\n      values.all? { |n| n.is_a?(Integer) && n.between?(0, 120) }\n    values.inject(0, :+)\n  end\nend\n"
            }
          ],
          "checks": [
            [
              "AtlasMinutes.total([]) == 0",
              true
            ],
            [
              "raises?(ArgumentError) { AtlasMinutes.total([121]) }",
              true
            ]
          ],
          "negative": [],
          "runner": "ruby",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Ruby 2.6.10p210",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Ruby validation.json; syntax, exact stdout, isolated execution, boundary checks and toy cleanup"
          }
        },
        {
          "id": "rb-json",
          "title": "Ruby 09 - JSON is data",
          "filename": "Ruby 09 JSON.rb",
          "code": "require 'json'\nencoded = JSON.generate({'topic' => 'read', 'minutes' => 20})\ndata = JSON.parse(encoded, create_additions: false, max_nesting: 10)\nvalid = data.is_a?(Hash) && data.keys.sort == ['minutes', 'topic'] &&\n  data['topic'].is_a?(String) && data['minutes'].is_a?(Integer) &&\n  data['minutes'].between?(0, 120)\nraise ArgumentError, 'wrong contract' unless valid\nputs \"#{data.fetch('topic')}: #{data.fetch('minutes')}\"\nbegin\n  JSON.parse('{', create_additions: false)\nrescue JSON::ParserError\n  puts 'Malformed JSON rejected'\nend\n",
          "expected_output": "read: 20\nMalformed JSON rejected",
          "expected_stdout": "read: 20\nMalformed JSON rejected\n",
          "explanation": "Generate escaping with the JSON library, then validate the decoded shape separately. This tiny authored input uses create_additions: false; never substitute JSON.load or Marshal.load for untrusted data. Default duplicate-name handling is not a duplicate-rejection policy. No general hostile-input or schema claim is made.",
          "exercise": null,
          "files": [],
          "checks": [],
          "negative": [],
          "runner": "ruby",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Ruby 2.6.10p210",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Ruby validation.json; syntax, exact stdout, isolated execution, boundary checks and toy cleanup"
          }
        },
        {
          "id": "rb-exercise-a",
          "title": "Ruby exercise A - An optional average",
          "filename": "Ruby exercise A Average.rb",
          "code": "def average(values)\n  raise ArgumentError, 'at most ten whole minutes 0..120' unless\n    values.is_a?(Array) && values.length <= 10 &&\n    values.all? { |n| n.is_a?(Integer) && n.between?(0, 120) }\n  return nil if values.empty?\n  values.inject(0, :+).fdiv(values.length)\nend\nputs \"Average: #{average([10, 20])}\"\nputs \"Empty: #{average([]).nil?}\"\n",
          "expected_output": "Average: 15.0\nEmpty: true",
          "expected_stdout": "Average: 15.0\nEmpty: true\n",
          "explanation": "Validate the collection, return nil for absence, and divide as floating point only for a nonempty collection. This is a bounded teaching contract, not a general statistics library.",
          "exercise": "Implement an average of at most ten Integer minutes in 0..120. Return nil for empty input and reject invalid elements.",
          "files": [],
          "checks": [
            [
              "average([0, 120]) == 60.0",
              true
            ],
            [
              "raises?(ArgumentError) { average([-1]) }",
              true
            ],
            [
              "raises?(ArgumentError) { average([1] * 11) }",
              true
            ],
            [
              "raises?(ArgumentError) { average([false]) }",
              true
            ]
          ],
          "negative": [],
          "runner": "ruby",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Ruby 2.6.10p210",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Ruby validation.json; syntax, exact stdout, isolated execution, boundary checks and toy cleanup"
          }
        },
        {
          "id": "rb-exercise-b",
          "title": "Ruby exercise B - Shallow copies",
          "filename": "Ruby exercise B Copies.rb",
          "code": "original = [['read', 20]]\nshallow = original.dup\nshallow[0][1] = 30\nputs \"After shallow edit: #{original[0][1]}\"\nseparate_rows = original.map(&:dup)\nseparate_rows[0][1] = 40\nputs \"After row edit: #{original[0][1]}\"\nputs \"Separate row: #{separate_rows[0][1]}\"\n",
          "expected_output": "After shallow edit: 30\nAfter row edit: 30\nSeparate row: 40",
          "expected_stdout": "After shallow edit: 30\nAfter row edit: 30\nSeparate row: 40\n",
          "explanation": "dup copies one container level. map(&:dup) copies each row for this specific two-level structure, but the contained string is still shared. It is not a recursive deep copy.",
          "exercise": "Predict which mutation affects the original. Then copy each row and replace a numeric cell without changing the original.",
          "files": [],
          "checks": [],
          "negative": [],
          "runner": "ruby",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Ruby 2.6.10p210",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Ruby validation.json; syntax, exact stdout, isolated execution, boundary checks and toy cleanup"
          }
        },
        {
          "id": "rb-exercise-c",
          "title": "Ruby exercise C - Observable assertions",
          "filename": "Ruby exercise C Tests.rb",
          "code": "def double_minutes(value)\n  raise ArgumentError unless value.is_a?(Integer) && value.between?(0, 120)\n  value * 2\nend\nchecks = 0\n[[0, 0], [20, 40], [120, 240]].each do |input, expected|\n  raise 'wrong result' unless double_minutes(input) == expected\n  checks += 1\nend\nrejected = false\nbegin\n  double_minutes(-1)\nrescue ArgumentError\n  rejected = true\nend\nraise 'expected rejection' unless rejected\nchecks += 1\nputs \"Assertions: #{checks} passed\"\n",
          "expected_output": "Assertions: 4 passed",
          "expected_stdout": "Assertions: 4 passed\n",
          "explanation": "This small authored test uses raise to fail visibly. It executes three valid cases and one expected error check. A syntax check alone would not run these assertions.",
          "exercise": "Write checks for zero, normal input, the upper bound and a rejected negative value. Make an unexpected result exit unsuccessfully.",
          "files": [],
          "checks": [],
          "negative": [],
          "runner": "ruby",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Ruby 2.6.10p210",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Ruby validation.json; syntax, exact stdout, isolated execution, boundary checks and toy cleanup"
          }
        }
      ],
      "support_files": [
        {
          "name": "Run instructions.txt",
          "code": "Ruby 2.6.10p210 is installed and end-of-life upstream. Run /usr/bin/ruby followed by the quoted entry filename in a new practice folder. Save companions beside the entry file. Core libraries only; no package manager is used. The browser exports text and never executes it. Syntax checks are distinct from runtime tests and are not arbitrary-code sandboxes.\n"
        }
      ],
      "rejection_label": "interpreter syntax checker",
      "test_summary": {
        "result": "passed",
        "tested_on": "2026-10-25",
        "runtime": "Ruby 2.6.10p210",
        "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
        "assertion_count": 97,
        "accepted_programs": 12,
        "syntax_acceptances": 12,
        "runtime_execution_count": 12,
        "boundary_execution_count": 4,
        "boundary_assertions": 17,
        "expected_syntax_rejections": 4,
        "embedded_cases": 4,
        "limits": [
          "Only installed interpreter and macOS arm64 tested.",
          "Fixed authored examples, CPU/file/time bounds and isolated toy folders; not a sandbox for arbitrary source.",
          "Syntax checks can load code or execute compile-time hooks; negative fixtures have no custom compile-time blocks; the Perl strict fixture loads only the trusted core strict pragma.",
          "No network, dependency installation, external input, production data or hostile parser workload."
        ],
        "example_count": 12
      }
    },
    {
      "id": "perl-foundations",
      "title": "Perl Foundations",
      "version": "0.10.0",
      "status": "tested",
      "entry_ids": [
        "perl"
      ],
      "languages": [
        "Perl"
      ],
      "default_goal": "Summarize small authored study records with an explicit input contract.",
      "default_runtime": "Perl 5.34.1; macOS 27.0.1 arm64",
      "default_constraints": "Installed core libraries only; bounded authored input; no network, secrets or installations; file work only in a new temporary toy directory.",
      "audience": "Learners comfortable saving a source file and running an installed interpreter.",
      "estimated_practice": "4 to 6 hours.",
      "scope": "Core values, control flow, functions, collections, text, regular expressions, temporary files, expected errors, JSON, local modules and tests. No external data, packages or deployment.",
      "runtime_note": "Perl 5.34.1 is installed; no other Perl version or platform was tested. Run /usr/bin/perl followed by the quoted entry filename in a new practice folder. Save companions beside the entry file. Core libraries only; no package manager is used. The browser exports text and never executes it. Syntax checks are distinct from runtime tests and are not arbitrary-code sandboxes.",
      "lessons": [
        {
          "title": "Pin the installed interpreter",
          "text": "This pack uses Perl 5.34.1 on macOS arm64 and already installed core modules. It uses Perl 5 lexical variables and ordinary subroutines, not Raku or later experimental features. Run /usr/bin/perl followed by the quoted .pl filename. No CPAN or package installation is needed."
        },
        {
          "title": "Context affects values",
          "text": "Scalar and list context are central to Perl. An array in scalar context yields its count. Use eq for textual equality and == for numeric equality. Scalars can be interpreted as text or numbers, so this pack validates a decimal representation rather than claiming a strict historical type distinction."
        },
        {
          "title": "Truth and absence",
          "text": "The string \"0\" is false in ordinary boolean context. Use defined when zero is a valid result. Defined-or // provides a fallback only for undef, unlike ||. Add strict and warnings to expose common mistakes; neither is a sandbox or complete input validator."
        },
        {
          "title": "Functions and bounded control",
          "text": "Subroutines receive arguments in @_. Copy the values into lexical variables to avoid accidental alias writes. A for loop and next make filtering explicit; ensure while conditions progress. Range and count limits keep every exercise small and deterministic."
        },
        {
          "title": "References and data structures",
          "text": "Array and hash references represent nested collections. An outer copy still shares nested references. The row-copy exercise duplicates exactly one known depth. Sort hash keys for deterministic reports; do not rely on hash iteration order."
        },
        {
          "title": "Text, regex and encoding",
          "text": "use utf8 describes the source text, not an I/O handle. File encoding is explicit with :encoding(UTF-8). Quote literal regex content with \\Q...\\E and anchor whole strings with \\A/\\z. No dynamic regex code, shell interpolation or string eval is used."
        },
        {
          "title": "Files, modules and errors",
          "text": "Use three-argument open, lexical handles, checked I/O results and newly created File::Temp directories. Cleanup is verified after normal process exit, not guaranteed after a crash. A module is executable trusted code; use lib adds only the companion directory. eval BLOCK catches expected exceptions; preserve $@ before another operation can change it."
        },
        {
          "title": "Testing is runtime evidence",
          "text": "perl -c checks syntax but may execute BEGIN/CHECK blocks and use statements. It is not a safe way to inspect arbitrary code. Our invalid fixtures contain no custom compile-time blocks; the strict fixture loads only the trusted core strict pragma. Test::More executes four named runtime cases; JSON::PP parsing and custom shape checks do not establish JSON Schema validity."
        }
      ],
      "reference": [
        {
          "area": "Scope",
          "syntax": "use strict; use warnings; my",
          "meaning": "Lexical declarations and diagnostics."
        },
        {
          "area": "Values",
          "syntax": "$scalar / @array / %hash",
          "meaning": "One value, ordered list, key/value mapping."
        },
        {
          "area": "Context",
          "syntax": "scalar(@array)",
          "meaning": "Array length rather than its elements."
        },
        {
          "area": "Comparison",
          "syntax": "eq / ==",
          "meaning": "Text equality versus numeric equality."
        },
        {
          "area": "Truth",
          "syntax": "defined($value)",
          "meaning": "Preserve zero when testing for presence."
        },
        {
          "area": "Flow",
          "syntax": "for / while / next",
          "meaning": "Bounded iteration and skipping."
        },
        {
          "area": "Subroutines",
          "syntax": "sub / my ($value) = @_",
          "meaning": "Copy arguments into local variables."
        },
        {
          "area": "References",
          "syntax": "[] / {} / -> / @$ref",
          "meaning": "Construct and access nested structures."
        },
        {
          "area": "Defaults",
          "syntax": "//",
          "meaning": "Use fallback only when left side is undefined."
        },
        {
          "area": "Patterns",
          "syntax": "\\A / \\z / \\Q...\\E",
          "meaning": "Whole-string boundaries and literal pattern quoting."
        },
        {
          "area": "Encoding",
          "syntax": "use utf8 / :encoding(UTF-8)",
          "meaning": "Source encoding and file encoding are distinct."
        },
        {
          "area": "Files",
          "syntax": "open my $fh, mode, path",
          "meaning": "Three-argument open separates mode and toy path."
        },
        {
          "area": "Temporary",
          "syntax": "File::Temp::tempdir(..., CLEANUP => 1)",
          "meaning": "New directory; cleanup at normal exit."
        },
        {
          "area": "Errors",
          "syntax": "eval { ...; 1 } / $@",
          "meaning": "Block exception handling; save error immediately."
        },
        {
          "area": "Modules",
          "syntax": "package / use lib / use Module",
          "meaning": "Trusted code loading and namespacing."
        },
        {
          "area": "Tests",
          "syntax": "Test::More is / ok",
          "meaning": "Executed assertions with named TAP output."
        }
      ],
      "templates": [
        {
          "id": "build",
          "name": "Build a bounded example",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Provide complete source and companion files, expected stdout and a small input contract. Do not claim tests ran without evidence."
        },
        {
          "id": "debug",
          "name": "Debug a reproducible failure",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Separate syntax diagnostics, loading errors and runtime exceptions; preserve a minimal reproduction. Do not claim tests ran without evidence."
        },
        {
          "id": "test",
          "name": "Design boundary tests",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Cover zero, empty, invalid and upper-bound cases; distinguish proposed checks from executed checks. Do not claim tests ran without evidence."
        },
        {
          "id": "refactor",
          "name": "Refactor observable behavior",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Preserve outputs, exceptions, aliasing and cleanup; explain the regression evidence. Do not claim tests ran without evidence."
        },
        {
          "id": "document",
          "name": "Document the actual contract",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. State types or scalar representations, encoding, errors, ownership, runtime limits and real evidence. Do not claim tests ran without evidence."
        },
        {
          "id": "explain",
          "name": "Explain with practice",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Use an original small example, predicted output, exercise and separate solution. Do not claim tests ran without evidence."
        }
      ],
      "examples": [
        {
          "id": "pl-values",
          "title": "Perl 01 - Scalars and context",
          "filename": "Perl 01 Values.pl",
          "code": "use strict;\nuse warnings;\nmy $name = 'Ada';\nmy @minutes = (10, 20, 30);\nmy $count = @minutes;\nprint \"$name: $count sessions\\n\";\nprint 'List: ', join(', ', @minutes), \"\\n\";\nprint 'Zero text is ', ('0' ? 'true' : 'false'), \"\\n\";\nprint 'Empty text is ', ('' ? 'true' : 'false'), \"\\n\";\n",
          "expected_output": "Ada: 3 sessions\nList: 10, 20, 30\nZero text is false\nEmpty text is false",
          "expected_stdout": "Ada: 3 sessions\nList: 10, 20, 30\nZero text is false\nEmpty text is false\n",
          "explanation": "A scalar holds one value; an array holds a list. An array in scalar context yields its length. In ordinary boolean context undef, numeric zero, the empty string and the string \"0\" are false. This differs from Ruby. strict and warnings help expose mistakes; they are not security controls.",
          "exercise": null,
          "files": [],
          "checks": [],
          "negative": [
            {
              "code": "use strict; print $missing;\n",
              "diagnostic": "Global symbol"
            }
          ],
          "runner": "perl",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Perl 5.34.1",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Perl validation.json; syntax, exact stdout, isolated execution, boundary checks and toy cleanup"
          }
        },
        {
          "id": "pl-control",
          "title": "Perl 02 - Bounded control flow",
          "filename": "Perl 02 Control.pl",
          "code": "use strict;\nuse warnings;\nmy $total = 0;\nfor my $value (1 .. 4) {\n    next if $value % 2;\n    $total += $value;\n}\nprint \"Even total: $total\\n\";\nmy $remaining = 3;\nwhile ($remaining > 0) { $remaining--; }\nprint \"Remaining: $remaining\\n\";\n",
          "expected_output": "Even total: 6\nRemaining: 0",
          "expected_stdout": "Even total: 6\nRemaining: 0\n",
          "explanation": "Use braces around blocks, lexically scoped my variables, and a loop condition that progresses toward stopping. next skips the current iteration. These loops have fixed small bounds.",
          "exercise": null,
          "files": [],
          "checks": [],
          "negative": [
            {
              "code": "my $x = ;\n",
              "diagnostic": "syntax error"
            }
          ],
          "runner": "perl",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Perl 5.34.1",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Perl validation.json; syntax, exact stdout, isolated execution, boundary checks and toy cleanup"
          }
        },
        {
          "id": "pl-functions",
          "title": "Perl 03 - Subroutines and validation",
          "filename": "Perl 03 Functions.pl",
          "code": "use strict;\nuse warnings;\nsub double_minutes {\n    my ($value) = @_;\n    die \"invalid minutes\\n\" unless defined($value) && !ref($value) &&\n        $value =~ /\\A(?:0|[1-9][0-9]{0,2})\\z/ && $value <= 120;\n    return $value * 2;\n}\nprint 'Double: ', double_minutes(20), \"\\n\";\nmy $ok = eval { double_minutes(-1); 1 };\nmy $error = $@;\nprint \"Negative rejected\\n\" if !$ok && $error eq \"invalid minutes\\n\";\n",
          "expected_output": "Double: 40\nNegative rejected",
          "expected_stdout": "Double: 40\nNegative rejected\n",
          "explanation": "Copy arguments from @_ into lexical variables. This contract validates a scalar decimal representation and accepts numeric 20 or text \"20\"; it does not distinguish their historical origin. eval BLOCK catches an exception; the final 1 marks success independently of a false result. It is not string eval.",
          "exercise": null,
          "files": [],
          "checks": [
            [
              "double_minutes(0) == 0",
              true
            ],
            [
              "double_minutes(120) == 240",
              true
            ],
            [
              "rejects(sub { double_minutes(121) })",
              true
            ],
            [
              "rejects(sub { double_minutes([]) })",
              true
            ]
          ],
          "negative": [
            {
              "code": "my (3) = (1);\n",
              "diagnostic": "declare constant item"
            }
          ],
          "runner": "perl",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Perl 5.34.1",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Perl validation.json; syntax, exact stdout, isolated execution, boundary checks and toy cleanup"
          }
        },
        {
          "id": "pl-collections",
          "title": "Perl 04 - Hashes and references",
          "filename": "Perl 04 Collections.pl",
          "code": "use strict;\nuse warnings;\nmy @sessions = (['read', 20], ['code', 30], ['read', 10]);\nmy %totals;\nfor my $row (@sessions) {\n    my ($topic, $minutes) = @$row;\n    $totals{$topic} = ($totals{$topic} // 0) + $minutes;\n}\nfor my $topic (sort keys %totals) { print \"$topic: $totals{$topic}\\n\"; }\nprint 'Rows: ', scalar(@sessions), \"\\n\";\n",
          "expected_output": "code: 30\nread: 30\nRows: 3",
          "expected_stdout": "code: 30\nread: 30\nRows: 3\n",
          "explanation": "References permit nested structures. Dereference each array row explicitly. A hash does not promise report order, so sort keys. Defined-or // falls back for undef while preserving a defined zero.",
          "exercise": null,
          "files": [],
          "checks": [],
          "negative": [
            {
              "code": "my $x = [1, 2;\n",
              "diagnostic": "syntax error"
            }
          ],
          "runner": "perl",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Perl 5.34.1",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Perl validation.json; syntax, exact stdout, isolated execution, boundary checks and toy cleanup"
          }
        },
        {
          "id": "pl-strings",
          "title": "Perl 05 - Literal regex and Unicode",
          "filename": "Perl 05 Strings.pl",
          "code": "use strict;\nuse warnings;\nuse utf8;\nmy $label = \"café\";\nprint 'Characters: ', length($label), \"\\n\";\nmy $literal = 'a+b';\nprint 'Literal match: ', ('a+b' =~ /\\A\\Q$literal\\E\\z/ ? 'yes' : 'no'), \"\\n\";\nprint 'Different text: ', ('aaab' =~ /\\A\\Q$literal\\E\\z/ ? 'yes' : 'no'), \"\\n\";\nprint 'Trailing newline: ', (\"20\\n\" =~ /\\A[0-9]+\\z/ ? 'accepted' : 'rejected'), \"\\n\";\n",
          "expected_output": "Characters: 4\nLiteral match: yes\nDifferent text: no\nTrailing newline: rejected",
          "expected_stdout": "Characters: 4\nLiteral match: yes\nDifferent text: no\nTrailing newline: rejected\n",
          "explanation": "use utf8 declares source encoding; it does not configure file handles. This decoded string length counts characters, not grapheme clusters. \\Q...\\E quotes literal pattern content; \\A and \\z anchor the entire string. No untrusted regex or executable regex code is accepted.",
          "exercise": null,
          "files": [],
          "checks": [],
          "negative": [],
          "runner": "perl",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Perl 5.34.1",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Perl validation.json; syntax, exact stdout, isolated execution, boundary checks and toy cleanup"
          }
        },
        {
          "id": "pl-files",
          "title": "Perl 06 - A disposable UTF-8 file",
          "filename": "Perl 06 Files.pl",
          "code": "use strict;\nuse warnings;\nuse utf8;\nuse File::Temp qw(tempdir);\nuse File::Spec;\nmy $dir = tempdir('atlas-perl-XXXXXX', DIR => '.', CLEANUP => 1);\nmy $path = File::Spec->catfile($dir, 'note.txt');\nopen my $out, '>:encoding(UTF-8)', $path or die \"open write: $!\";\nprint {$out} \"café\\n\" or die \"write: $!\";\nclose $out or die \"close write: $!\";\nopen my $in, '<:encoding(UTF-8)', $path or die \"open read: $!\";\nmy $text = do { local $/; <$in> };\nclose $in or die \"close read: $!\";\nprint 'Characters including newline: ', length($text), \"\\n\";\nprint \"Cleanup scheduled for normal process exit\\n\";\n",
          "expected_output": "Characters including newline: 5\nCleanup scheduled for normal process exit",
          "expected_stdout": "Characters including newline: 5\nCleanup scheduled for normal process exit\n",
          "explanation": "A new File::Temp directory is created under the practice folder and removed at normal process exit. Three-argument open separates the fixed mode from the filename; lexical handles and checked close expose failures. UTF-8 layers apply at I/O. Cleanup after abrupt termination is not guaranteed; only authored toy paths are used.",
          "exercise": null,
          "files": [],
          "checks": [],
          "negative": [],
          "runner": "perl",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Perl 5.34.1",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Perl validation.json; syntax, exact stdout, isolated execution, boundary checks and toy cleanup"
          }
        },
        {
          "id": "pl-errors",
          "title": "Perl 07 - Defined results and error recovery",
          "filename": "Perl 07 Errors.pl",
          "code": "use strict;\nuse warnings;\nsub minutes {\n    my ($text) = @_;\n    return undef unless defined($text) && !ref($text) &&\n        $text =~ /\\A(?:0|[1-9][0-9]{0,2})\\z/ && $text <= 120;\n    return 0 + $text;\n}\nfor my $text ('20', '0', '121', ' 20', '+20', '20x') {\n    my $value = minutes($text);\n    print defined($value) ? \"$value\\n\" : \"invalid\\n\";\n}\n",
          "expected_output": "20\n0\ninvalid\ninvalid\ninvalid\ninvalid",
          "expected_stdout": "20\n0\ninvalid\ninvalid\ninvalid\ninvalid\n",
          "explanation": "Use defined when zero is a valid result. The explicit policy rejects signs, spaces, leading zeroes, references and values over 120. Numeric conversion alone can warn yet still produce a partial result; validate the full small representation first.",
          "exercise": null,
          "files": [],
          "checks": [
            [
              "minutes(\"120\") == 120",
              true
            ],
            [
              "!defined(minutes(\"00\"))",
              true
            ],
            [
              "!defined(minutes(\"20\\n\"))",
              true
            ],
            [
              "!defined(minutes(undef))",
              true
            ],
            [
              "!defined(minutes(\"9\" x 1000))",
              true
            ]
          ],
          "negative": [],
          "runner": "perl",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Perl 5.34.1",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Perl validation.json; syntax, exact stdout, isolated execution, boundary checks and toy cleanup"
          }
        },
        {
          "id": "pl-modules",
          "title": "Perl 08 - A local module",
          "filename": "Perl 08 Modules.pl",
          "code": "use strict;\nuse warnings;\nuse FindBin qw($Bin);\nuse lib $Bin;\nuse AtlasMinutes;\nprint 'Total: ', AtlasMinutes::total([20, 30]), \"\\n\";\n",
          "expected_output": "Total: 50",
          "expected_stdout": "Total: 50\n",
          "explanation": "Save AtlasMinutes.pm beside the entry file. FindBin locates that directory; use lib adds this trusted practice directory. The package namespaces its routine and ends with a true value. Loading a Perl module executes code, so do not add an untrusted directory to the module path.",
          "exercise": null,
          "files": [
            {
              "name": "AtlasMinutes.pm",
              "code": "package AtlasMinutes;\nuse strict;\nuse warnings;\nsub total {\n    my ($values) = @_;\n    die \"array required\\n\" unless ref($values) eq 'ARRAY' && @$values <= 10;\n    my $total = 0;\n    for my $value (@$values) {\n        die \"invalid minutes\\n\" unless defined($value) && !ref($value) &&\n            $value =~ /\\A(?:0|[1-9][0-9]{0,2})\\z/ && $value <= 120;\n        $total += $value;\n    }\n    return $total;\n}\n1;\n"
            }
          ],
          "checks": [
            [
              "AtlasMinutes::total([]) == 0",
              true
            ],
            [
              "rejects(sub { AtlasMinutes::total([121]) })",
              true
            ]
          ],
          "negative": [],
          "runner": "perl",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Perl 5.34.1",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Perl validation.json; syntax, exact stdout, isolated execution, boundary checks and toy cleanup"
          }
        },
        {
          "id": "pl-json",
          "title": "Perl 09 - JSON and shape checks",
          "filename": "Perl 09 JSON.pl",
          "code": "use strict;\nuse warnings;\nuse JSON::PP;\nmy $json = JSON::PP->new->canonical->max_depth(10);\nmy $encoded = $json->encode({topic => 'read', minutes => 20});\nmy $data = $json->decode($encoded);\ndie \"wrong contract\\n\" unless ref($data) eq 'HASH' &&\n    join(',', sort keys %$data) eq 'minutes,topic' &&\n    !ref($data->{topic}) && defined($data->{topic}) &&\n    !ref($data->{minutes}) && defined($data->{minutes}) &&\n    $data->{minutes} =~ /\\A(?:0|[1-9][0-9]{0,2})\\z/ && $data->{minutes} <= 120;\nprint \"$data->{topic}: $data->{minutes}\\n\";\nmy $ok = eval { $json->decode('{'); 1 };\nprint \"Malformed JSON rejected\\n\" unless $ok;\n",
          "expected_output": "read: 20\nMalformed JSON rejected",
          "expected_stdout": "read: 20\nMalformed JSON rejected\n",
          "explanation": "JSON::PP is already installed. canonical makes object-key output deterministic. The contract checks scalar representations; it does not preserve or certify the JSON distinction between a number and numeric text. Duplicate-name rejection and general schema validation are not implemented. Use tiny authored data, never string eval.",
          "exercise": null,
          "files": [],
          "checks": [],
          "negative": [],
          "runner": "perl",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Perl 5.34.1",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Perl validation.json; syntax, exact stdout, isolated execution, boundary checks and toy cleanup"
          }
        },
        {
          "id": "pl-exercise-a",
          "title": "Perl exercise A - An optional average",
          "filename": "Perl exercise A Average.pl",
          "code": "use strict;\nuse warnings;\nsub average {\n    my ($values) = @_;\n    die \"array required\\n\" unless ref($values) eq 'ARRAY' && @$values <= 10;\n    return undef unless @$values;\n    my $total = 0;\n    for my $n (@$values) {\n        die \"invalid minutes\\n\" unless defined($n) && !ref($n) &&\n            $n =~ /\\A(?:0|[1-9][0-9]{0,2})\\z/ && $n <= 120;\n        $total += $n;\n    }\n    return $total / @$values;\n}\nprintf \"Average: %.1f\\n\", average([10, 20]);\nprint 'Empty: ', (defined(average([])) ? 'value' : 'absent'), \"\\n\";\n",
          "expected_output": "Average: 15.0\nEmpty: absent",
          "expected_stdout": "Average: 15.0\nEmpty: absent\n",
          "explanation": "An array reference keeps the input as one argument. The bounded contract accepts integer decimal representations. Return undef for an empty collection and check defined before using the result.",
          "exercise": "Average at most ten minute values in 0..120. Reject invalid inputs and return undef for an empty array.",
          "files": [],
          "checks": [
            [
              "average([0,120]) == 60",
              true
            ],
            [
              "rejects(sub { average([-1]) })",
              true
            ],
            [
              "rejects(sub { average([(1) x 11]) })",
              true
            ],
            [
              "rejects(sub { average([[]]) })",
              true
            ]
          ],
          "negative": [],
          "runner": "perl",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Perl 5.34.1",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Perl validation.json; syntax, exact stdout, isolated execution, boundary checks and toy cleanup"
          }
        },
        {
          "id": "pl-exercise-b",
          "title": "Perl exercise B - Copy one level deliberately",
          "filename": "Perl exercise B Copies.pl",
          "code": "use strict;\nuse warnings;\nmy $original = [['read', 20]];\nmy $shallow = [@$original];\n$shallow->[0][1] = 30;\nprint \"After shallow edit: $original->[0][1]\\n\";\nmy $rows = [map { [@$_] } @$original];\n$rows->[0][1] = 40;\nprint \"After row edit: $original->[0][1]\\n\";\nprint \"Separate row: $rows->[0][1]\\n\";\n",
          "expected_output": "After shallow edit: 30\nAfter row edit: 30\nSeparate row: 40",
          "expected_stdout": "After shallow edit: 30\nAfter row edit: 30\nSeparate row: 40\n",
          "explanation": "The first copy duplicates the outer array but shares row references. The second duplicates each row for this structure. Deeper references would still be shared; it is not a general recursive clone.",
          "exercise": "Predict aliasing, then duplicate each row so assigning a numeric cell no longer changes the original.",
          "files": [],
          "checks": [],
          "negative": [],
          "runner": "perl",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Perl 5.34.1",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Perl validation.json; syntax, exact stdout, isolated execution, boundary checks and toy cleanup"
          }
        },
        {
          "id": "pl-exercise-c",
          "title": "Perl exercise C - Four real test cases",
          "filename": "Perl exercise C Tests.pl",
          "code": "use strict;\nuse warnings;\nuse Test::More tests => 4;\nsub double_minutes {\n    my ($n) = @_;\n    die \"invalid minutes\\n\" unless defined($n) && !ref($n) &&\n        $n =~ /\\A(?:0|[1-9][0-9]{0,2})\\z/ && $n <= 120;\n    return $n * 2;\n}\nis(double_minutes(0), 0, 'zero');\nis(double_minutes(20), 40, 'normal');\nis(double_minutes(120), 240, 'upper boundary');\nmy $ok = eval { double_minutes(-1); 1 };\nok(!$ok && $@ eq \"invalid minutes\\n\", 'negative rejected');\n",
          "expected_output": "1..4\nok 1 - zero\nok 2 - normal\nok 3 - upper boundary\nok 4 - negative rejected",
          "expected_stdout": "1..4\nok 1 - zero\nok 2 - normal\nok 3 - upper boundary\nok 4 - negative rejected\n",
          "explanation": "Installed core Test::More emits a plan and named TAP results. The four cases execute at runtime; perl -c does not run the test assertions. An unexpected failure produces a nonzero exit status.",
          "exercise": "Write four named tests for zero, ordinary input, the upper bound and a rejected negative value.",
          "files": [],
          "checks": [],
          "negative": [],
          "runner": "perl",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Perl 5.34.1",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Perl validation.json; syntax, exact stdout, isolated execution, boundary checks and toy cleanup"
          }
        }
      ],
      "support_files": [
        {
          "name": "Run instructions.txt",
          "code": "Perl 5.34.1 is installed; no other Perl version or platform was tested. Run /usr/bin/perl followed by the quoted entry filename in a new practice folder. Save companions beside the entry file. Core libraries only; no package manager is used. The browser exports text and never executes it. Syntax checks are distinct from runtime tests and are not arbitrary-code sandboxes.\n"
        }
      ],
      "rejection_label": "interpreter syntax checker",
      "test_summary": {
        "result": "passed",
        "tested_on": "2026-10-25",
        "runtime": "Perl 5.34.1",
        "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
        "assertion_count": 97,
        "accepted_programs": 12,
        "syntax_acceptances": 12,
        "runtime_execution_count": 12,
        "boundary_execution_count": 4,
        "boundary_assertions": 15,
        "expected_syntax_rejections": 4,
        "embedded_cases": 4,
        "limits": [
          "Only installed interpreter and macOS arm64 tested.",
          "Fixed authored examples, CPU/file/time bounds and isolated toy folders; not a sandbox for arbitrary source.",
          "Syntax checks can load code or execute compile-time hooks; negative fixtures have no custom compile-time blocks; the Perl strict fixture loads only the trusted core strict pragma.",
          "No network, dependency installation, external input, production data or hostile parser workload."
        ],
        "example_count": 12
      }
    },
    {
      "id": "swift-foundations",
      "title": "Swift Foundations",
      "version": "0.10.0",
      "status": "tested",
      "entry_ids": [
        "swift"
      ],
      "languages": [
        "Swift"
      ],
      "default_goal": "Build and test a small, deterministic local example.",
      "default_runtime": "Apple Swift 6.4; Swift 6 language mode; macOS 27.0.1 arm64",
      "default_constraints": "Installed tools only; trusted authored source in a new practice folder; no network, secrets, installations or existing user files.",
      "audience": "Learners comfortable saving plain-text files and using a terminal.",
      "estimated_practice": "4 to 6 hours.",
      "scope": "Core types, optionals, functions, collections, Unicode strings, value and reference semantics, errors, local source files and observable tests. No frameworks, concurrency, package manager or unsafe pointers.",
      "runtime_note": "Use /usr/bin/swiftc -swift-version 6 -warnings-as-errors \"Example.swift\" -o \"Practice\", then ./Practice in a new practice folder. Replace Example.swift with the exact exported filename. The companion example instead compiles main.swift and \"Study tools.swift\" together. The harness uses an owned temporary module cache. Apple Swift 6.4 on this Mac is the only tested compiler; Swift 6 mode is not a complete conformance claim. No Foundation, SwiftUI, SwiftPM, downloads or external inputs are required. The browser exports text and does not run Swift.",
      "lessons": [
        {
          "title": "Compile before running",
          "text": "A Swift source file is checked and compiled to an executable. Compile success does not establish correct output. This pack records both, with Swift 6 mode and warnings treated as errors. Deliberately invalid fixtures are never run. Optimization, other targets and the Swift interpreter are not tested."
        },
        {
          "title": "Types, constants and optionals",
          "text": "let fixes a binding; var allows reassignment. Swift does not implicitly convert Int to Double. An Int? can contain a value or nil; use optional binding or a documented fallback instead of forcing it. Int conversion accepts a syntax, not an application policy, so validate bounds separately."
        },
        {
          "title": "Control flow and functions",
          "text": "if requires Bool. switch must cover all possibilities, often with default. Functions have parameter types, argument labels and a return type. A function can return nil for rejected input when that contract is clear. Keep arithmetic within a stated range."
        },
        {
          "title": "Collections and order",
          "text": "Arrays have order; dictionaries and sets do not promise a report order. Sort keys or values before printing. Array access outside its indices traps, so use first or check indices for uncertain positions. The examples contain tiny authored collections, not arbitrary workloads."
        },
        {
          "title": "Strings and Unicode",
          "text": "String.count counts extended grapheme clusters represented as Character values; utf8.count counts encoded bytes. Indexing uses String.Index rather than an integer offset. Canonically equivalent spellings can compare equal. A character is not necessarily one byte or Unicode scalar."
        },
        {
          "title": "Value and reference semantics",
          "text": "Assigning a struct creates a separate value; assigning a class instance copies its reference. let on a class reference does not freeze its mutable properties. Arrays of class references still refer to the same objects. Swift uses automatic reference counting for classes; cycles and weak/unowned design are outside these examples."
        },
        {
          "title": "Recoverable errors",
          "text": "A throwing function declares throws and callers use try. do/catch handles matching errors. A failed precondition or out-of-range array access is a trap, not a recoverable error for catch. These programs validate input and avoid deliberate traps; expected compiler failures are a separate test category."
        },
        {
          "title": "Files, modules and test evidence",
          "text": "The companion is compiled into the same executable, not imported as a separately built module. With multiple files, top-level entry statements are in main.swift. The assertion exercise uses explicit checks with fatalError only on unexpected results; those failure branches are not deliberately executed. No arbitrary submitted code is sandboxed."
        }
      ],
      "reference": [
        {
          "area": "Binding",
          "syntax": "let / var",
          "meaning": "Constant binding or mutable variable."
        },
        {
          "area": "Types",
          "syntax": "Int / Double / Bool",
          "meaning": "Explicit numeric conversion; conditions require Bool."
        },
        {
          "area": "Absence",
          "syntax": "Int? / nil",
          "meaning": "Optional value or absence."
        },
        {
          "area": "Unwrap",
          "syntax": "if let / guard let",
          "meaning": "Safely bind a present optional."
        },
        {
          "area": "Fallback",
          "syntax": "value ?? fallback",
          "meaning": "Supply a value when optional is nil."
        },
        {
          "area": "Flow",
          "syntax": "if / switch / for",
          "meaning": "Choose branches and visit sequences."
        },
        {
          "area": "Functions",
          "syntax": "func f(_ x: Int) -> Int",
          "meaning": "Typed argument and return; underscore omits call label."
        },
        {
          "area": "Ranges",
          "syntax": "0...120 / 0..<3",
          "meaning": "Closed versus half-open ranges."
        },
        {
          "area": "Arrays",
          "syntax": "[Int] / first / indices",
          "meaning": "Ordered collection with checked access."
        },
        {
          "area": "Mappings",
          "syntax": "[String: Int] / keys.sorted()",
          "meaning": "Optional lookup and explicit output order."
        },
        {
          "area": "Strings",
          "syntax": "count / utf8.count",
          "meaning": "Grapheme clusters versus UTF-8 bytes."
        },
        {
          "area": "Values",
          "syntax": "struct",
          "meaning": "Copied value; reference-valued properties can still alias."
        },
        {
          "area": "References",
          "syntax": "final class / ===",
          "meaning": "Identity of class instances."
        },
        {
          "area": "Errors",
          "syntax": "Error / throws / try / catch",
          "meaning": "Model and handle recoverable failures."
        },
        {
          "area": "Transforms",
          "syntax": "filter / map / reduce",
          "meaning": "Create selections, transformations and accumulated values."
        },
        {
          "area": "Build",
          "syntax": "swiftc -swift-version 6",
          "meaning": "Compile in pinned language mode before executing."
        }
      ],
      "examples": [
        {
          "id": "sw-values",
          "title": "Swift 01 - Typed values",
          "filename": "Swift 01 Values.swift",
          "code": "let name = \"Ada\"\nlet minutes: Int = 25\nlet half = Double(minutes) / 2\nprint(\"\\(name): \\(minutes) minutes\")\nprint(\"Integer half: \\(minutes / 2)\")\nprint(\"Decimal half: \\(half)\")\n",
          "expected_output": "Ada: 25 minutes\nInteger half: 12\nDecimal half: 12.5",
          "expected_stdout": "Ada: 25 minutes\nInteger half: 12\nDecimal half: 12.5\n",
          "explanation": "Explicit conversion chooses floating-point division. The small positive input stays within Int range.",
          "exercise": "",
          "files": [],
          "checks": [],
          "negative": [
            {
              "code": "let minutes: Int = \"25\"\n",
              "diagnostic": "cannot convert value of type 'String'"
            }
          ],
          "runner": "swift",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Apple Swift 6.4; Swift 6 language mode; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Swift validation.json; accepted compilation, runtime output and separate boundary checks"
          }
        },
        {
          "id": "sw-optionals",
          "title": "Swift 02 - Optional conversion",
          "filename": "Swift 02 Optionals.swift",
          "code": "func minutes(_ text: String) -> Int? {\n    guard let value = Int(text), (0...120).contains(value) else {\n        return nil\n    }\n    return value\n}\nfor text in [\"25\", \"no\", \"121\"] {\n    if let value = minutes(text) {\n        print(\"\\(text): \\(value)\")\n    } else { print(\"\\(text): rejected\") }\n}\n",
          "expected_output": "25: 25\nno: rejected\n121: rejected",
          "expected_stdout": "25: 25\nno: rejected\n121: rejected\n",
          "explanation": "Conversion and the application range are separate checks. This accepts Swift Int syntax, including a leading plus; it does not claim a digits-only policy.",
          "exercise": "",
          "files": [],
          "checks": [
            "minutes(\"0\") == 0",
            "minutes(\"120\") == 120",
            "minutes(\"-1\") == nil",
            "minutes(\"\") == nil",
            "minutes(\"+2\") == 2"
          ],
          "negative": [
            {
              "code": "let value: Int? = nil\nlet required: Int = value\n",
              "diagnostic": "must be unwrapped"
            }
          ],
          "runner": "swift",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Apple Swift 6.4; Swift 6 language mode; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Swift validation.json; accepted compilation, runtime output and separate boundary checks"
          }
        },
        {
          "id": "sw-flow",
          "title": "Swift 03 - Branches and loops",
          "filename": "Swift 03 Flow.swift",
          "code": "func band(_ value: Int) -> String {\n    switch value {\n    case 0: return \"none\"\n    case 1...30: return \"short\"\n    default: return \"outside short range\"\n    }\n}\nfor value in [0, 20, 45] { print(\"\\(value): \\(band(value))\") }\n",
          "expected_output": "0: none\n20: short\n45: outside short range",
          "expected_stdout": "0: none\n20: short\n45: outside short range\n",
          "explanation": "The default covers every remaining Int, including negative values. This classifier does not validate input.",
          "exercise": "",
          "files": [],
          "checks": [
            "band(-1) == \"outside short range\"",
            "band(1) == \"short\"",
            "band(30) == \"short\"",
            "band(31) == \"outside short range\""
          ],
          "negative": [],
          "runner": "swift",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Apple Swift 6.4; Swift 6 language mode; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Swift validation.json; accepted compilation, runtime output and separate boundary checks"
          }
        },
        {
          "id": "sw-functions",
          "title": "Swift 04 - Function contracts",
          "filename": "Swift 04 Functions.swift",
          "code": "func scaled(minutes: Int, factor: Int = 2) -> Int? {\n    guard (0...120).contains(minutes), (1...3).contains(factor) else {\n        return nil\n    }\n    return minutes * factor\n}\nprint(scaled(minutes: 20) ?? -1)\nprint(scaled(minutes: 20, factor: 3) ?? -1)\nprint(scaled(minutes: -1) == nil)\n",
          "expected_output": "40\n60\ntrue",
          "expected_stdout": "40\n60\ntrue\n",
          "explanation": "Argument labels explain call sites. Bounded operands avoid overflow, and nil denotes rejected input.",
          "exercise": "",
          "files": [],
          "checks": [
            "scaled(minutes:0) == 0",
            "scaled(minutes:120,factor:3) == 360",
            "scaled(minutes:121) == nil",
            "scaled(minutes:1,factor:0) == nil"
          ],
          "negative": [],
          "runner": "swift",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Apple Swift 6.4; Swift 6 language mode; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Swift validation.json; accepted compilation, runtime output and separate boundary checks"
          }
        },
        {
          "id": "sw-collections",
          "title": "Swift 05 - Deterministic collections",
          "filename": "Swift 05 Collections.swift",
          "code": "let sessions = [10, 30, 20]\nlet selected = sessions.filter { $0 >= 20 }\nprint(selected.map { String($0) }.joined(separator: \", \"))\nprint(\"Total: \\(sessions.reduce(0, +))\")\nlet totals = [\"reading\": 20, \"coding\": 40]\nfor key in totals.keys.sorted() {\n    print(\"\\(key): \\(totals[key] ?? 0)\")\n}\nprint(\"Unique: \\(Set(sessions + [10]).count)\")\n",
          "expected_output": "30, 20\nTotal: 60\ncoding: 40\nreading: 20\nUnique: 3",
          "expected_stdout": "30, 20\nTotal: 60\ncoding: 40\nreading: 20\nUnique: 3\n",
          "explanation": "Filtering keeps array order. Dictionary output is explicitly sorted; the lookup fallback is safe here because the keys came from this unchanged dictionary.",
          "exercise": "",
          "files": [],
          "checks": [],
          "negative": [],
          "runner": "swift",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Apple Swift 6.4; Swift 6 language mode; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Swift validation.json; accepted compilation, runtime output and separate boundary checks"
          }
        },
        {
          "id": "sw-text",
          "title": "Swift 06 - Text is not bytes",
          "filename": "Swift 06 Text.swift",
          "code": "let text = \"Cafe\\u{301}\"\nprint(\"Characters: \\(text.count)\")\nprint(\"UTF-8 bytes: \\(text.utf8.count)\")\nprint(\"Equivalent: \\(text == \"Caf\\u{e9}\")\")\nif let first = text.first { print(\"First: \\(first)\") }\n",
          "expected_output": "Characters: 4\nUTF-8 bytes: 6\nEquivalent: true\nFirst: C",
          "expected_stdout": "Characters: 4\nUTF-8 bytes: 6\nEquivalent: true\nFirst: C\n",
          "explanation": "The combining accent joins the preceding letter as one Character. Canonical equivalence does not mean identical UTF-8 bytes.",
          "exercise": "",
          "files": [],
          "checks": [],
          "negative": [],
          "runner": "swift",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Apple Swift 6.4; Swift 6 language mode; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Swift validation.json; accepted compilation, runtime output and separate boundary checks"
          }
        },
        {
          "id": "sw-semantics",
          "title": "Swift 07 - Values and references",
          "filename": "Swift 07 Semantics.swift",
          "code": "struct ValueLog { var minutes: Int }\nfinal class SharedLog {\n    var minutes: Int\n    init(_ minutes: Int) { self.minutes = minutes }\n}\nlet original = ValueLog(minutes: 10)\nvar copy = original\ncopy.minutes = 20\nlet shared = SharedLog(10)\nlet alias = shared\nalias.minutes = 30\nprint(\"Values: \\(original.minutes), \\(copy.minutes)\")\nprint(\"References: \\(shared.minutes), \\(alias.minutes)\")\nprint(\"Same object: \\(shared === alias)\")\n",
          "expected_output": "Values: 10, 20\nReferences: 30, 30\nSame object: true",
          "expected_stdout": "Values: 10, 20\nReferences: 30, 30\nSame object: true\n",
          "explanation": "The struct is copied as a value. Both class bindings refer to the same instance; let prevents rebinding but permits this mutable property.",
          "exercise": "",
          "files": [],
          "checks": [],
          "negative": [
            {
              "code": "let minutes = 10\nminutes = 20\n",
              "diagnostic": "cannot assign to value"
            }
          ],
          "runner": "swift",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Apple Swift 6.4; Swift 6 language mode; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Swift validation.json; accepted compilation, runtime output and separate boundary checks"
          }
        },
        {
          "id": "sw-errors",
          "title": "Swift 08 - Recoverable errors",
          "filename": "Swift 08 Errors.swift",
          "code": "enum StudyError: Error { case outsideRange }\nfunc checkedDouble(_ value: Int) throws -> Int {\n    guard (0...120).contains(value) else { throw StudyError.outsideRange }\n    return value * 2\n}\nfor value in [20, -1] {\n    do { print(try checkedDouble(value)) }\n    catch StudyError.outsideRange { print(\"rejected\") }\n    catch { print(\"unexpected error\") }\n}\n",
          "expected_output": "40\nrejected",
          "expected_stdout": "40\nrejected\n",
          "explanation": "Only the explicit error is recoverable here. The final catch handles other errors allowed by the untyped throws contract instead of allowing them to propagate out of this entry point. No runtime trap is deliberately triggered.",
          "exercise": "",
          "files": [],
          "checks": [],
          "negative": [
            {
              "code": "enum E: Error { case problem }\nfunc fail() throws { throw E.problem }\nfail()\n",
              "diagnostic": "call can throw"
            }
          ],
          "runner": "swift",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Apple Swift 6.4; Swift 6 language mode; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Swift validation.json; accepted compilation, runtime output and separate boundary checks"
          }
        },
        {
          "id": "sw-companion",
          "title": "Swift 09 - Compile local sources",
          "filename": "main.swift",
          "code": "print(\"Companion: \\(studyTotal([10, 20, 30]))\")\n",
          "expected_output": "Companion: 60",
          "expected_stdout": "Companion: 60\n",
          "explanation": "Save both files together and compile main.swift plus \"Study tools.swift\" with the same flags. This is one executable built from two source files, not a separately imported library. studyTotal assumes its intermediate sums fit in Int; only the bounded authored values are demonstrated.",
          "exercise": "",
          "files": [
            {
              "name": "Study tools.swift",
              "code": "func studyTotal(_ values: [Int]) -> Int {\n    return values.reduce(0, +)\n}\n"
            }
          ],
          "checks": [],
          "negative": [],
          "runner": "swift",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Apple Swift 6.4; Swift 6 language mode; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Swift validation.json; accepted compilation, runtime output and separate boundary checks"
          }
        },
        {
          "id": "sw-exercise-a",
          "title": "Swift exercise A - Optional mean",
          "filename": "Swift exercise A Mean.swift",
          "code": "func mean(_ values: [Int]) -> Double? {\n    guard !values.isEmpty, values.count <= 10,\n          values.allSatisfy({ (0...120).contains($0) }) else { return nil }\n    return Double(values.reduce(0, +)) / Double(values.count)\n}\nprint(mean([10, 20, 30]) ?? -1)\nprint(mean([]) == nil)\n",
          "expected_output": "20.0\ntrue",
          "expected_stdout": "20.0\ntrue\n",
          "explanation": "An optional expresses that an empty or out-of-contract collection has no accepted mean. The input-size and value bounds also keep the sum small.",
          "exercise": "Compute a mean for up to ten minutes values in 0...120. Return nil for empty, oversized or invalid input.",
          "files": [],
          "checks": [
            "mean([0]) == 0",
            "mean([120]) == 120",
            "mean([-1]) == nil",
            "mean(Array(repeating:1,count:11)) == nil"
          ],
          "negative": [],
          "runner": "swift",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Apple Swift 6.4; Swift 6 language mode; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Swift validation.json; accepted compilation, runtime output and separate boundary checks"
          }
        },
        {
          "id": "sw-exercise-b",
          "title": "Swift exercise B - Value copy",
          "filename": "Swift exercise B Copy.swift",
          "code": "struct Session { var title: String; var minutes: Int }\nlet original = [Session(title: \"Read\", minutes: 10)]\nvar edited = original\nif !edited.isEmpty { edited[0].minutes = 20 }\nprint(\"Original: \\(original.first?.minutes ?? 0)\")\nprint(\"Edited: \\(edited.first?.minutes ?? 0)\")\n",
          "expected_output": "Original: 10\nEdited: 20",
          "expected_stdout": "Original: 10\nEdited: 20\n",
          "explanation": "Array and this struct have value semantics. Replacing Session with a class changes the aliasing behavior.",
          "exercise": "Copy a one-row array of value records, edit the copied row and show that the original is unchanged.",
          "files": [],
          "checks": [],
          "negative": [],
          "runner": "swift",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Apple Swift 6.4; Swift 6 language mode; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Swift validation.json; accepted compilation, runtime output and separate boundary checks"
          }
        },
        {
          "id": "sw-exercise-c",
          "title": "Swift exercise C - Observable tests",
          "filename": "Swift exercise C Tests.swift",
          "code": "func doubleMinutes(_ value: Int) -> Int? {\n    guard (0...120).contains(value) else { return nil }\n    return value * 2\n}\nlet cases: [(Int, Int?)] = [(0, 0), (20, 40), (120, 240), (-1, nil)]\nvar passed = 0\nfor (input, expected) in cases {\n    guard doubleMinutes(input) == expected else { fatalError(\"wrong result\") }\n    passed += 1\n}\nprint(\"Assertions: \\(passed) passed\")\n",
          "expected_output": "Assertions: 4 passed",
          "expected_stdout": "Assertions: 4 passed\n",
          "explanation": "All four checks execute at runtime. An unexpected result would terminate with a failure; the successful evidence does not claim that failure branch was executed.",
          "exercise": "Test zero, normal input, upper bound and rejected negative input with observable failure on a mismatch.",
          "files": [],
          "checks": [],
          "negative": [],
          "runner": "swift",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Apple Swift 6.4; Swift 6 language mode; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Swift validation.json; accepted compilation, runtime output and separate boundary checks"
          }
        }
      ],
      "support_files": [
        {
          "name": "Run instructions.txt",
          "code": "Use /usr/bin/swiftc -swift-version 6 -warnings-as-errors \"Example.swift\" -o \"Practice\", then ./Practice in a new practice folder. Replace Example.swift with the exact exported filename. The companion example instead compiles main.swift and \"Study tools.swift\" together. The harness uses an owned temporary module cache. Apple Swift 6.4 on this Mac is the only tested compiler; Swift 6 mode is not a complete conformance claim. No Foundation, SwiftUI, SwiftPM, downloads or external inputs are required. The browser exports text and does not run Swift.\n"
        }
      ],
      "templates": [
        {
          "id": "build",
          "name": "Build a bounded example",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Provide complete source, exact commands, expected output and supported tool versions. Do not claim checks ran without evidence."
        },
        {
          "id": "debug",
          "name": "Debug a reproducible failure",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Separate parser or compiler diagnostics, process failures and wrong results; reduce the reproduction. Do not claim checks ran without evidence."
        },
        {
          "id": "test",
          "name": "Test observable behavior",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Cover empty, boundary and failure cases; distinguish proposed tests from executed tests. Do not claim checks ran without evidence."
        },
        {
          "id": "refactor",
          "name": "Refactor with evidence",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Preserve outputs and behavior; explain regression checks and tool-specific assumptions. Do not claim checks ran without evidence."
        },
        {
          "id": "document",
          "name": "Document the contract",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. State input types, side effects, error policy, portability limits and actual test evidence. Do not claim checks ran without evidence."
        },
        {
          "id": "explain",
          "name": "Explain with practice",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Use an original example, predicted output, an exercise and a separate solution. Do not claim checks ran without evidence."
        }
      ],
      "test_summary": {
        "result": "passed",
        "tested_on": "2026-10-25",
        "runtime": "Apple Swift 6.4; Swift 6 language mode; macOS 27.0.1 arm64",
        "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
        "assertion_count": 105,
        "example_count": 12,
        "accepted_executions": 12,
        "expected_static_rejections": 4,
        "boundary_assertions": 17,
        "scenario_invocations": 0,
        "expected_recipe_failures": 0,
        "embedded_cases": 4,
        "limits": [
          "Installed macOS arm64 toolchain only; no cross-platform or whole-language conformance claim.",
          "Only fixed authored examples in owned temporary directories; not a sandbox for arbitrary source.",
          "Swift compile success and runtime tests are distinct; Make parser rejection and expected recipe failure are separate from successful targets.",
          "No network, installations, real documents, untrusted overrides, parallel Make execution or deliberate Swift runtime traps."
        ]
      }
    },
    {
      "id": "makefile-foundations",
      "title": "Makefile Foundations",
      "version": "0.10.0",
      "status": "tested",
      "entry_ids": [
        "makefile"
      ],
      "languages": [
        "Makefile"
      ],
      "default_goal": "Build and test a small, deterministic local example.",
      "default_runtime": "GNU Make 3.81; macOS 27.0.1 arm64; /bin/sh recipes",
      "default_constraints": "Installed tools only; trusted authored source in a new practice folder; no network, secrets, installations or existing user files.",
      "audience": "Learners comfortable saving plain-text files and using a terminal.",
      "estimated_practice": "4 to 6 hours.",
      "scope": "Build-language basics: targets, prerequisite graphs, timestamps, phony actions, variables, automatic variables, pattern rules, order-only prerequisites, failure and observable tests. Not a general-purpose language or a replacement shell tutorial.",
      "runtime_note": "GNU Make 3.81 is the installed older implementation. Save each example and its companions in a separate NEW practice directory. Run /usr/bin/make -rR --no-print-directory -f \"Example.mk\" (replace the filename). Recipe lines begin with a literal tab. Outputs are fixed toy filenames inside that directory. Built-in rules/variables are disabled; /bin/sh runs recipes. Do not run untrusted makefiles, pass untrusted variable overrides or point at existing documents. make -n is NOT a sandbox: makefile evaluation, included files and recursive commands can execute code. No .ONESHELL, grouped targets, downloads, recursive builds or destructive clean targets are used.",
      "lessons": [
        {
          "title": "A build language and its executor",
          "text": "Makefile describes targets, prerequisites and recipes. GNU Make is the build tool executing that description; recipes use a shell. This pack tests GNU Make 3.81, not every Make dialect. Start each example in a separate new directory with only its supplied files."
        },
        {
          "title": "Graphs and freshness",
          "text": "A normal target is rebuilt when missing or when a normal prerequisite has a newer modification time. Make compares timestamps, not file contents. Changing content while preserving an old timestamp may be missed. Each direct input belongs in the graph; a successful build does not prove complete dependencies."
        },
        {
          "title": "Rules and phony actions",
          "text": "The first ordinary target is the default goal here. Write target: prerequisites, followed by tab-prefixed recipe lines. .PHONY marks actions that should run even if a same-named file exists. Do not make a phony target a normal prerequisite of a real file unless rebuilding each time is intentional."
        },
        {
          "title": "Variables and expansion",
          "text": "With =, references expand when the variable is used; with :=, the right-hand side expands at assignment. Command-line assignments can override ordinary assignments. Expansion is not shell quoting: even quoted interpolated values can become dangerous when untrusted data contains shell syntax. All values here are fixed authored text."
        },
        {
          "title": "Recipes and process boundaries",
          "text": "Each recipe line runs in a separate shell in this version. Join commands deliberately when state must persist. $$ passes a dollar sign through Make to the shell. A nonzero recipe exit stops that target and normally the build. Do not hide errors with a leading minus just to make the output appear successful."
        },
        {
          "title": "Automatic and pattern variables",
          "text": "In a recipe, $@ names the target and $< names the first prerequisite. A %.out: %.in rule matches stems. These examples use fixed simple filenames without spaces; arbitrary path quoting and multi-output generator correctness require a separate design."
        },
        {
          "title": "Order-only and failure semantics",
          "text": "Prerequisites after | must be available before a target is built, but their newer timestamp alone does not make the target stale. .DELETE_ON_ERROR requests deletion of a changed target after recipe failure; it is discussed, not used here. Our expected failure example writes no partial target."
        },
        {
          "title": "Testing the graph",
          "text": "The harness runs each successful default target, checks outputs, repeats selected builds and changes controlled timestamps. A separate check expects a recipe failure and confirms dependents do not run. Invalid parser fixtures have no executable recipes. Neither -n nor a temporary folder is a security sandbox; only this authored material was exercised."
        }
      ],
      "reference": [
        {
          "area": "Rule",
          "syntax": "target: prerequisites",
          "meaning": "Names a graph edge and its recipe."
        },
        {
          "area": "Recipe",
          "syntax": "TAB command",
          "meaning": "A real tab starts the command line."
        },
        {
          "area": "Default",
          "syntax": "first ordinary target",
          "meaning": "Used when no goal is supplied in these examples."
        },
        {
          "area": "Action",
          "syntax": ".PHONY: all test",
          "meaning": "Always considers these action targets out of date."
        },
        {
          "area": "Expansion",
          "syntax": "NAME = $(OTHER)",
          "meaning": "Expand references later."
        },
        {
          "area": "Snapshot",
          "syntax": "NAME := $(OTHER)",
          "meaning": "Expand the right side now."
        },
        {
          "area": "Override",
          "syntax": "make NAME=value",
          "meaning": "Command-line assignments can override ordinary ones."
        },
        {
          "area": "Target",
          "syntax": "$@",
          "meaning": "Current target name inside a recipe."
        },
        {
          "area": "Input",
          "syntax": "$<",
          "meaning": "First prerequisite name in a recipe."
        },
        {
          "area": "Pattern",
          "syntax": "%.out: %.in",
          "meaning": "Match a common filename stem."
        },
        {
          "area": "Order only",
          "syntax": "target: input | stamp",
          "meaning": "Wait for stamp without using its age for freshness."
        },
        {
          "area": "Dollar",
          "syntax": "$$name",
          "meaning": "Pass a dollar reference to the recipe shell."
        },
        {
          "area": "Echo",
          "syntax": "@command",
          "meaning": "Suppress echo of this recipe, not its output."
        },
        {
          "area": "Failure",
          "syntax": "nonzero exit status",
          "meaning": "Stop this target; dependents cannot succeed."
        },
        {
          "area": "Inspect",
          "syntax": "make -n",
          "meaning": "Show most recipes; NOT safe for untrusted makefiles."
        },
        {
          "area": "Pinned run",
          "syntax": "make -rR -f file.mk",
          "meaning": "Disable built-ins and choose this authored file."
        }
      ],
      "examples": [
        {
          "id": "mk-first",
          "title": "Make 01 - Default and phony",
          "filename": "Make 01 Default and phony.mk",
          "code": ".PHONY: all\nall:\n\t@printf 'Goal: all\\n'\n",
          "expected_output": "Goal: all",
          "expected_stdout": "Goal: all\n",
          "explanation": "The first ordinary target is the default. .PHONY ensures the action still runs if a file named all exists.",
          "exercise": "",
          "files": [],
          "checks": [],
          "negative": [
            {
              "code": "all:\n    printf bad\n",
              "diagnostic": "missing separator"
            }
          ],
          "runner": "makefile",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "GNU Make 3.81; macOS 27.0.1 arm64; /bin/sh recipes",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Makefile validation.json; accepted execution and exact output; compiler or dependency checks recorded separately"
          },
          "outputs": {},
          "scenarios": [
            {
              "name": "phony file collision",
              "write": {
                "all": "unrelated toy\n"
              },
              "args": [],
              "stdout": "Goal: all\n",
              "exit": 0
            }
          ]
        },
        {
          "id": "mk-graph",
          "title": "Make 02 - Dependency graph",
          "filename": "Make 02 Dependency graph.mk",
          "code": ".PHONY: all\nall: report.txt\nreport.txt: input.txt\n\t@cp \"$<\" \"$@\"\n\t@printf 'Built report\\n'\n",
          "expected_output": "Built report",
          "expected_stdout": "Built report\n",
          "explanation": "A missing report is built from the supplied input. The phony all action has no recipe and does not itself force report.txt to rebuild.",
          "exercise": "",
          "files": [
            {
              "name": "input.txt",
              "code": "minutes: 30\n"
            }
          ],
          "checks": [],
          "negative": [],
          "runner": "makefile",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "GNU Make 3.81; macOS 27.0.1 arm64; /bin/sh recipes",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Makefile validation.json; accepted execution and exact output; compiler or dependency checks recorded separately"
          },
          "outputs": {
            "report.txt": "minutes: 30\n"
          },
          "scenarios": [
            {
              "name": "unchanged rebuild",
              "args": [],
              "stdout": "make: Nothing to be done for `all'.\n",
              "exit": 0
            },
            {
              "name": "newer input rebuild",
              "write": {
                "input.txt": "minutes: 40\n"
              },
              "mtimes": {
                "report.txt": 1000000000,
                "input.txt": 1000000010
              },
              "args": [],
              "stdout": "Built report\n",
              "exit": 0,
              "outputs": {
                "report.txt": "minutes: 40\n"
              }
            }
          ]
        },
        {
          "id": "mk-vars",
          "title": "Make 03 - Expansion time",
          "filename": "Make 03 Expansion time.mk",
          "code": "LABEL = first\nLATER = $(LABEL)\nNOW := $(LABEL)\nLABEL = second\n.PHONY: all\nall:\n\t@printf '%s / %s\\n' '$(LATER)' '$(NOW)'\n",
          "expected_output": "second / first",
          "expected_stdout": "second / first\n",
          "explanation": "The recursively expanded variable sees the later LABEL; the simple variable captured the earlier text. Values are trusted literals.",
          "exercise": "",
          "files": [],
          "checks": [],
          "negative": [
            {
              "code": "X = $(missing\nall: $(X)\n",
              "diagnostic": "unterminated variable reference"
            }
          ],
          "runner": "makefile",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "GNU Make 3.81; macOS 27.0.1 arm64; /bin/sh recipes",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Makefile validation.json; accepted execution and exact output; compiler or dependency checks recorded separately"
          },
          "outputs": {},
          "scenarios": []
        },
        {
          "id": "mk-auto",
          "title": "Make 04 - Automatic variables",
          "filename": "Make 04 Automatic variables.mk",
          "code": ".PHONY: all\nall: copied.txt\ncopied.txt: study.txt\n\t@cp \"$<\" \"$@\"\n\t@printf 'Target %s from %s\\n' \"$@\" \"$<\"\n",
          "expected_output": "Target copied.txt from study.txt",
          "expected_stdout": "Target copied.txt from study.txt\n",
          "explanation": "Automatic variables are defined in the recipe context. Filenames are fixed simple toy names.",
          "exercise": "",
          "files": [
            {
              "name": "study.txt",
              "code": "study\n"
            }
          ],
          "checks": [],
          "negative": [],
          "runner": "makefile",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "GNU Make 3.81; macOS 27.0.1 arm64; /bin/sh recipes",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Makefile validation.json; accepted execution and exact output; compiler or dependency checks recorded separately"
          },
          "outputs": {
            "copied.txt": "study\n"
          },
          "scenarios": []
        },
        {
          "id": "mk-pattern",
          "title": "Make 05 - Pattern rule",
          "filename": "Make 05 Pattern rule.mk",
          "code": ".PHONY: all\nall: first.out second.out\n%.out: %.in\n\t@cp \"$<\" \"$@\"\n\t@printf 'Built %s\\n' \"$@\"\n",
          "expected_output": "Built first.out\nBuilt second.out",
          "expected_stdout": "Built first.out\nBuilt second.out\n",
          "explanation": "One pattern rule serves two stems. Output order here assumes the default serial invocation; parallel builds are outside this evidence.",
          "exercise": "",
          "files": [
            {
              "name": "first.in",
              "code": "one\n"
            },
            {
              "name": "second.in",
              "code": "two\n"
            }
          ],
          "checks": [],
          "negative": [],
          "runner": "makefile",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "GNU Make 3.81; macOS 27.0.1 arm64; /bin/sh recipes",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Makefile validation.json; accepted execution and exact output; compiler or dependency checks recorded separately"
          },
          "outputs": {
            "first.out": "one\n",
            "second.out": "two\n"
          },
          "scenarios": []
        },
        {
          "id": "mk-order",
          "title": "Make 06 - Order-only prerequisite",
          "filename": "Make 06 Order-only prerequisite.mk",
          "code": ".PHONY: all\nall: result.txt\nresult.txt: readiness.txt | ready.stamp\n\t@cp \"$<\" \"$@\"\n\t@printf 'Built result\\n'\nready.stamp:\n\t@printf 'ready\\n' > \"$@\"\n",
          "expected_output": "Built result",
          "expected_stdout": "Built result\n",
          "explanation": "The stamp must exist first. Its newer timestamp alone does not cause result.txt to rebuild.",
          "exercise": "",
          "files": [
            {
              "name": "readiness.txt",
              "code": "ready input\n"
            }
          ],
          "checks": [],
          "negative": [],
          "runner": "makefile",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "GNU Make 3.81; macOS 27.0.1 arm64; /bin/sh recipes",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Makefile validation.json; accepted execution and exact output; compiler or dependency checks recorded separately"
          },
          "outputs": {
            "result.txt": "ready input\n",
            "ready.stamp": "ready\n"
          },
          "scenarios": [
            {
              "name": "newer order-only stamp does not rebuild",
              "mtimes": {
                "readiness.txt": 1000000000,
                "result.txt": 1000000010,
                "ready.stamp": 1000000020
              },
              "args": [],
              "stdout": "make: Nothing to be done for `all'.\n",
              "exit": 0
            }
          ]
        },
        {
          "id": "mk-shell",
          "title": "Make 07 - Recipe shell boundary",
          "filename": "Make 07 Recipe shell boundary.mk",
          "code": ".PHONY: all\nall:\n\t@word=study; printf 'Same shell: %s\\n' \"$$word\"\n\t@printf 'Next shell: %s\\n' \"$${word-unset}\"\n",
          "expected_output": "Same shell: study\nNext shell: unset",
          "expected_stdout": "Same shell: study\nNext shell: unset\n",
          "explanation": "Make turns $$ into $. Each separate recipe line starts another shell, so the first line variable is absent from the second.",
          "exercise": "",
          "files": [],
          "checks": [],
          "negative": [
            {
              "code": "define NOTE\nunfinished\n",
              "diagnostic": "missing `endef'"
            }
          ],
          "runner": "makefile",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "GNU Make 3.81; macOS 27.0.1 arm64; /bin/sh recipes",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Makefile validation.json; accepted execution and exact output; compiler or dependency checks recorded separately"
          },
          "outputs": {},
          "scenarios": []
        },
        {
          "id": "mk-failure",
          "title": "Make 08 - Failure propagation",
          "filename": "Make 08 Failure propagation.mk",
          "code": ".PHONY: all check fail after\nall: check\ncheck:\n\t@printf 'Normal check passed\\n'\nafter: fail\n\t@printf 'should not exist\\n' > after.txt\nfail:\n\t@printf 'Expected toy failure\\n'\n\t@exit 7\n",
          "expected_output": "Normal check passed",
          "expected_stdout": "Normal check passed\n",
          "explanation": "The default target succeeds. A separate harness invocation of after intentionally fails; the dependent recipe must not run. That failure is expected test evidence, not a successful build.",
          "exercise": "",
          "files": [],
          "checks": [],
          "negative": [],
          "runner": "makefile",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "GNU Make 3.81; macOS 27.0.1 arm64; /bin/sh recipes",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Makefile validation.json; accepted execution and exact output; compiler or dependency checks recorded separately"
          },
          "outputs": {},
          "scenarios": [
            {
              "name": "expected recipe failure",
              "args": [
                "after"
              ],
              "stdout": "Expected toy failure\n",
              "exit": 2,
              "stderr_contains": "Error 7",
              "absent": [
                "after.txt"
              ]
            }
          ]
        },
        {
          "id": "mk-config",
          "title": "Make 09 - Trusted configuration",
          "filename": "Make 09 Trusted configuration.mk",
          "code": "LEVEL = basic\n.PHONY: all\nall:\n\t@printf 'Level: %s\\n' '$(LEVEL)'\n",
          "expected_output": "Level: basic",
          "expected_stdout": "Level: basic\n",
          "explanation": "The harness overrides LEVEL with one trusted literal. This recipe is not safe for arbitrary user-controlled override values; Make expansion precedes shell parsing.",
          "exercise": "",
          "files": [],
          "checks": [],
          "negative": [
            {
              "code": "ifeq (one,one)\nall:\n",
              "diagnostic": "missing `endif'"
            }
          ],
          "runner": "makefile",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "GNU Make 3.81; macOS 27.0.1 arm64; /bin/sh recipes",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Makefile validation.json; accepted execution and exact output; compiler or dependency checks recorded separately"
          },
          "outputs": {},
          "scenarios": [
            {
              "name": "trusted override",
              "args": [
                "LEVEL=advanced"
              ],
              "stdout": "Level: advanced\n",
              "exit": 0
            }
          ]
        },
        {
          "id": "mk-exercise-a",
          "title": "Make exercise A - Build then test",
          "filename": "Make exercise A Build then test.mk",
          "code": ".PHONY: all test\nall: summary.txt\nsummary.txt: lesson.txt\n\t@cp \"$<\" \"$@\"\n\t@printf 'Built summary\\n'\ntest: summary.txt\n\t@cmp lesson.txt summary.txt\n\t@printf 'Test passed\\n'\n",
          "expected_output": "Built summary",
          "expected_stdout": "Built summary\n",
          "explanation": "The test depends on the output. cmp verifies its bytes; the build alone does not establish this assertion.",
          "exercise": "Write a real file target and a separate phony test target that checks it.",
          "files": [
            {
              "name": "lesson.txt",
              "code": "practice: 20\n"
            }
          ],
          "checks": [],
          "negative": [],
          "runner": "makefile",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "GNU Make 3.81; macOS 27.0.1 arm64; /bin/sh recipes",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Makefile validation.json; accepted execution and exact output; compiler or dependency checks recorded separately"
          },
          "outputs": {
            "summary.txt": "practice: 20\n"
          },
          "scenarios": [
            {
              "name": "explicit test target",
              "args": [
                "test"
              ],
              "stdout": "Test passed\n",
              "exit": 0
            }
          ]
        },
        {
          "id": "mk-exercise-b",
          "title": "Make exercise B - All direct inputs",
          "filename": "Make exercise B All direct inputs.mk",
          "code": ".PHONY: all\nall: combined.txt\ncombined.txt: first.txt second.txt\n\t@cat first.txt second.txt > \"$@\"\n\t@printf 'Built combined\\n'\n",
          "expected_output": "Built combined",
          "expected_stdout": "Built combined\n",
          "explanation": "Both input files are prerequisites. A changed second input must trigger a rebuild. Recipe filenames are explicit authored literals.",
          "exercise": "Combine two toy inputs and declare both as normal prerequisites.",
          "files": [
            {
              "name": "first.txt",
              "code": "first\n"
            },
            {
              "name": "second.txt",
              "code": "second\n"
            }
          ],
          "checks": [],
          "negative": [],
          "runner": "makefile",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "GNU Make 3.81; macOS 27.0.1 arm64; /bin/sh recipes",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Makefile validation.json; accepted execution and exact output; compiler or dependency checks recorded separately"
          },
          "outputs": {
            "combined.txt": "first\nsecond\n"
          },
          "scenarios": [
            {
              "name": "second input rebuild",
              "write": {
                "second.txt": "changed\n"
              },
              "mtimes": {
                "first.txt": 1000000000,
                "combined.txt": 1000000010,
                "second.txt": 1000000020
              },
              "args": [],
              "stdout": "Built combined\n",
              "exit": 0,
              "outputs": {
                "combined.txt": "first\nchanged\n"
              }
            }
          ]
        },
        {
          "id": "mk-exercise-c",
          "title": "Make exercise C - Observable assertions",
          "filename": "Make exercise C Observable assertions.mk",
          "code": ".PHONY: all test\nall: test\ntoy.txt:\n\t@printf 'study\\n' > \"$@\"\ntest: toy.txt\n\t@test -f toy.txt\n\t@test -s toy.txt\n\t@test \"$$(cat toy.txt)\" = study\n\t@test ! -e absent.txt\n\t@printf 'Assertions: 4 passed\\n'\n",
          "expected_output": "Assertions: 4 passed",
          "expected_stdout": "Assertions: 4 passed\n",
          "explanation": "Four shell test commands execute under Make. A failing check stops the target before the success message. The authored fresh directory makes absent.txt meaningful.",
          "exercise": "Make a test target that checks existence, nonempty output, content and an absent toy path.",
          "files": [],
          "checks": [],
          "negative": [],
          "runner": "makefile",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "GNU Make 3.81; macOS 27.0.1 arm64; /bin/sh recipes",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-25",
            "evidence": "Makefile validation.json; accepted execution and exact output; compiler or dependency checks recorded separately"
          },
          "outputs": {
            "toy.txt": "study\n"
          },
          "scenarios": []
        }
      ],
      "support_files": [
        {
          "name": "Run instructions.txt",
          "code": "GNU Make 3.81 is the installed older implementation. Save each example and its companions in a separate NEW practice directory. Run /usr/bin/make -rR --no-print-directory -f \"Example.mk\" (replace the filename). Recipe lines begin with a literal tab. Outputs are fixed toy filenames inside that directory. Built-in rules/variables are disabled; /bin/sh runs recipes. Do not run untrusted makefiles, pass untrusted variable overrides or point at existing documents. make -n is NOT a sandbox: makefile evaluation, included files and recursive commands can execute code. No .ONESHELL, grouped targets, downloads, recursive builds or destructive clean targets are used.\n"
        }
      ],
      "templates": [
        {
          "id": "build",
          "name": "Build a bounded example",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Provide complete source, exact commands, expected output and supported tool versions. Do not claim checks ran without evidence."
        },
        {
          "id": "debug",
          "name": "Debug a reproducible failure",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Separate parser or compiler diagnostics, process failures and wrong results; reduce the reproduction. Do not claim checks ran without evidence."
        },
        {
          "id": "test",
          "name": "Test observable behavior",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Cover empty, boundary and failure cases; distinguish proposed tests from executed tests. Do not claim checks ran without evidence."
        },
        {
          "id": "refactor",
          "name": "Refactor with evidence",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Preserve outputs and behavior; explain regression checks and tool-specific assumptions. Do not claim checks ran without evidence."
        },
        {
          "id": "document",
          "name": "Document the contract",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. State input types, side effects, error policy, portability limits and actual test evidence. Do not claim checks ran without evidence."
        },
        {
          "id": "explain",
          "name": "Explain with practice",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Use an original example, predicted output, an exercise and a separate solution. Do not claim checks ran without evidence."
        }
      ],
      "rejection_label": "Make parser",
      "rejection_heading": "Expected parser rejections",
      "test_summary": {
        "result": "passed",
        "tested_on": "2026-10-25",
        "runtime": "GNU Make 3.81; macOS 27.0.1 arm64; /bin/sh recipes",
        "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
        "assertion_count": 97,
        "example_count": 12,
        "accepted_executions": 12,
        "expected_static_rejections": 4,
        "boundary_assertions": 0,
        "scenario_invocations": 8,
        "expected_recipe_failures": 1,
        "embedded_cases": 4,
        "limits": [
          "Installed macOS arm64 toolchain only; no cross-platform or whole-language conformance claim.",
          "Only fixed authored examples in owned temporary directories; not a sandbox for arbitrary source.",
          "Swift compile success and runtime tests are distinct; Make parser rejection and expected recipe failure are separate from successful targets.",
          "No network, installations, real documents, untrusted overrides, parallel Make execution or deliberate Swift runtime traps."
        ]
      }
    },
    {
      "id": "awk-foundations",
      "title": "awk Foundations",
      "version": "0.10.0",
      "status": "tested",
      "entry_ids": [
        "awk"
      ],
      "languages": [
        "awk"
      ],
      "default_goal": "Transform a bounded authored text stream with explicit expected output.",
      "default_runtime": "awk 20200816; macOS 27.0.1 arm64; LC_ALL=C",
      "default_constraints": "LC_ALL=C; tiny authored text only; fixed trusted script; no system commands, file redirection inside the script, in-place editing, external input, network or installation.",
      "audience": "Learners comfortable saving plain text and invoking an installed command-line tool.",
      "estimated_practice": "4 to 6 hours.",
      "scope": "Pattern/action processing, records and fields, validated numeric input, associative arrays, deterministic order, functions and reports. No CSV parser, GNU awk extensions, process execution or arbitrary file access.",
      "runtime_note": "Use the exact invocation beside each example. Export its .awk script and input companion into a new practice folder; LC_ALL=C pins byte-oriented ASCII behavior. /usr/bin/awk --version reports 20200816. Current upstream awk has features absent here; no --csv, GNU awk sorting functions or whole-POSIX conformance is claimed. All programs write stdout only. The browser exports text and never executes it. Do not interpolate untrusted text into an awk program; -v values also interpret backslash escapes and are not a raw-byte transport. Only fixed authored scripts and bounded toy inputs are tested.",
      "lessons": [
        {
          "title": "Patterns and actions",
          "text": "awk is a text-processing language evaluated by the installed awk program. For each input record, matching rules run in source order. A missing pattern matches every record; a missing action prints the record. BEGIN runs before records and END runs afterward. These examples use explicit actions to make output predictable."
        },
        {
          "title": "Records, fields and separators",
          "text": "With the default settings, newline separates records and FS=\" \" collapses runs of whitespace into fields. $0 is the whole record; $1 is the first field, NF the field count and NR the record count. A literal colon separator does not implement CSV quoting. Assigning a field can rebuild $0 using OFS."
        },
        {
          "title": "Strings are not validated numbers",
          "text": "Arithmetic can convert strings and accept numeric prefixes, so coercion alone is not validation. The contract example checks one to three ASCII digits, then a value in 0..120. Values like 001 are accepted; signs, decimals and blanks are rejected. Totals are limited to at most 100 accepted records. Surrounding field whitespace is accepted; a blank record is rejected."
        },
        {
          "title": "Arrays and report order",
          "text": "Associative arrays map string keys to values. for (key in array) does not guarantee report order. Store first-seen keys in a separate numbered array or use a fixed explicit order. The membership operator in distinguishes an absent key from a stored zero; avoid reading a missing element when testing existence."
        },
        {
          "title": "Text matching and replacement",
          "text": "awk patterns use extended regular expressions. Anchors express whole-record or whole-field rules. index searches literal text; a string used as a dynamic regular expression has pattern semantics. sub and gsub mutate the selected text and return replacement counts. Replacement ampersands and backslashes have special meaning."
        },
        {
          "title": "Functions and local names",
          "text": "Scalar parameters are passed by value; array parameters refer to the caller array. Names not declared as parameters are global. Extra trailing parameters can serve as local variables when omitted at the call. Keep the input contract explicit and avoid accidental shared global state."
        },
        {
          "title": "Flow, exit and END",
          "text": "next skips remaining rules for this record. exit stops normal input processing, but END still runs. An error flag prevents END from printing a success report after rejection. A numeric exit status is separate from stdout. There is no claimed syntax-only sandbox: only fixed parser-failure fixtures are exercised."
        },
        {
          "title": "Scope and safe practice",
          "text": "LC_ALL=C makes these ASCII and byte-level demonstrations reproducible; Unicode grapheme processing is outside this pack. Empty input is tested. No getline, system, pipes, output-file redirection, environment access or untrusted script generation is used. A temporary directory and test timeout are not an arbitrary-code sandbox."
        }
      ],
      "reference": [
        {
          "area": "Rule",
          "syntax": "pattern { action }",
          "meaning": "Run matching actions in source order."
        },
        {
          "area": "Lifecycle",
          "syntax": "BEGIN / END",
          "meaning": "Before records and after input processing."
        },
        {
          "area": "Record",
          "syntax": "$0 / NR",
          "meaning": "Whole current record and overall ordinal."
        },
        {
          "area": "Fields",
          "syntax": "$1 / NF",
          "meaning": "First field and number of fields."
        },
        {
          "area": "Separators",
          "syntax": "FS / OFS / ORS",
          "meaning": "Input fields, output fields and output records."
        },
        {
          "area": "Output",
          "syntax": "print / printf",
          "meaning": "Use a fixed printf format for data."
        },
        {
          "area": "Patterns",
          "syntax": "~ / !~ / ^ / $",
          "meaning": "Regex matching, negation and anchors."
        },
        {
          "area": "Literal search",
          "syntax": "index(text, needle)",
          "meaning": "Return one-based position or zero."
        },
        {
          "area": "Slice",
          "syntax": "substr(text, start, count)",
          "meaning": "One-based text slice."
        },
        {
          "area": "Replacement",
          "syntax": "sub / gsub",
          "meaning": "First or all substitutions; returns count."
        },
        {
          "area": "Map",
          "syntax": "totals[key]",
          "meaning": "Associative array access."
        },
        {
          "area": "Presence",
          "syntax": "key in totals",
          "meaning": "Check membership without fetching a value."
        },
        {
          "area": "Function",
          "syntax": "function f(x, local) {...}",
          "meaning": "Extra omitted parameters can be local names."
        },
        {
          "area": "Skip",
          "syntax": "next",
          "meaning": "Continue with the next record."
        },
        {
          "area": "Stop",
          "syntax": "exit 2",
          "meaning": "Stop input; END still runs."
        },
        {
          "area": "Contract",
          "syntax": "regex then numeric range",
          "meaning": "Validate shape before numeric conversion."
        }
      ],
      "examples": [
        {
          "id": "awk-records",
          "title": "awk 01 - Records and fields",
          "filename": "awk 01 Records and fields.awk",
          "code": "{ printf \"row=%d fields=%d first=%s last=%s\\n\", NR, NF, $1, $NF }\n",
          "expected_output": "row=1 fields=2 first=read last=20\nrow=2 fields=2 first=code last=40",
          "expected_stdout": "row=1 fields=2 first=read last=20\nrow=2 fields=2 first=code last=40\n",
          "explanation": "Default whitespace fields collapse spaces and tabs; the sample has exactly two fields per record.",
          "exercise": "",
          "files": [
            {
              "name": "awk 01 Records and fields Input.txt",
              "code": "read 20\ncode 40\n"
            }
          ],
          "stdin_file": "awk 01 Records and fields Input.txt",
          "invocation": "LC_ALL=C /usr/bin/awk -f \"awk 01 Records and fields.awk\" < \"awk 01 Records and fields Input.txt\"",
          "arguments": [],
          "checks": [],
          "negative": [
            {
              "code": "BEGIN { print ( }\n",
              "diagnostic": "syntax error"
            }
          ],
          "scenarios": [
            {
              "name": "empty input",
              "stdin": "",
              "stdout": "",
              "exit": 0
            },
            {
              "name": "collapsed whitespace",
              "stdin": "  read\t 20  \n",
              "stdout": "row=1 fields=2 first=read last=20\n",
              "exit": 0
            }
          ],
          "runner": "awk",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "awk 20200816; macOS 27.0.1 arm64; LC_ALL=C",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "awk validation.json; exact stdout, status, input preservation and separate parser/scenario checks"
          }
        },
        {
          "id": "awk-select",
          "title": "awk 02 - Match and select",
          "filename": "awk 02 Match and select.awk",
          "code": "NF == 2 && $1 == \"read\" { print $2 }\n",
          "expected_output": "20\n15",
          "expected_stdout": "20\n15\n",
          "explanation": "The rule tests field count and a literal field value. It selects text rather than assuming the second field is numeric.",
          "exercise": "",
          "files": [
            {
              "name": "awk 02 Match and select Input.txt",
              "code": "read 20\ncode 40\nread 15\n"
            }
          ],
          "stdin_file": "awk 02 Match and select Input.txt",
          "invocation": "LC_ALL=C /usr/bin/awk -f \"awk 02 Match and select.awk\" < \"awk 02 Match and select Input.txt\"",
          "arguments": [],
          "checks": [],
          "negative": [],
          "scenarios": [
            {
              "name": "no match succeeds",
              "stdin": "code 40\n",
              "stdout": "",
              "exit": 0
            },
            {
              "name": "reject wrong field count",
              "stdin": "read 20 extra\nread\n",
              "stdout": "",
              "exit": 0
            }
          ],
          "runner": "awk",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "awk 20200816; macOS 27.0.1 arm64; LC_ALL=C",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "awk validation.json; exact stdout, status, input preservation and separate parser/scenario checks"
          }
        },
        {
          "id": "awk-rebuild",
          "title": "awk 03 - Field reconstruction",
          "filename": "awk 03 Field reconstruction.awk",
          "code": "BEGIN { FS = \":\"; OFS = \" | \" }\nNF == 2 { $1 = toupper($1); print $0 }\n",
          "expected_output": "READ | 20\nCODE | 40",
          "expected_stdout": "READ | 20\nCODE | 40\n",
          "explanation": "Assigning $1 rebuilds the record using OFS. A colon-delimited toy record has no quoting or escaping grammar; it is not CSV.",
          "exercise": "",
          "files": [
            {
              "name": "awk 03 Field reconstruction Input.txt",
              "code": "read:20\ncode:40\n"
            }
          ],
          "stdin_file": "awk 03 Field reconstruction Input.txt",
          "invocation": "LC_ALL=C /usr/bin/awk -f \"awk 03 Field reconstruction.awk\" < \"awk 03 Field reconstruction Input.txt\"",
          "arguments": [],
          "checks": [],
          "negative": [],
          "scenarios": [
            {
              "name": "empty second field",
              "stdin": "read:\n",
              "stdout": "READ | \n",
              "exit": 0
            }
          ],
          "runner": "awk",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "awk 20200816; macOS 27.0.1 arm64; LC_ALL=C",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "awk validation.json; exact stdout, status, input preservation and separate parser/scenario checks"
          }
        },
        {
          "id": "awk-contract",
          "title": "awk 04 - Validate before summing",
          "filename": "awk 04 Validate before summing.awk",
          "code": "function valid(s) {\n    return s ~ /^[0-9]+$/ && length(s) <= 3 && (s + 0) <= 120\n}\n{\n    if (NF != 1 || !valid($1) || NR > 100) {\n        print \"rejected\"; failed = 1; exit 2\n    }\n    total += $1\n}\nEND { if (!failed) printf \"Total: %d\\n\", total }\n",
          "expected_output": "Total: 60",
          "expected_stdout": "Total: 60\n",
          "explanation": "All records must satisfy the bounded numeric contract. END still runs after exit, so failed suppresses a misleading total. Failure output is on stdout by this explicit toy contract.",
          "exercise": "",
          "files": [
            {
              "name": "awk 04 Validate before summing Input.txt",
              "code": "20\n40\n"
            }
          ],
          "stdin_file": "awk 04 Validate before summing Input.txt",
          "invocation": "LC_ALL=C /usr/bin/awk -f \"awk 04 Validate before summing.awk\" < \"awk 04 Validate before summing Input.txt\"",
          "arguments": [],
          "checks": [],
          "negative": [
            {
              "code": "BEGIN { x = \"unfinished\n",
              "diagnostic": "non-terminated string"
            }
          ],
          "scenarios": [
            {
              "name": "empty sum",
              "stdin": "",
              "stdout": "Total: 0\n",
              "exit": 0
            },
            {
              "name": "upper bound and leading zero",
              "stdin": "120\n001\n",
              "stdout": "Total: 121\n",
              "exit": 0
            },
            {
              "name": "reject numeric prefix",
              "stdin": "12x\n",
              "stdout": "rejected\n",
              "exit": 2
            },
            {
              "name": "reject out of range",
              "stdin": "121\n",
              "stdout": "rejected\n",
              "exit": 2
            },
            {
              "name": "reject too many records",
              "stdin": "1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n",
              "stdout": "rejected\n",
              "exit": 2
            }
          ],
          "runner": "awk",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "awk 20200816; macOS 27.0.1 arm64; LC_ALL=C",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "awk validation.json; exact stdout, status, input preservation and separate parser/scenario checks"
          }
        },
        {
          "id": "awk-map",
          "title": "awk 05 - First-seen report order",
          "filename": "awk 05 First-seen report order.awk",
          "code": "{\n    if (!($1 in count)) order[++size] = $1\n    count[$1]++\n}\nEND {\n    for (i = 1; i <= size; i++)\n        printf \"%s: %d\\n\", order[i], count[order[i]]\n}\n",
          "expected_output": "read: 2\ncode: 1\nrest: 1",
          "expected_stdout": "read: 2\ncode: 1\nrest: 1\n",
          "explanation": "The authored input is one nonempty word per record. Report order follows first occurrence, independent of associative-array iteration.",
          "exercise": "",
          "files": [
            {
              "name": "awk 05 First-seen report order Input.txt",
              "code": "read\ncode\nread\nrest\n"
            }
          ],
          "stdin_file": "awk 05 First-seen report order Input.txt",
          "invocation": "LC_ALL=C /usr/bin/awk -f \"awk 05 First-seen report order.awk\" < \"awk 05 First-seen report order Input.txt\"",
          "arguments": [],
          "checks": [],
          "negative": [],
          "scenarios": [
            {
              "name": "reordered first occurrence",
              "stdin": "code\nread\ncode\n",
              "stdout": "code: 2\nread: 1\n",
              "exit": 0
            }
          ],
          "runner": "awk",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "awk 20200816; macOS 27.0.1 arm64; LC_ALL=C",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "awk validation.json; exact stdout, status, input preservation and separate parser/scenario checks"
          }
        },
        {
          "id": "awk-presence",
          "title": "awk 06 - Missing versus zero",
          "filename": "awk 06 Missing versus zero.awk",
          "code": "BEGIN {\n    count[\"read\"] = 0\n    print \"read present:\", (\"read\" in count)\n    print \"code present:\", (\"code\" in count)\n    print \"read value:\", count[\"read\"]\n}\n",
          "expected_output": "read present: 1\ncode present: 0\nread value: 0",
          "expected_stdout": "read present: 1\ncode present: 0\nread value: 0\n",
          "explanation": "Membership is independent of the stored value. This does not fetch count[\"code\"], which could create a missing element.",
          "exercise": "",
          "files": [],
          "stdin_file": null,
          "invocation": "LC_ALL=C /usr/bin/awk -f \"awk 06 Missing versus zero.awk\" < /dev/null",
          "arguments": [],
          "checks": [],
          "negative": [],
          "scenarios": [],
          "runner": "awk",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "awk 20200816; macOS 27.0.1 arm64; LC_ALL=C",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "awk validation.json; exact stdout, status, input preservation and separate parser/scenario checks"
          }
        },
        {
          "id": "awk-text",
          "title": "awk 07 - Literal search and replacement",
          "filename": "awk 07 Literal search and replacement.awk",
          "code": "{\n    text = $0\n    changes = gsub(/blue/, \"green\", text)\n    printf \"%d | %d | %s\\n\", index($0, \".\"), changes, text\n}\n",
          "expected_output": "5 | 2 | green.green\n0 | 0 | red",
          "expected_stdout": "5 | 2 | green.green\n0 | 0 | red\n",
          "explanation": "index treats the dot literally. gsub uses a fixed regex and literal replacement text; arbitrary replacement escaping is outside this script.",
          "exercise": "",
          "files": [
            {
              "name": "awk 07 Literal search and replacement Input.txt",
              "code": "blue.blue\nred\n"
            }
          ],
          "stdin_file": "awk 07 Literal search and replacement Input.txt",
          "invocation": "LC_ALL=C /usr/bin/awk -f \"awk 07 Literal search and replacement.awk\" < \"awk 07 Literal search and replacement Input.txt\"",
          "arguments": [],
          "checks": [],
          "negative": [
            {
              "code": "/[/ { print }\n",
              "diagnostic": "nonterminated character class"
            }
          ],
          "scenarios": [
            {
              "name": "percent remains data",
              "stdin": "100% blue\n",
              "stdout": "0 | 1 | 100% green\n",
              "exit": 0
            }
          ],
          "runner": "awk",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "awk 20200816; macOS 27.0.1 arm64; LC_ALL=C",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "awk validation.json; exact stdout, status, input preservation and separate parser/scenario checks"
          }
        },
        {
          "id": "awk-function",
          "title": "awk 08 - Function local state",
          "filename": "awk 08 Function local state.awk",
          "code": "function label(text, prefix) {\n    prefix = \"item\"\n    return prefix \": \" text\n}\nBEGIN {\n    prefix = \"outer\"\n    print label(\"read\")\n    print prefix\n}\n",
          "expected_output": "item: read\nouter",
          "expected_stdout": "item: read\nouter\n",
          "explanation": "The omitted trailing prefix parameter is local to this call; it does not modify the global prefix. Scalar arguments are passed by value.",
          "exercise": "",
          "files": [],
          "stdin_file": null,
          "invocation": "LC_ALL=C /usr/bin/awk -f \"awk 08 Function local state.awk\" < /dev/null",
          "arguments": [],
          "checks": [],
          "negative": [
            {
              "code": "function broken( { return 1 }\n",
              "diagnostic": "syntax error"
            }
          ],
          "scenarios": [],
          "runner": "awk",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "awk 20200816; macOS 27.0.1 arm64; LC_ALL=C",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "awk validation.json; exact stdout, status, input preservation and separate parser/scenario checks"
          }
        },
        {
          "id": "awk-flow",
          "title": "awk 09 - Skip and finish",
          "filename": "awk 09 Skip and finish.awk",
          "code": "/^#/ { next }\nNF == 0 { next }\n{ kept++ }\nEND { printf \"Kept: %d\\n\", kept }\n",
          "expected_output": "Kept: 2",
          "expected_stdout": "Kept: 2\n",
          "explanation": "Only a hash at the beginning marks a comment; a whitespace-only record has NF zero. This exact convention is deliberate.",
          "exercise": "",
          "files": [
            {
              "name": "awk 09 Skip and finish Input.txt",
              "code": "# note\nread\n\ncode\n"
            }
          ],
          "stdin_file": "awk 09 Skip and finish Input.txt",
          "invocation": "LC_ALL=C /usr/bin/awk -f \"awk 09 Skip and finish.awk\" < \"awk 09 Skip and finish Input.txt\"",
          "arguments": [],
          "checks": [],
          "negative": [],
          "scenarios": [
            {
              "name": "leading space is not comment",
              "stdin": " # text\n",
              "stdout": "Kept: 1\n",
              "exit": 0
            }
          ],
          "runner": "awk",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "awk 20200816; macOS 27.0.1 arm64; LC_ALL=C",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "awk validation.json; exact stdout, status, input preservation and separate parser/scenario checks"
          }
        },
        {
          "id": "awk-exercise-a",
          "title": "awk exercise A - Bounded mean",
          "filename": "awk exercise A Bounded mean.awk",
          "code": "function valid(s) {\n    return s ~ /^[0-9]+$/ && length(s) <= 3 && (s + 0) <= 120\n}\n{\n    if (NF != 1 || !valid($1) || NR > 10) {\n        print \"rejected\"; failed = 1; exit 2\n    }\n    sum += $1; count++\n}\nEND {\n    if (!failed && count) printf \"Mean: %.1f\\n\", sum / count\n    else if (!failed) print \"Mean: none\"\n}\n",
          "expected_output": "Mean: 20.0",
          "expected_stdout": "Mean: 20.0\n",
          "explanation": "The count guard prevents division by zero. Accepted inputs contain at most ten bounded values; formatting follows LC_ALL=C.",
          "exercise": "Compute a mean for one to ten values in 0..120, report none for empty input, and reject malformed records.",
          "files": [
            {
              "name": "awk exercise A Bounded mean Input.txt",
              "code": "10\n20\n30\n"
            }
          ],
          "stdin_file": "awk exercise A Bounded mean Input.txt",
          "invocation": "LC_ALL=C /usr/bin/awk -f \"awk exercise A Bounded mean.awk\" < \"awk exercise A Bounded mean Input.txt\"",
          "arguments": [],
          "checks": [],
          "negative": [],
          "scenarios": [
            {
              "name": "empty mean",
              "stdin": "",
              "stdout": "Mean: none\n",
              "exit": 0
            },
            {
              "name": "zero mean",
              "stdin": "0\n",
              "stdout": "Mean: 0.0\n",
              "exit": 0
            },
            {
              "name": "reject decimal",
              "stdin": "1.5\n",
              "stdout": "rejected\n",
              "exit": 2
            }
          ],
          "runner": "awk",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "awk 20200816; macOS 27.0.1 arm64; LC_ALL=C",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "awk validation.json; exact stdout, status, input preservation and separate parser/scenario checks"
          }
        },
        {
          "id": "awk-exercise-b",
          "title": "awk exercise B - Stable unique lines",
          "filename": "awk exercise B Stable unique lines.awk",
          "code": "!($0 in seen) { seen[$0] = 1; print $0 }\n",
          "expected_output": "read\ncode\nrest",
          "expected_stdout": "read\ncode\nrest\n",
          "explanation": "The entire line is the key. Blank lines are valid data here and appear once; order follows input. The corpus is tiny, so unbounded memory growth is not addressed.",
          "exercise": "Print each distinct whole line once, preserving its first occurrence.",
          "files": [
            {
              "name": "awk exercise B Stable unique lines Input.txt",
              "code": "read\ncode\nread\nrest\n"
            }
          ],
          "stdin_file": "awk exercise B Stable unique lines Input.txt",
          "invocation": "LC_ALL=C /usr/bin/awk -f \"awk exercise B Stable unique lines.awk\" < \"awk exercise B Stable unique lines Input.txt\"",
          "arguments": [],
          "checks": [],
          "negative": [],
          "scenarios": [
            {
              "name": "blank and whitespace distinct",
              "stdin": "\n \n\n \n",
              "stdout": "\n \n",
              "exit": 0
            }
          ],
          "runner": "awk",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "awk 20200816; macOS 27.0.1 arm64; LC_ALL=C",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "awk validation.json; exact stdout, status, input preservation and separate parser/scenario checks"
          }
        },
        {
          "id": "awk-exercise-c",
          "title": "awk exercise C - Observable assertions",
          "filename": "awk exercise C Observable assertions.awk",
          "code": "function valid(s) {\n    return s ~ /^[0-9]+$/ && length(s) <= 3 && (s + 0) <= 120\n}\nfunction check(actual, expected) {\n    if (actual != expected) { print \"test failed\"; exit 1 }\n    passed++\n}\nBEGIN {\n    check(valid(\"0\"), 1)\n    check(valid(\"120\"), 1)\n    check(valid(\"121\"), 0)\n    check(valid(\"12x\"), 0)\n    printf \"Assertions: %d passed\\n\", passed\n}\n",
          "expected_output": "Assertions: 4 passed",
          "expected_stdout": "Assertions: 4 passed\n",
          "explanation": "The four checks run inside BEGIN. A mismatch exits nonzero before the final success line. This is a small observable test example, not a complete framework.",
          "exercise": "Write checks for zero, upper bound, out-of-range input and numeric-prefix text.",
          "files": [],
          "stdin_file": null,
          "invocation": "LC_ALL=C /usr/bin/awk -f \"awk exercise C Observable assertions.awk\" < /dev/null",
          "arguments": [],
          "checks": [],
          "negative": [],
          "scenarios": [],
          "runner": "awk",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "awk 20200816; macOS 27.0.1 arm64; LC_ALL=C",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "awk validation.json; exact stdout, status, input preservation and separate parser/scenario checks"
          }
        }
      ],
      "support_files": [
        {
          "name": "Run instructions.txt",
          "code": "Use the exact invocation beside each example. Export its .awk script and input companion into a new practice folder; LC_ALL=C pins byte-oriented ASCII behavior. /usr/bin/awk --version reports 20200816. Current upstream awk has features absent here; no --csv, GNU awk sorting functions or whole-POSIX conformance is claimed. All programs write stdout only. The browser exports text and never executes it. Do not interpolate untrusted text into an awk program; -v values also interpret backslash escapes and are not a raw-byte transport. Only fixed authored scripts and bounded toy inputs are tested.\n"
        }
      ],
      "rejection_label": "awk parser",
      "rejection_heading": "Expected parser rejections",
      "templates": [
        {
          "id": "build",
          "name": "Build a text transform",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Provide the fixed script, separate input file, exact invocation, output and locale assumptions. Separate predicted behavior from executed evidence."
        },
        {
          "id": "debug",
          "name": "Debug a reproducible stream",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Reduce the input and distinguish parser errors, no matches, wrong output and process failure. Separate predicted behavior from executed evidence."
        },
        {
          "id": "test",
          "name": "Test boundaries and semantics",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Include empty input, missing fields, literal punctuation, malformed records and ordering; specify exit status. Separate predicted behavior from executed evidence."
        },
        {
          "id": "refactor",
          "name": "Refactor without changing output",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Preserve bytes, line order, range behavior and failure policy; show regression cases. Separate predicted behavior from executed evidence."
        },
        {
          "id": "document",
          "name": "Document the input contract",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. State record layout, delimiters, numeric limits, escaping layers, locale, side effects and implementation scope. Separate predicted behavior from executed evidence."
        },
        {
          "id": "explain",
          "name": "Explain with an exercise",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Walk through one record or editing cycle, predict the result and offer a separate exercise solution. Separate predicted behavior from executed evidence."
        }
      ],
      "test_summary": {
        "result": "passed",
        "tested_on": "2026-10-26",
        "runtime": "awk 20200816; macOS 27.0.1 arm64; LC_ALL=C",
        "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
        "assertion_count": 145,
        "example_count": 12,
        "accepted_executions": 12,
        "expected_parser_rejections": 4,
        "scenario_invocations": 17,
        "expected_contract_failures": 4,
        "embedded_cases": 4,
        "exercise_output_cases": 0,
        "binary_sha256": "3dc6dc8f94de3d1597645e1da608a0b097bbfd186a793ab5c4a63ef417a2f072",
        "locale": "C",
        "limits": [
          "Only the installed macOS arm64 implementations were tested.",
          "LC_ALL=C and bounded authored ASCII input; no Unicode or GNU-tool conformance claim.",
          "Parser rejection, contract rejection and successful execution are separate categories.",
          "No files changed; scripts have no output-file, process-execution, network or in-place-edit operations. Temporary directories and resource limits do not sandbox arbitrary scripts."
        ]
      }
    },
    {
      "id": "sed-foundations",
      "title": "sed Foundations",
      "version": "0.10.0",
      "status": "tested",
      "entry_ids": [
        "sed"
      ],
      "languages": [
        "sed"
      ],
      "default_goal": "Transform a bounded authored text stream with explicit expected output.",
      "default_runtime": "macOS /usr/bin/sed; macOS 27.0.1 arm64; LC_ALL=C",
      "default_constraints": "LC_ALL=C; tiny authored text only; fixed trusted script; no system commands, file redirection inside the script, in-place editing, external input, network or installation.",
      "audience": "Learners comfortable saving plain text and invoking an installed command-line tool.",
      "estimated_practice": "4 to 6 hours.",
      "scope": "Addressed stream editing, BRE/ERE distinctions, substitution and escaping, ranges, branching, pattern/hold spaces and bounded multiline examples. No in-place editing, file-write commands, arbitrary scripts or general data parsing.",
      "runtime_note": "Use the exact invocation beside each example, including -n or -E where shown. Export the .sed script and input companion into a new practice folder. /usr/bin/sed is the macOS implementation; no independent version number is advertised, so the evidence pins OS and binary SHA-256. LC_ALL=C limits examples to ASCII byte behavior. Input files are read-only and outputs go to stdout. No -i/-I, w/r commands, executable extensions or arbitrary script interpolation are used. GNU sed behavior and complete POSIX conformance are not claimed. Empty output and exit zero can simply mean no match.",
      "lessons": [
        {
          "title": "The editing cycle",
          "text": "sed is a text-transformation language executed by a stream editor. Ordinarily it reads one line into pattern space, applies commands in order and prints the result. The terminating input newline is handled separately. -n suppresses default printing; p explicitly prints. A successful command can produce no output."
        },
        {
          "title": "Addresses choose records",
          "text": "A number selects a line, $ selects the last line, and a regex address selects matching pattern spaces. Two addresses select an inclusive range. For a regex second address, matching starts on a later line than the opening match. If the closing marker never arrives, the range continues to end of input."
        },
        {
          "title": "Regex mode must be explicit",
          "text": "This implementation defaults to basic regular expressions; -E selects extended syntax. Parentheses and + have different roles between modes. These fixed patterns use ASCII and LC_ALL=C. Shell quoting, sed delimiters, regex escapes and replacement escapes are different layers; combining them carelessly changes the program."
        },
        {
          "title": "Substitution and literal data",
          "text": "s/pattern/replacement/ replaces the first match; g requests all matches. An ampersand in replacement inserts the matched text, and escaped backreferences refer to capture groups. Escape an ampersand to insert it literally. Never build a sed program by concatenating untrusted search or replacement text."
        },
        {
          "title": "Flow and output",
          "text": "d removes pattern space and starts the next cycle. b branches to a label or the script end; t branches when a substitution has succeeded since the relevant reset. Branches in this pack are forward-only so no unbounded loop is introduced. Duplicated output often means both p and default printing were enabled."
        },
        {
          "title": "Hold space is separate state",
          "text": "h copies pattern space to hold space, g copies it back, and x exchanges them. G appends a newline and hold space. The fixed-label example keeps only one small value and does not accumulate an entire input file. State persists between cycles within one process."
        },
        {
          "title": "Multiline work stays bounded",
          "text": "N appends the next input line with an embedded newline. P prints only the first segment while D can restart with remaining segments. This pack demonstrates only fixed two-line combinations, guarded at the last line. A parser for CSV, JSON or nested structured text belongs elsewhere."
        },
        {
          "title": "Safety and implementation limits",
          "text": "No example edits its input file or uses file-write commands. -n is an output option, not a sandbox: sed scripts can have file side effects on implementations supporting such commands. Error diagnostics are implementation-specific. Resource limits and fresh directories constrain these authored tests, not arbitrary submitted scripts."
        }
      ],
      "reference": [
        {
          "area": "Run",
          "syntax": "sed -f script.sed",
          "meaning": "Read commands from a fixed script file."
        },
        {
          "area": "Printing",
          "syntax": "-n / p",
          "meaning": "Suppress automatic output; print explicitly."
        },
        {
          "area": "Address",
          "syntax": "2 / $ / /pattern/",
          "meaning": "Select a line, last line or match."
        },
        {
          "area": "Range",
          "syntax": "/BEGIN/,/END/",
          "meaning": "Inclusive range with stated reopening behavior."
        },
        {
          "area": "Delete",
          "syntax": "d",
          "meaning": "Start a new cycle without this pattern space."
        },
        {
          "area": "Substitute",
          "syntax": "s/a/b/ / s/a/b/g",
          "meaning": "First match or every match."
        },
        {
          "area": "Matched text",
          "syntax": "& in replacement",
          "meaning": "Insert the whole match; escape for a literal &."
        },
        {
          "area": "BRE group",
          "syntax": "\\(group\\) / \\1",
          "meaning": "Capture and reference in default mode."
        },
        {
          "area": "ERE mode",
          "syntax": "-E / (group) / +",
          "meaning": "Extended syntax; pin the invocation."
        },
        {
          "area": "Command group",
          "syntax": "address { ... }",
          "meaning": "Apply a group only to selected pattern spaces."
        },
        {
          "area": "Copy state",
          "syntax": "h / g",
          "meaning": "Copy pattern to hold space or back."
        },
        {
          "area": "Swap state",
          "syntax": "x",
          "meaning": "Exchange pattern and hold space."
        },
        {
          "area": "Append state",
          "syntax": "G",
          "meaning": "Append newline plus hold space."
        },
        {
          "area": "Next line",
          "syntax": "N",
          "meaning": "Append one line with an embedded newline."
        },
        {
          "area": "Branch",
          "syntax": "b label / :label",
          "meaning": "Jump forward in these bounded examples."
        },
        {
          "area": "Conditional branch",
          "syntax": "t label",
          "meaning": "Branch on a successful substitution since reset."
        }
      ],
      "examples": [
        {
          "id": "sed-select",
          "title": "sed 01 - Select lines",
          "filename": "sed 01 Select lines.sed",
          "code": "2p\n$p\n",
          "expected_output": "beta\ngamma",
          "expected_stdout": "beta\ngamma\n",
          "explanation": "-n makes output come only from p. With two input lines, line 2 also satisfies $, so it prints twice; commands are independent.",
          "exercise": "",
          "files": [
            {
              "name": "sed 01 Select lines Input.txt",
              "code": "alpha\nbeta\ngamma\n"
            }
          ],
          "stdin_file": "sed 01 Select lines Input.txt",
          "invocation": "LC_ALL=C /usr/bin/sed -n -f \"sed 01 Select lines.sed\" < \"sed 01 Select lines Input.txt\"",
          "arguments": [
            "-n"
          ],
          "checks": [],
          "negative": [
            {
              "code": "s/alpha/beta\n",
              "diagnostic": "unescaped newline inside substitute pattern"
            }
          ],
          "scenarios": [
            {
              "name": "empty stream",
              "stdin": "",
              "stdout": "",
              "exit": 0
            },
            {
              "name": "overlapping addresses",
              "stdin": "alpha\nbeta\n",
              "stdout": "beta\nbeta\n",
              "exit": 0
            }
          ],
          "runner": "sed",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "macOS /usr/bin/sed; macOS 27.0.1 arm64; LC_ALL=C",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "sed validation.json; exact stdout, status, input preservation and separate parser/scenario checks"
          }
        },
        {
          "id": "sed-delete",
          "title": "sed 02 - Delete addressed lines",
          "filename": "sed 02 Delete addressed lines.sed",
          "code": "/^#/d\n/^[[:space:]]*$/d\n",
          "expected_output": "read\ncode",
          "expected_stdout": "read\ncode\n",
          "explanation": "Deletion changes only output. A leading-space hash is retained because the comment rule requires # in column one.",
          "exercise": "",
          "files": [
            {
              "name": "sed 02 Delete addressed lines Input.txt",
              "code": "\n# note\nread\n  \ncode\n"
            }
          ],
          "stdin_file": "sed 02 Delete addressed lines Input.txt",
          "invocation": "LC_ALL=C /usr/bin/sed -f \"sed 02 Delete addressed lines.sed\" < \"sed 02 Delete addressed lines Input.txt\"",
          "arguments": [],
          "checks": [],
          "negative": [],
          "scenarios": [
            {
              "name": "indented hash remains",
              "stdin": " # note\n",
              "stdout": " # note\n",
              "exit": 0
            }
          ],
          "runner": "sed",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "macOS /usr/bin/sed; macOS 27.0.1 arm64; LC_ALL=C",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "sed validation.json; exact stdout, status, input preservation and separate parser/scenario checks"
          }
        },
        {
          "id": "sed-sub",
          "title": "sed 03 - First and global replacement",
          "filename": "sed 03 First and global replacement.sed",
          "code": "s/blue/green/\ns/red/orange/g\n",
          "expected_output": "green blue orange orange",
          "expected_stdout": "green blue orange orange\n",
          "explanation": "Commands run in order on the same pattern space. The first substitution changes one blue; the second changes every red.",
          "exercise": "",
          "files": [
            {
              "name": "sed 03 First and global replacement Input.txt",
              "code": "blue blue red red\n"
            }
          ],
          "stdin_file": "sed 03 First and global replacement Input.txt",
          "invocation": "LC_ALL=C /usr/bin/sed -f \"sed 03 First and global replacement.sed\" < \"sed 03 First and global replacement Input.txt\"",
          "arguments": [],
          "checks": [],
          "negative": [],
          "scenarios": [
            {
              "name": "no match succeeds unchanged",
              "stdin": "plain\n",
              "stdout": "plain\n",
              "exit": 0
            }
          ],
          "runner": "sed",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "macOS /usr/bin/sed; macOS 27.0.1 arm64; LC_ALL=C",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "sed validation.json; exact stdout, status, input preservation and separate parser/scenario checks"
          }
        },
        {
          "id": "sed-escape",
          "title": "sed 04 - Matched text and literal ampersand",
          "filename": "sed 04 Matched text and literal ampersand.sed",
          "code": "s/[0-9][0-9]*/[&]/\ns/PLUS/\\&/g\n",
          "expected_output": "task [25] & 5",
          "expected_stdout": "task [25] & 5\n",
          "explanation": "The first command wraps only the first digit run in brackets using &. The second command inserts a literal ampersand. The pattern and replacement are fixed authored syntax.",
          "exercise": "",
          "files": [
            {
              "name": "sed 04 Matched text and literal ampersand Input.txt",
              "code": "task 25 PLUS 5\n"
            }
          ],
          "stdin_file": "sed 04 Matched text and literal ampersand Input.txt",
          "invocation": "LC_ALL=C /usr/bin/sed -f \"sed 04 Matched text and literal ampersand.sed\" < \"sed 04 Matched text and literal ampersand Input.txt\"",
          "arguments": [],
          "checks": [],
          "negative": [],
          "scenarios": [
            {
              "name": "literal punctuation",
              "stdin": "PLUS 0\n",
              "stdout": "& [0]\n",
              "exit": 0
            }
          ],
          "runner": "sed",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "macOS /usr/bin/sed; macOS 27.0.1 arm64; LC_ALL=C",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "sed validation.json; exact stdout, status, input preservation and separate parser/scenario checks"
          }
        },
        {
          "id": "sed-bre",
          "title": "sed 05 - Basic capture groups",
          "filename": "sed 05 Basic capture groups.sed",
          "code": "s/^\\([a-z][a-z]*\\):\\([0-9][0-9]*\\)$/\\2 minutes for \\1/\n",
          "expected_output": "20 minutes for read\n40 minutes for code\ninvalid",
          "expected_stdout": "20 minutes for read\n40 minutes for code\ninvalid\n",
          "explanation": "Default BRE uses escaped grouping parentheses. Anchors require the full toy record; unmatched lines pass through unchanged.",
          "exercise": "",
          "files": [
            {
              "name": "sed 05 Basic capture groups Input.txt",
              "code": "read:20\ncode:40\ninvalid\n"
            }
          ],
          "stdin_file": "sed 05 Basic capture groups Input.txt",
          "invocation": "LC_ALL=C /usr/bin/sed -f \"sed 05 Basic capture groups.sed\" < \"sed 05 Basic capture groups Input.txt\"",
          "arguments": [],
          "checks": [],
          "negative": [
            {
              "code": "/[/p\n",
              "diagnostic": "unbalanced brackets"
            }
          ],
          "scenarios": [
            {
              "name": "reject extra field by no match",
              "stdin": "read:20:extra\n",
              "stdout": "read:20:extra\n",
              "exit": 0
            }
          ],
          "runner": "sed",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "macOS /usr/bin/sed; macOS 27.0.1 arm64; LC_ALL=C",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "sed validation.json; exact stdout, status, input preservation and separate parser/scenario checks"
          }
        },
        {
          "id": "sed-ere",
          "title": "sed 06 - Extended capture groups",
          "filename": "sed 06 Extended capture groups.sed",
          "code": "s/^([a-z]+):([0-9]+)$/\\2 minutes for \\1/\n",
          "expected_output": "20 minutes for read\n40 minutes for code",
          "expected_stdout": "20 minutes for read\n40 minutes for code\n",
          "explanation": "-E enables the unescaped parentheses and + syntax used here. The tested replacement backreference syntax remains a backslash plus digit.",
          "exercise": "",
          "files": [
            {
              "name": "sed 06 Extended capture groups Input.txt",
              "code": "read:20\ncode:40\n"
            }
          ],
          "stdin_file": "sed 06 Extended capture groups Input.txt",
          "invocation": "LC_ALL=C /usr/bin/sed -E -f \"sed 06 Extended capture groups.sed\" < \"sed 06 Extended capture groups Input.txt\"",
          "arguments": [
            "-E"
          ],
          "checks": [],
          "negative": [],
          "scenarios": [
            {
              "name": "empty stream",
              "stdin": "",
              "stdout": "",
              "exit": 0
            }
          ],
          "runner": "sed",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "macOS /usr/bin/sed; macOS 27.0.1 arm64; LC_ALL=C",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "sed validation.json; exact stdout, status, input preservation and separate parser/scenario checks"
          }
        },
        {
          "id": "sed-range",
          "title": "sed 07 - Inclusive marker range",
          "filename": "sed 07 Inclusive marker range.sed",
          "code": "/^BEGIN$/,/^END$/p\n",
          "expected_output": "BEGIN\nread\nEND",
          "expected_stdout": "BEGIN\nread\nEND\n",
          "explanation": "The matching marker lines are included. -n prevents outside lines from being automatically printed. Missing END keeps the range open to EOF.",
          "exercise": "",
          "files": [
            {
              "name": "sed 07 Inclusive marker range Input.txt",
              "code": "skip\nBEGIN\nread\nEND\nskip\n"
            }
          ],
          "stdin_file": "sed 07 Inclusive marker range Input.txt",
          "invocation": "LC_ALL=C /usr/bin/sed -n -f \"sed 07 Inclusive marker range.sed\" < \"sed 07 Inclusive marker range Input.txt\"",
          "arguments": [
            "-n"
          ],
          "checks": [],
          "negative": [
            {
              "code": "b absent\n",
              "diagnostic": "undefined label"
            }
          ],
          "scenarios": [
            {
              "name": "missing end marker",
              "stdin": "BEGIN\nread\n",
              "stdout": "BEGIN\nread\n",
              "exit": 0
            },
            {
              "name": "two ranges",
              "stdin": "BEGIN\na\nEND\nx\nBEGIN\nb\nEND\n",
              "stdout": "BEGIN\na\nEND\nBEGIN\nb\nEND\n",
              "exit": 0
            }
          ],
          "runner": "sed",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "macOS /usr/bin/sed; macOS 27.0.1 arm64; LC_ALL=C",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "sed validation.json; exact stdout, status, input preservation and separate parser/scenario checks"
          }
        },
        {
          "id": "sed-hold",
          "title": "sed 08 - Remember a fixed label",
          "filename": "sed 08 Remember a fixed label.sed",
          "code": "1 {\nh\nd\n}\nG\ns/\\n/ | /\n",
          "expected_output": "read | Study\ncode | Study",
          "expected_stdout": "read | Study\ncode | Study\n",
          "explanation": "The first line is copied into hold space and not printed. Each later line appends that label. This holds one bounded label rather than accumulating the stream.",
          "exercise": "",
          "files": [
            {
              "name": "sed 08 Remember a fixed label Input.txt",
              "code": "Study\nread\ncode\n"
            }
          ],
          "stdin_file": "sed 08 Remember a fixed label Input.txt",
          "invocation": "LC_ALL=C /usr/bin/sed -f \"sed 08 Remember a fixed label.sed\" < \"sed 08 Remember a fixed label Input.txt\"",
          "arguments": [],
          "checks": [],
          "negative": [],
          "scenarios": [
            {
              "name": "only label",
              "stdin": "Study\n",
              "stdout": "",
              "exit": 0
            },
            {
              "name": "empty label",
              "stdin": "\nread\n",
              "stdout": "read | \n",
              "exit": 0
            }
          ],
          "runner": "sed",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "macOS /usr/bin/sed; macOS 27.0.1 arm64; LC_ALL=C",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "sed validation.json; exact stdout, status, input preservation and separate parser/scenario checks"
          }
        },
        {
          "id": "sed-pairs",
          "title": "sed 09 - Join two-line groups",
          "filename": "sed 09 Join two-line groups.sed",
          "code": "$!N\ns/\\n/ | /\n",
          "expected_output": "read | 20\ncode | 40",
          "expected_stdout": "read | 20\ncode | 40\n",
          "explanation": "N is skipped on the final unpaired line. This pairs records, not quoted CSV rows or arbitrary multiline structures.",
          "exercise": "",
          "files": [
            {
              "name": "sed 09 Join two-line groups Input.txt",
              "code": "read\n20\ncode\n40\n"
            }
          ],
          "stdin_file": "sed 09 Join two-line groups Input.txt",
          "invocation": "LC_ALL=C /usr/bin/sed -f \"sed 09 Join two-line groups.sed\" < \"sed 09 Join two-line groups Input.txt\"",
          "arguments": [],
          "checks": [],
          "negative": [
            {
              "code": "q garbage\n",
              "diagnostic": "extra characters"
            }
          ],
          "scenarios": [
            {
              "name": "odd final line",
              "stdin": "read\n20\nrest\n",
              "stdout": "read | 20\nrest\n",
              "exit": 0
            },
            {
              "name": "single line",
              "stdin": "read\n",
              "stdout": "read\n",
              "exit": 0
            }
          ],
          "runner": "sed",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "macOS /usr/bin/sed; macOS 27.0.1 arm64; LC_ALL=C",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "sed validation.json; exact stdout, status, input preservation and separate parser/scenario checks"
          }
        },
        {
          "id": "sed-exercise-a",
          "title": "sed exercise A - Bounded forward branch",
          "filename": "sed exercise A Bounded forward branch.sed",
          "code": "s/^read$/READ/\nt done\ns/^code$/CODE/\n:done\n",
          "expected_output": "READ\nCODE\nrest",
          "expected_stdout": "READ\nCODE\nrest\n",
          "explanation": "A successful first substitution branches forward to done. Every path reaches the end without looping; the next record starts a fresh cycle.",
          "exercise": "Uppercase exactly read or code, leave other whole lines unchanged, and use a forward branch.",
          "files": [
            {
              "name": "sed exercise A Bounded forward branch Input.txt",
              "code": "read\ncode\nrest\n"
            }
          ],
          "stdin_file": "sed exercise A Bounded forward branch Input.txt",
          "invocation": "LC_ALL=C /usr/bin/sed -f \"sed exercise A Bounded forward branch.sed\" < \"sed exercise A Bounded forward branch Input.txt\"",
          "arguments": [],
          "checks": [],
          "negative": [],
          "scenarios": [
            {
              "name": "exact match only",
              "stdin": "reader\ncode more\n",
              "stdout": "reader\ncode more\n",
              "exit": 0
            }
          ],
          "runner": "sed",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "macOS /usr/bin/sed; macOS 27.0.1 arm64; LC_ALL=C",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "sed validation.json; exact stdout, status, input preservation and separate parser/scenario checks"
          }
        },
        {
          "id": "sed-exercise-b",
          "title": "sed exercise B - Trim and select",
          "filename": "sed exercise B Trim and select.sed",
          "code": "s/^[[:space:]]*//\ns/[[:space:]]*$//\n/^task:/ {\ns/^task:[[:space:]]*//\np\n}\n",
          "expected_output": "read\ncode",
          "expected_stdout": "read\ncode\n",
          "explanation": "-n plus the addressed block prints selected lines once. Trimming here follows C-locale whitespace, not a Unicode normalization policy.",
          "exercise": "Trim line edges, select lines beginning task:, remove that prefix and print the remaining text once.",
          "files": [
            {
              "name": "sed exercise B Trim and select Input.txt",
              "code": "  task: read  \nignore\n\ttask: code\t\n"
            }
          ],
          "stdin_file": "sed exercise B Trim and select Input.txt",
          "invocation": "LC_ALL=C /usr/bin/sed -n -f \"sed exercise B Trim and select.sed\" < \"sed exercise B Trim and select Input.txt\"",
          "arguments": [
            "-n"
          ],
          "checks": [],
          "negative": [],
          "scenarios": [
            {
              "name": "empty selected payload",
              "stdin": " task: \n",
              "stdout": "\n",
              "exit": 0
            },
            {
              "name": "unmatched record",
              "stdin": "other: read\n",
              "stdout": "",
              "exit": 0
            }
          ],
          "runner": "sed",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "macOS /usr/bin/sed; macOS 27.0.1 arm64; LC_ALL=C",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "sed validation.json; exact stdout, status, input preservation and separate parser/scenario checks"
          }
        },
        {
          "id": "sed-exercise-c",
          "title": "sed exercise C - Four observable cases",
          "filename": "sed exercise C Four observable cases.sed",
          "code": "s/^item=\\([0-9][0-9]*\\)$/value:\\1/\n",
          "expected_output": "value:0\nvalue:120\nitem=\nitem=12x",
          "expected_stdout": "value:0\nvalue:120\nitem=\nitem=12x\n",
          "explanation": "These are four input/output cases, not four embedded assertions inside sed. The external harness checks exact output. The regex accepts digit strings of any length; it does not enforce the awk pack numeric range.",
          "exercise": "Rewrite only complete item=<digits> records. Predict zero, multiple digits, empty value and numeric-prefix text.",
          "files": [
            {
              "name": "sed exercise C Four observable cases Input.txt",
              "code": "item=0\nitem=120\nitem=\nitem=12x\n"
            }
          ],
          "stdin_file": "sed exercise C Four observable cases Input.txt",
          "invocation": "LC_ALL=C /usr/bin/sed -f \"sed exercise C Four observable cases.sed\" < \"sed exercise C Four observable cases Input.txt\"",
          "arguments": [],
          "checks": [],
          "negative": [],
          "scenarios": [
            {
              "name": "leading zero preserved",
              "stdin": "item=001\n",
              "stdout": "value:001\n",
              "exit": 0
            }
          ],
          "runner": "sed",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "macOS /usr/bin/sed; macOS 27.0.1 arm64; LC_ALL=C",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "sed validation.json; exact stdout, status, input preservation and separate parser/scenario checks"
          }
        }
      ],
      "support_files": [
        {
          "name": "Run instructions.txt",
          "code": "Use the exact invocation beside each example, including -n or -E where shown. Export the .sed script and input companion into a new practice folder. /usr/bin/sed is the macOS implementation; no independent version number is advertised, so the evidence pins OS and binary SHA-256. LC_ALL=C limits examples to ASCII byte behavior. Input files are read-only and outputs go to stdout. No -i/-I, w/r commands, executable extensions or arbitrary script interpolation are used. GNU sed behavior and complete POSIX conformance are not claimed. Empty output and exit zero can simply mean no match.\n"
        }
      ],
      "rejection_label": "sed parser",
      "rejection_heading": "Expected parser rejections",
      "templates": [
        {
          "id": "build",
          "name": "Build a text transform",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Provide the fixed script, separate input file, exact invocation, output and locale assumptions. Separate predicted behavior from executed evidence."
        },
        {
          "id": "debug",
          "name": "Debug a reproducible stream",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Reduce the input and distinguish parser errors, no matches, wrong output and process failure. Separate predicted behavior from executed evidence."
        },
        {
          "id": "test",
          "name": "Test boundaries and semantics",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Include empty input, missing fields, literal punctuation, malformed records and ordering; specify exit status. Separate predicted behavior from executed evidence."
        },
        {
          "id": "refactor",
          "name": "Refactor without changing output",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Preserve bytes, line order, range behavior and failure policy; show regression cases. Separate predicted behavior from executed evidence."
        },
        {
          "id": "document",
          "name": "Document the input contract",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. State record layout, delimiters, numeric limits, escaping layers, locale, side effects and implementation scope. Separate predicted behavior from executed evidence."
        },
        {
          "id": "explain",
          "name": "Explain with an exercise",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Walk through one record or editing cycle, predict the result and offer a separate exercise solution. Separate predicted behavior from executed evidence."
        }
      ],
      "test_summary": {
        "result": "passed",
        "tested_on": "2026-10-26",
        "runtime": "macOS /usr/bin/sed; macOS 27.0.1 arm64; LC_ALL=C",
        "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
        "assertion_count": 145,
        "example_count": 12,
        "accepted_executions": 12,
        "expected_parser_rejections": 4,
        "scenario_invocations": 17,
        "expected_contract_failures": 0,
        "embedded_cases": 0,
        "exercise_output_cases": 4,
        "binary_sha256": "bb1cb46089269d91ba83ef291364e6e7121e7b27f12037629fe8daaf5238a559",
        "locale": "C",
        "limits": [
          "Only the installed macOS arm64 implementations were tested.",
          "LC_ALL=C and bounded authored ASCII input; no Unicode or GNU-tool conformance claim.",
          "Parser rejection, contract rejection and successful execution are separate categories.",
          "No files changed; scripts have no output-file, process-execution, network or in-place-edit operations. Temporary directories and resource limits do not sandbox arbitrary scripts."
        ]
      }
    },
    {
      "id": "jq-foundations",
      "title": "jq Foundations",
      "version": "0.10.0",
      "status": "tested",
      "entry_ids": [
        "jq"
      ],
      "languages": [
        "jq"
      ],
      "default_goal": "Transform a small structured document with an explicit input and output contract.",
      "default_runtime": "jq-1.7.1-apple; macOS 27.0.1 arm64",
      "default_constraints": "Fixed authored input and trusted program only; no private data, remote documents, imports, extensions, credentials, generated program text or installation.",
      "audience": "Learners comfortable saving plain text and invoking an installed command-line tool.",
      "estimated_practice": "4 to 6 hours.",
      "scope": "JSON query language: filter streams, projection, selection, null/presence, data parameters, grouping, aggregation, updates and explicit validation. This is beyond parsing JSON; no remote data or schema conformance claim.",
      "runtime_note": "Export the fixed .jq program and companion input. /usr/bin/jq --version reports jq-1.7.1-apple; the upstream 1.7 manual is context, not proof of every Apple-build behavior. -c makes JSON output compact. -r would remove JSON quoting from string outputs and is not used here. Programs are trusted and inputs tiny. Use --arg or --argjson for data, never concatenate data into program text. No modules, environment access, external files or network commands are used. The HTML only exports text. -e result statuses and deliberate compile/runtime errors are separate outcomes. Numeric examples use small finite integers; exact large-integer or financial arithmetic is outside scope.",
      "lessons": [
        {
          "title": "A filter may produce many results",
          "text": "A jq filter consumes a JSON value and can emit zero, one or many values. .items[] emits each array element; enclosing that stream in brackets collects it. A pipe feeds every result to the next filter. Know whether the intended output is one array or several JSON texts."
        },
        {
          "title": "Choose fields and keep their types",
          "text": "Object projection constructs a new object. Accessing an absent object member produces null, which differs from a false value or zero. has tests whether a member exists. A field lookup alone does not validate the shape of its parent object."
        },
        {
          "title": "Selection follows a contract",
          "text": "select keeps or discards the current value; map runs its filter for each array element and collects every emitted result. The selection and grouping examples assume correctly typed records. Comparisons can order values of different types, so a threshold comparison alone is not numeric validation."
        },
        {
          "title": "Missing, null and false need a policy",
          "text": "The // fallback treats both null and false as absent results. It does not replace zero or an empty string. Use an explicit condition when false must be preserved, and has when missing must be distinguished from a present null."
        },
        {
          "title": "Pass data without constructing source",
          "text": "Keep the filter in a .jq file. --arg binds a string; --argjson parses a JSON value. They do not splice values into jq syntax. Shell quoting remains a separate layer. Malformed --argjson data is a command failure, not a filter compile error."
        },
        {
          "title": "Aggregation and order are deliberate",
          "text": "-s collects all input JSON texts into one array, so it is bounded here rather than advertised as a large-data technique. group_by sorts groups by the grouping key. reduce carries an explicit accumulator through a stream; duplicate keys need an intentional merge policy."
        },
        {
          "title": "Validate before calculation",
          "text": "The bounded total accepts an array of at most ten integral numeric values from zero through 120. It rejects strings, booleans and out-of-range values using error. An empty array has total zero. This small contract is not JSON Schema validation."
        },
        {
          "title": "Results and status are separate evidence",
          "text": "Without -e, no output can still be successful. With -e, false/null as the last result returns status 1 and no result returns 4. A compiler rejection and a runtime error are different. Test bytes, result count and status; never treat successful parsing as permission to execute arbitrary code."
        }
      ],
      "reference": [
        {
          "area": "Identity",
          "syntax": ".",
          "meaning": "Return the current input."
        },
        {
          "area": "Field",
          "syntax": ".task.name",
          "meaning": "Read an object member along a path."
        },
        {
          "area": "Iteration",
          "syntax": ".items[]",
          "meaning": "Emit each array element as a separate result."
        },
        {
          "area": "Collection",
          "syntax": "[filter]",
          "meaning": "Collect all results into one array."
        },
        {
          "area": "Projection",
          "syntax": "{name, minutes}",
          "meaning": "Construct an object from selected members."
        },
        {
          "area": "Selection",
          "syntax": "select(condition)",
          "meaning": "Keep the current value only when the condition is truthy."
        },
        {
          "area": "Mapping",
          "syntax": "map(filter)",
          "meaning": "Apply a filter across an array."
        },
        {
          "area": "Presence",
          "syntax": "has(\"enabled\")",
          "meaning": "Test whether an object member exists."
        },
        {
          "area": "Fallback",
          "syntax": "value // default",
          "meaning": "Fallback for null or false, not for zero."
        },
        {
          "area": "Parameters",
          "syntax": "--arg / --argjson",
          "meaning": "Pass a string or parsed JSON data value."
        },
        {
          "area": "Input collection",
          "syntax": "-s",
          "meaning": "Read all input JSON texts into one array."
        },
        {
          "area": "Grouping",
          "syntax": "group_by(.kind)",
          "meaning": "Group and order by the key."
        },
        {
          "area": "Reduction",
          "syntax": "reduce stream as $x (init; step)",
          "meaning": "Accumulate a stream with explicit state."
        },
        {
          "area": "Update",
          "syntax": "path |= filter",
          "meaning": "Return a value with the selected path transformed."
        },
        {
          "area": "Contract",
          "syntax": "type / floor / all / error",
          "meaning": "Check the small accepted domain and reject violations."
        },
        {
          "area": "Status",
          "syntax": "-e",
          "meaning": "Make false/null or no-result outcomes nonzero."
        }
      ],
      "examples": [
        {
          "id": "jq-projection",
          "title": "jq 01 - Project typed fields",
          "filename": "jq 01 Project typed fields.jq",
          "code": "{name: .task.name, minutes: .task.minutes, missing: .absent}\n",
          "expected_output": "{\"name\":\"read\",\"minutes\":20,\"missing\":null}",
          "expected_stdout": "{\"name\":\"read\",\"minutes\":20,\"missing\":null}\n",
          "explanation": "Projection retains the numeric type. A missing object member yields null.",
          "exercise": "",
          "files": [
            {
              "name": "jq 01 Project typed fields Input.json",
              "code": "{\"task\":{\"name\":\"read\",\"minutes\":20}}\n"
            }
          ],
          "stdin_file": "jq 01 Project typed fields Input.json",
          "invocation": "/usr/bin/jq -c -f 'jq 01 Project typed fields.jq' < 'jq 01 Project typed fields Input.json'",
          "arguments": [],
          "checks": [],
          "negative": [
            {
              "code": ".task |\n",
              "diagnostic": "compile error"
            }
          ],
          "scenarios": [
            {
              "name": "present null",
              "stdin": "{\"task\":{\"name\":null,\"minutes\":0}}",
              "stdout": "{\"name\":null,\"minutes\":0,\"missing\":null}\n",
              "exit": 0,
              "stderr_contains": ""
            }
          ],
          "runner": "jq",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "jq-1.7.1-apple; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "jq validation.json; exact output/status, unchanged input bytes and separate compiler/scenario outcomes"
          }
        },
        {
          "id": "jq-stream",
          "title": "jq 02 - Streams and arrays",
          "filename": "jq 02 Streams and arrays.jq",
          "code": ".items[] | .name\n",
          "expected_output": "\"read\"\n\"code\"",
          "expected_stdout": "\"read\"\n\"code\"\n",
          "explanation": "This produces two JSON string results, not one array. The companion must contain an items array.",
          "exercise": "",
          "files": [
            {
              "name": "jq 02 Streams and arrays Input.json",
              "code": "{\"items\":[{\"name\":\"read\"},{\"name\":\"code\"}]}"
            }
          ],
          "stdin_file": "jq 02 Streams and arrays Input.json",
          "invocation": "/usr/bin/jq -c -f 'jq 02 Streams and arrays.jq' < 'jq 02 Streams and arrays Input.json'",
          "arguments": [],
          "checks": [],
          "negative": [],
          "scenarios": [
            {
              "name": "empty result succeeds",
              "stdin": "{\"items\":[]}",
              "stdout": "",
              "exit": 0,
              "stderr_contains": ""
            },
            {
              "name": "empty result with exit status",
              "stdin": "{\"items\":[]}",
              "stdout": "",
              "exit": 4,
              "stderr_contains": "",
              "arguments": [
                "-e"
              ]
            },
            {
              "name": "no input text",
              "stdin": "",
              "stdout": "",
              "exit": 0,
              "stderr_contains": ""
            }
          ],
          "runner": "jq",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "jq-1.7.1-apple; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "jq validation.json; exact output/status, unchanged input bytes and separate compiler/scenario outcomes"
          }
        },
        {
          "id": "jq-select",
          "title": "jq 03 - Select records",
          "filename": "jq 03 Select records.jq",
          "code": "[.items[] | select(.minutes >= 20) | {name, minutes}]\n",
          "expected_output": "[{\"name\":\"read\",\"minutes\":20}]",
          "expected_stdout": "[{\"name\":\"read\",\"minutes\":20}]\n",
          "explanation": "The records already satisfy a small schema: name is text and minutes a small number. Selection is not a schema validator.",
          "exercise": "",
          "files": [
            {
              "name": "jq 03 Select records Input.json",
              "code": "{\"items\":[{\"name\":\"read\",\"minutes\":20},{\"name\":\"rest\",\"minutes\":5}]}"
            }
          ],
          "stdin_file": "jq 03 Select records Input.json",
          "invocation": "/usr/bin/jq -c -f 'jq 03 Select records.jq' < 'jq 03 Select records Input.json'",
          "arguments": [],
          "checks": [],
          "negative": [],
          "scenarios": [
            {
              "name": "no match array",
              "stdin": "{\"items\":[{\"name\":\"rest\",\"minutes\":0}]}",
              "stdout": "[]\n",
              "exit": 0,
              "stderr_contains": ""
            }
          ],
          "runner": "jq",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "jq-1.7.1-apple; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "jq validation.json; exact output/status, unchanged input bytes and separate compiler/scenario outcomes"
          }
        },
        {
          "id": "jq-presence",
          "title": "jq 04 - False null and missing",
          "filename": "jq 04 False null and missing.jq",
          "code": "{fallback: (.enabled // true), present: has(\"enabled\"), preserved: (if .enabled == null then true else .enabled end)}\n",
          "expected_output": "{\"fallback\":true,\"present\":true,\"preserved\":false}",
          "expected_stdout": "{\"fallback\":true,\"present\":true,\"preserved\":false}\n",
          "explanation": "The fallback replaces false. The explicit condition preserves it; has distinguishes a missing member from a present null.",
          "exercise": "",
          "files": [
            {
              "name": "jq 04 False null and missing Input.json",
              "code": "{\"enabled\":false}"
            }
          ],
          "stdin_file": "jq 04 False null and missing Input.json",
          "invocation": "/usr/bin/jq -c -f 'jq 04 False null and missing.jq' < 'jq 04 False null and missing Input.json'",
          "arguments": [],
          "checks": [],
          "negative": [],
          "scenarios": [
            {
              "name": "missing member",
              "stdin": "{}",
              "stdout": "{\"fallback\":true,\"present\":false,\"preserved\":true}\n",
              "exit": 0,
              "stderr_contains": ""
            },
            {
              "name": "zero is retained",
              "stdin": "{\"enabled\":0}",
              "stdout": "{\"fallback\":0,\"present\":true,\"preserved\":0}\n",
              "exit": 0,
              "stderr_contains": ""
            }
          ],
          "runner": "jq",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "jq-1.7.1-apple; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "jq validation.json; exact output/status, unchanged input bytes and separate compiler/scenario outcomes"
          }
        },
        {
          "id": "jq-parameters",
          "title": "jq 05 - Parameters remain data",
          "filename": "jq 05 Parameters remain data.jq",
          "code": "{label: $label, names: [.items[] | select(.minutes >= $minimum) | .name]}\n",
          "expected_output": "{\"label\":\"Study & learn\",\"names\":[\"read\"]}",
          "expected_stdout": "{\"label\":\"Study & learn\",\"names\":[\"read\"]}\n",
          "explanation": "--arg keeps punctuation in a string. --argjson passes a numeric threshold. The fixed filter is never constructed from either value.",
          "exercise": "",
          "files": [
            {
              "name": "jq 05 Parameters remain data Input.json",
              "code": "{\"items\":[{\"name\":\"read\",\"minutes\":20},{\"name\":\"rest\",\"minutes\":5}]}"
            }
          ],
          "stdin_file": "jq 05 Parameters remain data Input.json",
          "invocation": "/usr/bin/jq -c --arg label 'Study & learn' --argjson minimum 20 -f 'jq 05 Parameters remain data.jq' < 'jq 05 Parameters remain data Input.json'",
          "arguments": [
            "--arg",
            "label",
            "Study & learn",
            "--argjson",
            "minimum",
            "20"
          ],
          "checks": [],
          "negative": [
            {
              "code": "def broken(: .;\n",
              "diagnostic": "compile error"
            }
          ],
          "scenarios": [
            {
              "name": "quoted label is data",
              "stdin": "{\"items\":[]}",
              "stdout": "{\"label\":\"say \\\"hello\\\"\",\"names\":[]}\n",
              "exit": 0,
              "stderr_contains": "",
              "arguments": [
                "--arg",
                "label",
                "say \"hello\"",
                "--argjson",
                "minimum",
                "0"
              ]
            }
          ],
          "runner": "jq",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "jq-1.7.1-apple; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "jq validation.json; exact output/status, unchanged input bytes and separate compiler/scenario outcomes"
          }
        },
        {
          "id": "jq-slurp",
          "title": "jq 06 - Collect a tiny JSON stream",
          "filename": "jq 06 Collect a tiny JSON stream.jq",
          "code": "{count: length, total: (map(.minutes) | add // 0)}\n",
          "expected_output": "{\"count\":2,\"total\":60}",
          "expected_stdout": "{\"count\":2,\"total\":60}\n",
          "explanation": "-s collects two JSON texts before evaluation. The sum assumes numeric minutes; an empty stream produces an empty array and total zero.",
          "exercise": "",
          "files": [
            {
              "name": "jq 06 Collect a tiny JSON stream Input.json",
              "code": "{\"minutes\":20}\n{\"minutes\":40}\n"
            }
          ],
          "stdin_file": "jq 06 Collect a tiny JSON stream Input.json",
          "invocation": "/usr/bin/jq -c -s -f 'jq 06 Collect a tiny JSON stream.jq' < 'jq 06 Collect a tiny JSON stream Input.json'",
          "arguments": [
            "-s"
          ],
          "checks": [],
          "negative": [],
          "scenarios": [
            {
              "name": "empty JSON stream",
              "stdin": "",
              "stdout": "{\"count\":0,\"total\":0}\n",
              "exit": 0,
              "stderr_contains": ""
            }
          ],
          "runner": "jq",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "jq-1.7.1-apple; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "jq validation.json; exact output/status, unchanged input bytes and separate compiler/scenario outcomes"
          }
        },
        {
          "id": "jq-group",
          "title": "jq 07 - Group and aggregate",
          "filename": "jq 07 Group and aggregate.jq",
          "code": ".items | group_by(.kind) | map({kind: .[0].kind, total: (map(.minutes) | add)})\n",
          "expected_output": "[{\"kind\":\"break\",\"total\":5},{\"kind\":\"work\",\"total\":60}]",
          "expected_stdout": "[{\"kind\":\"break\",\"total\":5},{\"kind\":\"work\",\"total\":60}]\n",
          "explanation": "Groups are ordered by kind, so break comes first even though work appeared first in the input. The records are already typed.",
          "exercise": "",
          "files": [
            {
              "name": "jq 07 Group and aggregate Input.json",
              "code": "{\"items\":[{\"kind\":\"work\",\"minutes\":20},{\"kind\":\"break\",\"minutes\":5},{\"kind\":\"work\",\"minutes\":40}]}"
            }
          ],
          "stdin_file": "jq 07 Group and aggregate Input.json",
          "invocation": "/usr/bin/jq -c -f 'jq 07 Group and aggregate.jq' < 'jq 07 Group and aggregate Input.json'",
          "arguments": [],
          "checks": [],
          "negative": [],
          "scenarios": [
            {
              "name": "empty groups",
              "stdin": "{\"items\":[]}",
              "stdout": "[]\n",
              "exit": 0,
              "stderr_contains": ""
            }
          ],
          "runner": "jq",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "jq-1.7.1-apple; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "jq validation.json; exact output/status, unchanged input bytes and separate compiler/scenario outcomes"
          }
        },
        {
          "id": "jq-contract",
          "title": "jq 08 - Validate a bounded total",
          "filename": "jq 08 Validate a bounded total.jq",
          "code": "def valid: type == \"number\" and . >= 0 and . <= 120 and floor == .;\nif type != \"array\" then error(\"expected array\")\nelif length > 10 then error(\"too many values\")\nelif all(.[]; valid) then {total: (add // 0)}\nelse error(\"invalid value\") end\n",
          "expected_output": "{\"total\":60}",
          "expected_stdout": "{\"total\":60}\n",
          "explanation": "Only at most ten integral numbers from zero through 120 are accepted. Boolean, string and nonintegral numeric inputs are rejected before a total is returned.",
          "exercise": "",
          "files": [
            {
              "name": "jq 08 Validate a bounded total Input.json",
              "code": "[20,40]"
            }
          ],
          "stdin_file": "jq 08 Validate a bounded total Input.json",
          "invocation": "/usr/bin/jq -c -f 'jq 08 Validate a bounded total.jq' < 'jq 08 Validate a bounded total Input.json'",
          "arguments": [],
          "checks": [],
          "negative": [
            {
              "code": "[1,\n",
              "diagnostic": "compile error"
            }
          ],
          "scenarios": [
            {
              "name": "empty total",
              "stdin": "[]",
              "stdout": "{\"total\":0}\n",
              "exit": 0,
              "stderr_contains": ""
            },
            {
              "name": "upper boundary",
              "stdin": "[0,120]",
              "stdout": "{\"total\":120}\n",
              "exit": 0,
              "stderr_contains": ""
            },
            {
              "name": "numeric string rejected",
              "stdin": "[\"20\"]",
              "stdout": "",
              "exit": 5,
              "stderr_contains": "invalid value"
            },
            {
              "name": "boolean rejected",
              "stdin": "[true]",
              "stdout": "",
              "exit": 5,
              "stderr_contains": "invalid value"
            },
            {
              "name": "too many values",
              "stdin": "[1,1,1,1,1,1,1,1,1,1,1]",
              "stdout": "",
              "exit": 5,
              "stderr_contains": "too many values"
            },
            {
              "name": "wrong root",
              "stdin": "{}",
              "stdout": "",
              "exit": 5,
              "stderr_contains": "expected array"
            },
            {
              "name": "integral decimal and exponent accepted",
              "stdin": "[20.0,1e2]",
              "stdout": "{\"total\":120}\n",
              "exit": 0,
              "stderr_contains": ""
            },
            {
              "name": "nonintegral number rejected",
              "stdin": "[1.5]",
              "stdout": "",
              "exit": 5,
              "stderr_contains": "invalid value"
            }
          ],
          "runner": "jq",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "jq-1.7.1-apple; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "jq validation.json; exact output/status, unchanged input bytes and separate compiler/scenario outcomes"
          }
        },
        {
          "id": "jq-update",
          "title": "jq 09 - Return an updated value",
          "filename": "jq 09 Return an updated value.jq",
          "code": ".tasks |= map(. + {done: (.minutes == 0)})\n",
          "expected_output": "{\"tasks\":[{\"name\":\"read\",\"minutes\":20,\"done\":false},{\"name\":\"rest\",\"minutes\":0,\"done\":true}]}",
          "expected_stdout": "{\"tasks\":[{\"name\":\"read\",\"minutes\":20,\"done\":false},{\"name\":\"rest\",\"minutes\":0,\"done\":true}]}\n",
          "explanation": "The output adds or replaces done for each task. jq does not rewrite the input file; fields outside the selected path are retained.",
          "exercise": "",
          "files": [
            {
              "name": "jq 09 Return an updated value Input.json",
              "code": "{\"tasks\":[{\"name\":\"read\",\"minutes\":20},{\"name\":\"rest\",\"minutes\":0}]}"
            }
          ],
          "stdin_file": "jq 09 Return an updated value Input.json",
          "invocation": "/usr/bin/jq -c -f 'jq 09 Return an updated value.jq' < 'jq 09 Return an updated value Input.json'",
          "arguments": [],
          "checks": [],
          "negative": [],
          "scenarios": [
            {
              "name": "keep other fields",
              "stdin": "{\"tasks\":[],\"note\":\"keep\"}",
              "stdout": "{\"tasks\":[],\"note\":\"keep\"}\n",
              "exit": 0,
              "stderr_contains": ""
            }
          ],
          "runner": "jq",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "jq-1.7.1-apple; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "jq validation.json; exact output/status, unchanged input bytes and separate compiler/scenario outcomes"
          }
        },
        {
          "id": "jq-exercise-a",
          "title": "jq exercise A - Pending names",
          "filename": "jq exercise A Pending names.jq",
          "code": "[.items[] | select(.done == false) | .name] | sort\n",
          "expected_output": "[\"read\",\"write\"]",
          "expected_stdout": "[\"read\",\"write\"]\n",
          "explanation": "Only an explicit false value is selected; a missing done field becomes null and does not match. Sorting is deliberate.",
          "exercise": "Return an array of names for explicitly unfinished items, in sorted order.",
          "files": [
            {
              "name": "jq exercise A Pending names Input.json",
              "code": "{\"items\":[{\"name\":\"write\",\"done\":false},{\"name\":\"read\",\"done\":false},{\"name\":\"rest\",\"done\":true}]}"
            }
          ],
          "stdin_file": "jq exercise A Pending names Input.json",
          "invocation": "/usr/bin/jq -c -f 'jq exercise A Pending names.jq' < 'jq exercise A Pending names Input.json'",
          "arguments": [],
          "checks": [],
          "negative": [],
          "scenarios": [
            {
              "name": "missing flag excluded",
              "stdin": "{\"items\":[{\"name\":\"read\"}]}",
              "stdout": "[]\n",
              "exit": 0,
              "stderr_contains": ""
            }
          ],
          "runner": "jq",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "jq-1.7.1-apple; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "jq validation.json; exact output/status, unchanged input bytes and separate compiler/scenario outcomes"
          }
        },
        {
          "id": "jq-exercise-b",
          "title": "jq exercise B - Merge duplicate names",
          "filename": "jq exercise B Merge duplicate names.jq",
          "code": "reduce .[] as $row ({}; .[$row.name] = ((.[$row.name] // 0) + $row.minutes))\n",
          "expected_output": "{\"read\":60,\"rest\":5}",
          "expected_stdout": "{\"read\":60,\"rest\":5}\n",
          "explanation": "The object accumulator deliberately sums duplicate names. These fixed records have string names and small numeric minutes.",
          "exercise": "Aggregate minutes by name without silently replacing an earlier value.",
          "files": [
            {
              "name": "jq exercise B Merge duplicate names Input.json",
              "code": "[{\"name\":\"read\",\"minutes\":20},{\"name\":\"read\",\"minutes\":40},{\"name\":\"rest\",\"minutes\":5}]"
            }
          ],
          "stdin_file": "jq exercise B Merge duplicate names Input.json",
          "invocation": "/usr/bin/jq -c -f 'jq exercise B Merge duplicate names.jq' < 'jq exercise B Merge duplicate names Input.json'",
          "arguments": [],
          "checks": [],
          "negative": [
            {
              "code": "not_a_defined_function\n",
              "diagnostic": "not defined"
            }
          ],
          "scenarios": [
            {
              "name": "empty reduction",
              "stdin": "[]",
              "stdout": "{}\n",
              "exit": 0,
              "stderr_contains": ""
            }
          ],
          "runner": "jq",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "jq-1.7.1-apple; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "jq validation.json; exact output/status, unchanged input bytes and separate compiler/scenario outcomes"
          }
        },
        {
          "id": "jq-exercise-c",
          "title": "jq exercise C - Four observable checks",
          "filename": "jq exercise C Four observable checks.jq",
          "code": "def valid: type == \"number\" and . >= 0 and . <= 120 and floor == .;\n[0,120,121,\"12x\"] | map(valid) as $actual\n| if $actual == [true,true,false,false] then {checks:4, status:\"passed\"}\n  else error(\"test failed\") end\n",
          "expected_output": "{\"checks\":4,\"status\":\"passed\"}",
          "expected_stdout": "{\"checks\":4,\"status\":\"passed\"}\n",
          "explanation": "The program compares all four results with an explicit expectation and raises an error on a mismatch. This is a toy test, not a testing framework.",
          "exercise": "Check zero, the upper boundary, an out-of-range value and numeric-prefix text.",
          "files": [],
          "stdin_file": null,
          "invocation": "/usr/bin/jq -c -n -f 'jq exercise C Four observable checks.jq' < /dev/null",
          "arguments": [
            "-n"
          ],
          "checks": [],
          "negative": [],
          "scenarios": [],
          "runner": "jq",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "jq-1.7.1-apple; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "jq validation.json; exact output/status, unchanged input bytes and separate compiler/scenario outcomes"
          }
        }
      ],
      "support_files": [
        {
          "name": "Run instructions.txt",
          "code": "Export the fixed .jq program and companion input. /usr/bin/jq --version reports jq-1.7.1-apple; the upstream 1.7 manual is context, not proof of every Apple-build behavior. -c makes JSON output compact. -r would remove JSON quoting from string outputs and is not used here. Programs are trusted and inputs tiny. Use --arg or --argjson for data, never concatenate data into program text. No modules, environment access, external files or network commands are used. The HTML only exports text. -e result statuses and deliberate compile/runtime errors are separate outcomes. Numeric examples use small finite integers; exact large-integer or financial arithmetic is outside scope.\n"
        }
      ],
      "rejection_label": "jq compiler",
      "rejection_heading": "Expected program rejections",
      "templates": [
        {
          "id": "build",
          "name": "Build a structured transform",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Provide a fixed program, separate authored input, exact command and expected serialized output. Separate predicted behavior from executed evidence."
        },
        {
          "id": "debug",
          "name": "Debug an unexpected result",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Reduce the input and distinguish parse errors, missing matches, wrong types, namespaces and process status. Separate predicted behavior from executed evidence."
        },
        {
          "id": "test",
          "name": "Test boundaries and contracts",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Include empty input, missing values, false/zero, escaping and rejected types; specify stdout, stderr and exit status. Separate predicted behavior from executed evidence."
        },
        {
          "id": "refactor",
          "name": "Refactor with a regression contract",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Preserve result count, order, types, serialization and failure policy; explain the change. Separate predicted behavior from executed evidence."
        },
        {
          "id": "document",
          "name": "Document the transformation",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. State schema assumptions, supported tool version, numeric limits, encoding, resource bounds and side effects. Separate predicted behavior from executed evidence."
        },
        {
          "id": "explain",
          "name": "Explain with an exercise",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Trace one input through the transform and provide a separate exercise and solution. Separate predicted behavior from executed evidence."
        }
      ],
      "test_summary": {
        "result": "passed",
        "tested_on": "2026-10-26",
        "runtime": "jq-1.7.1-apple; macOS 27.0.1 arm64",
        "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
        "assertion_count": 161,
        "example_count": 12,
        "accepted_executions": 12,
        "expected_program_rejections": 4,
        "scenario_invocations": 21,
        "expected_nonzero_scenarios": 6,
        "embedded_cases": 4,
        "binary_sha256": "6de4a915497277d6787ce09beaeb0e2f66b2ca04125752a219d12a302491c660",
        "locale": "C",
        "limits": [
          "Only installed jq-1.7.1-apple and tiny authored inputs were tested.",
          "Compile rejection, runtime errors and the -e no-result status are separate from successful programs.",
          "Small finite integers only; no large-integer precision guarantee or JSON Schema claim.",
          "Fixed trusted filters only; no modules, environment access, external input or generated source."
        ]
      }
    },
    {
      "id": "xslt-foundations",
      "title": "XSLT 1.0 Foundations",
      "version": "0.10.0",
      "status": "tested",
      "entry_ids": [
        "xslt"
      ],
      "languages": [
        "XSLT 1.0"
      ],
      "default_goal": "Transform a small structured document with an explicit input and output contract.",
      "default_runtime": "libxslt 1.1.35 / libxml2 2.9.13; macOS 27.0.1 arm64",
      "default_constraints": "Fixed authored input and trusted program only; no private data, remote documents, imports, extensions, credentials, generated program text or installation.",
      "audience": "Learners comfortable saving plain text and invoking an installed command-line tool.",
      "estimated_practice": "4 to 6 hours.",
      "scope": "XSLT 1.0 transformation language: templates, XPath 1.0 selections, namespaces, sorting, parameters, variables, named templates, identity transforms, keys and explicit input checks. Supporting XPath expressions do not constitute a standalone XPath pack. No XSLT 2.0/3.0, extension functions or arbitrary documents.",
      "runtime_note": "Export the fixed .xsl stylesheet and XML companion. The installed xsltproc reports libxslt 1.1.35 and libxml2 2.9.13; these old installed versions are a recorded learning environment, not a recommendation for untrusted-document processing. Every command uses --nonet --novalid --nowrite --nomkdir plus small depth/variable limits and empty catalogue environment variables. These flags are defense in depth, not a complete sandbox: local file reads can exist in other stylesheets. This pack has no DTD declarations, custom/external entities, document(), imports, includes, extensions or secondary output. Only authored toy XML and trusted stylesheets are tested. The HTML never runs them. Output is stdout; inputs remain unchanged. XPath 1.0 syntax is introduced only as needed by XSLT; the standalone XPath entry stays planned. Installed --stringparam cannot transport a value containing both single and double quotes: it exits with status 8. That documented CLI limitation is tested separately; no quote workaround is implied.",
      "lessons": [
        {
          "title": "Templates build an output tree or text",
          "text": "XSLT is a transformation language, and xsltproc is the processor executing it. A template with match=\"/\" starts at the document root. xsl:apply-templates dispatches selected nodes to matching templates. The authored stylesheet controls what is emitted; source elements are not automatically copied."
        },
        {
          "title": "Context determines an XPath expression",
          "text": "In a root template, /tasks/task selects task elements below tasks. Inside a task template, @name reads that task attribute. Predicates filter node sets; position depends on the selected context. This pack uses XPath 1.0 only, without claiming a complete XPath introduction."
        },
        {
          "title": "Namespaces are part of an element name",
          "text": "A default namespace in the source does not make unprefixed XPath names select those elements. Bind an explicit stylesheet prefix to the same namespace URI. The source may use a different prefix; namespace URI and local name determine the match."
        },
        {
          "title": "Sort and branch explicitly",
          "text": "xsl:sort orders the selected nodes. data-type=\"number\" distinguishes numeric sorting from text sorting. xsl:choose selects the first matching branch; xsl:if conditionally emits content. Missing values and invalid numeric text need an explicit policy."
        },
        {
          "title": "Parameters are data with a type boundary",
          "text": "A global xsl:param accepts a caller-supplied value. xsltproc --stringparam passes text rather than an XPath expression. Never build stylesheet syntax from input strings. Parameters in this pack do not select files or external resources. On this installed CLI, a value containing both single and double quotes is rejected with status 8; --stringparam is not arbitrary-string transport."
        },
        {
          "title": "Variables and templates have different jobs",
          "text": "A variable declared with select holds the expression value, such as a number or node set. In XSLT 1.0, content-created variables are result tree fragments with navigation restrictions. Named templates receive xsl:with-param values; they are used here without recursion."
        },
        {
          "title": "Serialization and grouping need care",
          "text": "XML output escapes text and attributes for XML syntax. Copying with an identity template preserves a tree, not exact source bytes or formatting. Keys index source nodes; the grouping exercise picks one representative per kind and aggregates its group. Output order remains explicit."
        },
        {
          "title": "Fixed inputs and observed failures",
          "text": "The total exercise rejects invalid digit attributes and too many records using a terminating message. Other examples assume their documented schema. Disable network and writes, keep inputs tiny, and reject DTDs/imports rather than trusting flags as a sandbox. Parser, stylesheet compilation and runtime termination are separate outcomes."
        }
      ],
      "reference": [
        {
          "area": "Stylesheet",
          "syntax": "xsl:stylesheet version=\"1.0\"",
          "meaning": "Declare the supported transformation version."
        },
        {
          "area": "Root",
          "syntax": "xsl:template match=\"/\"",
          "meaning": "Handle the document root."
        },
        {
          "area": "Dispatch",
          "syntax": "xsl:apply-templates select=\"...\"",
          "meaning": "Process selected nodes with matching templates."
        },
        {
          "area": "Value",
          "syntax": "xsl:value-of select=\"...\"",
          "meaning": "Emit the XPath string value."
        },
        {
          "area": "Literal text",
          "syntax": "xsl:text",
          "meaning": "Make exact text and whitespace explicit."
        },
        {
          "area": "Namespace",
          "syntax": "xmlns:d=\"urn:atlas:tasks\"",
          "meaning": "Bind a prefix for namespaced selection."
        },
        {
          "area": "Sort",
          "syntax": "xsl:sort data-type=\"number\"",
          "meaning": "Use numeric rather than lexical ordering."
        },
        {
          "area": "Condition",
          "syntax": "xsl:if / xsl:choose",
          "meaning": "Emit conditional output or choose a branch."
        },
        {
          "area": "Parameter",
          "syntax": "xsl:param / --stringparam",
          "meaning": "Pass text as data to the stylesheet."
        },
        {
          "area": "Variable",
          "syntax": "xsl:variable select=\"...\"",
          "meaning": "Bind the expression value within scope."
        },
        {
          "area": "Named template",
          "syntax": "xsl:call-template / xsl:with-param",
          "meaning": "Invoke a named reusable template."
        },
        {
          "area": "Copy",
          "syntax": "xsl:copy / @*|node()",
          "meaning": "Build a shallow copy and process descendants."
        },
        {
          "area": "Key",
          "syntax": "xsl:key / key(...)",
          "meaning": "Index source nodes for local grouping."
        },
        {
          "area": "Identity",
          "syntax": "generate-id(node)",
          "meaning": "Compare identity of nodes within this transformation."
        },
        {
          "area": "Failure",
          "syntax": "xsl:message terminate=\"yes\"",
          "meaning": "Stop with an explicit diagnostic."
        },
        {
          "area": "Output",
          "syntax": "xsl:output method=\"text|xml\"",
          "meaning": "Choose serialized text or XML output."
        }
      ],
      "examples": [
        {
          "id": "xslt-root",
          "title": "XSLT 01 - Root and value",
          "filename": "XSLT 01 Root and value.xsl",
          "code": "<xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">\n<xsl:output method=\"text\" omit-xml-declaration=\"yes\" indent=\"no\"/>\n<xsl:template match=\"/\">\n  <xsl:value-of select=\"count(/tasks/task)\"/><xsl:text> tasks&#10;</xsl:text>\n</xsl:template>\n</xsl:stylesheet>\n",
          "expected_output": "2 tasks",
          "expected_stdout": "2 tasks\n",
          "explanation": "The document-root template counts task elements. It emits text, not an XML wrapper.",
          "exercise": "",
          "files": [
            {
              "name": "XSLT 01 Root and value Input.xml",
              "code": "<tasks><task name=\"read\"/><task name=\"code\"/></tasks>"
            }
          ],
          "stdin_file": "XSLT 01 Root and value Input.xml",
          "invocation": "XML_CATALOG_FILES= SGML_CATALOG_FILES= /usr/bin/xsltproc --nonet --novalid --nowrite --nomkdir --maxdepth 100 --maxvars 1000 'XSLT 01 Root and value.xsl' 'XSLT 01 Root and value Input.xml'",
          "arguments": [],
          "checks": [],
          "negative": [
            {
              "code": "<xsl:stylesheet xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" version=\"1.0\"><xsl:template match=\"/\">",
              "diagnostic": "Premature end of data"
            }
          ],
          "scenarios": [
            {
              "name": "empty collection",
              "stdin": "<tasks/>",
              "stdout": "0 tasks\n",
              "exit": 0,
              "stderr_contains": ""
            }
          ],
          "runner": "xslt",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "libxslt 1.1.35 / libxml2 2.9.13; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "xslt validation.json; exact output/status, unchanged input bytes and separate compiler/scenario outcomes"
          }
        },
        {
          "id": "xslt-dispatch",
          "title": "XSLT 02 - Dispatch by context",
          "filename": "XSLT 02 Dispatch by context.xsl",
          "code": "<xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">\n<xsl:output method=\"text\" omit-xml-declaration=\"yes\" indent=\"no\"/>\n<xsl:template match=\"/\">\n  <xsl:apply-templates select=\"/tasks/task\"/>\n</xsl:template>\n<xsl:template match=\"task\">\n  <xsl:value-of select=\"@name\"/><xsl:text>&#10;</xsl:text>\n</xsl:template>\n</xsl:stylesheet>\n",
          "expected_output": "read\ncode",
          "expected_stdout": "read\ncode\n",
          "explanation": "The task template sees a task node, so @name is relative to that node. No other source text is selected.",
          "exercise": "",
          "files": [
            {
              "name": "XSLT 02 Dispatch by context Input.xml",
              "code": "<tasks><task name=\"read\"/><task name=\"code\"/></tasks>"
            }
          ],
          "stdin_file": "XSLT 02 Dispatch by context Input.xml",
          "invocation": "XML_CATALOG_FILES= SGML_CATALOG_FILES= /usr/bin/xsltproc --nonet --novalid --nowrite --nomkdir --maxdepth 100 --maxvars 1000 'XSLT 02 Dispatch by context.xsl' 'XSLT 02 Dispatch by context Input.xml'",
          "arguments": [],
          "checks": [],
          "negative": [],
          "scenarios": [
            {
              "name": "no selected task",
              "stdin": "<tasks><note>ignore</note></tasks>",
              "stdout": "",
              "exit": 0,
              "stderr_contains": ""
            }
          ],
          "runner": "xslt",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "libxslt 1.1.35 / libxml2 2.9.13; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "xslt validation.json; exact output/status, unchanged input bytes and separate compiler/scenario outcomes"
          }
        },
        {
          "id": "xslt-sort",
          "title": "XSLT 03 - Numeric sort and selection",
          "filename": "XSLT 03 Numeric sort and selection.xsl",
          "code": "<xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">\n<xsl:output method=\"text\" omit-xml-declaration=\"yes\" indent=\"no\"/>\n<xsl:template match=\"/\">\n <xsl:for-each select=\"/tasks/task[@minutes &gt;= 10]\">\n  <xsl:sort select=\"@minutes\" data-type=\"number\" order=\"descending\"/>\n  <xsl:value-of select=\"@name\"/><xsl:text>:</xsl:text>\n  <xsl:value-of select=\"@minutes\"/><xsl:text>&#10;</xsl:text>\n </xsl:for-each>\n</xsl:template>\n</xsl:stylesheet>\n",
          "expected_output": "code:100\nread:20",
          "expected_stdout": "code:100\nread:20\n",
          "explanation": "The filter and sort assume small numeric attributes. Invalid numeric text does not pass the comparison, but that is not a validation report.",
          "exercise": "",
          "files": [
            {
              "name": "XSLT 03 Numeric sort and selection Input.xml",
              "code": "<tasks><task name=\"read\" minutes=\"20\"/><task name=\"rest\" minutes=\"5\"/><task name=\"code\" minutes=\"100\"/></tasks>"
            }
          ],
          "stdin_file": "XSLT 03 Numeric sort and selection Input.xml",
          "invocation": "XML_CATALOG_FILES= SGML_CATALOG_FILES= /usr/bin/xsltproc --nonet --novalid --nowrite --nomkdir --maxdepth 100 --maxvars 1000 'XSLT 03 Numeric sort and selection.xsl' 'XSLT 03 Numeric sort and selection Input.xml'",
          "arguments": [],
          "checks": [],
          "negative": [
            {
              "code": "<xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">\n<xsl:output method=\"text\" omit-xml-declaration=\"yes\" indent=\"no\"/>\n<xsl:template match=\"/\"><xsl:value-of select=\"[\"/></xsl:template>\n</xsl:stylesheet>\n",
              "diagnostic": "could not compile"
            }
          ],
          "scenarios": [
            {
              "name": "no matches",
              "stdin": "<tasks><task minutes=\"5\"/></tasks>",
              "stdout": "",
              "exit": 0,
              "stderr_contains": ""
            }
          ],
          "runner": "xslt",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "libxslt 1.1.35 / libxml2 2.9.13; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "xslt validation.json; exact output/status, unchanged input bytes and separate compiler/scenario outcomes"
          }
        },
        {
          "id": "xslt-namespace",
          "title": "XSLT 04 - Namespace aware names",
          "filename": "XSLT 04 Namespace aware names.xsl",
          "code": "<xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" xmlns:d=\"urn:atlas:tasks\" exclude-result-prefixes=\"d\">\n<xsl:output method=\"text\" omit-xml-declaration=\"yes\" indent=\"no\"/>\n<xsl:template match=\"/\">\n <xsl:for-each select=\"/d:tasks/d:task\">\n  <xsl:value-of select=\"@name\"/><xsl:text>&#10;</xsl:text>\n </xsl:for-each>\n</xsl:template>\n</xsl:stylesheet>\n",
          "expected_output": "read",
          "expected_stdout": "read\n",
          "explanation": "The stylesheet prefix d is bound to the source namespace URI. Unprefixed attributes remain unqualified.",
          "exercise": "",
          "files": [
            {
              "name": "XSLT 04 Namespace aware names Input.xml",
              "code": "<tasks xmlns=\"urn:atlas:tasks\"><task name=\"read\"/></tasks>"
            }
          ],
          "stdin_file": "XSLT 04 Namespace aware names Input.xml",
          "invocation": "XML_CATALOG_FILES= SGML_CATALOG_FILES= /usr/bin/xsltproc --nonet --novalid --nowrite --nomkdir --maxdepth 100 --maxvars 1000 'XSLT 04 Namespace aware names.xsl' 'XSLT 04 Namespace aware names Input.xml'",
          "arguments": [],
          "checks": [],
          "negative": [],
          "scenarios": [
            {
              "name": "different source prefix",
              "stdin": "<t:tasks xmlns:t=\"urn:atlas:tasks\"><t:task name=\"code\"/></t:tasks>",
              "stdout": "code\n",
              "exit": 0,
              "stderr_contains": ""
            },
            {
              "name": "unqualified tree is different",
              "stdin": "<tasks><task name=\"read\"/></tasks>",
              "stdout": "",
              "exit": 0,
              "stderr_contains": ""
            }
          ],
          "runner": "xslt",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "libxslt 1.1.35 / libxml2 2.9.13; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "xslt validation.json; exact output/status, unchanged input bytes and separate compiler/scenario outcomes"
          }
        },
        {
          "id": "xslt-parameter",
          "title": "XSLT 05 - String parameters",
          "filename": "XSLT 05 String parameters.xsl",
          "code": "<xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">\n<xsl:output method=\"text\" omit-xml-declaration=\"yes\" indent=\"no\"/>\n<xsl:param name=\"label\" select=\"'Task'\"/>\n<xsl:template match=\"/\">\n <xsl:value-of select=\"$label\"/><xsl:text>: </xsl:text>\n <xsl:value-of select=\"/task/@name\"/><xsl:text>&#10;</xsl:text>\n</xsl:template>\n</xsl:stylesheet>\n",
          "expected_output": "Study & learn: read",
          "expected_stdout": "Study & learn: read\n",
          "explanation": "--stringparam binds text. The ampersand remains ordinary data in text output; it is not stylesheet syntax. The installed CLI rejects a value containing both quote styles; that command-argument error is tested separately.",
          "exercise": "",
          "files": [
            {
              "name": "XSLT 05 String parameters Input.xml",
              "code": "<task name=\"read\"/>"
            }
          ],
          "stdin_file": "XSLT 05 String parameters Input.xml",
          "invocation": "XML_CATALOG_FILES= SGML_CATALOG_FILES= /usr/bin/xsltproc --nonet --novalid --nowrite --nomkdir --maxdepth 100 --maxvars 1000 --stringparam label 'Study & learn' 'XSLT 05 String parameters.xsl' 'XSLT 05 String parameters Input.xml'",
          "arguments": [
            "--stringparam",
            "label",
            "Study & learn"
          ],
          "checks": [],
          "negative": [],
          "scenarios": [
            {
              "name": "quoted text parameter",
              "stdin": "<task name=\"read\"/>",
              "stdout": "say \"hello\": read\n",
              "exit": 0,
              "stderr_contains": "",
              "arguments": [
                "--stringparam",
                "label",
                "say \"hello\""
              ]
            },
            {
              "name": "both quote styles rejected by CLI",
              "stdin": "<task name=\"read\"/>",
              "stdout": "",
              "exit": 8,
              "stderr_contains": "stringparam contains both quote",
              "arguments": [
                "--stringparam",
                "label",
                "both ' and \""
              ]
            }
          ],
          "runner": "xslt",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "libxslt 1.1.35 / libxml2 2.9.13; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "xslt validation.json; exact output/status, unchanged input bytes and separate compiler/scenario outcomes"
          }
        },
        {
          "id": "xslt-choose",
          "title": "XSLT 06 - Explicit branches",
          "filename": "XSLT 06 Explicit branches.xsl",
          "code": "<xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">\n<xsl:output method=\"text\" omit-xml-declaration=\"yes\" indent=\"no\"/>\n<xsl:template match=\"/\">\n <xsl:choose>\n  <xsl:when test=\"not(/tasks/task)\"><xsl:text>No tasks</xsl:text></xsl:when>\n  <xsl:when test=\"/tasks/task[@done='false']\"><xsl:text>Pending</xsl:text></xsl:when>\n  <xsl:otherwise><xsl:text>No explicit pending task</xsl:text></xsl:otherwise>\n </xsl:choose><xsl:text>&#10;</xsl:text>\n</xsl:template>\n</xsl:stylesheet>\n",
          "expected_output": "Pending",
          "expected_stdout": "Pending\n",
          "explanation": "Attribute values are strings: false is not a boolean literal here. Missing done is not an explicit false.",
          "exercise": "",
          "files": [
            {
              "name": "XSLT 06 Explicit branches Input.xml",
              "code": "<tasks><task done=\"false\"/></tasks>"
            }
          ],
          "stdin_file": "XSLT 06 Explicit branches Input.xml",
          "invocation": "XML_CATALOG_FILES= SGML_CATALOG_FILES= /usr/bin/xsltproc --nonet --novalid --nowrite --nomkdir --maxdepth 100 --maxvars 1000 'XSLT 06 Explicit branches.xsl' 'XSLT 06 Explicit branches Input.xml'",
          "arguments": [],
          "checks": [],
          "negative": [],
          "scenarios": [
            {
              "name": "empty tasks",
              "stdin": "<tasks/>",
              "stdout": "No tasks\n",
              "exit": 0,
              "stderr_contains": ""
            },
            {
              "name": "missing done",
              "stdin": "<tasks><task/></tasks>",
              "stdout": "No explicit pending task\n",
              "exit": 0,
              "stderr_contains": ""
            }
          ],
          "runner": "xslt",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "libxslt 1.1.35 / libxml2 2.9.13; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "xslt validation.json; exact output/status, unchanged input bytes and separate compiler/scenario outcomes"
          }
        },
        {
          "id": "xslt-variable",
          "title": "XSLT 07 - Numeric variable",
          "filename": "XSLT 07 Numeric variable.xsl",
          "code": "<xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" xmlns:d=\"urn:atlas:tasks\" exclude-result-prefixes=\"d\">\n<xsl:output method=\"text\" omit-xml-declaration=\"yes\" indent=\"no\"/>\n<xsl:template match=\"/\">\n <xsl:variable name=\"total\" select=\"sum(/tasks/task/@minutes)\"/>\n <xsl:text>Total: </xsl:text><xsl:value-of select=\"$total\"/>\n <xsl:text>; doubled: </xsl:text><xsl:value-of select=\"$total * 2\"/><xsl:text>&#10;</xsl:text>\n</xsl:template>\n</xsl:stylesheet>\n",
          "expected_output": "Total: 60; doubled: 120",
          "expected_stdout": "Total: 60; doubled: 120\n",
          "explanation": "select binds a number. This authored input has valid numeric attributes; the separate contract exercise validates input before summing.",
          "exercise": "",
          "files": [
            {
              "name": "XSLT 07 Numeric variable Input.xml",
              "code": "<tasks><task minutes=\"20\"/><task minutes=\"40\"/></tasks>"
            }
          ],
          "stdin_file": "XSLT 07 Numeric variable Input.xml",
          "invocation": "XML_CATALOG_FILES= SGML_CATALOG_FILES= /usr/bin/xsltproc --nonet --novalid --nowrite --nomkdir --maxdepth 100 --maxvars 1000 'XSLT 07 Numeric variable.xsl' 'XSLT 07 Numeric variable Input.xml'",
          "arguments": [],
          "checks": [],
          "negative": [
            {
              "code": "<xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">\n<xsl:output method=\"text\" omit-xml-declaration=\"yes\" indent=\"no\"/>\n<xsl:template match=\"[\"><xsl:text>x</xsl:text></xsl:template>\n</xsl:stylesheet>\n",
              "diagnostic": "failed to compile"
            }
          ],
          "scenarios": [
            {
              "name": "empty sum",
              "stdin": "<tasks/>",
              "stdout": "Total: 0; doubled: 0\n",
              "exit": 0,
              "stderr_contains": ""
            }
          ],
          "runner": "xslt",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "libxslt 1.1.35 / libxml2 2.9.13; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "xslt validation.json; exact output/status, unchanged input bytes and separate compiler/scenario outcomes"
          }
        },
        {
          "id": "xslt-named",
          "title": "XSLT 08 - Named template and whitespace",
          "filename": "XSLT 08 Named template and whitespace.xsl",
          "code": "<xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">\n<xsl:output method=\"text\" omit-xml-declaration=\"yes\" indent=\"no\"/>\n<xsl:template match=\"/\">\n <xsl:call-template name=\"label\">\n  <xsl:with-param name=\"value\" select=\"/task/name\"/>\n </xsl:call-template>\n</xsl:template>\n<xsl:template name=\"label\">\n <xsl:param name=\"value\"/>\n <xsl:text>Task: </xsl:text><xsl:value-of select=\"normalize-space($value)\"/><xsl:text>&#10;</xsl:text>\n</xsl:template>\n</xsl:stylesheet>\n",
          "expected_output": "Task: read a book",
          "expected_stdout": "Task: read a book\n",
          "explanation": "normalize-space trims and collapses XML whitespace characters. This does not promise a general Unicode normalization operation.",
          "exercise": "",
          "files": [
            {
              "name": "XSLT 08 Named template and whitespace Input.xml",
              "code": "<task><name>  read   a book  </name></task>"
            }
          ],
          "stdin_file": "XSLT 08 Named template and whitespace Input.xml",
          "invocation": "XML_CATALOG_FILES= SGML_CATALOG_FILES= /usr/bin/xsltproc --nonet --novalid --nowrite --nomkdir --maxdepth 100 --maxvars 1000 'XSLT 08 Named template and whitespace.xsl' 'XSLT 08 Named template and whitespace Input.xml'",
          "arguments": [],
          "checks": [],
          "negative": [],
          "scenarios": [
            {
              "name": "absent name",
              "stdin": "<task/>",
              "stdout": "Task: \n",
              "exit": 0,
              "stderr_contains": ""
            }
          ],
          "runner": "xslt",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "libxslt 1.1.35 / libxml2 2.9.13; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "xslt validation.json; exact output/status, unchanged input bytes and separate compiler/scenario outcomes"
          }
        },
        {
          "id": "xslt-identity",
          "title": "XSLT 09 - Copy with one attribute change",
          "filename": "XSLT 09 Copy with one attribute change.xsl",
          "code": "<xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">\n<xsl:output method=\"xml\" omit-xml-declaration=\"yes\" indent=\"no\"/>\n<xsl:template match=\"@*|node()\">\n <xsl:copy><xsl:apply-templates select=\"@*|node()\"/></xsl:copy>\n</xsl:template>\n<xsl:template match=\"@status\">\n <xsl:attribute name=\"state\"><xsl:value-of select=\".\"/></xsl:attribute>\n</xsl:template>\n</xsl:stylesheet>\n",
          "expected_output": "<task state=\"open\"><name>A &amp; B</name></task>",
          "expected_stdout": "<task state=\"open\"><name>A &amp; B</name></task>",
          "explanation": "The fixed input has no pre-existing state attribute. Tree copying is not byte preservation: serialization escapes the ampersand and can normalize formatting.",
          "exercise": "",
          "files": [
            {
              "name": "XSLT 09 Copy with one attribute change Input.xml",
              "code": "<task status=\"open\"><name>A &amp; B</name></task>"
            }
          ],
          "stdin_file": "XSLT 09 Copy with one attribute change Input.xml",
          "invocation": "XML_CATALOG_FILES= SGML_CATALOG_FILES= /usr/bin/xsltproc --nonet --novalid --nowrite --nomkdir --maxdepth 100 --maxvars 1000 'XSLT 09 Copy with one attribute change.xsl' 'XSLT 09 Copy with one attribute change Input.xml'",
          "arguments": [],
          "checks": [],
          "negative": [],
          "scenarios": [
            {
              "name": "angle bracket is text",
              "stdin": "<task status=\"open\"><name>&lt;safe&gt;</name></task>",
              "stdout": "<task state=\"open\"><name>&lt;safe&gt;</name></task>",
              "exit": 0,
              "stderr_contains": ""
            }
          ],
          "runner": "xslt",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "libxslt 1.1.35 / libxml2 2.9.13; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "xslt validation.json; exact output/status, unchanged input bytes and separate compiler/scenario outcomes"
          }
        },
        {
          "id": "xslt-exercise-a",
          "title": "XSLT exercise A - Validate before summing",
          "filename": "XSLT exercise A Validate before summing.xsl",
          "code": "<xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">\n<xsl:output method=\"text\" omit-xml-declaration=\"yes\" indent=\"no\"/>\n<xsl:template match=\"/\">\n <xsl:if test=\"not(/tasks) or count(/tasks/task) &gt; 10\">\n  <xsl:message terminate=\"yes\">invalid collection</xsl:message>\n </xsl:if>\n <xsl:for-each select=\"/tasks/task\">\n  <xsl:if test=\"string-length(@minutes)=0 or string-length(@minutes)&gt;3 or translate(@minutes,'0123456789','')!='' or number(@minutes)&gt;120\">\n   <xsl:message terminate=\"yes\">invalid minutes</xsl:message>\n  </xsl:if>\n </xsl:for-each>\n <xsl:text>Total: </xsl:text><xsl:value-of select=\"sum(/tasks/task/@minutes)\"/><xsl:text>&#10;</xsl:text>\n</xsl:template>\n</xsl:stylesheet>\n",
          "expected_output": "Total: 60",
          "expected_stdout": "Total: 60\n",
          "explanation": "Every selected task must have one to three ASCII digits with numeric value at most 120. Leading zeros are allowed. Other elements/attributes are ignored; this is a projection contract, not full XML schema validation.",
          "exercise": "Accept at most ten tasks with bounded minute attributes, reject malformed values and print one total.",
          "files": [
            {
              "name": "XSLT exercise A Validate before summing Input.xml",
              "code": "<tasks><task minutes=\"20\"/><task minutes=\"40\"/></tasks>"
            }
          ],
          "stdin_file": "XSLT exercise A Validate before summing Input.xml",
          "invocation": "XML_CATALOG_FILES= SGML_CATALOG_FILES= /usr/bin/xsltproc --nonet --novalid --nowrite --nomkdir --maxdepth 100 --maxvars 1000 'XSLT exercise A Validate before summing.xsl' 'XSLT exercise A Validate before summing Input.xml'",
          "arguments": [],
          "checks": [],
          "negative": [],
          "scenarios": [
            {
              "name": "empty collection",
              "stdin": "<tasks/>",
              "stdout": "Total: 0\n",
              "exit": 0,
              "stderr_contains": ""
            },
            {
              "name": "upper boundary and leading zero",
              "stdin": "<tasks><task minutes=\"120\"/><task minutes=\"001\"/></tasks>",
              "stdout": "Total: 121\n",
              "exit": 0,
              "stderr_contains": ""
            },
            {
              "name": "numeric prefix rejected",
              "stdin": "<tasks><task minutes=\"12x\"/></tasks>",
              "stdout": "",
              "exit": 10,
              "stderr_contains": "invalid minutes"
            },
            {
              "name": "missing minutes rejected",
              "stdin": "<tasks><task/></tasks>",
              "stdout": "",
              "exit": 10,
              "stderr_contains": "invalid minutes"
            },
            {
              "name": "too many tasks",
              "stdin": "<tasks><task minutes=\"1\"/><task minutes=\"1\"/><task minutes=\"1\"/><task minutes=\"1\"/><task minutes=\"1\"/><task minutes=\"1\"/><task minutes=\"1\"/><task minutes=\"1\"/><task minutes=\"1\"/><task minutes=\"1\"/><task minutes=\"1\"/></tasks>",
              "stdout": "",
              "exit": 10,
              "stderr_contains": "invalid collection"
            },
            {
              "name": "wrong root",
              "stdin": "<other/>",
              "stdout": "",
              "exit": 10,
              "stderr_contains": "invalid collection"
            }
          ],
          "runner": "xslt",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "libxslt 1.1.35 / libxml2 2.9.13; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "xslt validation.json; exact output/status, unchanged input bytes and separate compiler/scenario outcomes"
          }
        },
        {
          "id": "xslt-exercise-b",
          "title": "XSLT exercise B - Group with a key",
          "filename": "XSLT exercise B Group with a key.xsl",
          "code": "<xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">\n<xsl:output method=\"text\" omit-xml-declaration=\"yes\" indent=\"no\"/>\n<xsl:key name=\"by-kind\" match=\"task\" use=\"@kind\"/>\n<xsl:template match=\"/\">\n <xsl:for-each select=\"/tasks/task[generate-id()=generate-id(key('by-kind',@kind)[1])]\">\n  <xsl:sort select=\"@kind\"/>\n  <xsl:value-of select=\"@kind\"/><xsl:text>:</xsl:text>\n  <xsl:value-of select=\"sum(key('by-kind',@kind)/@minutes)\"/><xsl:text>&#10;</xsl:text>\n </xsl:for-each>\n</xsl:template>\n</xsl:stylesheet>\n",
          "expected_output": "break:5\nwork:60",
          "expected_stdout": "break:5\nwork:60\n",
          "explanation": "This fixed flat document has a kind and valid numeric minutes on every task. One representative per key is selected; sorting defines report order. No external document is loaded.",
          "exercise": "Group the flat task records by kind and print each sum once in sorted order.",
          "files": [
            {
              "name": "XSLT exercise B Group with a key Input.xml",
              "code": "<tasks><task kind=\"work\" minutes=\"20\"/><task kind=\"break\" minutes=\"5\"/><task kind=\"work\" minutes=\"40\"/></tasks>"
            }
          ],
          "stdin_file": "XSLT exercise B Group with a key Input.xml",
          "invocation": "XML_CATALOG_FILES= SGML_CATALOG_FILES= /usr/bin/xsltproc --nonet --novalid --nowrite --nomkdir --maxdepth 100 --maxvars 1000 'XSLT exercise B Group with a key.xsl' 'XSLT exercise B Group with a key Input.xml'",
          "arguments": [],
          "checks": [],
          "negative": [
            {
              "code": "<xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">\n<xsl:output method=\"text\" omit-xml-declaration=\"yes\" indent=\"no\"/>\n<xsl:template><xsl:text>x</xsl:text></xsl:template>\n</xsl:stylesheet>\n",
              "diagnostic": "need to specify match or name"
            }
          ],
          "scenarios": [
            {
              "name": "empty groups",
              "stdin": "<tasks/>",
              "stdout": "",
              "exit": 0,
              "stderr_contains": ""
            }
          ],
          "runner": "xslt",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "libxslt 1.1.35 / libxml2 2.9.13; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "xslt validation.json; exact output/status, unchanged input bytes and separate compiler/scenario outcomes"
          }
        },
        {
          "id": "xslt-exercise-c",
          "title": "XSLT exercise C - Four observable checks",
          "filename": "XSLT exercise C Four observable checks.xsl",
          "code": "<xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">\n<xsl:output method=\"text\" omit-xml-declaration=\"yes\" indent=\"no\"/>\n<xsl:template match=\"/\">\n <xsl:if test=\"not(count(/tasks/task)=2 and sum(/tasks/task/@minutes)=60 and /tasks/task[1]/@name='read' and not(/tasks/task[@minutes&gt;120]))\">\n  <xsl:message terminate=\"yes\">test failed</xsl:message>\n </xsl:if>\n <xsl:text>Checks: 4 passed&#10;</xsl:text>\n</xsl:template>\n</xsl:stylesheet>\n",
          "expected_output": "Checks: 4 passed",
          "expected_stdout": "Checks: 4 passed\n",
          "explanation": "Four predicates are combined into one guard. A failing predicate terminates before the success line. This tests the fixed fixture, not arbitrary XML validity.",
          "exercise": "Check count, sum, first record name and an upper-bound predicate.",
          "files": [
            {
              "name": "XSLT exercise C Four observable checks Input.xml",
              "code": "<tasks><task name=\"read\" minutes=\"20\"/><task name=\"code\" minutes=\"40\"/></tasks>"
            }
          ],
          "stdin_file": "XSLT exercise C Four observable checks Input.xml",
          "invocation": "XML_CATALOG_FILES= SGML_CATALOG_FILES= /usr/bin/xsltproc --nonet --novalid --nowrite --nomkdir --maxdepth 100 --maxvars 1000 'XSLT exercise C Four observable checks.xsl' 'XSLT exercise C Four observable checks Input.xml'",
          "arguments": [],
          "checks": [],
          "negative": [],
          "scenarios": [
            {
              "name": "regression fixture fails",
              "stdin": "<tasks><task name=\"read\" minutes=\"20\"/></tasks>",
              "stdout": "",
              "exit": 10,
              "stderr_contains": "test failed"
            }
          ],
          "runner": "xslt",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "libxslt 1.1.35 / libxml2 2.9.13; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "xslt validation.json; exact output/status, unchanged input bytes and separate compiler/scenario outcomes"
          }
        }
      ],
      "support_files": [
        {
          "name": "Run instructions.txt",
          "code": "Export the fixed .xsl stylesheet and XML companion. The installed xsltproc reports libxslt 1.1.35 and libxml2 2.9.13; these old installed versions are a recorded learning environment, not a recommendation for untrusted-document processing. Every command uses --nonet --novalid --nowrite --nomkdir plus small depth/variable limits and empty catalogue environment variables. These flags are defense in depth, not a complete sandbox: local file reads can exist in other stylesheets. This pack has no DTD declarations, custom/external entities, document(), imports, includes, extensions or secondary output. Only authored toy XML and trusted stylesheets are tested. The HTML never runs them. Output is stdout; inputs remain unchanged. XPath 1.0 syntax is introduced only as needed by XSLT; the standalone XPath entry stays planned. Installed --stringparam cannot transport a value containing both single and double quotes: it exits with status 8. That documented CLI limitation is tested separately; no quote workaround is implied.\n"
        }
      ],
      "rejection_label": "XSLT 1.0 compiler",
      "rejection_heading": "Expected program rejections",
      "templates": [
        {
          "id": "build",
          "name": "Build a structured transform",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Provide a fixed program, separate authored input, exact command and expected serialized output. Separate predicted behavior from executed evidence."
        },
        {
          "id": "debug",
          "name": "Debug an unexpected result",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Reduce the input and distinguish parse errors, missing matches, wrong types, namespaces and process status. Separate predicted behavior from executed evidence."
        },
        {
          "id": "test",
          "name": "Test boundaries and contracts",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Include empty input, missing values, false/zero, escaping and rejected types; specify stdout, stderr and exit status. Separate predicted behavior from executed evidence."
        },
        {
          "id": "refactor",
          "name": "Refactor with a regression contract",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Preserve result count, order, types, serialization and failure policy; explain the change. Separate predicted behavior from executed evidence."
        },
        {
          "id": "document",
          "name": "Document the transformation",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. State schema assumptions, supported tool version, numeric limits, encoding, resource bounds and side effects. Separate predicted behavior from executed evidence."
        },
        {
          "id": "explain",
          "name": "Explain with an exercise",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Trace one input through the transform and provide a separate exercise and solution. Separate predicted behavior from executed evidence."
        }
      ],
      "test_summary": {
        "result": "passed",
        "tested_on": "2026-10-26",
        "runtime": "libxslt 1.1.35 / libxml2 2.9.13; macOS 27.0.1 arm64",
        "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
        "assertion_count": 157,
        "example_count": 12,
        "accepted_executions": 12,
        "expected_program_rejections": 4,
        "scenario_invocations": 20,
        "expected_nonzero_scenarios": 6,
        "embedded_cases": 4,
        "binary_sha256": "9a7b54c610c629e828c672a2d9623d804ed9b2842afc8ee57c4d0ccafd59e359",
        "locale": "C",
        "limits": [
          "Only the installed macOS arm64 implementations and tiny authored inputs were tested.",
          "Expected compiler rejections, contract errors, CLI parameter errors and jq no-result status are distinct from successful programs.",
          "Only fixed trusted programs: no imports, external files, DTD declarations, custom/external entities, document(), extension functions or generated source.",
          "Temporary directories, timeouts and flags are not a complete sandbox for arbitrary input.",
          "XSLT examples use XPath 1.0 expressions without completing the standalone XPath catalogue entry."
        ]
      }
    },
    {
      "id": "tcl-foundations",
      "title": "Tcl Foundations",
      "version": "0.10.0",
      "status": "tested",
      "entry_ids": [
        "tcl"
      ],
      "languages": [
        "Tcl"
      ],
      "default_goal": "Build a small deterministic local example with explicit data and error contracts.",
      "default_runtime": "Tcl 8.5.9; macOS 27.0.1 arm64",
      "default_constraints": "Only authored toy data and workspace files. No network, credentials, sign-ins, installations or existing application control. Do not construct source from data.",
      "audience": "Learners comfortable saving plain text and invoking an installed interpreter.",
      "estimated_practice": "4 to 6 hours.",
      "scope": "Tcl programming language: command words and substitution, braced expressions, lists, dictionaries, control flow, procedures, namespaces, explicit file channels and errors. No Tk GUI, Tcl 8.6/9 features or arbitrary script evaluation.",
      "runtime_note": "Use installed /usr/bin/tclsh 8.5.9. This old interpreter is recorded teaching evidence, not a deployment recommendation. The accessible web manual is the later 8.5.19 series; actual 8.5.9 execution bounds the claims. Export one entry and its companions into a fresh toy folder. File example 08 creates only Atlas note.txt with exclusive creation and explicit UTF-8/LF, and refuses to overwrite it; the file remains for inspection. Source in example 09 loads only its authored companion. Data is never eval-ed. Tcl open can launch a pipeline for a leading | path; this pack uses fixed filenames. No sockets, exec, native extensions or downloaded packages. A script interpreter and temporary directory are not an arbitrary-code sandbox. Errors are evaluation outcomes, not a separate compiler pass.",
      "lessons": [
        {
          "title": "Commands receive words",
          "text": "A Tcl command is a sequence of words. Whitespace separates words; braces group a literal word, while double quotes permit substitution. A variable value is substituted as one word; its spaces do not become extra arguments. Braced text still has the special backslash-newline rule."
        },
        {
          "title": "Substitution is not repeated evaluation",
          "text": "Dollar notation reads a variable and square brackets run a command. The result is data at that substitution point, not automatically reparsed as script. list constructs list structure safely. Avoid eval and string-built scripts when ordinary arguments express the operation."
        },
        {
          "title": "Expressions have their own parser",
          "text": "Use expr with a braced expression so the expression engine sees variables directly and can short-circuit. eq compares strings; == can compare numerically. Integer division floors. Leading-zero integer text may be octal in this version; the bounded decimal contract accepts canonical decimal only."
        },
        {
          "title": "Lists and dictionaries preserve structure",
          "text": "Use list, lappend, lindex and llength for lists rather than splitting on spaces. A dictionary maps keys to values; dict exists distinguishes absence from a present empty value. dict incr accumulates integer counts. Sort keys explicitly when output order is a contract."
        },
        {
          "title": "Control flow and procedures",
          "text": "foreach iterates list elements. if, while and for evaluate conditions and bodies; those command arguments have script or expression roles. proc creates local argument variables and returns a value. Default arguments and the final args parameter are different mechanisms."
        },
        {
          "title": "Namespaces organize trusted code",
          "text": "A namespace qualifies command names and variables. source executes a file as code; it is not a data parser. The module example loads only the included fixed companion beside its entry file and calls a qualified procedure. No package discovery or third-party loading is needed."
        },
        {
          "title": "Channels need explicit handling",
          "text": "Open fixed toy paths with a declared access mode. CREAT with EXCL refuses an existing file. Set encoding and newline translation explicitly; close the channel even after an operation fails. Character and byte counts differ; these lessons avoid claiming Unicode grapheme correctness."
        },
        {
          "title": "Observe errors and test boundaries",
          "text": "catch returns a completion code and can capture result and options; nonzero does not always mean an error because return, break and continue also have codes. Return errors with a stable errorcode for contracts. Separate rejected fixtures from successful examples. Tcl 8.5 has no try/finally command."
        }
      ],
      "reference": [
        {
          "area": "Assignment",
          "syntax": "set name value",
          "meaning": "Store or retrieve a variable."
        },
        {
          "area": "Literal word",
          "syntax": "{text with spaces}",
          "meaning": "Group a word without ordinary substitutions."
        },
        {
          "area": "Substitution",
          "syntax": "$name / [command]",
          "meaning": "Read a variable or substitute a command result."
        },
        {
          "area": "Expression",
          "syntax": "expr {$a + $b}",
          "meaning": "Evaluate fixed arithmetic with braced syntax."
        },
        {
          "area": "Strings",
          "syntax": "string length / string equal",
          "meaning": "Operate on text rather than script source."
        },
        {
          "area": "List",
          "syntax": "list / lappend",
          "meaning": "Build structured elements without manual quoting."
        },
        {
          "area": "List lookup",
          "syntax": "lindex / llength",
          "meaning": "Read an element or count elements."
        },
        {
          "area": "Dictionary",
          "syntax": "dict create / dict get",
          "meaning": "Create and read key-value data."
        },
        {
          "area": "Presence",
          "syntax": "dict exists",
          "meaning": "Distinguish a missing key from its value."
        },
        {
          "area": "Loop",
          "syntax": "foreach item $items {...}",
          "meaning": "Iterate structured list elements."
        },
        {
          "area": "Procedure",
          "syntax": "proc name {args} {body}",
          "meaning": "Define a reusable command with local arguments."
        },
        {
          "area": "Namespace",
          "syntax": "namespace eval / name::proc",
          "meaning": "Organize trusted definitions."
        },
        {
          "area": "Error",
          "syntax": "return -code error -errorcode {...}",
          "meaning": "Return an application error and stable category."
        },
        {
          "area": "Catch",
          "syntax": "catch {script} result options",
          "meaning": "Inspect completion code and details."
        },
        {
          "area": "File",
          "syntax": "open path {WRONLY CREAT EXCL}",
          "meaning": "Create a new file and refuse overwrite."
        },
        {
          "area": "Channel",
          "syntax": "fconfigure / close",
          "meaning": "Set encoding/translation and release the channel."
        }
      ],
      "examples": [
        {
          "id": "tcl-words",
          "title": "Tcl 01 - Words and substitution",
          "filename": "Tcl 01 Words and substitution.tcl",
          "code": "set name {read and code}\nputs \"Task: $name\"\nputs {$name [not executed]}\nputs [llength [list $name ready]]\n",
          "expected_output": "Task: read and code\n$name [not executed]\n2",
          "expected_stdout": "Task: read and code\n$name [not executed]\n2\n",
          "explanation": "The substituted name stays one list element. Braces keep dollar and bracket text literal.",
          "exercise": "",
          "files": [],
          "arguments": [],
          "invocation": "/usr/bin/tclsh 'Tcl 01 Words and substitution.tcl'",
          "checks": [],
          "negative": [
            {
              "code": "set value {unfinished\n",
              "diagnostic": "missing close-brace"
            }
          ],
          "scenarios": [],
          "generated_files": {},
          "runner": "tcl",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Tcl 8.5.9; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "Tcl validation.json; exact stdout/status, unchanged source, retained-file contract, direct controller collection and complete native child wait receipts"
          }
        },
        {
          "id": "tcl-expression",
          "title": "Tcl 02 - Braced expressions",
          "filename": "Tcl 02 Braced expressions.tcl",
          "code": "set minutes 20\nputs [expr {$minutes * 3}]\nputs [expr {5 / 2}]\nputs [expr {5 / 2.0}]\nset text {[not executed]}\nputs [expr {$text eq {[not executed]}}]\n",
          "expected_output": "60\n2\n2.5\n1",
          "expected_stdout": "60\n2\n2.5\n1\n",
          "explanation": "Integer and floating division differ. The substituted text is an operand, not an invoked command.",
          "exercise": "",
          "files": [],
          "arguments": [],
          "invocation": "/usr/bin/tclsh 'Tcl 02 Braced expressions.tcl'",
          "checks": [],
          "negative": [
            {
              "code": "expr {1 +}\n",
              "diagnostic": "missing operand"
            }
          ],
          "scenarios": [],
          "generated_files": {},
          "runner": "tcl",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Tcl 8.5.9; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "Tcl validation.json; exact stdout/status, unchanged source, retained-file contract, direct controller collection and complete native child wait receipts"
          }
        },
        {
          "id": "tcl-lists",
          "title": "Tcl 03 - Structured lists",
          "filename": "Tcl 03 Structured lists.tcl",
          "code": "set names [list {read notes} {code [small]}]\nlappend names {rest & reflect}\nputs [llength $names]\nputs [lindex $names 1]\nputs [join $names { | }]\n",
          "expected_output": "3\ncode [small]\nread notes | code [small] | rest & reflect",
          "expected_stdout": "3\ncode [small]\nread notes | code [small] | rest & reflect\n",
          "explanation": "List construction preserves spaces and punctuation. join is display formatting, not reversible serialization.",
          "exercise": "",
          "files": [],
          "arguments": [],
          "invocation": "/usr/bin/tclsh 'Tcl 03 Structured lists.tcl'",
          "checks": [],
          "negative": [],
          "scenarios": [],
          "generated_files": {},
          "runner": "tcl",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Tcl 8.5.9; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "Tcl validation.json; exact stdout/status, unchanged source, retained-file contract, direct controller collection and complete native child wait receipts"
          }
        },
        {
          "id": "tcl-dictionaries",
          "title": "Tcl 04 - Dictionaries and presence",
          "filename": "Tcl 04 Dictionaries and presence.tcl",
          "code": "set task [dict create name read minutes 20 note {}]\ndict incr task minutes 5\nputs [dict get $task minutes]\nputs [dict exists $task note]\nputs [dict exists $task missing]\nputs [join [lsort [dict keys $task]] ,]\n",
          "expected_output": "25\n1\n0\nminutes,name,note",
          "expected_stdout": "25\n1\n0\nminutes,name,note\n",
          "explanation": "An existing empty note differs from an absent key. Sorting makes the printed key order explicit.",
          "exercise": "",
          "files": [],
          "arguments": [],
          "invocation": "/usr/bin/tclsh 'Tcl 04 Dictionaries and presence.tcl'",
          "checks": [],
          "negative": [
            {
              "code": "dict get {name read} absent\n",
              "diagnostic": "not known in dictionary"
            }
          ],
          "scenarios": [],
          "generated_files": {},
          "runner": "tcl",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Tcl 8.5.9; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "Tcl validation.json; exact stdout/status, unchanged source, retained-file contract, direct controller collection and complete native child wait receipts"
          }
        },
        {
          "id": "tcl-control",
          "title": "Tcl 05 - Iterate and branch",
          "filename": "Tcl 05 Iterate and branch.tcl",
          "code": "set total 0\nforeach value {0 20 40} {\n    if {$value == 0} {continue}\n    incr total $value\n}\nset count 0\nwhile {$count < 3} {incr count}\nputs \"total=$total count=$count\"\n",
          "expected_output": "total=60 count=3",
          "expected_stdout": "total=60 count=3\n",
          "explanation": "The finite authored list and loop bounds make termination explicit. continue skips only the current iteration.",
          "exercise": "",
          "files": [],
          "arguments": [],
          "invocation": "/usr/bin/tclsh 'Tcl 05 Iterate and branch.tcl'",
          "checks": [],
          "negative": [],
          "scenarios": [],
          "generated_files": {},
          "runner": "tcl",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Tcl 8.5.9; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "Tcl validation.json; exact stdout/status, unchanged source, retained-file contract, direct controller collection and complete native child wait receipts"
          }
        },
        {
          "id": "tcl-procedure",
          "title": "Tcl 06 - Procedures and arguments",
          "filename": "Tcl 06 Procedures and arguments.tcl",
          "code": "proc label {name {minutes 20}} {\n    return \"$name: $minutes minutes\"\n}\nset name outside\nputs [label read]\nputs [label code 40]\nputs $name\n",
          "expected_output": "read: 20 minutes\ncode: 40 minutes\noutside",
          "expected_stdout": "read: 20 minutes\ncode: 40 minutes\noutside\n",
          "explanation": "Procedure arguments are local; the caller name is unchanged. The optional argument has a literal default.",
          "exercise": "",
          "files": [],
          "arguments": [],
          "invocation": "/usr/bin/tclsh 'Tcl 06 Procedures and arguments.tcl'",
          "checks": [],
          "negative": [
            {
              "code": "proc pair {a b} {return $a}\npair one\n",
              "diagnostic": "wrong # args"
            }
          ],
          "scenarios": [],
          "generated_files": {},
          "runner": "tcl",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Tcl 8.5.9; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "Tcl validation.json; exact stdout/status, unchanged source, retained-file contract, direct controller collection and complete native child wait receipts"
          }
        },
        {
          "id": "tcl-errors",
          "title": "Tcl 07 - Catch a contract error",
          "filename": "Tcl 07 Catch a contract error.tcl",
          "code": "proc minutes {text} {\n    if {![regexp {^(0|[1-9][0-9]{0,2})$} $text]} {\n        return -code error -errorcode {ATLAS MINUTES} {invalid minutes}\n    }\n    if {$text > 120} {\n        return -code error -errorcode {ATLAS MINUTES} {invalid minutes}\n    }\n    return [expr {$text + 0}]\n}\nset code [catch {minutes 121} message options]\nputs \"code=$code message=$message\"\nputs [dict get $options -errorcode]\nputs [minutes 120]\n",
          "expected_output": "code=1 message=invalid minutes\nATLAS MINUTES\n120",
          "expected_stdout": "code=1 message=invalid minutes\nATLAS MINUTES\n120\n",
          "explanation": "The contract accepts canonical decimal zero through 120. Leading zeros, signs, whitespace, decimal points and numeric prefixes are intentionally rejected. catch exposes the error without terminating the successful demonstration.",
          "exercise": "",
          "files": [],
          "arguments": [],
          "invocation": "/usr/bin/tclsh 'Tcl 07 Catch a contract error.tcl'",
          "checks": [],
          "negative": [],
          "scenarios": [],
          "generated_files": {},
          "runner": "tcl",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Tcl 8.5.9; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "Tcl validation.json; exact stdout/status, unchanged source, retained-file contract, direct controller collection and complete native child wait receipts"
          }
        },
        {
          "id": "tcl-files",
          "title": "Tcl 08 - Create an exclusive toy file",
          "filename": "Tcl 08 Create an exclusive toy file.tcl",
          "code": "set out [open {Atlas note.txt} {WRONLY CREAT EXCL}]\nset code [catch {\n    fconfigure $out -encoding utf-8 -translation lf\n    puts $out {read and code}\n} message options]\nset closed [catch {close $out} closeMessage]\nif {$code} {return -options $options $message}\nif {$closed} {error $closeMessage}\nset input [open {Atlas note.txt} r]\nfconfigure $input -encoding utf-8 -translation lf\nset text [read $input]\nclose $input\nputs -nonewline $text\n",
          "expected_output": "read and code",
          "expected_stdout": "read and code\n",
          "explanation": "Run in a new toy folder. Only Atlas note.txt is created and retained. A second run refuses to overwrite the existing file; no cleanup command is part of the example.",
          "exercise": "",
          "files": [],
          "arguments": [],
          "invocation": "/usr/bin/tclsh 'Tcl 08 Create an exclusive toy file.tcl'",
          "checks": [],
          "negative": [],
          "scenarios": [
            {
              "name": "existing file refused",
              "arguments": [],
              "stdout": "",
              "exit": 1,
              "stderr_contains": "file already exists",
              "initial_files": {
                "Atlas note.txt": "keep this\n"
              },
              "expected_files": {
                "Atlas note.txt": "keep this\n"
              }
            }
          ],
          "generated_files": {
            "Atlas note.txt": "read and code\n"
          },
          "runner": "tcl",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Tcl 8.5.9; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "Tcl validation.json; exact stdout/status, unchanged source, retained-file contract, direct controller collection and complete native child wait receipts"
          }
        },
        {
          "id": "tcl-module",
          "title": "Tcl 09 - Load a trusted namespace",
          "filename": "Tcl 09 Load a trusted namespace.tcl",
          "code": "source [file join [file dirname [info script]] {Study helpers.tcl}]\nputs [study::double 20]\n",
          "expected_output": "40",
          "expected_stdout": "40\n",
          "explanation": "source executes the fixed companion as code. file join avoids manually joining path separators; it does not make an arbitrary path trusted.",
          "exercise": "",
          "files": [
            {
              "name": "Study helpers.tcl",
              "code": "namespace eval study {\n    proc double {value} {return [expr {$value * 2}]}\n}\n"
            }
          ],
          "arguments": [],
          "invocation": "/usr/bin/tclsh 'Tcl 09 Load a trusted namespace.tcl'",
          "checks": [],
          "negative": [],
          "scenarios": [],
          "generated_files": {},
          "runner": "tcl",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Tcl 8.5.9; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "Tcl validation.json; exact stdout/status, unchanged source, retained-file contract, direct controller collection and complete native child wait receipts"
          }
        },
        {
          "id": "tcl-exercise-a",
          "title": "Tcl exercise A - Validate and total",
          "filename": "Tcl exercise A Validate and total.tcl",
          "code": "proc minutes {text} {\n    if {![regexp {^(0|[1-9][0-9]{0,2})$} $text]} {\n        return -code error -errorcode {ATLAS MINUTES} {invalid minutes}\n    }\n    if {$text > 120} {\n        return -code error -errorcode {ATLAS MINUTES} {invalid minutes}\n    }\n    return [expr {$text + 0}]\n}\nif {[llength $argv] > 10} {puts stderr {too many values}; exit 2}\nset total 0\nforeach text $argv {\n    if {[catch {minutes $text} value]} {puts stderr $value; exit 2}\n    incr total $value\n}\nputs \"total=$total\"\n",
          "expected_output": "total=60",
          "expected_stdout": "total=60\n",
          "explanation": "Each command-line argument is checked before addition. This accepts at most ten canonical decimal values; the empty list totals zero.",
          "exercise": "Accept at most ten minutes values from zero through 120; print one total or a diagnostic with status 2.",
          "files": [],
          "arguments": [
            "20",
            "40"
          ],
          "invocation": "/usr/bin/tclsh 'Tcl exercise A Validate and total.tcl' 20 40",
          "checks": [],
          "negative": [],
          "scenarios": [
            {
              "name": "empty",
              "arguments": [],
              "stdout": "total=0\n",
              "exit": 0,
              "stderr_contains": ""
            },
            {
              "name": "boundaries",
              "arguments": [
                "0",
                "120"
              ],
              "stdout": "total=120\n",
              "exit": 0,
              "stderr_contains": ""
            },
            {
              "name": "out of range",
              "arguments": [
                "121"
              ],
              "stdout": "",
              "exit": 2,
              "stderr_contains": "invalid minutes"
            },
            {
              "name": "leading zero",
              "arguments": [
                "08"
              ],
              "stdout": "",
              "exit": 2,
              "stderr_contains": "invalid minutes"
            },
            {
              "name": "numeric prefix",
              "arguments": [
                "12x"
              ],
              "stdout": "",
              "exit": 2,
              "stderr_contains": "invalid minutes"
            },
            {
              "name": "too many",
              "arguments": [
                "1",
                "1",
                "1",
                "1",
                "1",
                "1",
                "1",
                "1",
                "1",
                "1",
                "1"
              ],
              "stdout": "",
              "exit": 2,
              "stderr_contains": "too many values"
            }
          ],
          "generated_files": {},
          "runner": "tcl",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Tcl 8.5.9; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "Tcl validation.json; exact stdout/status, unchanged source, retained-file contract, direct controller collection and complete native child wait receipts"
          }
        },
        {
          "id": "tcl-exercise-b",
          "title": "Tcl exercise B - Count named items",
          "filename": "Tcl exercise B Count named items.tcl",
          "code": "set counts [dict create]\nforeach name $argv {dict incr counts $name}\nforeach name [lsort [dict keys $counts]] {\n    puts \"$name: [dict get $counts $name]\"\n}\n",
          "expected_output": "code: 1\nread notes: 2",
          "expected_stdout": "code: 1\nread notes: 2\n",
          "explanation": "The argument list retains multiword names and dict incr merges duplicates. The output is sorted and deliberately human-readable.",
          "exercise": "Count repeated labels while preserving spaces, then print sorted counts.",
          "files": [],
          "arguments": [
            "read notes",
            "code",
            "read notes"
          ],
          "invocation": "/usr/bin/tclsh 'Tcl exercise B Count named items.tcl' 'read notes' code 'read notes'",
          "checks": [],
          "negative": [],
          "scenarios": [
            {
              "name": "no labels",
              "arguments": [],
              "stdout": "",
              "exit": 0,
              "stderr_contains": ""
            },
            {
              "name": "punctuation remains data",
              "arguments": [
                "[word]; $x"
              ],
              "stdout": "[word]; $x: 1\n",
              "exit": 0,
              "stderr_contains": ""
            }
          ],
          "generated_files": {},
          "runner": "tcl",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Tcl 8.5.9; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "Tcl validation.json; exact stdout/status, unchanged source, retained-file contract, direct controller collection and complete native child wait receipts"
          }
        },
        {
          "id": "tcl-exercise-c",
          "title": "Tcl exercise C - Four observable cases",
          "filename": "Tcl exercise C Four observable cases.tcl",
          "code": "proc minutes {text} {\n    if {![regexp {^(0|[1-9][0-9]{0,2})$} $text]} {\n        return -code error -errorcode {ATLAS MINUTES} {invalid minutes}\n    }\n    if {$text > 120} {\n        return -code error -errorcode {ATLAS MINUTES} {invalid minutes}\n    }\n    return [expr {$text + 0}]\n}\nset passed 0\nforeach {input expectedCode expectedValue} {0 0 0 120 0 120 121 1 {invalid minutes} 08 1 {invalid minutes}} {\n    set code [catch {minutes $input} value]\n    if {$code != $expectedCode || $value ne $expectedValue} {error {test failed}}\n    incr passed\n}\nputs \"$passed checks passed\"\n",
          "expected_output": "4 checks passed",
          "expected_stdout": "4 checks passed\n",
          "explanation": "The four cases assert both completion code and value. An assertion failure raises an error rather than printing a success count.",
          "exercise": "Test zero, the upper bound, an out-of-range value and ambiguous leading-zero text.",
          "files": [],
          "arguments": [],
          "invocation": "/usr/bin/tclsh 'Tcl exercise C Four observable cases.tcl'",
          "checks": [],
          "negative": [],
          "scenarios": [],
          "generated_files": {},
          "runner": "tcl",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Tcl 8.5.9; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "Tcl validation.json; exact stdout/status, unchanged source, retained-file contract, direct controller collection and complete native child wait receipts"
          }
        }
      ],
      "support_files": [
        {
          "name": "Tcl practice instructions.txt",
          "code": "Use a fresh toy directory and the exact command shown for each example.\nFile example 08 creates Atlas note.txt exclusively and refuses overwrite.\nThe module example requires its trusted Study helpers.tcl companion.\nNo Tcl 8.6 try/finally or modern Tcl features are used.\n"
        }
      ],
      "rejection_label": "interpreter",
      "rejection_heading": "Expected evaluation failures",
      "templates": [
        {
          "id": "build",
          "name": "Build a bounded local example",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Give original source, companion fixtures, exact invocation and expected stdout, stderr and status. Separate predictions from tests actually executed."
        },
        {
          "id": "debug",
          "name": "Trace an observed failure",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Reduce the case; distinguish word substitution, data contracts, pattern matches, EOF, timeout and process exit. Separate predictions from tests actually executed."
        },
        {
          "id": "test",
          "name": "Test contracts and failures",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Use fixed toy inputs, boundaries and explicit failure categories. Verify unchanged source files and process cleanup. Separate predictions from tests actually executed."
        },
        {
          "id": "refactor",
          "name": "Refactor without changing behavior",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Preserve output, order, status and side effects. Keep data out of generated script strings. Separate predictions from tests actually executed."
        },
        {
          "id": "document",
          "name": "Document the execution boundary",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. State interpreter versions, encoding, input limits, trusted files, child lifetimes and platform limits. Separate predictions from tests actually executed."
        },
        {
          "id": "explain",
          "name": "Explain then practice",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Trace the value or conversation state, then supply an exercise with a separate worked solution. Separate predictions from tests actually executed."
        }
      ],
      "test_summary": {
        "result": "passed",
        "tested_on": "2026-10-26",
        "runtime": "Tcl 8.5.9; macOS 27.0.1 arm64",
        "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
        "assertion_count": 150,
        "example_count": 12,
        "accepted_controller_or_program_executions": 12,
        "expected_evaluation_failures": 4,
        "scenario_invocations": 9,
        "expected_nonzero_scenarios": 5,
        "embedded_cases": 4,
        "binary_sha256": "d2c5553922da43d13921dafb37266d7f586edb75a0a4593c973285c1724ce5eb",
        "locale": "C",
        "limits": [
          "Only installed macOS arm64 Tcl 8.5.9 / Expect 5.45 and authored toy fixtures were exercised.",
          "These interpreters have no separately claimed static compilation pass; expected evaluation failures are not successful programs.",
          "Expect controllers may intentionally observe a failed child; controller success does not imply every child succeeded.",
          "Only direct owned controllers and retained Expect child handles are managed. Cooperative cleanup requires event-loop progress; missing wait receipts remain uncertain. No process inspection, recorded-PID signaling, sign-ins, secrets, network or external application control.",
          "Retained fixture folders, CPU/time/output limits and reviewed source are not an arbitrary-code sandbox."
        ]
      }
    },
    {
      "id": "expect-foundations",
      "title": "Expect Foundations",
      "version": "0.10.0",
      "status": "tested",
      "entry_ids": [
        "expect"
      ],
      "languages": [
        "Expect"
      ],
      "default_goal": "Build a small deterministic local example with explicit data and error contracts.",
      "default_runtime": "Expect 5.45 with Tcl 8.5.9; macOS 27.0.1 arm64",
      "default_constraints": "Only authored toy data and workspace files. No network, credentials, sign-ins, installations or existing application control. Do not construct source from data.",
      "audience": "Learners comfortable saving plain text and invoking an installed interpreter.",
      "estimated_practice": "4 to 6 hours.",
      "scope": "Expect is a Tcl extension for scripted conversations with processes, not a second general-purpose language or a shell. This pack covers fixed toy children, literal/regular-expression matching, send, timeout, EOF, wait status, buffering and bounded conversation states. It does not automate real services.",
      "runtime_note": "Use /usr/bin/expect -N -n with installed Expect 5.45 and embedded Tcl 8.5.9. These old installed versions are limited teaching evidence. -N and -n suppress system and user Expect startup files. Export Expect support.tcl, one entry .exp and its unique child companion into the same new toy directory. Each entry spawns only /usr/bin/tclsh with that authored child; no shell, sign-ins, network, secrets or external applications. Child transcripts are ASCII and use the tested local pseudo-terminal CRLF convention. stty_init changes only each newly spawned pseudo-terminal. log_user 0 suppresses transcript echo but is not a security boundary. Explicit timeouts, EOF and wait are distinct; a timeout never proves child exit. The harness retains native child handles and complete blocking wait receipts. Cooperative cleanup closes those channels and waits; it requires event-loop progress. An outer timeout collects only the direct controller and reports unresolved child cleanup as uncertain. Examples and support code are trusted; this is not an arbitrary-process sandbox.",
      "lessons": [
        {
          "title": "A Tcl extension with a process role",
          "text": "Expect adds spawn, send and expect to Tcl. A spawn id identifies a conversation channel; it is not the child process ID. This pack spawns only its authored local Tcl fixtures using separate arguments, never a shell command string."
        },
        {
          "title": "Prompt bytes and flushing matter",
          "text": "An interactive prompt may have no trailing newline, so the toy child explicitly flushes it. A pseudo-terminal can transform LF to CRLF and echo typed text. The support file disables echo for newly spawned children; matching and output assumptions remain platform-specific."
        },
        {
          "title": "Match the intended pattern mode",
          "text": "Use -exact when punctuation is literal. Default patterns are globs; -re selects regular expressions. Match only the required bounded protocol, and capture needed expect_out values before the next match overwrites them. Matching a substring alone is not full-message validation. Keep the shown multiline clause form: Tcl quoting and Expect pattern-list parsing are separate layers."
        },
        {
          "title": "Send data as one argument",
          "text": "send -- ends option parsing and sends one data value. Tcl substitution does not automatically reparse that value as code. The fixture reads a line as data; arbitrary child programs could interpret it differently. Reject protocol line breaks and excessive length before sending."
        },
        {
          "title": "Timeout EOF and status are distinct",
          "text": "timeout means a match did not arrive in time; eof means the channel ended. Neither proves a successful child result. wait reaps the child and returns operating-system and child-status fields, with possible extra signal fields. Check those fields instead of assuming EOF is success."
        },
        {
          "title": "Progress is a state transition",
          "text": "exp_continue continues the same matching command. Its default restarts the timeout; -continue_timer keeps the original deadline. Count or bound progress messages. For deterministic timeout practice, a zero-time poll occurs after READY while the toy waits for an explicit quit message."
        },
        {
          "title": "Keep the scope explicit",
          "text": "Use -i with a saved spawn id in helper procedures. Only one authored child is active at a time here. No attach, interact, background monitoring, broad kill, secret logging or real application control is included. close affects a channel; wait concerns process lifetime."
        },
        {
          "title": "Test conversations rather than happy paths",
          "text": "Test normal replies, malformed reply text, early EOF, expected child failure and timeout separately. The toy child failures are controlled evidence, not successful commands. Shared support code checks EOF and exact exit status, while the harness checks retained files, complete native child wait receipts and direct controller collection."
        }
      ],
      "reference": [
        {
          "area": "Start",
          "syntax": "spawn -noecho /usr/bin/tclsh file",
          "meaning": "Create a channel for the fixed local child."
        },
        {
          "area": "Channel",
          "syntax": "spawn_id",
          "meaning": "Save the identifier used with -i."
        },
        {
          "area": "Literal",
          "syntax": "expect -exact text",
          "meaning": "Match punctuation literally."
        },
        {
          "area": "Regular expression",
          "syntax": "expect -re {pattern}",
          "meaning": "Use a fixed regular expression."
        },
        {
          "area": "Capture",
          "syntax": "expect_out(1,string)",
          "meaning": "Read a captured subgroup immediately."
        },
        {
          "area": "Transmit",
          "syntax": "send -i $id -- $text",
          "meaning": "Send data to the chosen child channel."
        },
        {
          "area": "Timeout",
          "syntax": "set timeout 3",
          "meaning": "Set a bounded match wait in seconds."
        },
        {
          "area": "Poll",
          "syntax": "expect -timeout 0",
          "meaning": "Check immediately without a positive wait."
        },
        {
          "area": "End",
          "syntax": "eof",
          "meaning": "Handle channel closure explicitly."
        },
        {
          "area": "Reap",
          "syntax": "wait -i $id",
          "meaning": "Collect OS and child exit information."
        },
        {
          "area": "Continuation",
          "syntax": "exp_continue -continue_timer",
          "meaning": "Continue without restarting the match timer."
        },
        {
          "area": "Echo",
          "syntax": "set stty_init {-echo}",
          "meaning": "Configure newly spawned pseudo-terminals only."
        },
        {
          "area": "Display",
          "syntax": "log_user 0",
          "meaning": "Suppress ordinary child transcript echo."
        },
        {
          "area": "Buffer",
          "syntax": "match_max -i $id 4096",
          "meaning": "Set the matching buffer; not a hostile-input sandbox."
        },
        {
          "area": "Startup",
          "syntax": "expect -N -n file",
          "meaning": "Suppress system and user startup scripts."
        },
        {
          "area": "Flush",
          "syntax": "flush stdout",
          "meaning": "Make a non-newline child prompt observable."
        }
      ],
      "examples": [
        {
          "id": "expect-start",
          "title": "Expect 01 - Spawn match and reap",
          "filename": "Expect 01 Spawn match and reap.exp",
          "code": "source [file join [file dirname [info script]] {Expect support.tcl}]\nset child [file join [file dirname [info script]] {Expect 01 Spawn match and reap Child.tcl}]\nset id [startToy $child]\nexact $id \"READY\\r\\n\"\nfinish $id 0\nputs {ready; child status 0}\n",
          "expected_output": "ready; child status 0",
          "expected_stdout": "ready; child status 0\n",
          "explanation": "The channel match and the child exit status are both checked. These calls pass this pack's fixed authored child paths. The helper has no arbitrary-path allowlist or sandbox guarantee.",
          "exercise": "",
          "files": [
            {
              "name": "Expect 01 Spawn match and reap Child.tcl",
              "code": "fconfigure stdout -translation lf -buffering none\nputs READY\n"
            }
          ],
          "arguments": [],
          "invocation": "/usr/bin/expect -N -n 'Expect 01 Spawn match and reap.exp'",
          "checks": [],
          "negative": [
            {
              "code": "set x {unfinished\n",
              "diagnostic": "missing close-brace"
            }
          ],
          "scenarios": [],
          "generated_files": {},
          "runner": "expect",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Expect 5.45 with Tcl 8.5.9; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "Expect validation.json; exact stdout/status, unchanged source, retained-file contract, direct controller collection and complete native child wait receipts"
          }
        },
        {
          "id": "expect-prompt",
          "title": "Expect 02 - Prompt and response",
          "filename": "Expect 02 Prompt and response.exp",
          "code": "source [file join [file dirname [info script]] {Expect support.tcl}]\nset child [file join [file dirname [info script]] {Expect 02 Prompt and response Child.tcl}]\nset id [startToy $child]\nexact $id {Name? }\nsend -i $id -- \"read\\r\"\nexact $id \"Hello read\\r\\n\"\nfinish $id 0\nputs {greeting checked}\n",
          "expected_output": "greeting checked",
          "expected_stdout": "greeting checked\n",
          "explanation": "The child flushes a prompt without a newline. The sent carriage return completes the pseudo-terminal line; the fixture treats the response as text.",
          "exercise": "",
          "files": [
            {
              "name": "Expect 02 Prompt and response Child.tcl",
              "code": "fconfigure stdout -translation lf -buffering none\nputs -nonewline {Name? }\nflush stdout\nif {[gets stdin name] < 0} {exit 3}\nputs \"Hello $name\"\n"
            }
          ],
          "arguments": [],
          "invocation": "/usr/bin/expect -N -n 'Expect 02 Prompt and response.exp'",
          "checks": [],
          "negative": [],
          "scenarios": [],
          "generated_files": {},
          "runner": "expect",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Expect 5.45 with Tcl 8.5.9; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "Expect validation.json; exact stdout/status, unchanged source, retained-file contract, direct controller collection and complete native child wait receipts"
          }
        },
        {
          "id": "expect-literal",
          "title": "Expect 03 - Literal punctuation",
          "filename": "Expect 03 Literal punctuation.exp",
          "code": "source [file join [file dirname [info script]] {Expect support.tcl}]\nset child [file join [file dirname [info script]] {Expect 03 Literal punctuation Child.tcl}]\nset id [startToy $child]\nexact $id \"\\[ready\\]*?\\r\\n\"\nfinish $id 0\nputs {literal matched}\n",
          "expected_output": "literal matched",
          "expected_stdout": "literal matched\n",
          "explanation": "-exact keeps brackets, star and question mark literal. Tcl quoting is a separate layer from Expect pattern mode.",
          "exercise": "",
          "files": [
            {
              "name": "Expect 03 Literal punctuation Child.tcl",
              "code": "fconfigure stdout -translation lf -buffering none\nputs {[ready]*?}\n"
            }
          ],
          "arguments": [],
          "invocation": "/usr/bin/expect -N -n 'Expect 03 Literal punctuation.exp'",
          "checks": [],
          "negative": [
            {
              "code": "expect -notAnOption value\n",
              "diagnostic": "bad flag"
            }
          ],
          "scenarios": [],
          "generated_files": {},
          "runner": "expect",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Expect 5.45 with Tcl 8.5.9; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "Expect validation.json; exact stdout/status, unchanged source, retained-file contract, direct controller collection and complete native child wait receipts"
          }
        },
        {
          "id": "expect-capture",
          "title": "Expect 04 - Capture a bounded count",
          "filename": "Expect 04 Capture a bounded count.exp",
          "code": "source [file join [file dirname [info script]] {Expect support.tcl}]\nset child [file join [file dirname [info script]] {Expect 04 Capture a bounded count Child.tcl}]\nset id [startToy $child]\nexpect {\n        -i $id\n    -re {COUNT ([0-9]{1,3})\\r\\n} {set count $expect_out(1,string)}\n    eof {error {missing count}}\n    timeout {error {count timeout}}\n}\nfinish $id 0\nputs \"count=$count\"\n",
          "expected_output": "count=20",
          "expected_stdout": "count=20\n",
          "explanation": "Copy the capture before another expect call. The fixed reply supplies canonical digits; a match alone is not a complete untrusted-message validator.",
          "exercise": "",
          "files": [
            {
              "name": "Expect 04 Capture a bounded count Child.tcl",
              "code": "fconfigure stdout -translation lf -buffering none\nputs {COUNT 20}\n"
            }
          ],
          "arguments": [],
          "invocation": "/usr/bin/expect -N -n 'Expect 04 Capture a bounded count.exp'",
          "checks": [],
          "negative": [
            {
              "code": "regexp {[} text\n",
              "diagnostic": "couldn't compile regular expression pattern"
            }
          ],
          "scenarios": [],
          "generated_files": {},
          "runner": "expect",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Expect 5.45 with Tcl 8.5.9; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "Expect validation.json; exact stdout/status, unchanged source, retained-file contract, direct controller collection and complete native child wait receipts"
          }
        },
        {
          "id": "expect-alternative",
          "title": "Expect 05 - Alternative replies",
          "filename": "Expect 05 Alternative replies.exp",
          "code": "source [file join [file dirname [info script]] {Expect support.tcl}]\nset child [file join [file dirname [info script]] {Expect 05 Alternative replies Child.tcl}]\nset mode [lindex $argv 0]\nif {$mode ni {ok error}} {puts stderr {invalid mode}; exit 2}\nset id [startToy $child $mode]\nexpect {\n        -i $id\n    -exact \"OK\\r\\n\" {set reply ok; set status 0}\n    -exact \"ERROR\\r\\n\" {set reply rejected; set status 7}\n    eof {error {missing reply}}\n    timeout {error {reply timeout}}\n}\nfinish $id $status\nputs \"reply=$reply child=$status\"\n",
          "expected_output": "reply=ok child=0",
          "expected_stdout": "reply=ok child=0\n",
          "explanation": "The controller handles both known outcomes and verifies the corresponding child status. A handled child status 7 is still a child failure, even though this observation script exits zero.",
          "exercise": "",
          "files": [
            {
              "name": "Expect 05 Alternative replies Child.tcl",
              "code": "fconfigure stdout -translation lf -buffering none\nif {[lindex $argv 0] eq {error}} {puts ERROR; exit 7}\nputs OK\n"
            }
          ],
          "arguments": [
            "ok"
          ],
          "invocation": "/usr/bin/expect -N -n 'Expect 05 Alternative replies.exp' ok",
          "checks": [],
          "negative": [],
          "scenarios": [
            {
              "name": "expected child failure",
              "arguments": [
                "error"
              ],
              "stdout": "reply=rejected child=7\n",
              "exit": 0,
              "stderr_contains": ""
            },
            {
              "name": "invalid mode",
              "arguments": [
                "other"
              ],
              "stdout": "",
              "exit": 2,
              "stderr_contains": "invalid mode"
            }
          ],
          "generated_files": {},
          "runner": "expect",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Expect 5.45 with Tcl 8.5.9; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "Expect validation.json; exact stdout/status, unchanged source, retained-file contract, direct controller collection and complete native child wait receipts"
          }
        },
        {
          "id": "expect-timeout",
          "title": "Expect 06 - Deterministic timeout branch",
          "filename": "Expect 06 Deterministic timeout branch.exp",
          "code": "source [file join [file dirname [info script]] {Expect support.tcl}]\nset child [file join [file dirname [info script]] {Expect 06 Deterministic timeout branch Child.tcl}]\nset id [startToy $child]\nexact $id \"READY\\r\\n\"\nset observed 0\nset timeout 0\nexpect {\n    -i $id\n    -exact NEVER {error {unexpected reply}}\n    timeout {set observed 1}\n    eof {error {early EOF}}\n}\nset timeout 3\nsend -i $id -- \"quit\\r\"\nfinish $id 0\nputs \"timeout observed=$observed; child reaped\"\n",
          "expected_output": "timeout observed=1; child reaped",
          "expected_stdout": "timeout observed=1; child reaped\n",
          "explanation": "After READY the child waits for quit and emits no further text. The zero-time poll takes the timeout branch deterministically; this does not test elapsed-time accuracy or positive-time deadlines.",
          "exercise": "",
          "files": [
            {
              "name": "Expect 06 Deterministic timeout branch Child.tcl",
              "code": "fconfigure stdout -translation lf -buffering none\nputs READY\nflush stdout\nif {[gets stdin line] < 0 || $line ne {quit}} {exit 4}\n"
            }
          ],
          "arguments": [],
          "invocation": "/usr/bin/expect -N -n 'Expect 06 Deterministic timeout branch.exp'",
          "checks": [],
          "negative": [],
          "scenarios": [],
          "generated_files": {},
          "runner": "expect",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Expect 5.45 with Tcl 8.5.9; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "Expect validation.json; exact stdout/status, unchanged source, retained-file contract, direct controller collection and complete native child wait receipts"
          }
        },
        {
          "id": "expect-eof",
          "title": "Expect 07 - EOF is not success",
          "filename": "Expect 07 EOF is not success.exp",
          "code": "source [file join [file dirname [info script]] {Expect support.tcl}]\nset child [file join [file dirname [info script]] {Expect 07 EOF is not success Child.tcl}]\nset id [startToy $child]\nexpect {\n        -i $id\n    eof {set ended 1}\n    timeout {error {EOF timeout}}\n}\nset result [wait -i $id]\nif {[llength $result] != 4 || [lindex $result 2] != 0 || [lindex $result 3] != 7} {error {wrong status}}\nputs \"EOF observed=$ended; child status 7\"\n",
          "expected_output": "EOF observed=1; child status 7",
          "expected_stdout": "EOF observed=1; child status 7\n",
          "explanation": "This deliberately failing child produces no text. The controller succeeds only because it observes the specified failure; EOF alone would miss the nonzero status.",
          "exercise": "",
          "files": [
            {
              "name": "Expect 07 EOF is not success Child.tcl",
              "code": "fconfigure stdout -translation lf -buffering none\nexit 7\n"
            }
          ],
          "arguments": [],
          "invocation": "/usr/bin/expect -N -n 'Expect 07 EOF is not success.exp'",
          "checks": [],
          "negative": [],
          "scenarios": [],
          "generated_files": {},
          "runner": "expect",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Expect 5.45 with Tcl 8.5.9; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "Expect validation.json; exact stdout/status, unchanged source, retained-file contract, direct controller collection and complete native child wait receipts"
          }
        },
        {
          "id": "expect-progress",
          "title": "Expect 08 - Progress with one deadline",
          "filename": "Expect 08 Progress with one deadline.exp",
          "code": "source [file join [file dirname [info script]] {Expect support.tcl}]\nset child [file join [file dirname [info script]] {Expect 08 Progress with one deadline Child.tcl}]\nset id [startToy $child]\nset count 0\nexpect {\n        -i $id\n    -re {STEP [12]\\r\\n} {\n        incr count\n        if {$count > 2} {error {too many steps}}\n        exp_continue -continue_timer\n    }\n    -exact \"DONE\\r\\n\" {}\n    eof {error {missing DONE}}\n    timeout {error {progress timeout}}\n}\nfinish $id 0\nif {$count != 2} {error {missing step}}\nputs {2 progress messages checked}\n",
          "expected_output": "2 progress messages checked",
          "expected_stdout": "2 progress messages checked\n",
          "explanation": "exp_continue retains one matching context; -continue_timer avoids extending the original deadline. The toy also bounds the count. This count check does not enforce unique step numbers.",
          "exercise": "",
          "files": [
            {
              "name": "Expect 08 Progress with one deadline Child.tcl",
              "code": "fconfigure stdout -translation lf -buffering none\nputs {STEP 1}\nputs {STEP 2}\nputs DONE\n"
            }
          ],
          "arguments": [],
          "invocation": "/usr/bin/expect -N -n 'Expect 08 Progress with one deadline.exp'",
          "checks": [],
          "negative": [],
          "scenarios": [],
          "generated_files": {},
          "runner": "expect",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Expect 5.45 with Tcl 8.5.9; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "Expect validation.json; exact stdout/status, unchanged source, retained-file contract, direct controller collection and complete native child wait receipts"
          }
        },
        {
          "id": "expect-data",
          "title": "Expect 09 - Pass punctuation as data",
          "filename": "Expect 09 Pass punctuation as data.exp",
          "code": "source [file join [file dirname [info script]] {Expect support.tcl}]\nset child [file join [file dirname [info script]] {Expect 09 Pass punctuation as data Child.tcl}]\nset text [lindex $argv 0]\nif {[string length $text] > 40 || ![regexp {^[ -~]*$} $text]} {puts stderr {invalid line}; exit 2}\nset id [startToy $child]\nexact $id {Text? }\nsend -i $id -- \"$text\\r\"\nexact $id \"ECHO $text\\r\\n\"\nfinish $id 0\nputs {data round trip checked}\n",
          "expected_output": "data round trip checked",
          "expected_stdout": "data round trip checked\n",
          "explanation": "The child echoes the value as text, and -exact compares it literally. The accepted line contract is short authored ASCII without CR/LF; terminal controls and arbitrary Unicode are outside the demonstration.",
          "exercise": "",
          "files": [
            {
              "name": "Expect 09 Pass punctuation as data Child.tcl",
              "code": "fconfigure stdout -translation lf -buffering none\nputs -nonewline {Text? }\nflush stdout\nif {[gets stdin value] < 0} {exit 3}\nputs \"ECHO $value\"\n"
            }
          ],
          "arguments": [
            "[word]; $x *?"
          ],
          "invocation": "/usr/bin/expect -N -n 'Expect 09 Pass punctuation as data.exp' '[word]; $x *?'",
          "checks": [],
          "negative": [
            {
              "code": "error {intentional fixture failure}\n",
              "diagnostic": "intentional fixture failure"
            }
          ],
          "scenarios": [
            {
              "name": "leading dash",
              "arguments": [
                "-hello"
              ],
              "stdout": "data round trip checked\n",
              "exit": 0,
              "stderr_contains": ""
            },
            {
              "name": "empty value",
              "arguments": [
                ""
              ],
              "stdout": "data round trip checked\n",
              "exit": 0,
              "stderr_contains": ""
            },
            {
              "name": "line break rejected",
              "arguments": [
                "a\nb"
              ],
              "stdout": "",
              "exit": 2,
              "stderr_contains": "invalid line"
            },
            {
              "name": "long line rejected",
              "arguments": [
                "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
              ],
              "stdout": "",
              "exit": 2,
              "stderr_contains": "invalid line"
            }
          ],
          "generated_files": {},
          "runner": "expect",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Expect 5.45 with Tcl 8.5.9; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "Expect validation.json; exact stdout/status, unchanged source, retained-file contract, direct controller collection and complete native child wait receipts"
          }
        },
        {
          "id": "expect-exercise-a",
          "title": "Expect exercise A - Validate a reply",
          "filename": "Expect exercise A Validate a reply.exp",
          "code": "source [file join [file dirname [info script]] {Expect support.tcl}]\nset child [file join [file dirname [info script]] {Expect exercise A Validate a reply Child.tcl}]\nset mode [lindex $argv 0]\nif {$mode ni {good bad}} {puts stderr {invalid mode}; exit 2}\nset id [startToy $child $mode]\nset valid 0\nexpect {\n        -i $id\n    -re {^TOTAL ([0-9]{1,3})\\r\\n} {set valid [expr {$expect_out(1,string) eq {60}}]}\n    eof {set ended 1}\n    timeout {error {total timeout}}\n}\nif {![info exists ended]} {finish $id 0} else {\n    set result [wait -i $id]\n    if {[llength $result] != 4 || [lindex $result 2] != 0 || [lindex $result 3] != 0} {error {child failure}}\n}\nif {!$valid} {puts stderr {invalid total reply}; exit 2}\nputs {total 60 verified}\n",
          "expected_output": "total 60 verified",
          "expected_stdout": "total 60 verified\n",
          "explanation": "The malformed reply reaches EOF without satisfying the expected pattern. The child is reaped on both paths; an invalid reply returns controller status 2. This is a fixed single-message fixture, not a general streaming parser.",
          "exercise": "Check a fixed TOTAL reply and reject malformed text while collecting the child status.",
          "files": [
            {
              "name": "Expect exercise A Validate a reply Child.tcl",
              "code": "fconfigure stdout -translation lf -buffering none\nif {[lindex $argv 0] eq {bad}} {puts {TOTAL nope}} else {puts {TOTAL 60}}\n"
            }
          ],
          "arguments": [
            "good"
          ],
          "invocation": "/usr/bin/expect -N -n 'Expect exercise A Validate a reply.exp' good",
          "checks": [],
          "negative": [],
          "scenarios": [
            {
              "name": "malformed reply",
              "arguments": [
                "bad"
              ],
              "stdout": "",
              "exit": 2,
              "stderr_contains": "invalid total reply"
            }
          ],
          "generated_files": {},
          "runner": "expect",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Expect 5.45 with Tcl 8.5.9; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "Expect validation.json; exact stdout/status, unchanged source, retained-file contract, direct controller collection and complete native child wait receipts"
          }
        },
        {
          "id": "expect-exercise-b",
          "title": "Expect exercise B - Two conversation states",
          "filename": "Expect exercise B Two conversation states.exp",
          "code": "source [file join [file dirname [info script]] {Expect support.tcl}]\nset child [file join [file dirname [info script]] {Expect exercise B Two conversation states Child.tcl}]\nset id [startToy $child]\nexact $id {First? }\nsend -i $id -- \"read\\r\"\nexact $id {Second? }\nsend -i $id -- \"code\\r\"\nexact $id \"PLAN read + code\\r\\n\"\nfinish $id 0\nputs {two states checked}\n",
          "expected_output": "two states checked",
          "expected_stdout": "two states checked\n",
          "explanation": "The controller advances only after the expected prompt. The next input is not sent early. Both values are fixed data and no real application is involved.",
          "exercise": "Complete two prompt-response states and verify one final summary.",
          "files": [
            {
              "name": "Expect exercise B Two conversation states Child.tcl",
              "code": "fconfigure stdout -translation lf -buffering none\nputs -nonewline {First? }\nflush stdout\nif {[gets stdin first] < 0} {exit 3}\nputs -nonewline {Second? }\nflush stdout\nif {[gets stdin second] < 0} {exit 3}\nputs \"PLAN $first + $second\"\n"
            }
          ],
          "arguments": [],
          "invocation": "/usr/bin/expect -N -n 'Expect exercise B Two conversation states.exp'",
          "checks": [],
          "negative": [],
          "scenarios": [],
          "generated_files": {},
          "runner": "expect",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Expect 5.45 with Tcl 8.5.9; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "Expect validation.json; exact stdout/status, unchanged source, retained-file contract, direct controller collection and complete native child wait receipts"
          }
        },
        {
          "id": "expect-exercise-c",
          "title": "Expect exercise C - Four child cases",
          "filename": "Expect exercise C Four child cases.exp",
          "code": "source [file join [file dirname [info script]] {Expect support.tcl}]\nset child [file join [file dirname [info script]] {Expect exercise C Four child cases Child.tcl}]\nset passed 0\nforeach {mode expectedStatus expectedText} {zero 0 ZERO upper 0 UPPER reject 7 REJECT empty 0 EMPTY} {\n    set id [startToy $child $mode]\n    exact $id \"$expectedText\\r\\n\"\n    finish $id $expectedStatus\n    incr passed\n}\nputs \"$passed child cases checked\"\n",
          "expected_output": "4 child cases checked",
          "expected_stdout": "4 child cases checked\n",
          "explanation": "Four children are started and reaped sequentially, including one expected status 7. No parallel or unrelated process is controlled. These are four child cases within one accepted controller example.",
          "exercise": "Check four authored child modes and verify each output and exit status.",
          "files": [
            {
              "name": "Expect exercise C Four child cases Child.tcl",
              "code": "fconfigure stdout -translation lf -buffering none\nswitch -- [lindex $argv 0] {\n    zero {puts ZERO}\n    upper {puts UPPER}\n    reject {puts REJECT; exit 7}\n    empty {puts EMPTY}\n    default {exit 9}\n}\n"
            }
          ],
          "arguments": [],
          "invocation": "/usr/bin/expect -N -n 'Expect exercise C Four child cases.exp'",
          "checks": [],
          "negative": [],
          "scenarios": [],
          "generated_files": {},
          "runner": "expect",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Expect 5.45 with Tcl 8.5.9; macOS 27.0.1 arm64",
            "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
            "tested_on": "2026-10-26",
            "evidence": "Expect validation.json; exact stdout/status, unchanged source, retained-file contract, direct controller collection and complete native child wait receipts"
          }
        }
      ],
      "support_files": [
        {
          "name": "Expect support.tcl",
          "code": "# Trusted fixed fixtures only; no arbitrary command argument.\nset timeout 3\nset stty_init {-echo}\nlog_user 0\nproc startToy {file args} {\n    global spawn_id\n    spawn -noecho /usr/bin/tclsh $file {*}$args\n    match_max -i $spawn_id 4096\n    return $spawn_id\n}\nproc exact {id text} {\n    expect {\n        -i $id\n        -exact $text {return}\n        eof {error {unexpected EOF}}\n        timeout {error {reply timeout}}\n    }\n}\nproc finish {id expected} {\n    expect {\n        -i $id\n        eof {}\n        timeout {error {EOF timeout}}\n    }\n    set result [wait -i $id]\n    if {[llength $result] != 4 || [lindex $result 2] != 0 || [lindex $result 3] != $expected} {\n        error {unexpected child status}\n    }\n}\n"
        }
      ],
      "rejection_label": "interpreter",
      "rejection_heading": "Expected evaluation failures",
      "templates": [
        {
          "id": "build",
          "name": "Build a bounded local example",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Give original source, companion fixtures, exact invocation and expected stdout, stderr and status. Separate predictions from tests actually executed."
        },
        {
          "id": "debug",
          "name": "Trace an observed failure",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Reduce the case; distinguish word substitution, data contracts, pattern matches, EOF, timeout and process exit. Separate predictions from tests actually executed."
        },
        {
          "id": "test",
          "name": "Test contracts and failures",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Use fixed toy inputs, boundaries and explicit failure categories. Verify unchanged source files and process cleanup. Separate predictions from tests actually executed."
        },
        {
          "id": "refactor",
          "name": "Refactor without changing behavior",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Preserve output, order, status and side effects. Keep data out of generated script strings. Separate predictions from tests actually executed."
        },
        {
          "id": "document",
          "name": "Document the execution boundary",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. State interpreter versions, encoding, input limits, trusted files, child lifetimes and platform limits. Separate predictions from tests actually executed."
        },
        {
          "id": "explain",
          "name": "Explain then practice",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Trace the value or conversation state, then supply an exercise with a separate worked solution. Separate predictions from tests actually executed."
        }
      ],
      "test_summary": {
        "result": "passed",
        "tested_on": "2026-10-26",
        "runtime": "Expect 5.45 with Tcl 8.5.9; macOS 27.0.1 arm64",
        "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
        "assertion_count": 161,
        "example_count": 12,
        "accepted_controller_or_program_executions": 12,
        "expected_evaluation_failures": 4,
        "scenario_invocations": 7,
        "expected_nonzero_scenarios": 4,
        "embedded_cases": 4,
        "binary_sha256": "ec60ff22960ae605f718fbfd2538b215e797257cf0cc618c5e22011cf167e3a8",
        "locale": "C",
        "limits": [
          "Only installed macOS arm64 Tcl 8.5.9 / Expect 5.45 and authored toy fixtures were exercised.",
          "These interpreters have no separately claimed static compilation pass; expected evaluation failures are not successful programs.",
          "Expect controllers may intentionally observe a failed child; controller success does not imply every child succeeded.",
          "Only direct owned controllers and retained Expect child handles are managed. Cooperative cleanup requires event-loop progress; missing wait receipts remain uncertain. No process inspection, recorded-PID signaling, sign-ins, secrets, network or external application control.",
          "Retained fixture folders, CPU/time/output limits and reviewed source are not an arbitrary-code sandbox."
        ],
        "default_child_invocations": 15,
        "default_expected_child_failures": 2,
        "scenario_expected_child_failures": 1,
        "timeout_mode": "deterministic zero-second poll after READY; no elapsed-time guarantee"
      }
    },
    {
      "id": "objective-c-foundations",
      "title": "Objective-C Foundations",
      "version": "0.11.0",
      "status": "tested",
      "entry_ids": [
        "objective-c"
      ],
      "languages": [
        "Objective-C"
      ],
      "default_goal": "Build and test a small Objective-C command-line example.",
      "default_runtime": "Apple Clang 21.0.0 (clang-2100.3.34.2); ARC; C17 base mode; macOS SDK 27.0 headers; system Foundation 6.9 (5027.0.69); macOS 27.0.1 arm64",
      "default_constraints": "ARC; local deterministic fixtures in a new owned practice directory; no network, credentials, installations, GUI automation or existing user files.",
      "audience": "Learners familiar with the C Foundations pack and basic terminal use.",
      "estimated_practice": "4 to 6 hours.",
      "scope": "Objects and messages, properties, Foundation values, UTF-16, protocols, categories, blocks, ARC relationships, recoverable errors, a tiny local file and separate source files. Introductory macOS-only scope.",
      "runtime_note": "In a new owned practice directory, compile an exported example with /usr/bin/clang -x objective-c -std=c17 -fobjc-arc -fno-modules -Wall -Wextra -Werror \"Example.m\" -framework Foundation -o \"Practice\", then run ./Practice. Replace Example.m with the exact filename. For Objective-C 09 Main.m, also pass \"Atlas minutes.m\" and save \"Atlas minutes.h\" beside both files. The file example creates and retains Atlas practice note.txt; a second run intentionally refuses it. Use only the installed Apple toolchain with macOS Foundation. Compilation uses SDK 27.0 headers; execution uses system Foundation 6.9 (5027.0.69) on macOS 27.0.1 arm64. No iOS, GNUstep, other OS, Objective-C++, UI, concurrency or package-manager support is tested. The offline browser exports text and never compiles or executes these programs.",
      "lessons": [
        {
          "title": "Build and run distinct stages",
          "text": "A .m source is compiled as Objective-C and linked with Foundation. This pack pins Apple Clang, ARC and a C17 base mode; C17 is not an Objective-C standard edition. Compiler acceptance does not prove correct behavior. Expected rejected fixtures are recorded separately and are never executed. The exported examples are trusted authored source, not a sandbox for arbitrary code."
        },
        {
          "title": "Objects, messages and initialization",
          "text": "A class describes an interface and implementation. + marks class methods; - marks instance methods. Selector components and parameter order form the message name. Properties usually synthesize accessor methods and storage. An initializer calls its superclass and may return nil. Validate inputs before establishing invariants, and distinguish a nil Objective-C receiver from an invalid C pointer."
        },
        {
          "title": "Strings, values and collections",
          "text": "Foundation provides NSString, NSNumber, NSArray and NSDictionary; these are framework types, not a second language. NSString length and NSRange offsets use UTF-16 units. Composed-sequence enumeration is different from counting bytes. Check NSNotFound and collection bounds. nil means absence; NSNull is an object representing explicit null. Sort dictionary keys when output order matters."
        },
        {
          "title": "Copying and ownership",
          "text": "A strong relationship owns an object; weak observes without keeping it alive and becomes nil when the supported object is deallocated. A copy property invokes copying on assignment, which need not allocate a distinct object or deep-copy an object graph. ARC inserts ownership operations; cycles can still leak. Autorelease pools bound pending autoreleases and are not garbage collectors. nonatomic properties do not make concurrent mutation safe."
        },
        {
          "title": "Protocols, categories and blocks",
          "text": "Protocols declare method contracts; adopting classes must supply required behavior. Class extensions can declare implementation details. Categories add methods but must avoid name collisions; this pack adds a prefixed method only to its own class. Blocks capture state. A block owned by an object can create a cycle if it strongly captures that object; the synchronous example uses a weak capture and a temporary strong local."
        },
        {
          "title": "Errors and dynamic boundaries",
          "text": "Follow each API return-value contract before reading NSError. NSError outputs need not be cleared on success. Cocoa conventions treat exceptions as programming errors, not the ordinary invalid-input path. A JSON parser returns Foundation objects: validate their classes, required fields and application bounds separately. Lightweight generics and nullability annotations are compiler aids, not runtime schema validators."
        },
        {
          "title": "Local files and source organization",
          "text": "Use a new owned practice directory. The file example retains a tiny UTF-8 file, refuses an existing path and requests a no-overwrite write. It is not a defense against an attacker controlling the directory. Export the local header and implementation beside the multi-file main, then compile both .m files. No module, package manager, GUI framework or network operation is needed."
        },
        {
          "title": "What the evidence means",
          "text": "Normal compilation, execution output, boundary checks and expected compiler rejections are different evidence categories. These tests cover fixed inputs on one macOS arm64 compiler/SDK. They do not establish whole-language mastery, cross-platform compatibility, performance, arbitrary-code isolation or absence of every memory defect. Browser, PDF, accessibility and final Library release checks remain separate gates."
        }
      ],
      "reference": [
        {
          "area": "Source",
          "syntax": ".m / clang -x objective-c",
          "meaning": "Objective-C source mode; compile and link before running."
        },
        {
          "area": "Ownership mode",
          "syntax": "-fobjc-arc",
          "meaning": "Enable automatic reference counting for Objective-C objects."
        },
        {
          "area": "Classes",
          "syntax": "@interface / @implementation",
          "meaning": "Declare the interface and implement methods."
        },
        {
          "area": "Messages",
          "syntax": "[receiver method:argument]",
          "meaning": "Send a selector with ordered arguments."
        },
        {
          "area": "Methods",
          "syntax": "+ / -",
          "meaning": "Class versus instance methods."
        },
        {
          "area": "Initialization",
          "syntax": "instancetype / init / nil",
          "meaning": "Initialize via the superclass; handle a nullable result."
        },
        {
          "area": "Properties",
          "syntax": "nonatomic, copy / strong / weak",
          "meaning": "Choose semantics; nonatomic provides no synchronization."
        },
        {
          "area": "Literals",
          "syntax": "@\"text\" / @20 / @[] / @{}",
          "meaning": "Create object strings, boxed numbers and collections."
        },
        {
          "area": "Absence",
          "syntax": "nil / [NSNull null]",
          "meaning": "No object versus an explicit null object."
        },
        {
          "area": "Text units",
          "syntax": "length / NSRange / NSNotFound",
          "meaning": "UTF-16 offsets and a checked failed-search marker."
        },
        {
          "area": "Protocols",
          "syntax": "@protocol / id<Protocol>",
          "meaning": "A declared method contract; implement required behavior."
        },
        {
          "area": "Categories",
          "syntax": "@interface Class (Category)",
          "meaning": "Add distinctly named methods; do not replace existing behavior."
        },
        {
          "area": "Blocks",
          "syntax": "^{ ... } / __block",
          "meaning": "Capture behavior and explicitly mutable captured bindings."
        },
        {
          "area": "Pools",
          "syntax": "@autoreleasepool",
          "meaning": "Bound pending autoreleases in this command-line program."
        },
        {
          "area": "Errors",
          "syntax": "NSError ** / nullable result",
          "meaning": "Inspect the result before consulting the error output."
        },
        {
          "area": "Boundary checks",
          "syntax": "isKindOfClass: / length limits",
          "meaning": "Validate dynamic values and application constraints explicitly."
        }
      ],
      "examples": [
        {
          "id": "oc-messages",
          "title": "Objective-C 01 - Objects and messages",
          "filename": "Objective-C 01 Messages.m",
          "code": "#import <Foundation/Foundation.h>\n#include <stdio.h>\n@interface AtlasGreeting : NSObject\n+ (NSString *)topic;\n- (NSString *)messageFor:(NSString *)name;\n@end\n@implementation AtlasGreeting\n+ (NSString *)topic { return @\"Objective-C\"; }\n- (NSString *)messageFor:(NSString *)name {\n    return [@\"Hello, \" stringByAppendingString:name];\n}\n@end\nint main(void) {\n    @autoreleasepool {\n        AtlasGreeting *greeting = [AtlasGreeting new];\n        puts([[AtlasGreeting topic] UTF8String]);\n        puts([[greeting messageFor:@\"Ada\"] UTF8String]);\n        NSString *absent = nil;\n        printf(\"Nil length: %lu\\n\", (unsigned long)[absent length]);\n    }\n    return 0;\n}\n",
          "expected_output": "Objective-C\nHello, Ada\nNil length: 0",
          "expected_stdout": "Objective-C\nHello, Ada\nNil length: 0\n",
          "explanation": "The + method receives a class message; the - method receives an instance message. messageFor: requires a non-nil string. Messaging nil for this integer-valued length returns zero; passing a null C pointer to puts would not be safe. The print calls use only known non-nil UTF-8 strings.",
          "exercise": "",
          "files": [],
          "checks": [],
          "negative": [
            {
              "code": "#import <Foundation/Foundation.h>\nint main(void) { @autoreleasepool { (void)[@\"x\" atlasMissingMethod]; } }\n",
              "diagnostic": "no visible @interface",
              "category": "unknown method rejected by this compiler and ARC configuration"
            }
          ],
          "runner": "objective-c",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Apple clang version 21.0.0 (clang-2100.3.34.2); ARC; C17 base; macOS SDK 27.0 headers; system Foundation 6.9 (5027.0.69)",
            "operating_system": "macOS-27.0.1-arm64-arm-64bit",
            "tested_on": "2026-10-26",
            "evidence": "Objective-C validation.json; accepted build, exact output and separate boundary/rejection evidence."
          }
        },
        {
          "id": "oc-properties",
          "title": "Objective-C 02 - Properties and copying",
          "filename": "Objective-C 02 Properties.m",
          "code": "#import <Foundation/Foundation.h>\n#include <stdio.h>\n@interface AtlasNote : NSObject\n@property (nonatomic, copy) NSString *title;\n@property (nonatomic, strong) NSMutableString *shared;\n@end\n@implementation AtlasNote\n@end\nint main(void) {\n    @autoreleasepool {\n        NSMutableString *draft = [NSMutableString stringWithString:@\"Read\"];\n        AtlasNote *note = [AtlasNote new];\n        note.title = draft;\n        note.shared = draft;\n        [draft appendString:@\" more\"];\n        puts([note.title UTF8String]);\n        puts([note.shared UTF8String]);\n        printf(\"Same reference: %s\\n\", note.shared == draft ? \"yes\" : \"no\");\n    }\n    return 0;\n}\n",
          "expected_output": "Read\nRead more\nSame reference: yes",
          "expected_stdout": "Read\nRead more\nSame reference: yes\n",
          "explanation": "The synthesized copy setter stores a string copy; strong stores an owning reference to the same mutable object. copy does not promise a new address or a deep copy of arbitrary graphs. nonatomic does not provide synchronization. This single-threaded fixture initializes both properties before use.",
          "exercise": "",
          "files": [],
          "checks": [],
          "negative": [],
          "runner": "objective-c",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Apple clang version 21.0.0 (clang-2100.3.34.2); ARC; C17 base; macOS SDK 27.0 headers; system Foundation 6.9 (5027.0.69)",
            "operating_system": "macOS-27.0.1-arm64-arm-64bit",
            "tested_on": "2026-10-26",
            "evidence": "Objective-C validation.json; accepted build, exact output and separate boundary/rejection evidence."
          }
        },
        {
          "id": "oc-text",
          "title": "Objective-C 03 - UTF-16 and composed sequences",
          "filename": "Objective-C 03 Text.m",
          "code": "#import <Foundation/Foundation.h>\n#include <stdio.h>\nint main(void) {\n    @autoreleasepool {\n        NSString *text = @\"Cafe\\u0301\";\n        __block NSUInteger sequences = 0;\n        [text enumerateSubstringsInRange:NSMakeRange(0, text.length)\n            options:NSStringEnumerationByComposedCharacterSequences\n            usingBlock:^(NSString *substring, NSRange range, NSRange enclosing, BOOL *stop) {\n                (void)substring; (void)range; (void)enclosing; (void)stop;\n                sequences += 1;\n            }];\n        printf(\"UTF-16 units: %lu\\n\", (unsigned long)text.length);\n        printf(\"UTF-8 bytes: %lu\\n\", (unsigned long)[text lengthOfBytesUsingEncoding:NSUTF8StringEncoding]);\n        printf(\"Composed sequences: %lu\\n\", (unsigned long)sequences);\n        NSRange missing = [text rangeOfString:@\"z\"];\n        puts(missing.location == NSNotFound ? \"Search: absent\" : \"Search: found\");\n    }\n    return 0;\n}\n",
          "expected_output": "UTF-16 units: 5\nUTF-8 bytes: 6\nComposed sequences: 4\nSearch: absent",
          "expected_stdout": "UTF-16 units: 5\nUTF-8 bytes: 6\nComposed sequences: 4\nSearch: absent\n",
          "explanation": "NSString length and NSRange offsets count UTF-16 code units, not bytes or displayed characters. Composed-sequence enumeration groups this authored combining accent with its letter. Segmentation can depend on the OS Unicode implementation; this fixture does not establish every script or emoji rule. Check NSNotFound before using a search range.",
          "exercise": "",
          "files": [],
          "checks": [],
          "negative": [],
          "runner": "objective-c",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Apple clang version 21.0.0 (clang-2100.3.34.2); ARC; C17 base; macOS SDK 27.0 headers; system Foundation 6.9 (5027.0.69)",
            "operating_system": "macOS-27.0.1-arm64-arm-64bit",
            "tested_on": "2026-10-26",
            "evidence": "Objective-C validation.json; accepted build, exact output and separate boundary/rejection evidence."
          }
        },
        {
          "id": "oc-collections",
          "title": "Objective-C 04 - Collections and absence",
          "filename": "Objective-C 04 Collections.m",
          "code": "#import <Foundation/Foundation.h>\n#include <stdio.h>\nint main(void) {\n    @autoreleasepool {\n        NSArray<NSNumber *> *minutes = @[@10, @20, @30];\n        NSInteger total = 0;\n        for (NSNumber *value in minutes) { total += value.integerValue; }\n        printf(\"Total: %ld\\n\", (long)total);\n        NSDictionary<NSString *, NSNumber *> *totals = @{@\"read\": @20, @\"code\": @40};\n        for (NSString *key in [[totals allKeys] sortedArrayUsingSelector:@selector(compare:)]) {\n            printf(\"%s: %ld\\n\", [key UTF8String], (long)[totals[key] integerValue]);\n        }\n        NSDictionary<NSString *, id> *row = @{@\"note\": [NSNull null]};\n        printf(\"Explicit null: %s\\n\", row[@\"note\"] == [NSNull null] ? \"yes\" : \"no\");\n        printf(\"Missing: %s\\n\", row[@\"missing\"] == nil ? \"yes\" : \"no\");\n        NSArray *empty = @[];\n        puts(empty.firstObject == nil ? \"First: absent\" : \"First: present\");\n    }\n    return 0;\n}\n",
          "expected_output": "Total: 60\ncode: 40\nread: 20\nExplicit null: yes\nMissing: yes\nFirst: absent",
          "expected_stdout": "Total: 60\ncode: 40\nread: 20\nExplicit null: yes\nMissing: yes\nFirst: absent\n",
          "explanation": "Collections hold objects: NSNumber boxes these small integers and NSNull represents explicit null. nil is absence, not a collection element. Dictionary iteration has no report-order guarantee, so sort the ASCII keys. Lightweight generics aid compile-time checks; validate types at dynamic boundaries. The sum is safe only for these bounded authored values.",
          "exercise": "",
          "files": [],
          "checks": [],
          "negative": [],
          "runner": "objective-c",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Apple clang version 21.0.0 (clang-2100.3.34.2); ARC; C17 base; macOS SDK 27.0 headers; system Foundation 6.9 (5027.0.69)",
            "operating_system": "macOS-27.0.1-arm64-arm-64bit",
            "tested_on": "2026-10-26",
            "evidence": "Objective-C validation.json; accepted build, exact output and separate boundary/rejection evidence."
          }
        },
        {
          "id": "oc-protocols",
          "title": "Objective-C 05 - A protocol and a category",
          "filename": "Objective-C 05 Protocols.m",
          "code": "#import <Foundation/Foundation.h>\n#include <stdio.h>\n@protocol AtlasDescribing <NSObject>\n- (NSString *)summary;\n@end\n@interface AtlasSession : NSObject <AtlasDescribing>\n- (instancetype)initWithMinutes:(NSInteger)minutes;\n@end\n@interface AtlasSession ()\n@property (nonatomic) NSInteger minutes;\n@end\n@implementation AtlasSession\n- (instancetype)initWithMinutes:(NSInteger)minutes {\n    self = [super init];\n    if (self) { _minutes = minutes; }\n    return self;\n}\n- (NSString *)summary {\n    return [NSString stringWithFormat:@\"%ld minutes\", (long)self.minutes];\n}\n@end\n@interface AtlasSession (AtlasLabel)\n- (NSString *)atlas_label;\n@end\n@implementation AtlasSession (AtlasLabel)\n- (NSString *)atlas_label { return [@\"Session: \" stringByAppendingString:[self summary]]; }\n@end\nint main(void) {\n    @autoreleasepool {\n        AtlasSession *session = [[AtlasSession alloc] initWithMinutes:25];\n        id<AtlasDescribing> view = session;\n        puts([[view summary] UTF8String]);\n        puts([[session atlas_label] UTF8String]);\n    }\n    return 0;\n}\n",
          "expected_output": "25 minutes\nSession: 25 minutes",
          "expected_stdout": "25 minutes\nSession: 25 minutes\n",
          "explanation": "The protocol specifies a method contract; the class supplies the implementation. A class extension declares an implementation detail, not a security boundary. The category adds a prefixed method on this authored class. It adds no stored property and replaces no existing method. This initializer assumes its authored minutes input is valid; exercise A adds validation.",
          "exercise": "",
          "files": [],
          "checks": [],
          "negative": [
            {
              "code": "#import <Foundation/Foundation.h>\n@protocol Required <NSObject>\n- (NSString *)summary;\n@end\n@interface Missing : NSObject <Required>\n@end\n@implementation Missing\n@end\n",
              "diagnostic": "-Wprotocol",
              "category": "missing required protocol implementation: warning promoted by -Werror"
            }
          ],
          "runner": "objective-c",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Apple clang version 21.0.0 (clang-2100.3.34.2); ARC; C17 base; macOS SDK 27.0 headers; system Foundation 6.9 (5027.0.69)",
            "operating_system": "macOS-27.0.1-arm64-arm-64bit",
            "tested_on": "2026-10-26",
            "evidence": "Objective-C validation.json; accepted build, exact output and separate boundary/rejection evidence."
          }
        },
        {
          "id": "oc-ownership",
          "title": "Objective-C 06 - Weak ownership and a block",
          "filename": "Objective-C 06 Ownership.m",
          "code": "#import <Foundation/Foundation.h>\n#include <stdio.h>\n@interface AtlasCounter : NSObject\n@property (nonatomic) NSInteger value;\n@property (nonatomic, copy) void (^tick)(void);\n@end\n@implementation AtlasCounter\n@end\nint main(void) {\n    @autoreleasepool {\n        __weak AtlasCounter *observer = nil;\n        @autoreleasepool {\n            AtlasCounter *counter = [AtlasCounter new];\n            observer = counter;\n            __weak AtlasCounter *weakCounter = counter;\n            counter.tick = ^{\n                AtlasCounter *current = weakCounter;\n                if (current != nil) { current.value += 1; }\n            };\n            counter.tick();\n            counter.tick();\n            printf(\"Value: %ld\\n\", (long)counter.value);\n            counter = nil;\n        }\n        printf(\"Owner released: %s\\n\", observer == nil ? \"yes\" : \"no\");\n    }\n    return 0;\n}\n",
          "expected_output": "Value: 2\nOwner released: yes",
          "expected_stdout": "Value: 2\nOwner released: yes\n",
          "explanation": "The counter owns its copied block, but that block captures only a weak reference back. A temporary strong local keeps the object alive during the synchronous call if it still exists. After the last owner and the inner pool are gone, the observer is nil. No intentional leaking cycle, asynchronous timing or manual release is demonstrated. ARC manages ownership; it is not a general leak or thread-safety guarantee.",
          "exercise": "",
          "files": [],
          "checks": [],
          "negative": [
            {
              "code": "#import <Foundation/Foundation.h>\nint main(void) { @autoreleasepool { NSObject *value = [NSObject new]; [value release]; } }\n",
              "diagnostic": "forbids explicit message send",
              "category": "explicit release forbidden with ARC enabled"
            }
          ],
          "runner": "objective-c",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Apple clang version 21.0.0 (clang-2100.3.34.2); ARC; C17 base; macOS SDK 27.0 headers; system Foundation 6.9 (5027.0.69)",
            "operating_system": "macOS-27.0.1-arm64-arm-64bit",
            "tested_on": "2026-10-26",
            "evidence": "Objective-C validation.json; accepted build, exact output and separate boundary/rejection evidence."
          }
        },
        {
          "id": "oc-errors",
          "title": "Objective-C 07 - Parsing is not validation",
          "filename": "Objective-C 07 Errors.m",
          "code": "#import <Foundation/Foundation.h>\n#include <stdio.h>\nNS_ASSUME_NONNULL_BEGIN\nstatic NSString * _Nullable AtlasTitleFromData(NSData * _Nullable data,\n    NSError * _Nullable __autoreleasing * _Nullable error) {\n    if (data == nil || data.length > 1024) {\n        if (error != NULL) { *error = [NSError errorWithDomain:@\"AtlasInput\" code:1 userInfo:nil]; }\n        return nil;\n    }\n    NSError *parseError = nil;\n    id root = [NSJSONSerialization JSONObjectWithData:data options:0 error:&parseError];\n    if (root == nil) {\n        if (error != NULL) { *error = parseError; }\n        return nil;\n    }\n    if (![root isKindOfClass:[NSDictionary class]]) {\n        if (error != NULL) { *error = [NSError errorWithDomain:@\"AtlasInput\" code:2 userInfo:nil]; }\n        return nil;\n    }\n    id title = [(NSDictionary *)root objectForKey:@\"title\"];\n    if (![title isKindOfClass:[NSString class]] || [title length] == 0 || [title length] > 40) {\n        if (error != NULL) { *error = [NSError errorWithDomain:@\"AtlasInput\" code:3 userInfo:nil]; }\n        return nil;\n    }\n    return title;\n}\nNS_ASSUME_NONNULL_END\nint main(void) {\n    @autoreleasepool {\n        for (NSString *text in @[@\"{\\\"title\\\":\\\"Read\\\"}\", @\"{\", @\"[]\"]) {\n            NSError *error = nil;\n            NSString *title = AtlasTitleFromData([text dataUsingEncoding:NSUTF8StringEncoding], &error);\n            if (title != nil) { printf(\"Title: %s\\n\", [title UTF8String]); }\n            else if (error != nil) { puts(\"Rejected with NSError\"); }\n            else { return 2; }\n        }\n    }\n    return 0;\n}\n",
          "expected_output": "Title: Read\nRejected with NSError\nRejected with NSError",
          "expected_stdout": "Title: Read\nRejected with NSError\nRejected with NSError\n",
          "explanation": "A successful parse produces Foundation values, not a validated record. This wrapper accepts at most 1024 bytes, a dictionary root and a title of 1 to 40 UTF-16 units. It allows extra keys and does not enforce a general JSON schema or detect duplicate keys. Check the returned title first; the NSError output is only meaningful on failure and is not cleared on success. Nullability annotations document intent but do not perform runtime checks.",
          "exercise": "",
          "files": [],
          "checks": [],
          "negative": [],
          "runner": "objective-c",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Apple clang version 21.0.0 (clang-2100.3.34.2); ARC; C17 base; macOS SDK 27.0 headers; system Foundation 6.9 (5027.0.69)",
            "operating_system": "macOS-27.0.1-arm64-arm-64bit",
            "tested_on": "2026-10-26",
            "evidence": "Objective-C validation.json; accepted build, exact output and separate boundary/rejection evidence."
          }
        },
        {
          "id": "oc-files",
          "title": "Objective-C 08 - A local UTF-8 round trip",
          "filename": "Objective-C 08 Files.m",
          "code": "#import <Foundation/Foundation.h>\n#include <stdio.h>\nint main(void) {\n    @autoreleasepool {\n        NSString *path = @\"Atlas practice note.txt\";\n        NSFileManager *files = [NSFileManager defaultManager];\n        if ([files fileExistsAtPath:path]) {\n            fputs(\"Refusing an existing practice file\\n\", stderr);\n            return 3;\n        }\n        NSError *error = nil;\n        NSData *bytes = [@\"Read for 20 minutes\\n\" dataUsingEncoding:NSUTF8StringEncoding];\n        if (![bytes writeToFile:path options:NSDataWritingWithoutOverwriting error:&error]) {\n            fputs(\"Write failed\\n\", stderr);\n            return 4;\n        }\n        NSString *text = [NSString stringWithContentsOfFile:path encoding:NSUTF8StringEncoding error:&error];\n        if (text == nil) { fputs(\"Read failed\\n\", stderr); return 5; }\n        puts([text isEqualToString:@\"Read for 20 minutes\\n\"] ? \"Round trip: equal\" : \"Round trip: different\");\n    }\n    return 0;\n}\n",
          "expected_output": "Round trip: equal",
          "expected_stdout": "Round trip: equal\n",
          "explanation": "Run only in a new owned practice directory. The fixed filename is retained, never removed by the program; a second run intentionally refuses it. The no-overwrite write option protects against an intervening existing file, but this is not a hostile-filesystem sandbox. The example performs explicit UTF-8 decoding and checks each API failure return. Disk-full and permission failures are handled but are not injected by the harness.",
          "exercise": "",
          "files": [],
          "checks": [],
          "negative": [],
          "runner": "objective-c",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Apple clang version 21.0.0 (clang-2100.3.34.2); ARC; C17 base; macOS SDK 27.0 headers; system Foundation 6.9 (5027.0.69)",
            "operating_system": "macOS-27.0.1-arm64-arm-64bit",
            "tested_on": "2026-10-26",
            "evidence": "Objective-C validation.json; accepted build, exact output and separate boundary/rejection evidence."
          }
        },
        {
          "id": "oc-companion",
          "title": "Objective-C 09 - A local header and implementation",
          "filename": "Objective-C 09 Main.m",
          "code": "#import \"Atlas minutes.h\"\n#include <stdio.h>\nint main(void) {\n    @autoreleasepool {\n        NSNumber *result = AtlasDoubleMinutes(20);\n        if (result == nil) { return 2; }\n        printf(\"Companion: %ld\\n\", (long)result.integerValue);\n    }\n    return 0;\n}\n",
          "expected_output": "Companion: 40",
          "expected_stdout": "Companion: 40\n",
          "explanation": "Export all three files and compile both .m files together. The header declares a nullable result; the implementation accepts only 0 through 120. This is a C-linkage function using Objective-C objects in one linked executable, not a module, framework or package.",
          "exercise": "",
          "files": [
            {
              "name": "Atlas minutes.h",
              "code": "#ifndef ATLAS_MINUTES_H\n#define ATLAS_MINUTES_H\n#import <Foundation/Foundation.h>\nNS_ASSUME_NONNULL_BEGIN\nNSNumber * _Nullable AtlasDoubleMinutes(NSInteger value);\nNS_ASSUME_NONNULL_END\n#endif\n"
            },
            {
              "name": "Atlas minutes.m",
              "code": "#import \"Atlas minutes.h\"\nNSNumber *AtlasDoubleMinutes(NSInteger value) {\n    if (value < 0 || value > 120) { return nil; }\n    return @(value * 2);\n}\n"
            }
          ],
          "checks": [],
          "negative": [],
          "runner": "objective-c",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Apple clang version 21.0.0 (clang-2100.3.34.2); ARC; C17 base; macOS SDK 27.0 headers; system Foundation 6.9 (5027.0.69)",
            "operating_system": "macOS-27.0.1-arm64-arm-64bit",
            "tested_on": "2026-10-26",
            "evidence": "Objective-C validation.json; accepted build, exact output and separate boundary/rejection evidence."
          }
        },
        {
          "id": "oc-exercise-a",
          "title": "Objective-C exercise A - A validated initializer",
          "filename": "Objective-C exercise A Record.m",
          "code": "#import <Foundation/Foundation.h>\n#include <stdio.h>\nNS_ASSUME_NONNULL_BEGIN\n@interface AtlasRecord : NSObject\n@property (nonatomic, copy, readonly) NSString *title;\n@property (nonatomic, readonly) NSInteger minutes;\n- (nullable instancetype)initWithTitle:(nullable NSString *)title minutes:(NSInteger)minutes;\n- (instancetype)init NS_UNAVAILABLE;\n+ (instancetype)new NS_UNAVAILABLE;\n@end\n@implementation AtlasRecord\n- (nullable instancetype)initWithTitle:(nullable NSString *)title minutes:(NSInteger)minutes {\n    if (title == nil || title.length == 0 || title.length > 40 || minutes < 0 || minutes > 120) {\n        return nil;\n    }\n    self = [super init];\n    if (self) { _title = [title copy]; _minutes = minutes; }\n    return self;\n}\n@end\nNS_ASSUME_NONNULL_END\nint main(void) {\n    @autoreleasepool {\n        NSMutableString *title = [NSMutableString stringWithString:@\"Read\"];\n        AtlasRecord *record = [[AtlasRecord alloc] initWithTitle:title minutes:20];\n        if (record == nil) { return 2; }\n        [title appendString:@\" more\"];\n        printf(\"%s: %ld\\n\", [record.title UTF8String], (long)record.minutes);\n        AtlasRecord *invalid = [[AtlasRecord alloc] initWithTitle:@\"\" minutes:20];\n        puts(invalid == nil ? \"Empty title: rejected\" : \"Unexpected acceptance\");\n    }\n    return 0;\n}\n",
          "expected_output": "Read: 20\nEmpty title: rejected",
          "expected_stdout": "Read: 20\nEmpty title: rejected\n",
          "explanation": "The initializer rejects nil, an empty or overlong title, and minutes outside 0 through 120. The title limit uses UTF-16 units and the setter-free public API preserves this toy record after initialization. init/new are unavailable at compile time; this is an API contract, not protection against runtime reflection or hostile subclassing.",
          "exercise": "Build a record with a copied nonempty title of at most 40 UTF-16 units and minutes in 0 through 120. Reject invalid initialization with nil and prevent ordinary init/new calls.",
          "files": [],
          "checks": [],
          "negative": [],
          "runner": "objective-c",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Apple clang version 21.0.0 (clang-2100.3.34.2); ARC; C17 base; macOS SDK 27.0 headers; system Foundation 6.9 (5027.0.69)",
            "operating_system": "macOS-27.0.1-arm64-arm-64bit",
            "tested_on": "2026-10-26",
            "evidence": "Objective-C validation.json; accepted build, exact output and separate boundary/rejection evidence."
          }
        },
        {
          "id": "oc-exercise-b",
          "title": "Objective-C exercise B - A stable report",
          "filename": "Objective-C exercise B Report.m",
          "code": "#import <Foundation/Foundation.h>\n#include <stdio.h>\nstatic NSString *AtlasReport(NSDictionary<NSString *, NSNumber *> *totals) {\n    NSMutableArray<NSString *> *lines = [NSMutableArray array];\n    for (NSString *key in [[totals allKeys] sortedArrayUsingSelector:@selector(compare:)]) {\n        [lines addObject:[NSString stringWithFormat:@\"%@: %ld\", key, (long)[totals[key] integerValue]]];\n    }\n    return [lines componentsJoinedByString:@\"\\n\"];\n}\nint main(void) {\n    @autoreleasepool {\n        NSDictionary<NSString *, NSNumber *> *totals = @{@\"read\": @20, @\"code\": @40};\n        puts([AtlasReport(totals) UTF8String]);\n        printf(\"Empty report length: %lu\\n\", (unsigned long)AtlasReport(@{}).length);\n    }\n    return 0;\n}\n",
          "expected_output": "code: 40\nread: 20\nEmpty report length: 0",
          "expected_stdout": "code: 40\nread: 20\nEmpty report length: 0\n",
          "explanation": "This function accepts trusted dictionaries of short ASCII string keys and small integer NSNumber values. It does not validate a dynamic JSON boundary or arbitrary numeric ranges. Sorting keys produces stable output; an empty dictionary produces an empty string.",
          "exercise": "Format the trusted coding/reading totals in sorted key order, one line per key. Return an empty string for an empty dictionary.",
          "files": [],
          "checks": [],
          "negative": [],
          "runner": "objective-c",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Apple clang version 21.0.0 (clang-2100.3.34.2); ARC; C17 base; macOS SDK 27.0 headers; system Foundation 6.9 (5027.0.69)",
            "operating_system": "macOS-27.0.1-arm64-arm-64bit",
            "tested_on": "2026-10-26",
            "evidence": "Objective-C validation.json; accepted build, exact output and separate boundary/rejection evidence."
          }
        },
        {
          "id": "oc-exercise-c",
          "title": "Objective-C exercise C - An explicit error contract",
          "filename": "Objective-C exercise C Contract.m",
          "code": "#import <Foundation/Foundation.h>\n#include <stdio.h>\nNS_ASSUME_NONNULL_BEGIN\nstatic NSNumber * _Nullable AtlasParseMinutes(NSString * _Nullable text,\n    NSError * _Nullable __autoreleasing * _Nullable error) {\n    if (text != nil && text.length >= 1 && text.length <= 3) {\n        NSInteger value = 0;\n        BOOL valid = YES;\n        for (NSUInteger i = 0; i < text.length; i += 1) {\n            unichar unit = [text characterAtIndex:i];\n            if (unit < '0' || unit > '9') { valid = NO; break; }\n            value = value * 10 + (unit - '0');\n        }\n        if (valid && value <= 120) { return @(value); }\n    }\n    if (error != NULL) { *error = [NSError errorWithDomain:@\"AtlasMinutes\" code:1 userInfo:nil]; }\n    return nil;\n}\nNS_ASSUME_NONNULL_END\nint main(void) {\n    @autoreleasepool {\n        NSArray<NSString *> *inputs = @[@\"0\", @\"20\", @\"120\", @\"121\", @\"+2\", @\"\", @\" 2\", @\"002\"];\n        NSArray *expected = @[@0, @20, @120, [NSNull null], [NSNull null], [NSNull null], [NSNull null], @2];\n        NSUInteger passed = 0;\n        for (NSUInteger i = 0; i < inputs.count; i += 1) {\n            NSError *error = nil;\n            NSNumber *actual = AtlasParseMinutes(inputs[i], &error);\n            BOOL accepted = expected[i] != [NSNull null];\n            BOOL correct = accepted ? [actual isEqual:expected[i]] : (actual == nil && error != nil);\n            if (!correct) { fputs(\"Unexpected test result\\n\", stderr); return 2; }\n            passed += 1;\n        }\n        printf(\"Cases: %lu passed\\n\", (unsigned long)passed);\n    }\n    return 0;\n}\n",
          "expected_output": "Cases: 8 passed",
          "expected_stdout": "Cases: 8 passed\n",
          "explanation": "The parser accepts one to three ASCII digits with value 0 through 120, including leading zeros. The length bound keeps intermediate arithmetic small. A successful return does not promise to clear an existing NSError output. Eight comparisons execute in main; their unexpected-mismatch branch is not deliberately executed.",
          "exercise": "Implement a small ASCII-only minutes parser with a nullable NSNumber result and optional NSError output. Accept leading zeros but reject signs, whitespace, non-ASCII digits, empty input and values above 120.",
          "files": [],
          "checks": [],
          "negative": [
            {
              "code": "#import <Foundation/Foundation.h>\nint main(void) { @autoreleasepool { NSArray<NSString *> *names = @[@1]; (void)names; } }\n",
              "diagnostic": "-Wobjc-literal-conversion",
              "category": "lightweight generic mismatch: warning promoted by -Werror"
            }
          ],
          "runner": "objective-c",
          "concepts": [],
          "test": {
            "status": "passed",
            "runtime": "Apple clang version 21.0.0 (clang-2100.3.34.2); ARC; C17 base; macOS SDK 27.0 headers; system Foundation 6.9 (5027.0.69)",
            "operating_system": "macOS-27.0.1-arm64-arm-64bit",
            "tested_on": "2026-10-26",
            "evidence": "Objective-C validation.json; accepted build, exact output and separate boundary/rejection evidence."
          }
        }
      ],
      "support_files": [
        {
          "name": "Objective-C run instructions.txt",
          "code": "In a new owned practice directory, compile an exported example with /usr/bin/clang -x objective-c -std=c17 -fobjc-arc -fno-modules -Wall -Wextra -Werror \"Example.m\" -framework Foundation -o \"Practice\", then run ./Practice. Replace Example.m with the exact filename. For Objective-C 09 Main.m, also pass \"Atlas minutes.m\" and save \"Atlas minutes.h\" beside both files. The file example creates and retains Atlas practice note.txt; a second run intentionally refuses it. Use only the installed Apple toolchain with macOS Foundation. Compilation uses SDK 27.0 headers; execution uses system Foundation 6.9 (5027.0.69) on macOS 27.0.1 arm64. No iOS, GNUstep, other OS, Objective-C++, UI, concurrency or package-manager support is tested. The offline browser exports text and never compiles or executes these programs.\n"
        }
      ],
      "templates": [
        {
          "id": "build",
          "name": "Build an ARC example",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Provide original complete .m sources, companion files, exact compiler/linker commands and expected output. Identify Foundation dependencies separately from the language."
        },
        {
          "id": "debug",
          "name": "Debug the correct stage",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Separate compiler diagnostics, linker failures, runtime errors and wrong output. Check nil, method contracts and ownership without adding network or GUI dependencies."
        },
        {
          "id": "test",
          "name": "Test boundaries",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Cover nil/NSNull, wrong dynamic types, Unicode units, bounds and NSError return contracts. Keep deliberate compiler rejections separate from accepted executable programs. Report only checks actually run."
        },
        {
          "id": "refactor",
          "name": "Refactor ownership safely",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Preserve observable output and API contracts. Explain copy versus shared references, weak captures and retained cycles. Do not introduce manual retain/release under ARC."
        },
        {
          "id": "document",
          "name": "Document platform limits",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. State the Apple compiler, SDK, ARC mode, macOS architecture, input bounds, side effects and error-output policy. Do not claim iOS or cross-platform testing."
        },
        {
          "id": "explain",
          "name": "Explain and practice",
          "text": "For {language}, help with {goal}. Runtime: {runtime}. Constraints: {constraints}. Use a concise original example and an exercise with a separate solution. Explain Objective-C versus Foundation, and static annotations versus runtime validation. Do not claim full-language mastery."
        }
      ],
      "build": {
        "compiler": "/usr/bin/clang",
        "language": "objective-c",
        "standard": "c17",
        "flags": [
          "-fobjc-arc",
          "-fno-modules",
          "-Wall",
          "-Wextra",
          "-Werror"
        ],
        "framework": "Foundation"
      },
      "test_summary": {
        "result": "passed",
        "tested_on": "2026-10-26",
        "runtime": "Apple clang version 21.0.0 (clang-2100.3.34.2); ARC; C17 base; macOS SDK 27.0 headers; system Foundation 6.9 (5027.0.69)",
        "operating_system": "macOS-27.0.1-arm64-arm-64bit",
        "assertion_count": 120,
        "example_count": 12,
        "accepted_executions": 12,
        "expected_static_rejections": 4,
        "boundary_fixture_count": 11,
        "boundary_assertions": 63,
        "embedded_cases": 8,
        "expected_file_refusals": 1,
        "limits": [
          "Installed macOS arm64 Apple compiler, SDK and Foundation only; no cross-platform or whole-language conformance claim.",
          "Native trusted authored source only; process/resource bounds are not an arbitrary-code sandbox.",
          "No sanitizers, leak detector, race analysis, allocation/disk-full/permission fault injection or asynchronous timing tests.",
          "Four rejected fixtures are separately recorded; some are warnings promoted by -Werror. No rejected fixture executed.",
          "Native execution evidence is separate from browser, accessibility, PDF and Library release verification; consult the versioned release receipts for those gates."
        ]
      },
      "print_environment": true,
      "print_environment_note": "Export one example and all its companions into a new owned practice folder. The HTML exports text and never runs Objective-C. SDK headers and the system Foundation runtime are identified separately above.",
      "rejection_heading": "Expected compiler and warning-policy rejections",
      "rejection_pdf_heading": "Expected compiler and warning-policy rejections",
      "rejection_summary": "Four authored fixtures were rejected under the recorded Apple Clang and ARC configuration. Two are warnings promoted to errors by -Werror; independent syntax-only controls accepted those two without -Werror. No rejection fixture was executed. These results are separate from the twelve accepted runtime programs. Diagnostic wording is implementation-specific.",
      "rejection_notice": "Expected rejection under this pack's compiler configuration; fixture not executed.",
      "show_rejection_categories": true
    }
  ],
  "previous_version": "0.10.0",
  "release_note": "Objective-C native execution, content review and renderer evidence are separate from full browser, PDF and Library delivery receipts. All 18 prior teaching packs are preserved; Web test-summary metadata records the current interface suite.",
  "browser_validation": {
    "assertion_count": 607,
    "runtime": "Chrome/155.0.8059.86",
    "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
    "tested_on": "2026-10-26",
    "evidence": "Browser validation.json"
  },
  "source_access_notes": [
    "GNU web manual retrieval timed out and the Open Group full shell specification returned HTTP 403. Shell explanations were verified against installed official manuals, accessible Zsh documentation and actual runtime behavior. POSIX-style denotes the deliberately conservative syntax subset, not certification or a complete standards audit. Zsh web documentation describes 5.9.2; execution used installed 5.9.",
    "TypeScript 6.0.3 was located in an existing installed package and is invoked directly; no package manager is used. Its static checks and Node 24.18.0 runtime evidence are separate. Data examples use unsupported CPython 3.9.6. Python 3.9 online documentation describes 3.9.25. TOML uses installed pip-vendored Tomli 1.0.3, a private environment-specific API. The upstream tagged Tomli source page could not be retrieved; version is local metadata, behavior is actual execution, and syntax claims use the TOML 1.0 specification. Python 3.11 tomllib documentation is a compatibility reference only; that branch was not executed. No TOML 1.1, JSON Schema, XSD, hostile XML safety or general standards-conformance claim is made.",
    "C17 N2176 and C++20 N4861 PDF retrieval failed; the C11 N1570 committee draft was accessible for core semantics unchanged in this exercised C17 subset. C++ living draft and Core Guidelines references support only the stated concepts; later APIs shown by current draft pages are excluded. Actual Apple Clang 21.0.0 C17/C++20 probes passed and reported libc++ 220106. Upstream status pages do not guarantee Apple compiler completeness. Sanitizer and runtime evidence applies only to these executed paths.",
    "Ruby API references are version 2.6.0 documentation for the 2.6 series; actual execution is 2.6.10p210, which is end of life. Perl references are pinned to 5.34.1, the actual installed interpreter. Core module versions are recorded in runtime evidence; no packages were downloaded. No Ruby 3 or newer Perl compatibility is claimed.",
    "The Ruby tmpdir HTML URL and Perl perlrun HTML page could not be retrieved; their official repository files at Ruby v2_6_10 and Perl v5.34.1 were read instead.",
    "Swift web pages required JavaScript; the official Swift book repository source was accessible. Current book content is limited here to exercised Swift 6 core features. GNU website manual requests timed out; the upstream 3.81 manual source mirror and installed make(1) were used. Swift compile/run and Make dependency tests apply only to this installed macOS arm64 environment; no new toolchain was installed.",
    "For awk and sed, POSIX Issue 8 web requests returned HTTP 403. Installed awk(1), sed(1) and re_format(7), plus accessible maintainer documentation, support the exercised subset. awk reports 20200816; the current upstream manual includes later --csv support that is explicitly excluded. sed is identified by macOS 27.0.1 and binary SHA-256, not an invented version. All new stream tests use LC_ALL=C and authored ASCII input; no GNU-tool or Unicode-grapheme compatibility is claimed.",
    "jq is the Apple jq-1.7.1-apple build, verified against the upstream 1.7 manual and installed jq(1). xsltproc reports libxslt 1.1.35 and libxml2 2.9.13. The accessible XSLT and XPath 1.0 specifications support only this introductory subset; later language versions are excluded. Current libxslt command documentation is checked against actual installed invocation. No DTD declaration, custom/external entity, document(), import/include, extension or untrusted source is exercised. The independent XPath registry entry stays planned. Predefined XML escapes and numeric character references are used. Installed --stringparam rejects values containing both quote styles.",
    "Tcl uses installed 8.5.9; accessible official web references are 8.5.19 series documentation, with differences bounded by actual examples. The proc web page timed out, so its installed manual was read. Expect 5.45 embeds Tcl 8.5.9; the installed official manual supports its options and process semantics. The historical Expect project points to a newer successor; no successor or modern Tcl feature is claimed. Only authored workspace fixtures are spawned; no network, sign-ins, secrets or live application control.",
    "Objective-C is pinned to Apple Clang 21.0.0 with ARC, C17 base syntax, macOS SDK 27.0 headers, system Foundation 6.9 (5027.0.69) and macOS 27.0.1 arm64. Apple language and string guides are archived; dated UI/network recipes and broad platform recommendations are excluded. Upstream Clang documents are checked against the locally exercised subset. Current JSONSerialization web content required JavaScript and its linked Markdown request failed; installed SDK NSJSONSerialization.h and NSData.h declarations/comments plus execution support the narrow parsing, error and no-overwrite claims. No JSON-schema, iOS, GNUstep, cross-platform, Objective-C++ or complete memory-safety claim is made."
  ],
  "candidate_state": {
    "released_base": "0.10.0",
    "released_base_source_sha256": "a0dad30e671d23f38773938f083c4883b9af9025b57fd07226159624109b7ed2",
    "new_pack": "objective-c-foundations",
    "heavy_qa": "Browser, PDF and release gates tracked in separate versioned evidence and release receipts.",
    "previous_browser_validation": "Retained 0.10 history; current browser evidence is recorded separately in browser_validation.",
    "historical_browser_validation": {
      "assertion_count": 537,
      "runtime": "Chrome/155.0.8059.86",
      "operating_system": "macOS 27.0.1 (arm64); Darwin 27.0.0",
      "tested_on": "2026-10-26",
      "evidence": "Browser validation.json"
    }
  }
}
