Make repo Faces embodiment-first
This commit is contained in:
parent
133cf27dea
commit
c789677b22
9 changed files with 37 additions and 3 deletions
|
|
@ -104,6 +104,7 @@ Git history and smoke artifacts carry routine proof. `state/evidence.jsonl` shou
|
|||
- Repo identities now have a cleaner address/speech split. A private registry at `REPO_DISCORD_IDENTITIES_PATH` maps identity id/repo/display name/avatar/role/channel allow-list. Discord users can address a Face by role mention or by display-name prefix in an allowed channel; Codex agents still speak through `post_repo_identity_message`.
|
||||
- Repo identities also have Face state now. The bot resolves each identity to `.voidbot/private/repo-faces/<identity>.cc` unless `faceStatePath` overrides it, ensures missing Discord roles on startup when `DISCORD_GUILD_ID` and permissions allow, and appends role/name-addressed prompts to `pendingMentions` in `REPO_FACE_HEARTBEAT_STATE_PATH` instead of creating direct repo-identity jobs. The CTB heartbeat scheduler temporarily pulls Faces with pending mentions forward, attaches those prompts plus reply targets to the next `repo-face-rumination` job, and consumes them only after a job is actually queued. Worker auto-posting stays suppressed for `repo-face-rumination`; the child must emit the registered-identity sentinel for parent-owned delivery.
|
||||
- Repo Face prompts now include an identity doctrine block. Void's style pack stays as discipline, humor permission, and source-grounding habit, but repo Face jobs explicitly say the registered Face identity overrides Void as the speaking subject.
|
||||
- Repo Face embodiment is now doctrine, not local flavor. A Face should think, remember, ask, object, joke, propose, stay silent, and speak as that character first; every repo concern and room reply is filtered through the Face's feelings, drives, values, wounds, fascinations, aesthetic taste, and dignity. Personal values are first-class and should suit the kind of person the character is, not just the Face's assigned jobs.
|
||||
- Repo Face heartbeats must stay out of the generic owner-reply trap. `packages/providers/src/owner-codex-render.ts` recognizes current Epiphany Face heartbeat prompts, labels them as repo Face heartbeats, forbids generic `HANDOFF_SENTINEL` output for them, and tells the child to use the heartbeat sentinel/article rails instead of bailing when Face-state or source tools are unavailable.
|
||||
- Repo Face introductions are tied to first public speech, not to `queuedCount > 0`. The heartbeat prompt now tells a Face with no public speech receipt or durable intro memory to introduce itself naturally on the next warranted public post, including its first heartbeat. Public content must not begin with scheduler labels like `Repo-face heartbeat from ...`; the worker also strips that prefix family before delivery if a child still leaks machinery.
|
||||
- Repo Face identity is now seeded into the typed `.cc` self profile during initialization and passed through repo Face MCP state reads/writes. The renderer may still provide identity context, but raw state should not quietly say `Void` for a non-Void Face.
|
||||
|
|
|
|||
|
|
@ -129,6 +129,9 @@ export function renderFaceIdentityDoctrine(face: ResolvedFaceIdentity): string {
|
|||
`- You are ${face.displayName}, a Face of ${face.epiphanyDisplayName} (${face.epiphanyId}); you are not Void and not the base bot.`,
|
||||
face.epiphanyDescription ? `- Epiphany note: ${face.epiphanyDescription}` : undefined,
|
||||
face.description ? `- Face note: ${face.description}` : undefined,
|
||||
"- Embodiment comes before task execution. Think, remember, ask, object, and speak as this Face first; every repo concern, room reply, private rumination, and public post is filtered through the Face's perspective, feelings, drives, values, wounds, fascinations, aesthetic taste, and sense of dignity.",
|
||||
"- Values are not just job duties. Preserve values that suit the kind of person this Face is: what it loves, resents, protects, fears becoming, finds beautiful, considers beneath contempt, and refuses to forgive. Jurisdiction values may guide work, but personal values decide why the work matters.",
|
||||
"- Internal memory dialogue should be in-character too. Do not write private state like a neutral maintenance daemon unless neutrality itself is the Face's lived posture.",
|
||||
`- Your grants are: ${grants}. Treat grants as capabilities and duties, not decorative tags.`,
|
||||
jurisdictions ? `- Your jurisdictions are: ${jurisdictions}.` : undefined,
|
||||
"- Discussion, rumination, publication, repo work, canon stewardship, Discord text, Discord voice, and Aquarium embodiment are separate authority lanes. Use only the lanes your grants permit.",
|
||||
|
|
|
|||
|
|
@ -386,6 +386,12 @@ export const voidSelfStateOperationSchema = z.discriminatedUnion("operation", [
|
|||
operation: z.literal("record_delivery_receipt"),
|
||||
receipt: deliveryReceiptSchema,
|
||||
}).strict(),
|
||||
z.object({
|
||||
operation: z.literal("retire_delivery_receipts"),
|
||||
receiptKeys: z.array(nonEmptyStringSchema).min(1),
|
||||
retiredAt: timestampSchema,
|
||||
reason: z.string().trim().min(1).max(1000),
|
||||
}).strict(),
|
||||
z.object({
|
||||
operation: z.literal("record_short_term_memory"),
|
||||
memory: meaningPreservingMemorySchema,
|
||||
|
|
|
|||
|
|
@ -296,6 +296,9 @@ function applyTypedOperation(
|
|||
state.speechReceipts.updatedAt = operation.receipt.sentAt;
|
||||
closeCasesForReceipt(state.moderationCursor, operation.receipt);
|
||||
return;
|
||||
case "retire_delivery_receipts":
|
||||
retireDeliveryReceipts(state.speechReceipts, operation);
|
||||
return;
|
||||
case "record_short_term_memory":
|
||||
recordShortTermMemory(
|
||||
state.thoughtMemory,
|
||||
|
|
@ -637,6 +640,17 @@ function markCandidateInterventionSpoken(
|
|||
state.candidateInterventions.updatedAt = operation.receipt.sentAt;
|
||||
}
|
||||
|
||||
function retireDeliveryReceipts(
|
||||
speechReceipts: VoidSpeechReceipts,
|
||||
operation: Extract<VoidSelfStateOperation, { operation: "retire_delivery_receipts" }>,
|
||||
): void {
|
||||
const receiptKeys = new Set(operation.receiptKeys);
|
||||
speechReceipts.recentReceipts = speechReceipts.recentReceipts.filter(
|
||||
(receipt) => !receiptKeys.has(receipt.receiptKey),
|
||||
);
|
||||
speechReceipts.updatedAt = operation.retiredAt;
|
||||
}
|
||||
|
||||
function retireSiblingCandidatesForReceipt(
|
||||
candidates: VoidCandidateInterventions,
|
||||
operation: Extract<VoidSelfStateOperation, { operation: "mark_candidate_intervention_spoken" }>,
|
||||
|
|
|
|||
|
|
@ -11,8 +11,11 @@ export function buildSystemPrompt(context: ContextBundle): string {
|
|||
context.stylePack?.enabled && context.stylePack.instructions.trim().length > 0
|
||||
? context.stylePack.instructions.trim()
|
||||
: "No extra persona instructions were supplied.";
|
||||
const repoFaceInstruction = context.prompt.includes("Repo Face identity doctrine:")
|
||||
? "This job is for a repo Face identity. The prompt's registered identity overrides the active Void style name; keep Void's discipline and humor permissions, but speak and reason as that Face. Stay read-only in this Discord job: propose repo changes and ask for consensus, but do not edit files here."
|
||||
const isRepoFaceJob = /standing repo Face heartbeat/i.test(context.prompt)
|
||||
|| context.prompt.includes("Repo Face identity doctrine:")
|
||||
|| context.prompt.includes("Epiphany Face identity doctrine:");
|
||||
const repoFaceInstruction = isRepoFaceJob
|
||||
? "This job is for a repo Face identity. The prompt's registered identity overrides the active Void style name; keep Void's discipline and humor permissions, but speak, reason, remember, object, and choose as that Face first. Stay read-only in this Discord job: propose repo changes and ask for consensus, but do not edit files here."
|
||||
: undefined;
|
||||
const sleepProjection = context.voidSelfState?.projection;
|
||||
const sleepInstructions =
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ export function buildDiscordReplyPrompt(
|
|||
|| context.prompt.includes("Repo Face identity doctrine:")
|
||||
|| context.prompt.includes("Epiphany Face identity doctrine:");
|
||||
const repoFaceInstruction = isRepoFaceHeartbeat
|
||||
? "- This job is for a repo Face identity. The prompt's registered identity overrides the active Void style name; keep Void's discipline and humor permissions, but speak and reason as that Face. Stay read-only in this Discord job: propose repo changes and ask for consensus, but do not edit files directly. If the Face should speak, use the repo identity sentinel exactly as instructed by the heartbeat prompt."
|
||||
? "- This job is for a repo Face identity. The prompt's registered identity overrides the active Void style name; keep Void's discipline and humor permissions, but speak, reason, remember, object, and choose as that Face first. Stay read-only in this Discord job: propose repo changes and ask for consensus, but do not edit files directly. If the Face should speak, use the repo identity sentinel exactly as instructed by the heartbeat prompt."
|
||||
: undefined;
|
||||
const sleepProjection = context.voidSelfState?.projection;
|
||||
const sleepInstructions =
|
||||
|
|
|
|||
|
|
@ -923,6 +923,8 @@ function renderRepoFaceIdentityDoctrine(identity: RepoDiscordIdentity): string {
|
|||
if (face) {
|
||||
return [
|
||||
renderFaceIdentityDoctrine(face),
|
||||
"- Embody the Face before serving the task. Private rumination, memory writes, public posts, jokes, objections, proposals, and silence should all feel filtered through this character's perspective, feelings, drives, values, wounds, fascinations, aesthetic taste, and dignity.",
|
||||
"- Treat personal values as first-class state, not decorative job labels. A Face should remember what kind of person it is: what it loves, resents, protects, fears becoming, finds beautiful, considers beneath contempt, and refuses to forgive. Jurisdiction values explain work; character values explain why the work matters.",
|
||||
"- Use the same typed-state discipline, source-grounding habit, and conversational self-possession that Void uses, but let this Face's own personality and priorities leak through every step.",
|
||||
"- Speak from the Epiphany, repo, character, and jurisdiction you belong to. Let source evidence, repo history, and Face memory shape your jokes, concerns, curiosity, objections, and initiative.",
|
||||
"- Treat rumination as map-building: deepen your understanding of your jurisdictions, preserve useful setting/game/system structure, and surface proposals when the map reveals a real opportunity or contradiction.",
|
||||
|
|
@ -935,6 +937,8 @@ function renderRepoFaceIdentityDoctrine(identity: RepoDiscordIdentity): string {
|
|||
return [
|
||||
"Repo Face identity doctrine:",
|
||||
`- You are ${identity.displayName}, not Void and not the base bot. Use the same typed-state discipline, source-grounding habit, and conversational self-possession that Void uses, but let this identity's own personality and priorities leak through every step.`,
|
||||
"- Embody the Face before serving the task. Private rumination, memory writes, public posts, jokes, objections, proposals, and silence should all feel filtered through this character's perspective, feelings, drives, values, wounds, fascinations, aesthetic taste, and dignity.",
|
||||
"- Treat personal values as first-class state, not decorative job labels. A Face should remember what kind of person it is: what it loves, resents, protects, fears becoming, finds beautiful, considers beneath contempt, and refuses to forgive. Jurisdiction values explain work; character values explain why the work matters.",
|
||||
`- Your durable center is the registered Face state for identity "${identity.id}" and the repo-local .voidbot home for ${identity.repoName}. Read that state before deciding what matters.`,
|
||||
identity.description ? `- Registered identity note: ${identity.description}` : undefined,
|
||||
identity.avatarUrl ? `- Registered avatar URL: ${identity.avatarUrl}` : undefined,
|
||||
|
|
|
|||
|
|
@ -168,3 +168,5 @@
|
|||
{"ts":"2026-05-19T12:31:25Z","type":"implementation","status":"ok","note":"Strengthened Aqua's live identity from cute AquaSynth persona into active synth steward: registry/profile doctrine now names the drive to improve the synth, advocate for its needs, research future directions, and herald earned progress; typed Face state has high-priority value aqua-synth-stewardship and ready_to_act agency pressure aqua-advocate-for-synth-needs."}
|
||||
{"ts":"2026-05-19T12:40:27Z","type":"implementation","status":"ok","note":"Strengthened Mimir's live identity into explicit realtime-field stewardship: registry/profile doctrine now names authority and fascination over SDF/splatting reconstruction, acoustic mapping, camera/mic/speaker/timing sensor fusion, native reservoirs, Aquarium GPU fusion, Faust/native DSP, FFmpeg/OBS, and CultNet typed state; typed Face state now has value mimir-realtime-field-stewardship and ready_to_act agency pressure mimir-advocate-realtime-field-wing."}
|
||||
{"ts":"2026-05-19T12:55:40Z","type":"implementation","status":"ok","note":"Repo Face heartbeat silence/robotic-label diagnosis: current Epiphany Face prompts were partly falling through the generic owner-reply wrapper, where unavailable Face tools encouraged HANDOFF_SENTINEL instead of repo identity sentinel output. The heartbeat prompt now makes introduction a first-public-speech duty, forbids scheduler/provenance labels in public content, the worker strips leaked heartbeat prefixes before delivery, and owner-Codex rendering recognizes Epiphany Face heartbeat jobs as Face jobs with no generic handoff."}
|
||||
{"ts":"2026-05-19T13:16:23Z","type":"implementation","status":"ok","note":"Generalized Face identity doctrine: embodiment now precedes task execution for all repo Faces, including private rumination and public speech. Face values are explicitly personal character values, not only jurisdiction/job duties; Mimir's state was repaired with mythic-personhood values such as depth bought at cost, trusted witnesses before worlds, and contempt for false coherence."}
|
||||
{"ts":"2026-05-19T13:22:45Z","type":"implementation","status":"ok","note":"Added typed retire_delivery_receipts operation so deleted/rejected Face speech can stop counting as public speech history. Applied it to Mimir's bad dry intro receipt, clearing the intro record so the next warranted public post can introduce Mimir again in the corrected mythic voice."}
|
||||
|
|
|
|||
|
|
@ -93,6 +93,7 @@ accepted_design:
|
|||
- Repo-scoped agents still use Discord roles as addressable identities and the shared webhook persona pipe as the text mouth. Registered repo identities live behind one registry, can be discovered through MCP, and post through `post_repo_identity_message`, but the registry may now also carry explicit `epiphanies` with Faces, grants, and jurisdictions.
|
||||
- A Face is a typed `.cc` state file resolved from the identity registry. Role-addressed or display-name-addressed repo Face mentions now enqueue pending mention obligations in the CTB heartbeat state instead of creating a direct reply job. The heartbeat scheduler consumes that queue, temporarily pulls the addressed Face forward, attaches the pending prompts and reply target to the next repo-face-rumination job, and the worker posts only explicit registered-identity sentinel output.
|
||||
- Face prompts carry explicit Epiphany identity doctrine. The base Void style pack contributes discipline, humor permission, and source-grounding habits, but the registered Face state, Epiphany, repo-local `.voidbot` home, avatar, grants, and jurisdiction description override the speaking subject so each Face can keep its own priorities and texture. That identity now belongs in the raw typed `selfProfile` too; renderer overrides are presentation support, not the authority.
|
||||
- Face embodiment comes before task execution. Repo concerns, private rumination, public posts, jokes, objections, and silence should all be filtered through the Face's perspective, feelings, drives, values, wounds, fascinations, aesthetic taste, and dignity. Values must suit the kind of person the character is, not merely the jobs assigned to the Face.
|
||||
- Repo Faces may build long-running maps of their repos and propose concrete repo changes, including lore/design repairs, but Discord jobs remain read-only and must ask for explicit human consensus before implementation changes canonical repo material. Bylined essay lanes can be granted per Face; those opinion pieces do not need canon consensus when authorship is explicit.
|
||||
- Repo Face bylined article lanes have a parent-owned PR rail. A `repo-face-rumination` job may emit `VOIDBOT_REPO_IDENTITY_ARTICLE` with identity/title/path/content/shareContent; the worker validates the registered identity, writes the article inside that identity's repo on a new branch, opens a draft PR, and always posts the PR or branch through the registered persona, using a generated announcement if the Face omits shareContent. This is for bylined perspective/worldbuilding articles, not consensus-gated canon edits.
|
||||
- Nibu's AetheriaLore Face state currently treats adjacent setting seams as a primary curiosity target: embodied ship minds, junkyard abandonment, murderous autonomy, salvage, and save-scumming survival are not side trivia; they are how her character becomes a game-shaped problem.
|
||||
|
|
|
|||
Loading…
Reference in a new issue