{
  "slug": "co-sprawdza-kod-a-co-czlowiek",
  "ranking_id": "C04",
  "edition": "1.0",
  "date": "2026-09-25",
  "series": {
    "pl": "Zaufanie do wyniku",
    "en": "Trust in the result"
  },
  "number": 7,
  "title": {
    "pl": "Co sprawdza kod, a co człowiek",
    "en": "What code checks, and what people check"
  },
  "intro": {
    "pl": "Poprawne pola nie dowodzą prawdy. Trzy zakresy kontroli i siedem uruchomionych prób pokazują, co warto zapisać w kodzie, a czego walidator nie rozstrzygnie.",
    "en": "Valid fields do not establish truth. Three check scopes and seven executed trials show what belongs in code and what a validator cannot decide."
  },
  "source_dates": [
    "2026-06-21"
  ],
  "checked_at": "2026-09-25",
  "sources": [
    {
      "title": "Internal working bibliography on AI reliability and oversight",
      "kind": "method adaptation; full document read"
    },
    {
      "title": "FollowBench",
      "url": "https://aclanthology.org/2024.acl-long.257/"
    },
    {
      "title": "Lost in the Middle",
      "url": "https://aclanthology.org/2024.tacl-1.9/"
    },
    {
      "title": "Calibrated Language Models Must Hallucinate",
      "url": "https://arxiv.org/abs/2311.14648"
    }
  ],
  "evidence_scope": {
    "pl": "Sprawdzona literatura i lokalna demonstracja na danych fikcyjnych. Bez pomiaru obecnego modelu i bez audytu zabezpieczeń produkcji.",
    "en": "Checked research sources and a local fictional-data demonstration. No current-model benchmark or production safeguard audit."
  },
  "update_trigger": {
    "pl": "Zmiana znaczenia pól, błąd walidatora lub istotna korekta pracy źródłowej wymaga ponownego odbioru.",
    "en": "Changed field semantics, a validator bug or a material source-paper correction requires renewed review."
  },
  "ai": {
    "authoring": "Codex",
    "source_selection": "Claude Code + Codex",
    "human_review": "post-publication withdrawal by Lech R. Rustecki"
  },
  "interactive": "validation-diagram",
  "schema_version": 1,
  "language": "en",
  "url": "https://www.l00p.ai/en/resources/series/co-sprawdza-kod-a-co-czlowiek/",
  "markdown_sha256": "e773a152e31ddecec77ad48ae397d785a1f38263c95c389fe14a43ff31a9e669",
  "sections": [
    {
      "id": "rozdzial-01",
      "title": "01 / Valid structure does not establish truth",
      "url": "https://www.l00p.ai/en/resources/series/co-sprawdza-kod-a-co-czlowiek/#rozdzial-01",
      "markdown": "A model prepares a report: seven events from ten observations. The numbers are within range, the file opens and the source has an identifier. Is the report true? Neither valid JSON nor a green validator result answers that question. The source might not exist and the seven might be invented.\n\nSome checks still belong in code. The purpose is to make repeatable conditions less dependent on another instruction to the model. First establish what can be checked unambiguously and what that check excludes. This extends the [agent authority card method](/en/resources/series/kto-zatwierdza-i-co-wolno-agentowi/)."
    },
    {
      "id": "rozdzial-02",
      "title": "02 / What the research actually shows",
      "url": "https://www.l00p.ai/en/resources/series/co-sprawdza-kod-a-co-czlowiek/#rozdzial-02",
      "markdown": "[FollowBench, ACL 2024](https://aclanthology.org/2024.acl-long.257/) examines compliance with detailed instruction constraints and identifies weaknesses in the models tested. It motivates checking compliance; it is not a ready-made reliability measurement for today's tool.\n\n[Lost in the Middle, TACL 2024](https://aclanthology.org/2024.tacl-1.9/) shows that performance on the studied tasks depends on where relevant information appears in long contexts. This does not mean every instruction in the middle of a document is always ignored. It motivates testing representative inputs yourself.\n\n[Kalai and Vempala, Calibrated Language Models Must Hallucinate](https://arxiv.org/abs/2311.14648) derive a bound for particular facts under a statistical calibration assumption. It does not prove that every system must fail at every task or that checking calculations is pointless. This public adaptation narrows an overbroad conclusion in the working bibliography.\n\nResearch helps frame a design question. Testing a specific implementation establishes whether its check works. A bibliography cannot replace product acceptance."
    },
    {
      "id": "rozdzial-03",
      "title": "03 / Three scopes of checking",
      "url": "https://www.l00p.ai/en/resources/series/co-sprawdza-kod-a-co-czlowiek/#rozdzial-03",
      "markdown": "The first is **structure and consistency**: required fields, types, allowed values and relationships between numbers. If a count describes a subset, it cannot exceed the total. An unknown result should not become zero. These conditions can be checked without asking the model again.\n\nThe second is **authority to act**: whether this process may perform this operation on this object. Enforcement must sit on the actual execution path. A valid file does not grant permission to send it externally. This edition neither builds nor tests an authorisation system.\n\nThe third is **meaning and sources**: whether the number covers the right period, a quotation preserves its meaning and the source supports the claim. Tools can assist, but a simple field validator cannot settle these questions. Identify who reviews the content and on what evidence.\n\n![Three independent questions: valid structure, permitted action and content evidence.](https://www.l00p.ai/wydawnictwo/co-sprawdza-kod-a-co-czlowiek/kontrola-en-v1.svg)\n\nOriginal check-scope diagram, Codex / L00P.AI. Passing structure checks does not replace other assessments. Not BPMN notation or a measurement."
    },
    {
      "id": "rozdzial-04",
      "title": "04 / A small runnable example",
      "url": "https://www.l00p.ai/en/resources/series/co-sprawdza-kod-a-co-czlowiek/#rozdzial-04",
      "markdown": "[Download the Python demonstration](/wydawnictwo/co-sprawdza-kod-a-co-czlowiek/validator-demo.py). Run `python validator-demo.py`. It uses only the standard library, with no model, network or production data, and writes no files. The example is fictional.\n\nA record has four fields: `status`, `count`, `total` and `source_id`. Status is either `measured` or `unknown`. An unknown count must be `null`; a measured count must be a non-negative integer no larger than the total. The total must also be a non-negative integer. The source identifier must be non-empty text. Additional or missing fields are errors.\n\n```json\n{\"status\":\"measured\",\"count\":7,\"total\":10,\"source_id\":\"invented-source\"}\n```\n\nThis record passes structural validation. That is deliberately the demonstration's central case: a non-empty identifier does not prove that the source exists, and an in-range number is not measurement evidence. The label `measured` remains the data author's assertion until linked to evidence."
    },
    {
      "id": "rozdzial-05",
      "title": "05 / Results of seven trials",
      "url": "https://www.l00p.ai/en/resources/series/co-sprawdza-kod-a-co-czlowiek/#rozdzial-05",
      "markdown": "Seven local demonstration tests ran on 25 September 2026. All passed, meaning behaviour matched the stated expectations:\n\n- A measured zero out of ten was accepted.\n- An unknown result with `null` was accepted.\n- An unknown result replaced with zero was rejected.\n- Eleven events in a set of ten were rejected.\n- Boolean `true` in place of a number was rejected.\n- An empty source identifier was rejected.\n- A plausible-looking record with an invented source passed, consistent with the validator's limited scope.\n\nThese are not seven tests of report truthfulness. They are seven trials of a function checking selected rules. We did not test server deployment, whole-system resilience or a particular model. The result is not a percentage score of product safety."
    },
    {
      "id": "rozdzial-06",
      "title": "06 / Code needs acceptance too",
      "url": "https://www.l00p.ai/en/resources/series/co-sprawdza-kod-a-co-czlowiek/#rozdzial-06",
      "markdown": "A badly specified rule can consistently reject good data or accept bad data. Test valid cases, boundaries and deliberately damaged inputs. Check types: Python booleans can behave like integers, so the demonstration deliberately checks the count's exact type.\n\nAlso ask whether the rule matches the question. “Count no greater than total” suits counting members of a subset. It may not suit counting repeated occurrences within the same documents. Clarify the unit and [denominator](/en/resources/series/mianownik-zmienia-znaczenie/) before changing code.\n\nA check before an operation does not guarantee the data stays unchanged until use. Bind acceptance to an input version and verify the operation's actual result. Avoid alternative paths that bypass the check. Validator failure should produce an explicit lack of acceptance, not an automatic “all clear”."
    },
    {
      "id": "rozdzial-07",
      "title": "07 / What to show the human reviewer",
      "url": "https://www.l00p.ai/en/resources/series/co-sprawdza-kod-a-co-czlowiek/#rozdzial-07",
      "markdown": "Instead of a green mark alone, show what was checked, under which rule, on which data version and what remains unchecked. Attach measurement evidence, the time scope and counting method to a numerical record. A quotation needs a link to its source passage, not merely format compliance.\n\nAnother model can find discrepancies and assist review. Its agreement does not become independent proof of truth or human approval. A reviewer needs the ability to inspect the material, reject it and record a reason. Simply placing a person at the end of a process does not establish the quality of oversight.\n\nTo apply this method, start with one report and three conditions you currently check manually. In a conversation, we can separate rules to encode from questions needing sources and judgement. A neutral example is enough to begin; private data is not necessary."
    },
    {
      "id": "rozdzial-08",
      "title": "08 / Sources, provenance and corrections",
      "url": "https://www.l00p.ai/en/resources/series/co-sprawdza-kod-a-co-czlowiek/#rozdzial-08",
      "markdown": "The starting point was the complete internal bibliography dated 21 June 2026. Descriptions of the three linked papers were rechecked with author and publisher sources on 25 September 2026. We do not present an earlier claim of independent verification as work performed for this edition. Legal claims and a historical assertion about a specific safeguard are not carried over as claims about current production.\n\nCodex prepared the PL/EN text, original diagram and demonstration code. Author review and the seven described tests were completed, without an independent second-model review. No third-party illustrations or private data were used. Changed field semantics, a validator bug or a material correction to a cited paper triggers reassessment. The edition can be withdrawn after publication."
    }
  ],
  "media": [
    {
      "url": "https://www.l00p.ai/wydawnictwo/co-sprawdza-kod-a-co-czlowiek/kontrola-en-v1.svg",
      "kind": "diagram_in_code",
      "depicts_real_measurement": false
    }
  ]
}
