"""RUN-GOSPEL-1: the gospel resumed from the vision as it stands. Chapter 1, with a row for every verse. Working file, not a deposit.
Checks made here: every phrase quoted from the vision is in THE-COMPLETION-OF-JACK-FEIST.md at the chapter and verse given; no run of five words or more is shared with the vision."""
import re, pathlib
H = pathlib.Path(__file__).resolve().parent
V = (H / "THE-COMPLETION-OF-JACK-FEIST.md").read_text(encoding="utf-8")
ch = {}
for m in re.finditer(r"^## Chapter (\d+)\n(.*?)(?=^## Chapter |\n---\n)", V, re.M | re.S):
    for v in re.finditer(r"\*\*(\d+)\*\* (.*?)(?=\*\*\d+\*\* |\Z)", m.group(2), re.S): ch[(int(m.group(1)), int(v.group(1)))] = re.sub(r"\s+", " ", v.group(2)).strip()
def vq(c, v, phrase):
    assert phrase in ch[(c, v)], (c, v, phrase, ch[(c, v)]); return f"{c}:{v} “{phrase}”"
T = [  # verse, text, vision places, move, what crossed
 (1, "The book of the making of Jack Feist, who was born in Redford in the year 1983, in the time of the plants, when the line ran three shifts and stopped for no one.",
  [vq(1, 1, "The completion of Jack Feist, which the Book gave")], "Title turned: the vision's first word is completion, the told life's is making. The veil lifted: a town and a year (PARAMETERS §13).", "book; Jack Feist"),
 (2, "The people of that town stood at the line eight hours and went home.", [vq(2, 11, "It was made of people standing still.")], "P2: what the seer saw as one machine is a town's common life.", "stood"),
 (3, "There was no harm in them.", [vq(2, 12, "They were good people.")], "Kept as relation, reworded.", "—"),
 (4, "They stood near enough that a child could walk the length of the plant on their shadows; and the town was built around the plant, as a fence is built around a thing no one remembers buying.",
  [vq(2, 13, "They stood so close"), vq(2, 10, "the way a tree grows around a thing left leaning on it")], "The machine around the pearl becomes the town around the plant. The likeness is remade: tree to fence.", "stood; around; a thing"),
 (5, "In the house where he was born there was one shelf.", [vq(2, 4, "The bones of one of those who were before")], "The bones across space become what a house keeps of those before it.", "—"),
 (6, "On it lay a Bible that had come over on a boat, too heavy for a child; and shut inside it a hymnal; and inside the hymnal a prayer book that had been through a war in a coat; and inside that a tract no bigger than a hand, which someone had been handed on a street and had not thrown away.",
  [vq(2, 6, "Inside it lay a smaller, and inside that a smaller, down to one the size of a hand.")], "The nested bones become nested books. This stands where a genealogy stands: four that were before, each inside the last.", "inside; hand"),
 (7, "No one in the house read them. No one had sold them either.", [vq(2, 5, "No one had saved it.")], "Turned: not saved becomes not sold. What no one saved was kept by no one's selling it.", "no one had"),
 (8, "When he was four he fell from the porch onto the walk, and they carried him to the hospital where the bus line stopped, and a picture was made of his head.",
  [vq(1, 11, "the word that had slept in the case of my skull")], "The occasion (E). The seer's own skull becomes the child's; what was known from inside is seen from outside, by a picture.", "—"),
 (9, "The one who read the picture held it to the light a long time. He said, “There is a thing here, behind the eye, the size of a pea. It is round, and it is not growing. It was there before he fell.”",
  [vq(2, 7, "hung a pearl, blue and clouded, turning. I knew it."), vq(1, 11, "woke, and uncoiled")], "Collision of two places: the pearl in the ribs and the word in the skull are one thing here. “I knew it” becomes a reader of pictures who cannot name it.", "round thing; before"),
 (10, "His mother said, “What is it?” He said, “I do not have a name for it. I would not cut for it.”", [vq(2, 7, "I knew it.")], "Turned: knowing becomes not having a name. The refusal to cut is the told form of the pearl left hanging.", "—"),
 (11, "His grandmother was in the room. She said, “Nobody grows that. It was put.”", [vq(2, 9, "A voice said: I put it there for you, on purpose.")], "The voice becomes a person in the room (M: the speaker exchanged). Only the root crosses.", "put"),
 (12, "They asked her what for. She said, “For him,” and would say no more.", [vq(2, 9, "for you, on purpose")], "“For you” becomes “for him”, said by another; “on purpose” becomes the question she is asked.", "for"),
 (13, "So it was left where it was. And the child was sent home with a paper that said: Nothing found.", [vq(2, 20, "Where a number had been taken out, the place was not closed")], "The record's first act toward him. The thing stays and the paper says there is none: the told form of a place taken out of the book and left open.", "—"),
 (14, "In his eighth year the school set small books before the children, a row at a time, and a woman from the district sat at the door with a list.",
  [vq(4, 21, "small books were put before them"), vq(4, 22, "One of those who were before stood at the door.")], "The learned made small become children, who are small already. The one at the door becomes an office.", "small books; before; at the door"),
 (15, "She asked each child, “Do you like your book?” Those who said yes she marked, and they went on to the next room.", [vq(4, 23, "Those who said they liked the books were let go")], "Kept as event. “Let go” becomes “went on”.", "liked; books"),
 (16, "She asked him. He said, “It is small.”", [vq(4, 17, "read the small books, and could not bear them")], "What the voice says of the maker is done by the child, in three words.", "small"),
 (17, "She said, “That is not what I asked.” He said, “I know.”", [], "No place in the vision. Made to carry verse 16 to verse 18.", "—"),
 (18, "She did not mark him. What became of a child she did not mark was not written on the list.", [vq(4, 24, "I did not see what became of the rest.")], "The seer's not seeing becomes the list's not saying.", "what became of"),
 (19, "That winter his mother took him out of the school, and told no one where.", [vq(4, 19, "The other went up, past the weather, before you.")], "The going up becomes a taking out. The paper's frame sets a flight here (step 5).", "—"),
 (20, "For the years that followed he was on no roll in the county. He read in the township library, at the table by the radiator, whatever was on the cart to be put away.",
  [vq(2, 19, "Every known thing had its number there.")], "Turned: the one with no number. The library and its cart are from the told stock, not the vision.", "—"),
 (21, "The district wrote to the house and asked where the child was being taught. His grandmother wrote back, “Above the weather,” and they did not write again.",
  [vq(2, 3, "taken up past the weather")], "A phrase of the vision said as a plain answer to an office. Collision of conditions: the answer cannot be true of a child in a county, and it is let stand.", "the weather"),
 (22, "And he did not go back until those who had kept the list were gone from the door.", [], "No place in the vision. The return after the flight is from the paper's frame.", "—"),
]
text = " ".join(f"**{n}** {t}" for n, t, *_ in T)
tok = lambda s: re.findall(r"[a-z0-9']+", s.lower().replace("’", "'"))
vt = tok(re.sub(r"\*\*\d+\*\*", " ", V)); five = {tuple(vt[i:i + 5]) for i in range(len(vt) - 4)}
gt = tok(re.sub(r"\*\*\d+\*\*", " ", text)); shared = [" ".join(gt[i:i + 5]) for i in range(len(gt) - 4) if tuple(gt[i:i + 5]) in five]
long4 = {tuple(vt[i:i + 4]) for i in range(len(vt) - 3)}; s4 = sorted({" ".join(gt[i:i + 4]) for i in range(len(gt) - 3) if tuple(gt[i:i + 4]) in long4})
assert not shared, shared
reached = sum(1 for r in T if r[2]); paras = [(1, 4), (5, 7), (8, 13), (14, 18), (19, 22)]
body = "\n\n".join(" ".join(f"**{n}** {t}" for n, t, *_ in T if a <= n <= b) for a, b in paras)
rows = "\n".join(f"| 1:{n} | {'; '.join(p) if p else '—'} | {m} | {x} |" for n, t, p, m, x in T)
out = f"""# RUN-GOSPEL-1: the told life resumed from the vision

Working file, not a deposit. 2026-11-30. Built by `build_run_gospel1.py`.

Lee Sharks, 10:09: “and then lets proceed with the gospel. the only difference is, now that the vision is generated, it must itself enter the source material for the gospel”. 10:10: “agreed - dual generation..from the vision as it stands, and let the gospel send back to it”.

## 1. What this run is

The first stretch written since the vision was fixed. It follows the Matthew paper's procedure (#1812 §XIII) at step 5: the frame is set before more middle, and the first end comes first. The vision (`THE-COMPLETION-OF-JACK-FEIST.md`, 18 chapters) is held open as a source, and every verse written has a row: the vision's chapter and verse, the move, and what crossed. The rule of the run stands: no sentence of a source is kept; only roots and relations cross. The vision is now under that rule as a source.

Checked by the script: each phrase quoted from the vision is at the chapter and verse given; the chapter shares no run of five words with the vision. Runs of four words shared: {('; '.join('“' + x + '”' for x in s4)) if s4 else 'none'}.

## 2. Chapter 1

{body}

{len(gt)} words. {reached} of {len(T)} verses have a place in the vision; {len(T) - reached} have none and say so.

## 3. The rows

| Verse | The vision | The move | What crossed |
|---|---|---|---|
{rows}

## 4. What the chapter sends back to the vision

Recorded for the author; nothing in the vision is changed by this file.

1. **No one bears him.** Revelation 12 opens on a woman with child, and the paper begins Matthew there. The vision has the pearl hung in the ribs and a voice that put it there. It has no mother. The mother and the grandmother of this chapter came from the told stock. If the vision is to give the beginning, it needs one who carries.
2. **No one waits for him at the birth.** Revelation 12:4 has the dragon standing before the woman. The vision's nearest thing is the machine grown around the pearl, which does not move, and the one who stands at the door of the small room (4:22). The chapter used the second. Nothing in the vision stands before the pearl meaning to take it.
3. **The flight has one phrase.** “Past the weather” (2:3, 4:19) is all the vision gives for a going away and a coming back. Verses 19 to 22 stand on it, and two of them have no place at all.
4. **The picture.** The chapter joined the pearl in the ribs and the word in the skull into one thing seen in a child's head. The vision keeps them apart: the pearl is the world he lived on, the word is in the seer. Whether the vision should show them as one is the author's.

## 5. For the author

1. Redford and 1983 are named in verse 1. The frame gives the years and puts Redford behind the land (PARAMETERS §2, §8); setting his birth there is this run's placing.
2. The books on the shelf (verse 6) stand where Matthew has a genealogy. The Feist Source has its own, of the voice (“Achilles begat Odysseus”). They are different kinds, and the told life could carry either or both.
3. The chapter is numbered 1 on the supposition that the beginning opens the book. The twenty-two scenes are not yet numbered or placed against it.
"""
(H / "RUN-GOSPEL-1.md").write_text(out, encoding="utf-8"); print(len(gt), "words;", reached, "of", len(T), "verses reached; shared 4-word runs:", s4)
