Close resident organ ownership gaps

This commit is contained in:
Meta Vens 2026-07-16 06:10:08 +01:00
commit 9deebb3d19
7 changed files with 12 additions and 7 deletions

View file

@ -24,7 +24,7 @@ let timer: NodeJS.Timeout | undefined;
let lastPhysiologyAt = 0;
let lastModerationAt = 0;
let lastRuminationAt = 0;
const physiologyIntervalMs = Math.max(5, Number(process.env.VOIDBOT_MOOD_INTERVAL_MINUTES) || 5) * 60_000;
const physiologyIntervalMs = config.voidPhysiology.intervalMinutes * 60_000;
const moderationIntervalMs = config.voidModerationDaemon.intervalMinutes * 60_000;
const ruminationIntervalMs = config.voidRuminationDaemon.intervalMinutes * 60_000;

View file

@ -2,8 +2,8 @@ import { createHash } from "node:crypto";
export interface InitiativeParticipant {
identityId: string;
participantKind: "repo_face" | "native_persona" | "system_agent";
turnKind: "repo_face_rumination" | "void_moderation";
participantKind: "repo_face" | "native_persona";
turnKind: "repo_face_rumination";
repoName: string;
displayName: string;
initiativeSpeed: number;
@ -94,7 +94,7 @@ export function reconcileParticipants(input: ReconcileParticipantsInput): Initia
return input.specs.map((spec, index) => {
const current = existingById.get(spec.id);
const hasChannel = spec.participantKind === "system_agent" || Boolean(spec.allowedChannelIds[0] || input.defaultChannelId);
const hasChannel = Boolean(spec.allowedChannelIds[0] || input.defaultChannelId);
const speed = initiativeSpeedFor(spec, input.speedOverrides) * spec.channelSpeedMultiplier;
const groups = initiativeGroupsFor(spec);
const heat = heatFor(spec, groups, input.globalHeat, input.heatOverrides);

View file

@ -89,7 +89,7 @@ export async function runPersonaSchedulerTick(input: {
const pressure = await readSemanticPressure({
candidates: participantSpecs.flatMap((spec) => {
const participant = state.participants.find((entry) => entry.identityId === spec.id);
if (!spec.identity || spec.participantKind === "system_agent" || participant?.status !== "active" || participant.currentLoad >= 1 || completedThisTick.has(participant.identityId) || restStates.get(participant.identityId)?.isNapping === true) return [];
if (!spec.identity || participant?.status !== "active" || participant.currentLoad >= 1 || completedThisTick.has(participant.identityId) || restStates.get(participant.identityId)?.isNapping === true) return [];
return [{ identityId: participant.identityId, interruptThreshold: participant.interruptThreshold, affinityText: renderPersonaInitiativeAffinity(spec), allowedChannelIds: spec.allowedChannelIds }];
}),
messages: idleCooling.observedHumanMessages,

View file

@ -272,8 +272,8 @@ function isInitiativeParticipant(value: unknown): value is InitiativeParticipant
if (!isRecord(value)) return false;
return (
typeof value.identityId === "string" &&
["repo_face", "native_persona", "system_agent"].includes(String(value.participantKind)) &&
["repo_face_rumination", "void_moderation"].includes(String(value.turnKind)) &&
["repo_face", "native_persona"].includes(String(value.participantKind)) &&
value.turnKind === "repo_face_rumination" &&
typeof value.repoName === "string" &&
typeof value.displayName === "string" &&
["active", "blocked", "withdrawn", "offscreen"].includes(String(value.status)) &&