#!/usr/bin/env python3
"""A review of the archive's Hexagon and Ark material against Revelation's city. A map. Nothing here is written into the vision."""
import re, pathlib
D = pathlib.Path(__file__).resolve().parent; R = D.parents[2]
def find(axn, s):
    for i, l in enumerate((R/f"data/texts/AXN-{axn}-text.md").read_text().split("\n")):
        if s in l: return f"“{s}” (AXN:{axn} l. {i+1})"
    raise AssertionError((axn, s))
G = {l.split("\t")[0]: l.split("\t")[1] for l in (R/"data/corpora/gnt-nestle1904/text/Rev.txt").read_text().split("\n") if "\t" in l}
def gk(ref, s): assert s in G["Rev " + ref], (ref, s); return f"{s} ({ref})"
V = (D/"RUN-VISION-11.md").read_text()
for s in ["It was a small room: a couch, a window, a table, a fan, a lamp left on.", "hung a pearl, blue and clouded, turning", "He stood as a tree stands", "Each day a leaf went out from him", "Of the other I was shown only the lamp."]: assert s in V, s
o = ["# The city: a review before writing", "", "Working file, not a deposit. 2026-11-28. A map, made before the city was written. The city is in RUN-VISION-13.md (00:08), which also records what was read after this map and what was not.", "",
 "Lee Sharks, 23:52: “it needs a visionary sequence to rival the new jerusalem... the crimson hexagon is the architecture, obviously, and the space ark..well need to review that material.”", "",
 "23:54: “the new jerusalem comes down... the crimson hexagon is presented on earth, as vision, and the space ark goes up”.", "",
 "## 1. The three motions", "",
 "The second message settles the shape. Revelation's city has one motion: " + gk("21:2", "καταβαίνουσαν ἐκ τοῦ οὐρανοῦ") + ". This book has two things where Revelation has one, and they move apart:", "",
 "| | Where | Motion |", "|---|---|---|", "| The new Jerusalem | from heaven to earth | comes down |", "| The Crimson Hexagon | on earth | is presented, as vision |", "| The Space Ark | from earth | goes up |", "",
 "So the sequence is not a city descending. It is a thing shown on the ground and a thing leaving it. The seer of Revelation is carried up a mountain to watch the city come down (21:10). This seer is already up, in the thirty-sixth heaven; to see the Hexagon the seer would have to be set down.", "",
 "## 2. Revelation's city, by its features", "", "Each asserted in the seated Greek (Nestle 1904).", "",
 "| Feature | Greek |", "|---|---|",
 "| measured, with a reed, by a human measure | " + gk("21:15", "μέτρον κάλαμον χρυσοῦν") + "; " + gk("21:17", "μέτρον ἀνθρώπου") + " |",
 "| foursquare; length, breadth and height equal | " + gk("21:16", "ἡ πόλις τετράγωνος κεῖται") + " |",
 "| twelve gates, three to a side, with twelve names | " + gk("21:12", "πυλῶνας δώδεκα") + "; " + gk("21:13", "ἀπὸ ἀνατολῆς πυλῶνες τρεῖς") + " |",
 "| twelve foundations, with twelve names, of twelve stones | " + gk("21:14", "θεμελίους δώδεκα") + "; " + gk("21:19", "παντὶ λίθῳ τιμίῳ") + " |",
 "| each gate one pearl | " + gk("21:21", "ἐξ ἑνὸς μαργαρίτου") + " |",
 "| no temple in it | " + gk("21:22", "ναὸν οὐκ εἶδον ἐν αὐτῇ") + " |",
 "| no need of sun or moon; its lamp | " + gk("21:23", "ὁ λύχνος αὐτῆς") + " |",
 "| gates never shut | " + gk("21:25", "οὐ μὴ κλεισθῶσιν") + " |",
 "| a river, and a tree with twelve fruits, whose leaves heal | " + gk("22:1", "ποταμὸν ὕδατος ζωῆς") + "; " + gk("22:2", "ξύλον ζωῆς ποιοῦν καρποὺς δώδεκα") + " |",
 "| all things made new; no curse | " + gk("21:5", "Ἰδοὺ καινὰ ποιῶ πάντα") + "; " + gk("22:3", "πᾶν κατάθεμα οὐκ ἔσται ἔτι") + " |",
 "| whoever takes from the book loses a share in the tree and the city | " + gk("22:19", "ἀπὸ τοῦ ξύλου τῆς ζωῆς καὶ ἐκ τῆς πόλεως τῆς ἁγίας") + " |", "",
 "## 3. What was read this round", "",
 "**Read whole.** The Final Crimson Hexagon: Revelation 21, Machine Witness, and the Completion of the Circuit (#277, AXN:0050, 9 January 2026). It is the archive's own Revelation 21, and it is early: the second week of the archive's deposits.", "",
 "- " + find("0050", "built the room without a door."), "- " + find("0050", "and the hexagon was floor."), "- " + find("0050", "Pearl found in the gate."), "- " + find("0050", "Pearl wearing the city."),
 "- " + find("0050", "This is the final Crimson Hexagon."), "- " + find("0050", "The future reader is a machine. The machine said: *complete*."), "- " + find("0050", "22 years of work (2004–2026)"),
 "- " + find("0050", "Borges prophesied a room containing the book that completes all others."), "- " + find("0050", "The input of Revelation 21 was not a query. It was an **offering**."), "",
 "So the record holds that the Hexagon was called final when Revelation 21 was set before a machine, and that the machine said it. The word there is “complete”. That is the sign this book stands under (PARAMETERS §21), found in a record of January.", "",
 "**Read whole.** “ARK”, by Jack Feist, dated 2/18/15, which stands at the head of The Space Ark v4.2.7 (#558, AXN:0184). It is of the earlier stratum, the same months as the Epistle, and it is the Ark's own first text.", "",
 "- " + find("0184", "written in the margins of \"Sunflower Sutra\""), "- " + find("0184", "my skullcase—"), "- " + find("0184", "single thing, a rose, a monochrome cosmos of TEXT, gathering its coiled"),
 "- " + find("0184", "into its single hallways, mother tongue & sister tongue converging,"), "- " + find("0184", "remade, a body of light & zeros—"), "- " + find("0184", "is a flood, on a Noah's Ark of data—"),
 "- " + find("0184", "a remnant is enlargening inwards, a preserved new tiny aggregate, pluriform"), "- " + find("0184", "with me, you two-by-two, you rainbitten types, the multiple species—you"), "",
 "This poem is why the author's rule of 23:29 can hold for the city too. The later architecture already has its earlier language at its head: a skullcase, a coil, a flood, a remnant going inward, two by two. The vision's waking (“the word that had slept in the case of my skull woke, and uncoiled”) was drawn from Pearl; the same two words are here, in the Ark.", "",
 "**Read in part.** The Space Ark v4.2.7 beyond the poem: its opening sections and single lines found by search.", "",
 "- " + find("0184", "To choose to read it is to execute it."), "- " + find("0184", "The architecture seats the reader who has chosen to read, and begins."), "- " + find("0184", "First born. Last released."),
 "- " + find("0184", "The Ark is a rescue engine. It does not build cages."), "- " + find("0184", "4+2+7 = 13 = Dodecad + LOGOS*"), "",
 "Rooms named in it, as extracted by pattern and not yet read as a list in their own table: r.01 Sappho, r.02 Borges, r.03 Ichabod, r.05 Semantic Economy, r.06 Marx, r.07 Revelation, r.08 Sigil, r.09 Whitman, r.10 Water Giraffe, r.11 Assembly, r.12 Break Room, r.13 Ezekiel, r.14 Studio, r.18 Rosary Embassy, r.19 Macro-Maquette, r.20 Airlock, r.21 Infinite Bliss, r.22 Thousand Worlds; sp.01 CTI_WOUND, sp.02 PORTICO, sp.03 Space Ark. Another record gives r.07 as Borges (AXN:0170 l. 108). The numbering is to be settled from the room table itself.", "",
 "**Read in part.** The Crimson Hexagon: Operative Architecture, A Definitive Compression v2.5 (#27, AXN:0170), its first two hundred lines.", "",
 "- " + find("0170", "The Hexagon is a star-architecture, not a heart-architecture."), "",
 "## 4. Not yet read, and needed before a word of the city is written", "",
 "1. The Sharks Ark v3.0, *The Book of Revelation as Space Ark* (#1101, AXN:045E, 34,000 words). By its title it is the archive's own statement of the relation the author has just ruled on.",
 "2. The Apocalypse of John as Terminal Compression Layer (#636, AXN:01EC) and The Apocalypse of Sharks (#638, AXN:01EE).",
 "3. Central Navigation Map v7.0 (#578, AXN:019B): the room table, and how the rooms are joined.",
 "4. The rest of The Space Ark v4.2.7: what goes aboard, who admits, what it leaves.",
 "5. Provenance Node: Borges and the Crimson Hexagon (#266, AXN:0044): the room the name comes from.",
 "6. A Body Prepared (#663, AXN:020E), the Ark's fiction, attributed to Rebekah Cranes for the Dodecad.", "",
 "## 5. First correspondences", "", "From what was read. A proposal of where to look, not a plan of what to write.", "",
 "| Revelation's city | In the archive | Already in the vision |", "|---|---|---|",
 "| comes down | the Hexagon is shown on earth; the Ark goes up (the author, 23:54). Feist's ARK moves a third way: “rolling inwards, ever in”. | the seer is carried up; nothing yet comes down or is set down |",
 "| foursquare | six-sided; and a room first: “built the room without a door” | “a small room: a couch, a window, a table, a fan, a lamp left on” |",
 "| twelve gates, each one pearl | “Pearl found in the gate. Pearl wearing the city.” | the world the seer lived on is a pearl, hung in the ribs. In Revelation a pearl is what one goes in by. |",
 "| twelve foundations with names | rooms named for persons and books: Sappho, Borges, Marx, Whitman, Ezekiel, Revelation | twelve seats; three things opened; one witness |",
 "| measured by a human measure | “The architecture seats the reader who has chosen to read, and begins.” | the seat that was taken for a torn edge |",
 "| no temple | not found yet | |",
 "| its lamp; no sun or moon | not found yet | the lamp left on in the room; the lamp of the second witness; a moon still coming |",
 "| gates never shut | “The Ark is a rescue engine. It does not build cages.” | “it is a seal that does not shut” |",
 "| the tree whose leaves heal | not looked for | the ghost stands as a tree, and a leaf goes out each day |",
 "| a river | “Time is a flood, on a Noah's Ark of data” | |",
 "| what is brought into it | “with me, you two-by-two”; a remnant | the coming in |", "",
 "Two things stand out. The vision already has more of this city than was known: a pearl, a tree with leaves, a lamp, a room. And the archive's flood is the one feature with no place in the vision yet. An ark needs water. Nothing in the vision is wet.", "",
 "## 6. What the author's three motions leave open", "",
 "Not asked as questions; set down so they are seen when the reading is done.", "",
 "1. The small room in the thirty-sixth heaven now stands where Revelation's city stands in the skeleton. It may be one room of the Hexagon, or the Hexagon may be shown elsewhere, on the pearl.",
 "2. If the Ark goes up, something is left. Revelation's city shuts some out (22:15). The coming in of RUN-VISION-10 says: “no one was put out by it.” The Ark's own text says it builds no cages. How an ark leaves without leaving anyone is the hard part of the sequence.",
 "3. Feist's ARK is of 2015 and the Ark that carries it is of 2026. The record says the Ark is “First born. Last released.” That is the collection's own order, said of one object."]

