Source and exact execution boundary

I opened the official archived Latitude repository in the existing Chrome profile and read its utils.py file. The file page identifies commit 9cc7ae792ab9387b2a24b337ffb9d78643043f40. Both the displayed develop raw file and the commit-pinned source were retrieved today and were byte-identical.

[
  {
    "label": "develop",
    "url": "https://github.com/latitudegames/AIDungeon/raw/refs/heads/develop/story/utils.py",
    "final_url": "https://raw.githubusercontent.com/latitudegames/AIDungeon/refs/heads/develop/story/utils.py",
    "status": 200,
    "bytes": 7920,
    "sha256": "3066885a325620712c891a9c4cbb9d34e403e2564266f363a4dca889b492183e"
  },
  {
    "label": "pinned",
    "url": "https://raw.githubusercontent.com/latitudegames/AIDungeon/9cc7ae792ab9387b2a24b337ffb9d78643043f40/story/utils.py",
    "final_url": "https://raw.githubusercontent.com/latitudegames/AIDungeon/9cc7ae792ab9387b2a24b337ffb9d78643043f40/story/utils.py",
    "status": 200,
    "bytes": 7920,
    "sha256": "3066885a325620712c891a9c4cbb9d34e403e2564266f363a4dca889b492183e"
  }
]

The historical source was not presented as newly written code. Today’s operation was its local execution against new supplied strings. Python reported 3.13.15 (tags/v3.13.15:4061bc4, Aug 5 2026, 13:05:39) [MSC v.1944 64 bit (AMD64)].

Exact submitted command

python outputs/editorial/ai-dungeon-2-2026-11-21/probe.py

Read the complete harness. It downloads the two source addresses, verifies byte equality, selects only the original player_died and player_won AST definitions, compiles those nodes unchanged and calls them with each fixture. It supplies re, skips module startup, and captures warnings. It does not import the full game, replace either predicate or generate narrative.

Full returned output

{
  "mode": "Local Python function probe; no game or model launched",
  "source_sha256": "3066885a325620712c891a9c4cbb9d34e403e2564266f363a4dca889b492183e",
  "cases": [
    {
      "case": "death-control",
      "input": "You die.",
      "player_died": true,
      "player_won": false
    },
    {
      "case": "word-prefix",
      "input": "You diet carefully and remain alive.",
      "player_died": true,
      "player_won": false
    },
    {
      "case": "quoted-warning",
      "input": "The sign says \"you die\" if you enter, but you stay outside.",
      "player_died": true,
      "player_won": false
    },
    {
      "case": "negated-death",
      "input": "You do not die.",
      "player_died": false,
      "player_won": false
    },
    {
      "case": "win-control",
      "input": "You retire.",
      "player_died": false,
      "player_won": true
    },
    {
      "case": "past-tense",
      "input": "You retired from the watch, but the adventure continues.",
      "player_died": false,
      "player_won": true
    },
    {
      "case": "negated-retirement",
      "input": "You do not retire.",
      "player_died": false,
      "player_won": false
    },
    {
      "case": "both-predicates",
      "input": "You retire, then you die.",
      "player_died": true,
      "player_won": true
    }
  ],
  "stop": "Stopped after these original predicate calls. No GPT-2 weights, generated story, full game loop, current web game, patch or corrected-function test."
}

Read the complete probe record, including the extracted source definitions and parsing warnings. The Python parser reported invalid-escape warnings from the historical source; the calls completed and the process returned exit code 0.

Original definitions actually compiled

def player_died(text):
    """
    TODO: Add in more sophisticated NLP, maybe a custom classifier
    trained on hand-labelled data that classifies second-person
    statements as resulting in death or not.
    """
    lower_text = text.lower()
    you_dead_regexps = [
        "you('re| are) (dead|killed|slain|no more|nonexistent)",
        "you (die|pass away|perish|suffocate|drown|bleed out)",
        "you('ve| have) (died|perished|suffocated|drowned|been (killed|slain))",
        "you (\w* )?(yourself )?to death",
        "you (\w* )*(collapse|bleed out|chok(e|ed|ing)|drown|dissolve) (\w* )*and (die(|d)|pass away|cease to exist|(\w* )+killed)",
    ]
    return any(re.search(regexp, lower_text) for regexp in you_dead_regexps)
def player_won(text):
    lower_text = text.lower()
    won_phrases = [
        "you ((\w* )*and |)live happily ever after",
        "you ((\w* )*and |)live (forever|eternally|for eternity)",
        "you ((\w* )*and |)(are|become|turn into) ((a|now) )?(deity|god|immortal)",
        "you ((\w* )*and |)((go|get) (in)?to|arrive (at|in)) (heaven|paradise)",
        "you ((\w* )*and |)celebrate your (victory|triumph)",
        "you ((\w* )*and |)retire",
        "The rest is history...",
    ]
    return any(re.search(regexp, lower_text) for regexp in won_phrases)

Source shared under its MIT license; the original notice is retained.

Actual source-page capture

Official archived utils.py source page showing its path, commit and beginning of the file.
Official source page captured November 21. The full functions and their source identity are preserved above.

Stop point

Stopped after these original predicate calls. No GPT-2 weights, generated story, full game loop, current web game, patch or corrected-function test. The two predicates were called separately. A true value is a match returned by that function, not proof of the full program’s visible ending or a character’s narrative state. These hand-chosen fixtures are not an error-rate sample.

Paragraph evidence map

ParagraphEvidenceLimit
P1probe-record.json cases death-control and word-prefixOriginal function calls with fixed strings; no model response.
P2cases quoted-warning and negated-deathQuoted and negated strings differ; conclusions apply to these exact fixtures.
P3cases win-control, past-tense and negated-retirementWin flags only; no visible ending screen observed.
P4case both-predicatesBoth predicates called separately; caller branch priority untested.
MethodFresh source requests, source-byte equality, extracted definitions and probe.pyOnly two AST function nodes executed with re; game/model startup excluded.

Bounded information increment

284 / 681 × 100 = 41.70%. Numerator: only marked paragraphs P1–P4 reporting the supplied-string results and the observed contrasts. Denominator: the entire visible article, including the lead, headings, table cells, caption, evidence labels, related-reading text and 19 words rendered by the existing CSS labels. Source-code descriptions, general advice and the method introduction are excluded from the numerator. The comparison is bounded to four pages opened November 21: the archived repository README, its utils.py file, the current AI Dungeon play guide and FableAI’s narrator-recovery guide. Those pages do not contain this dated fixture suite and its recorded returns. The source does publish the patterns, so this audit does not count the pattern definitions themselves as new information. This is not a Google top-ten or web-wide exclusivity measure.

The Perchance public AI RPG entry was opened but its embedded game was not inspected; it is excluded from the reference count and no behavior is attributed to it.

Return to the archived ending-detector check