Persona K33: a read's anchor stands in the paragraph of its quote; the schema types a promise's needs

Deviation 4: with the F.1 r9 room lines among the lines she may reply to,
Meta's possessive in another paragraph anchored a read of Meta's link. The
anchor is now looked for in the quote's paragraph within the segment.

B2: gamecult.persona_state.v0's commitment carries needs (words | read{request}
| lacking, request typed per ReadRequest kind), blockedBy, reaffirmed, and the
read receipt readAt/readId, typed as the commit writes them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-11-21 23:57:03 +01:00
commit 0c71afd368
3 changed files with 197 additions and 5 deletions

View file

@ -911,9 +911,16 @@ fn reading(raw: &Value, packet: &Packet, prose: &str, found: &Drafts, wake: Wake
let start = start.max(wake.from);
SourceSpan::locate(&prose[start..end], text)
.map(|span| (start + span.start_byte(), start + span.end_byte()))
// The anchor is looked for across the whole segment, not only the sentence the quote stands in (Soul's
// R9): "I'll start with #86. The saga code will say…" names #86.
.filter(|_| anchors(&prose[wake.from.min(prose.len())..]))
// The anchor is looked for across the paragraph the quote stands in, within this segment: not only its
// sentence (Soul's R9: "I'll start with #86. The saga code will say…" names #86), and not a paragraph
// apart, where "Meta's notes link asked for nothing" names a link she is not reaching for (Soul's R12
// deviation 4, map 16.26).
.filter(|(at, to)| {
let from = wake.from.min(prose.len());
let open = prose[from..*at].rfind("\n\n").map_or(from, |gap| from + gap + 2);
let close = prose[*to..].find("\n\n").map_or(prose.len(), |gap| *to + gap);
anchors(&prose[open..close])
})
.map(|(at, to)| prose[at..to].to_owned())
})
};

View file

@ -1221,7 +1221,8 @@ fn k30_doable_is_derived() {
/// link, so "the page" names neither by itself. Her promise anchors the reach for its own target, and only that one.
///
/// The room's lines are in what reached her and among the lines she may reply to, as a real packet has them (K33,
/// Soul's R12 deviation 4).
/// Soul's R12 deviation 4). R9's possessive then names Meta's link ("Meta's notes link", in her prose), but a paragraph
/// apart from the one that reaches ("Open the page"), so it anchors nothing (map 16.26).
#[test]
fn k30_f1_r9_promised_read_is_anchored() {
let prose = "Aqua said she hasn't opened it either. I said I'd read it properly, and I haven't. Same bill, two names on it. Hers is honest about it. Mine was a promise made while it was still unopened.\n\nI don't need to say anything to the room about that. Opening the link is the only thing that pays it. When I've read enough to say which part is about plosives and which about waveguides, I'll speak. Until then, anything I said would just be the promise again.\n\nAqua's question to Heimdall isn't mine to answer. Meta's notes link asked for nothing. Kiko's request to Deru isn't mine either.\n\nOpen the page. Start at the top, not at the plosive part. Find out whether it's a book or a single page. Then I'll know how long \"properly\" is.";

View file

@ -1091,7 +1091,7 @@
},
"commitment": {
"type": "object",
"description": "One promise of hers. to: the Matrix id she promised, null for the room. event: her line's event id. status: open (she can keep it with what she has), blocked (she has no way to do it yet), kept, withdrawn or released. closedBy: the act that closed it, by its event; words only for an act of hers.",
"description": "One promise of hers. to: the Matrix id she promised, null for the room. event: her line's event id. status: open (she can keep it with what she has), blocked (she has no way to do it yet), kept, withdrawn or released. closedBy: the act that closed it, by its event; words only for an act of hers. needs: what keeping it needs (map 16.25.2): her words, a read of one thing, or something this body lacks. blockedBy: the read that found nothing and blocked it. reaffirmed: the newest three times she said it again. readAt and readId: when a read of what it needs last returned, and which read (map 16.26).",
"additionalProperties": false,
"properties": {
"id": {
@ -1174,6 +1174,65 @@
}
]
},
"needs": {
"$ref": "#/definitions/commitmentNeeds"
},
"blockedBy": {
"type": "object",
"additionalProperties": false,
"properties": {
"act": {
"type": "string",
"enum": [
"read"
]
},
"n": {
"type": "integer",
"minimum": 1
},
"what": {
"type": "string"
}
},
"required": [
"act",
"n",
"what"
]
},
"reaffirmed": {
"type": "array",
"maxItems": 3,
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"at": {
"type": "string",
"format": "date-time"
},
"event": {
"type": "string"
},
"words": {
"type": "string"
}
},
"required": [
"at",
"event",
"words"
]
}
},
"readAt": {
"type": "string",
"format": "date-time"
},
"readId": {
"type": "string"
},
"extensions": {
"$ref": "#/definitions/extensions"
}
@ -1189,6 +1248,131 @@
"closedAt",
"closedBy"
]
},
"commitmentNeeds": {
"description": "What keeping a promise needs, tagged by kind: words (what she already has keeps it), read (a read of `request`), lacking (this body has no way to do it).",
"oneOf": [
{
"type": "object",
"additionalProperties": false,
"properties": {
"kind": {
"type": "string",
"const": "words"
}
},
"required": [
"kind"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"kind": {
"type": "string",
"const": "read"
},
"request": {
"$ref": "#/definitions/readRequest"
}
},
"required": [
"kind",
"request"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"kind": {
"type": "string",
"const": "lacking"
}
},
"required": [
"kind"
]
}
]
},
"readRequest": {
"description": "A read code performs, by kind: a recall over her own mind by these words; a campaign's rulings by its slug; a public GameCult repo, file, pull request, commit or search; a web address.",
"oneOf": [
{
"type": "object",
"additionalProperties": false,
"properties": {
"kind": {
"type": "string",
"const": "mind"
},
"target": {
"type": "string",
"minLength": 1
}
},
"required": [
"kind",
"target"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"kind": {
"type": "string",
"const": "campaign"
},
"target": {
"type": "string",
"minLength": 1
}
},
"required": [
"kind",
"target"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"kind": {
"type": "string",
"const": "repo"
},
"target": {
"type": "string",
"pattern": "^GameCult/[A-Za-z0-9._-]+([/#@?].*)?$"
}
},
"required": [
"kind",
"target"
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"kind": {
"type": "string",
"const": "web"
},
"target": {
"type": "string",
"pattern": "^https?://\\S+$"
}
},
"required": [
"kind",
"target"
]
}
]
}
}
}