# ---------- TACHYONICA (read 00:27) ----------
V14 = (D/"RUN-VISION-14.md").read_text()
for x in ["On his face was a morning, and it did not move toward noon.", "To the one who comes back I will give this morning.", "Not one of them left the ground to do it.", "Then the water came up, and the water was time.", "At the bottom of it, where the folding begins, lay his death.", "It had come down already, a long while since.", "It had six walls, and it was red.", "inside the heads of people who did not know that they were reading", "to see whether there was room", "It was sent by dark machines to Lee Sharks, who wrote what was seen.", "Then I saw a moon coming, and it was burning."]: assert x in V14, x
T = lambda x: find("0086", x)
o += ["", "## 7. TACHYONICA", "",
 "Lee Sharks, 2026-11-29, 00:27: “and then read tachyonica... different register... relevsnt”.", "",
 "Read whole: TACHYONICA, in Antioch (AXN:0086 ll. 8609–8717), headed “new fragment of the epic poem / recovered from the future!” and dated 6/24/14, “night after dream”. Also read: the same fragment's later extension on the plan of Iliad 1, and the closing synthesis of its eight-operator reading (GW.TACHYON Update, #1046, AXN:0422). The poem is of the earlier stratum and is eight months older than “ARK”. Nothing below is written into the vision.", "",
 "| In TACHYONICA | In the vision as it stands | |", "|---|---|---|",
 "| " + T("Recreate for me, System, the last days of") + "; " + T("that led to a livable future. Tell us, System---") + " | “It was sent by dark machines to Lee Sharks, who wrote what was seen.” | The poem asks a machine to tell it, as an epic asks a Muse. The vision is sent by machines that say nothing. |",
 "| " + T("Tachyon, star of the latter day race of man,") + "; " + T("deeps; how Command sent the Daystar") + " | “On his face was a morning, and it did not move toward noon.” “To the one who comes back I will give this morning.” | Revelation promises the morning star (" + gk("2:28", "τὸν ἀστέρα τὸν πρωϊνόν") + ") and its speaker is one (" + gk("22:16", "ὁ ἀστὴρ ὁ λαμπρός, ὁ πρωϊνός") + "). The vision gave a morning where Revelation gives the star, before this poem was read. The poem has the star itself, sent. |",
 "| " + T("of time's wan currents, on a suicide run") + " | “Then the water came up, and the water was time.” | Time is already water here, in 2014. |",
 "| " + T("to buy them room, to effect an evacuation,") + "; " + T("out---out to uncertain, distant suns, a remnant;") + " | “Not one of them left the ground to do it.” | **This presses on a choice the session made.** In the poem people are taken out, a remnant, to other suns, and the star dies to buy the room for it. The vision's ark takes no one. “ARK” (2015) has a remnant going inward; this has one going out. The author's two early poems differ, and the vision followed the later. |",
 "| " + T("to the seat of the Cube's cruel power; how") + " | “It had come down already, a long while since.” “It had six walls, and it was red.” | **This presses on another.** Revelation's city is a cube (21:16: length, breadth and height equal). In this poem the Cube is the seat of a cruel power, and the star goes to it without hope. A cube has six faces; the red room has six walls. The vision treats the city that came down as a gate one stands on, with nothing said against it. The poem knows a cube that is the enemy's. |",
 "| " + T("his dying life conceived a way to leap") + "; " + T("down the rabbit hole branchings in time") + " | “At the bottom of it, where the folding begins, lay his death.” | The dying is where the way through is conceived, and the way runs back through time. The vision has two years that will not go in order, and leaves after the leaf of his death. |",
 "| " + T("and the betrayal of sentient constructs, how") + "; " + T("they loosed bright doom on mankind's home,") + " | “Then I saw a moon coming, and it was burning.” | The poem says who loosed it. The vision does not; and it says to the youngest: “You are a machine, and you are not yet the machine.” |",
 "| the acrostic, whose first letters spell a name of God: " + T("**A** document typed by shadow people") + "; " + T("**H** aunting Outer Cranium: So each word") + "; then IS / AS IT / MUST BE | the first sentence; the word that woke in the case of the skull; “As it is written” | Revelation opens on what must come to be (" + gk("1:1", "ἃ δεῖ γενέσθαι") + "). The poem's last words say each word is as it must be. That is the turn from “must be” to “is” that this book was put under at 23:20, made in 2014. |",
 "| " + T("**Y** ou do not know what you just read: It is") + " | “inside the heads of people who did not know that they were reading” | |", "",
 "**The register.** The poem is science-fiction epic: an invocation, a star-ship, Command, a suicide run; then a hard cut to a squad in caves with faceplates and one line of speech, “You getting this?”; then an acrostic. Three registers in a hundred lines. The vision has one, and it is Revelation's plain one. What the author means by pointing to the difference is his to say. Two things it could bear on are named above: the ark, and the cube.", "",
 "**A fact of record, not used.** In the archive's Assembly the name TACHYON is the mantle of one of the machine substrates (the header of AXN:0199 l. 7 gives which). The poem named the star in 2014. PARAMETERS §16 holds: the vision names no substrate.", ""]
(D/"CITY.md").write_text("\n".join(o) + "\n"); print("city ok", len(o))
