Add Imagination action item receipts
This commit is contained in:
parent
d6113602e4
commit
88e20efc16
5 changed files with 226 additions and 20 deletions
|
|
@ -154,6 +154,11 @@ struct DerivePlanArgs {
|
|||
target_path: Option<String>,
|
||||
action_family: String,
|
||||
model_ref: Option<String>,
|
||||
model_authored: bool,
|
||||
action_summary: Option<String>,
|
||||
verification_asks: Vec<String>,
|
||||
stop_conditions: Vec<String>,
|
||||
escalation_reasons: Vec<String>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
|
|
@ -535,6 +540,11 @@ fn parse_derive_plan_args(args: impl Iterator<Item = String>) -> Result<DerivePl
|
|||
let mut target_path = None;
|
||||
let mut action_family = "append-worklog".to_string();
|
||||
let mut model_ref = None;
|
||||
let mut model_authored = false;
|
||||
let mut action_summary = None;
|
||||
let mut verification_asks = Vec::new();
|
||||
let mut stop_conditions = Vec::new();
|
||||
let mut escalation_reasons = Vec::new();
|
||||
|
||||
let mut args = args.peekable();
|
||||
while let Some(arg) = args.next() {
|
||||
|
|
@ -552,6 +562,19 @@ fn parse_derive_plan_args(args: impl Iterator<Item = String>) -> Result<DerivePl
|
|||
"--model-ref" | "--imagination-ref" => {
|
||||
model_ref = Some(take_string(&mut args, "--model-ref")?);
|
||||
}
|
||||
"--model-authored" => model_authored = true,
|
||||
"--action-summary" | "--action-item-summary" => {
|
||||
action_summary = Some(take_string(&mut args, "--action-summary")?);
|
||||
}
|
||||
"--verification-ask" => {
|
||||
verification_asks.push(take_string(&mut args, "--verification-ask")?);
|
||||
}
|
||||
"--stop-condition" => {
|
||||
stop_conditions.push(take_string(&mut args, "--stop-condition")?);
|
||||
}
|
||||
"--escalation-reason" => {
|
||||
escalation_reasons.push(take_string(&mut args, "--escalation-reason")?);
|
||||
}
|
||||
other => return Err(anyhow!("unexpected derive-plan argument {other:?}")),
|
||||
}
|
||||
}
|
||||
|
|
@ -563,6 +586,11 @@ fn parse_derive_plan_args(args: impl Iterator<Item = String>) -> Result<DerivePl
|
|||
target_path,
|
||||
action_family,
|
||||
model_ref,
|
||||
model_authored,
|
||||
action_summary,
|
||||
verification_asks,
|
||||
stop_conditions,
|
||||
escalation_reasons,
|
||||
})
|
||||
}
|
||||
|
||||
|
|
@ -1629,6 +1657,7 @@ fn run_derive_plan(args: DerivePlanArgs) -> Result<Value> {
|
|||
evidence_refs.push(format!("imagination-consensus:{consensus_id}"));
|
||||
}
|
||||
let model_ref = args.model_ref;
|
||||
let model_authored = args.model_authored || model_ref.is_some();
|
||||
if let Some(model_ref) = model_ref.as_ref() {
|
||||
evidence_refs.push(format!("imagination-model:{model_ref}"));
|
||||
} else {
|
||||
|
|
@ -1637,7 +1666,7 @@ fn run_derive_plan(args: DerivePlanArgs) -> Result<Value> {
|
|||
normalize_action_family(&args.action_family)?
|
||||
));
|
||||
}
|
||||
let derived_plan = derive_safe_plan_family(DeriveSafePlanInput {
|
||||
let mut derived_plan = derive_safe_plan_family(DeriveSafePlanInput {
|
||||
action_family: &args.action_family,
|
||||
target_path: args.target_path.as_deref(),
|
||||
item: &item,
|
||||
|
|
@ -1646,6 +1675,65 @@ fn run_derive_plan(args: DerivePlanArgs) -> Result<Value> {
|
|||
accept_receipt: &accept_receipt,
|
||||
model_ref: model_ref.as_deref(),
|
||||
})?;
|
||||
let action_verification_asks = if args.verification_asks.is_empty() {
|
||||
derived_plan.verification_asks.clone()
|
||||
} else {
|
||||
args.verification_asks
|
||||
};
|
||||
let action_stop_conditions = if args.stop_conditions.is_empty() {
|
||||
vec![
|
||||
"Stop if the command exits nonzero or changes paths outside the derived plan."
|
||||
.to_string(),
|
||||
]
|
||||
} else {
|
||||
args.stop_conditions
|
||||
};
|
||||
let action_escalation_reasons = if args.escalation_reasons.is_empty() {
|
||||
vec![
|
||||
"Escalate if the accepted pressure requires paths outside the requested safe family."
|
||||
.to_string(),
|
||||
"Escalate if the work needs publication, merge, service lifecycle, elevation, or cross-repo authority.".to_string(),
|
||||
]
|
||||
} else {
|
||||
args.escalation_reasons
|
||||
};
|
||||
let action_item_summary = args
|
||||
.action_summary
|
||||
.unwrap_or_else(|| derived_plan.plan_summary.clone());
|
||||
let action_items = write_imagination_action_items_receipt(
|
||||
&artifact_dir,
|
||||
&workspace,
|
||||
&accept_receipt_path,
|
||||
&accept_receipt,
|
||||
ImaginationActionItemReceiptInputs {
|
||||
item: &item,
|
||||
source,
|
||||
summary,
|
||||
derive_plan_mode: &normalize_action_family(&args.action_family)?,
|
||||
safe_action_family: &derived_plan.safe_action_family,
|
||||
requested_paths: vec![derived_plan.target_path.clone()],
|
||||
action_summary: &action_item_summary,
|
||||
verification_asks: action_verification_asks.clone(),
|
||||
stop_conditions: action_stop_conditions.clone(),
|
||||
escalation_reasons: action_escalation_reasons,
|
||||
rollback_hints: derived_plan.rollback_hints.clone(),
|
||||
model_ref: model_ref.as_deref(),
|
||||
model_authored,
|
||||
},
|
||||
)?;
|
||||
let action_items_receipt_id = string_from_json(&action_items, &["receiptId"])
|
||||
.unwrap_or_else(|| format!("repo-work-action-items-{}", sanitize(&item)));
|
||||
evidence_refs.push(format!(
|
||||
"imagination-action-items:{action_items_receipt_id}"
|
||||
));
|
||||
derived_plan.derivation["actionItemReceipt"] = json!({
|
||||
"receiptId": action_items_receipt_id,
|
||||
"receiptPath": action_items["receiptPath"],
|
||||
"schemaVersion": action_items["schemaVersion"],
|
||||
"status": action_items["status"],
|
||||
"modelAuthored": model_authored,
|
||||
"safeActionFamily": derived_plan.safe_action_family,
|
||||
});
|
||||
|
||||
write_plan_receipt(
|
||||
workspace,
|
||||
|
|
@ -1659,11 +1747,8 @@ fn run_derive_plan(args: DerivePlanArgs) -> Result<Value> {
|
|||
changed_paths: vec![derived_plan.target_path.clone()],
|
||||
commit_message: derived_plan.commit_message,
|
||||
adoption_evidence_refs: evidence_refs,
|
||||
verification_asks: derived_plan.verification_asks,
|
||||
stop_conditions: vec![
|
||||
"Stop if the command exits nonzero or changes paths outside the derived plan."
|
||||
.to_string(),
|
||||
],
|
||||
verification_asks: action_verification_asks,
|
||||
stop_conditions: action_stop_conditions,
|
||||
rollback_hints: derived_plan.rollback_hints,
|
||||
derivation: Some(derived_plan.derivation),
|
||||
},
|
||||
|
|
@ -1681,6 +1766,7 @@ struct DeriveSafePlanInput<'a> {
|
|||
}
|
||||
|
||||
struct DerivedSafePlan {
|
||||
safe_action_family: String,
|
||||
target_path: String,
|
||||
plan_summary: String,
|
||||
command: String,
|
||||
|
|
@ -1719,6 +1805,7 @@ fn derive_append_worklog_plan(
|
|||
powershell_single_quoted(&worklog_line)
|
||||
);
|
||||
Ok(DerivedSafePlan {
|
||||
safe_action_family: "repo.append_worklog".to_string(),
|
||||
target_path,
|
||||
plan_summary: format!(
|
||||
"Imagination derived a safe append-only worklog update from accepted {} pressure.",
|
||||
|
|
@ -1764,6 +1851,7 @@ fn derive_planning_note_plan(
|
|||
];
|
||||
let command = powershell_append_lines_command(&target_path, &lines);
|
||||
Ok(DerivedSafePlan {
|
||||
safe_action_family: "repo.markdown_planning_note".to_string(),
|
||||
target_path,
|
||||
plan_summary: format!(
|
||||
"Imagination derived a contained markdown planning note from accepted {} pressure.",
|
||||
|
|
@ -1807,10 +1895,112 @@ fn plan_derivation_receipt(input: DeriveSafePlanInput<'_>, mode: &str, safe_fami
|
|||
"crossRepoMutation": false,
|
||||
"privateStateExposed": false
|
||||
},
|
||||
"nextUpgrade": "replace deterministic safe families with model-authored Imagination planning over the same receipt contract"
|
||||
"nextUpgrade": "deepen model-authored Imagination action items while keeping Hands command lowering inside allowlisted safe families"
|
||||
})
|
||||
}
|
||||
|
||||
struct ImaginationActionItemReceiptInputs<'a> {
|
||||
item: &'a str,
|
||||
source: &'a str,
|
||||
summary: &'a str,
|
||||
derive_plan_mode: &'a str,
|
||||
safe_action_family: &'a str,
|
||||
requested_paths: Vec<String>,
|
||||
action_summary: &'a str,
|
||||
verification_asks: Vec<String>,
|
||||
stop_conditions: Vec<String>,
|
||||
escalation_reasons: Vec<String>,
|
||||
rollback_hints: Vec<String>,
|
||||
model_ref: Option<&'a str>,
|
||||
model_authored: bool,
|
||||
}
|
||||
|
||||
fn write_imagination_action_items_receipt(
|
||||
artifact_dir: &Path,
|
||||
workspace: &Path,
|
||||
accept_receipt_path: &Path,
|
||||
accept_receipt: &Value,
|
||||
inputs: ImaginationActionItemReceiptInputs<'_>,
|
||||
) -> Result<Value> {
|
||||
if inputs.requested_paths.is_empty() {
|
||||
return Err(anyhow!(
|
||||
"Imagination action-item receipts require at least one requested path"
|
||||
));
|
||||
}
|
||||
let normalized_paths = normalize_paths(inputs.requested_paths.clone());
|
||||
let item_slug = sanitize(inputs.item);
|
||||
let receipt_id = format!("repo-work-action-items-{item_slug}");
|
||||
let action_item_id = format!("{receipt_id}-action-1");
|
||||
let now = Utc::now().to_rfc3339_opts(chrono::SecondsFormat::Secs, true);
|
||||
let receipt = json!({
|
||||
"schemaVersion": "epiphany.repo_work_imagination_action_items_receipt.v0",
|
||||
"createdAt": now,
|
||||
"workspace": workspace,
|
||||
"acceptReceiptPath": accept_receipt_path,
|
||||
"receiptId": receipt_id,
|
||||
"item": inputs.item,
|
||||
"status": "proposed-for-self-mind-review",
|
||||
"owner": "Imagination",
|
||||
"router": "Self",
|
||||
"stateGate": "Mind",
|
||||
"inputPressure": {
|
||||
"source": inputs.source,
|
||||
"summary": inputs.summary,
|
||||
"feedbackId": accept_receipt["feedback"]["feedbackId"],
|
||||
"consensusReceiptId": accept_receipt["feedback"]["consensusReceiptId"],
|
||||
"candidateActionRefs": accept_receipt["feedback"]["candidateActionRefs"],
|
||||
"publicDiscussionRefs": accept_receipt["feedback"]["publicDiscussionRefs"]
|
||||
},
|
||||
"model": {
|
||||
"modelAuthored": inputs.model_authored,
|
||||
"modelRef": inputs.model_ref,
|
||||
"deterministicFallback": !inputs.model_authored,
|
||||
"operatorAuthoredShellDetails": false
|
||||
},
|
||||
"actionItems": [{
|
||||
"actionItemId": action_item_id,
|
||||
"status": "candidate",
|
||||
"derivePlanMode": inputs.derive_plan_mode,
|
||||
"safeActionFamily": inputs.safe_action_family,
|
||||
"requestedPaths": normalized_paths,
|
||||
"summary": inputs.action_summary,
|
||||
"intendedConsequence": inputs.action_summary,
|
||||
"verificationAsks": inputs.verification_asks,
|
||||
"stopConditions": inputs.stop_conditions,
|
||||
"escalationReasons": inputs.escalation_reasons,
|
||||
"rollbackHints": inputs.rollback_hints,
|
||||
"handsCommandDerived": false
|
||||
}],
|
||||
"authority": {
|
||||
"handsAuthorityGranted": false,
|
||||
"durableStateAdmitted": false,
|
||||
"publicationAuthorized": false,
|
||||
"mergeAuthorized": false,
|
||||
"serviceLifecycleAuthority": false,
|
||||
"crossRepoMutation": false,
|
||||
"privateStateExposed": false,
|
||||
"nextGate": "self.mind.adoption_then_plan_derivation"
|
||||
},
|
||||
"privateStateExposed": false,
|
||||
"nextSafeMove": "Self/Mind may adopt one Imagination action item, then derive a Hands plan through an allowlisted safe family."
|
||||
});
|
||||
let receipt_path = artifact_dir.join(format!("work-action-items-{item_slug}.json"));
|
||||
write_json(&receipt_path, &receipt)?;
|
||||
Ok(json!({
|
||||
"schemaVersion": receipt["schemaVersion"],
|
||||
"status": receipt["status"],
|
||||
"workspace": receipt["workspace"],
|
||||
"receiptPath": receipt_path,
|
||||
"receiptId": receipt["receiptId"],
|
||||
"item": receipt["item"],
|
||||
"actionItems": receipt["actionItems"],
|
||||
"model": receipt["model"],
|
||||
"authority": receipt["authority"],
|
||||
"privateStateExposed": false,
|
||||
"nextSafeMove": receipt["nextSafeMove"],
|
||||
}))
|
||||
}
|
||||
|
||||
fn write_plan_receipt(
|
||||
workspace: PathBuf,
|
||||
accept_receipt_path: PathBuf,
|
||||
|
|
@ -4758,7 +4948,7 @@ fn print_usage() {
|
|||
"usage: epiphany-work <persona-intake|accept|derive-plan|plan|run|adopt|execute|close|publish|sync|overview|tick|queue-run|serve> ...\n\
|
||||
persona-intake --workspace <repo> --item <id> --message <text> [--topic <topic>] [--store <local-verse.ccmp>] [--runtime-id <id>]\n\
|
||||
accept --workspace <repo> --from <persona|bifrost|persona-or-bifrost> --item <id> [--summary <text>] [--topic <topic>] [--store <local-verse.ccmp>] [--runtime-id <id>] [--online-receipt <path>] [--public-discussion-ref <ref>] [--candidate-action-ref <ref>]\n\
|
||||
derive-plan --workspace <repo> [--item <id>] [--accept-receipt <path>] [--action-family append-worklog|planning-note] [--target-path <path>] [--model-ref <ref>]\n\
|
||||
derive-plan --workspace <repo> [--item <id>] [--accept-receipt <path>] [--action-family append-worklog|planning-note] [--target-path <path>] [--model-ref <ref>] [--model-authored] [--action-summary <text>] [--verification-ask <text>] [--stop-condition <text>] [--escalation-reason <text>]\n\
|
||||
plan --workspace <repo> [--item <id>] --objective <text> --plan-summary <text> --command <command> --changed-path <path> --commit-message <text> [--adoption-evidence-ref <ref>]\n\
|
||||
run --workspace <repo> [--item <id>] [--accept-receipt <path>] [--runtime-store <path>] [--requested-path <path>]\n\
|
||||
adopt --workspace <repo> [--item <id>] [--run-receipt <path>] [--from-plan <path>] [--plan-summary <text>] [--adoption-evidence-ref <ref>]\n\
|
||||
|
|
|
|||
|
|
@ -827,7 +827,7 @@ temptation wearing clean robes.
|
|||
| Repo Body birth | `epiphany-repo init` exists and writes repo-local stores plus branch workbench intent. | Keep birth startup-only, review-gated, and branch-oriented. |
|
||||
| Local Verse online | `epiphany-swarm online` seeds repo-local CultMesh, standing-faculty SoA, topology, liveness, Eve, and tool sight. | Keep private Verse sealed while exposing operator-safe repo status. |
|
||||
| Persona/Bifrost intake | `epiphany-work accept` records pressure and candidate action refs without Hands authority. `epiphany-work persona-intake` now invokes the Persona bubble speech-audit path, records public discussion and candidate-action refs, then delegates to `accept`; wrapper mode `repo-persona-intake` exposes the operator mouth. | Deepen the intake-to-Imagination interpreter so richer model-authored action items can be proposed without granting Hands, publication, or durable-state authority at the mouth edge. |
|
||||
| Imagination planning | `derive-plan` deterministically creates allowlisted `append-worklog` and `planning-note` plans; `plan` remains manual quarantine scaffolding. | Replace deterministic templates with model-authored, typed Imagination action items for richer safe command families. |
|
||||
| Imagination planning | `derive-plan` now writes a typed `epiphany.repo_work_imagination_action_items_receipt.v0` before the executable plan receipt. The action-item receipt can carry model provenance, allowed safe family, requested paths, verification asks, stop conditions, escalation reasons, and private-state seals; command text remains deterministic safe-family lowering for `append-worklog` and `planning-note`. `plan` remains manual quarantine scaffolding. | Broaden model-authored action items to richer safe families without turning model text into arbitrary shell authority. |
|
||||
| Self scheduling | `tick` and `serve` prove one-step branch-local advancement, brake refusal, active-turn refusal, cooldown, and stale-turn recovery; `queue-run` selects tick-actionable rows from the typed repo-work queue and delegates to `tick`; `repo-work-service-plan` and `repo-work-service-runbook` now write Idunn lifecycle receipts/artifacts for that same queue-run command without launching it. | Add model-authored action-item depth next; keep any future queue-run service launch/install behind Idunn and explicit operator authority. |
|
||||
| Branch-local Hands work | `adopt` and `execute` create approved Hands gates, run planned commands, stage declared paths, commit on `epiphany/*`, and write receipts. | Keep mutation branch-contained and receipt-backed; broaden only through typed plan families, not ad hoc shell freedom. |
|
||||
| Soul/Modeling/Mind closure | `close` verifies the Hands commit and writes deterministic Soul, Modeling, and Mind receipts. | Add richer model-authored closure where useful, while preserving deterministic local closure for simple mechanical work. |
|
||||
|
|
@ -858,10 +858,14 @@ Build the remaining MVP in this order:
|
|||
is landed: `epiphany-work persona-intake` routes work-shaped speech through
|
||||
the Persona bubble speech-audit path, records public discussion refs and
|
||||
candidate action refs, then delegates to `accept`; wrapper mode
|
||||
`repo-persona-intake` exposes the operator surface. The remaining cut is for
|
||||
Imagination to emit typed action-item receipts with allowed safe families,
|
||||
requested paths, verification asks, stop conditions, and escalation reasons.
|
||||
Banter remains banter unless Mind/Interpreter extracts a work candidate.
|
||||
`repo-persona-intake` exposes the operator surface. `derive-plan` now emits
|
||||
typed Imagination action-item receipts with allowed safe families, requested
|
||||
paths, verification asks, stop conditions, escalation reasons, model
|
||||
provenance, and no Hands/publication/durable-state authority before it
|
||||
lowers the chosen safe family into a plan receipt. Banter remains banter
|
||||
unless Mind/Interpreter extracts a work candidate. The remaining cut is
|
||||
richer model-authored families and adoption depth, not basic action-item
|
||||
receipt shape.
|
||||
3. **Model-authored safe plan families.** Promote `derive-plan` beyond the
|
||||
deterministic `append-worklog` and `planning-note` reliquaries by letting
|
||||
Imagination author typed plans over allowlisted repo-local families. Shell
|
||||
|
|
@ -1041,6 +1045,15 @@ The chain is typed and sealed enough to be useful:
|
|||
`privateStateExposed=false`. Wrapper:
|
||||
`tools/epiphany_local_run.ps1 -Mode repo-persona-intake -RepoWorkItem <id>
|
||||
-PersonaInput '<request>'`.
|
||||
- `epiphany-work derive-plan` now writes
|
||||
`work-action-items-<item>.json` before `work-plan-<item>.json`. The action
|
||||
items receipt is owned by Imagination, routed by Self, gated by Mind, and
|
||||
carries model provenance, safe action family, requested paths, verification
|
||||
asks, stop conditions, escalation reasons, rollback hints, public/candidate
|
||||
refs, and `operatorAuthoredShellDetails=false`. The plan receipt cites that
|
||||
action-item receipt in its derivation. Hands command text remains lowered
|
||||
through allowlisted safe families; the action item is not publication, merge,
|
||||
durable Mind admission, service lifecycle, elevation, or cross-repo authority.
|
||||
|
||||
The scar is equally important: this is still an operator-started cadence loop,
|
||||
not installed service lifecycle. The operator can prove the scheduler breathes,
|
||||
|
|
@ -1068,10 +1081,12 @@ Required organs before MVP:
|
|||
the close gate and any later Idunn service launch/install under explicit
|
||||
operator authority.
|
||||
- Persona-to-plan depth: deterministic `append-worklog` and `planning-note`
|
||||
derivations exist for accepted Persona/Bifrost pressure, and
|
||||
`persona-intake` now gives the project Persona a speech-audited mouth into
|
||||
that pressure stream. Remaining work is model-authored Imagination planning
|
||||
for richer action classes without operator shell details.
|
||||
derivations exist for accepted Persona/Bifrost pressure,
|
||||
`persona-intake` gives the project Persona a speech-audited mouth into that
|
||||
pressure stream, and `derive-plan` now writes typed Imagination action-item
|
||||
receipts before safe-family command lowering. Remaining work is richer
|
||||
model-authored action classes and adoption depth without operator shell
|
||||
details.
|
||||
- Closure depth: deterministic Soul/Modeling/Mind closure exists for Hands
|
||||
commits; richer model-authored Soul/Modeling review remains to replace the
|
||||
current local verification rite where appropriate.
|
||||
|
|
|
|||
|
|
@ -103,9 +103,10 @@ remembers doctrine; the branch remembers the blade.
|
|||
- Edge JSON is allowed for schema description, hostile ingress before immediate typed parsing, sealed forensic artifacts, or named quarantine experiments. When both subsystems are ours, runtime data must remain typed CultCache documents and move over CultNet typed contracts. Generic `serde_json::Value` in worker launch/result/selfPatch/runtime flow is contamination until classified and replaced.
|
||||
- Hands now has a first executable action receipt spine. `epiphany-core::hands_gateway` owns `HandsActionIntent`, `HandsActionReview`, `HandsPatchReceipt`, `HandsCommandReceipt`, and `HandsCommitReceipt`; runtime-spine can persist/reread them; `runtime_spine_persists_mind_gateway_review_receipts` includes the Hands chain beside Mind/Eyes/Substrate/Soul/Continuity proofs and proves the post-timestamp Hands receipt-chain detector; `epiphany-hands-action-smoke` emits intent/review/patch/command/commit receipt ids from `.epiphany-smoke\runtime-spine\hands-action-smoke.msgpack`; and the repo-action launch proof profile now requires action intent, action review, and patch receipt together. `epiphany-mvp-coordinator` now turns `continueImplementation` into a persisted Substrate Gate grant plus Hands intent/review gate and includes the receipt ids in the operator step. `epiphany-hands-action` is the native consequence recorder for that gate: `record-patch`, `record-command`, `record-commit`, and turn-level `record-pass` load the stored intent/review or `finalAction.handsActionGate` from `coordinator-summary.json`, require an approved matching review, enforce allowed operations, and keep patch/commit changed paths inside the requested scope. `epiphany-mvp-coordinator-smoke` includes the deterministic Hands pass proof. The coordinator now treats a complete Hands receipt chain after an accepted Soul result as new implementation evidence, launches Soul again, and routes a passing accepted Soul result to Modeling/modeling before another Hands turn. Work-loop telemetry is now typed internal CultMesh state: Verification role launches write `epiphany.cultmesh.work_loop_telemetry.v0` beside runtime-spine, render that packet for Soul with resolved receipt bodies, commit diff preview, source proof notes, verification assertions, and stdout/stderr previews, and Modeling launches read/enrich the latest packet with Soul acceptance receipt ids before Modeling updates the map. Local Verse prompt context now exposes only a sealed `latest_work_loop_summary` digest with telemetry id, Hands receipt ids, path/source/assertion counts, and Soul receipt ids; receipt payload previews, artifact previews, and commit diff previews remain internal telemetry and are leak-guarded by tests plus `epiphany-verse-query -- smoke`.
|
||||
- `notes/epiphany-swarm-readiness-plan.md` is the current live-fire direction gate. The local runner proves startup/status/coordinator wiring; it does not authorize unattended swarm operation. Carry VoidBot's lessons forward: one CTB-style initiative scheduler, typed pause/brake, active-turn freeze, cooldown after completion, stale active-turn recovery receipts, parent-side speech eligibility, memory lifecycle phases, and typed operation proposals instead of prompt-owned governance. `epiphany-verse-query swarm-brake --brake-status engaged|released` can now write the local Verse brake document, and `tools/epiphany_local_run.ps1` refuses live `plan`/`run`/`mvp` modes when that brake is engaged while keeping `status` readable. `epiphany-mvp-coordinator` also checks `--local-verse-store` before app-server startup, and `epiphany-heartbeat-store` guards tick/pump/heat/queue-mention/routine when passed `--local-verse-store`. Daemon tool invocation, daemon lifecycle poke, and `epiphany-daemon-supervisor` restart/tick/serve/service-plan/service-launch/service-runbook/windows-service-install/windows-service-status/windows-service-reconcile/windows-service-execution-readiness/start/stop attempts now fail closed under a matching engaged brake; supervisor restart now has durable per-daemon policy with cooldown/backoff, explicit scheduled tick pulses, latest scheduler receipts, typed service lifecycle plan/launch/runbook/install/status/reconcile/readiness/start/stop receipts, and local operator wrapper modes that write runbook/install/status/reconcile/readiness/control-plan/execution artifacts plus operator run receipts. The installed-service read path, read-only service-policy reconciliation path, execution-readiness path, non-mutating start/stop control-plan path, and non-elevated execution refusal path have been proved against real Windows `EventLog` service-manager state or safe missing-service targets through local Verse receipts, including explicit wrapper install/start/stop execution modes. The next cut is actual elevated install/start/stop execution proof under operator authority.
|
||||
- `notes/epiphany-repo-swarm-mvp-contract.md` is the repo-swarm MVP authority map and migration plan. It states the live fourteen-front-door chain from `epiphany-repo init` through `epiphany-work derive-plan`, `close`, `overview`, `tick`, `queue-run`, `publish`, and `sync`, documents the operator-safe proof receipts already proved with `privateStateExposed=false`, and names the remaining MVP organs: model-authored Persona-to-plan depth, optional Idunn-hosted queue-run lifecycle, optional execute-to-close handoff, richer published proof bundles, and richer model-authored closure. Autonomous branch-local work inside the owned repo Body is in scope and desired; Bifrost gates publication/merge/escalation, Idunn owns daemon lifecycle, and `epiphany-work tick` may only advance one safe receipt-backed branch-local step per pulse before stopping at closure or publication gates. `epiphany-work derive-plan` now consumes accepted Persona/Bifrost pressure and writes Imagination/Self action plans through deterministic safe families: `append-worklog` appends to `EPIPHANY_WORKLOG.md`, and `planning-note` creates a contained markdown note under `notes/epiphany-work/<item>.md`; both carry `operatorAuthoredShellDetails=false`, an authority seal, and no private-state exposure. Disposable smokes proved the append-worklog route through accept -> derive-plan -> run -> adopt -> execute -> close, changed only `EPIPHANY_WORKLOG.md`, ended `closed:passed`, and reported no private-state exposure; `.epiphany-smoke\planning-note-20260620-015921` proved the planning-note route through accept -> derive-plan -> run -> adopt -> execute, with mode `planning-note`, safe family `repo.markdown_planning_note`, a branch-local commit, and no private-state exposure. `epiphany-work overview` now reads the repo work receipt chain and writes an Eyes/Gjallar-owned sight/proof bundle with current gate, blocker, next safe action, branch, changed paths, commit SHA, Soul verdict, compact rows, and private-state seal; it also mirrors a typed `epiphany.cultmesh.repo_work_overview.v0` document into the repo-local Verse when a local Verse store is known. Disposable smokes proved pre-plan `awaiting-plan`/`plan-receipt-missing`, post-close `awaiting-publication`/`bifrost-publication-missing`, and latest-key CultMesh readback through `epiphany-verse-query smoke` as `latestRepoWorkOverview=repo-work-overview-verse-overview-request`, `latestRepoWorkGate=awaiting-publication`, `latestRepoWorkBlocker=bifrost-publication-missing`, with no private-state exposure. The tick pulse reads the repo-local CultMesh swarm brake and writes `refused-by-swarm-brake` without creating run/adopt/execute receipts when the brake is engaged. It also writes active-turn and last-completed scheduler receipts, refuses live duplicate pulses as `refused-active-turn`, refuses explicit completion-anchored cooldown as `refused-by-cooldown`, clears stale active markers after `--active-timeout-seconds`, and records `physiology.recoveredActiveTurn.recovered=true` when recovery proceeds. `epiphany-work queue-run` reads the repo-local typed overview queue, selects only tick-actionable rows for the current repo Body, delegates to `tick`, refreshes overview after real advancement, and is wrapped by `tools/epiphany_local_run.ps1 -Mode repo-work-queue-run`. `epiphany-work serve` wraps the item-scoped tick artery in Self-owned cadence: bounded `--max-iterations` proof mode writes `work-scheduler-serve-<item>.json`, unbounded service mode relies on per-pulse tick receipts, and unbounded zero-second polling is refused. `epiphany-work close` consumes branch-local execute receipts, verifies the Hands commit, writes Soul verdict plus Modeling summary plus Mind gateway/state-commit receipts, and seals `work-close-<item>.json` without granting publication, merge, service lifecycle, cross-repo mutation, or private-state exposure. `epiphany-work publish --closure-receipt` can consume the closure's Soul/Mind ids, while tick no-ops once closure exists before Bifrost publication authority.
|
||||
- `notes/epiphany-repo-swarm-mvp-contract.md` is the repo-swarm MVP authority map and migration plan. It states the live fifteen-front-door chain from `epiphany-repo init` through `epiphany-work persona-intake`, `derive-plan`, `close`, `overview`, `tick`, `queue-run`, `publish`, and `sync`, documents the operator-safe proof receipts already proved with `privateStateExposed=false`, and names the remaining MVP organs: richer model-authored safe families, optional execute-to-close handoff, richer published proof bundles, and richer model-authored closure. Autonomous branch-local work inside the owned repo Body is in scope and desired; Bifrost gates publication/merge/escalation, Idunn owns daemon lifecycle, and `epiphany-work tick` may only advance one safe receipt-backed branch-local step per pulse before stopping at closure or publication gates. `epiphany-work derive-plan` now consumes accepted Persona/Bifrost pressure, writes typed Imagination action-item receipts, then lowers allowlisted safe families into Imagination/Self action plans: `append-worklog` appends to `EPIPHANY_WORKLOG.md`, and `planning-note` creates a contained markdown note under `notes/epiphany-work/<item>.md`; the receipts carry `operatorAuthoredShellDetails=false`, authority seals, and no private-state exposure. Disposable smokes proved the append-worklog route through accept -> derive-plan -> run -> adopt -> execute -> close, changed only `EPIPHANY_WORKLOG.md`, ended `closed:passed`, and reported no private-state exposure; `.epiphany-smoke\planning-note-20260620-015921` proved the planning-note route through accept -> derive-plan -> run -> adopt -> execute, with mode `planning-note`, safe family `repo.markdown_planning_note`, a branch-local commit, and no private-state exposure. `epiphany-work overview` now reads the repo work receipt chain and writes an Eyes/Gjallar-owned sight/proof bundle with current gate, blocker, next safe action, branch, changed paths, commit SHA, Soul verdict, compact rows, and private-state seal; it also mirrors a typed `epiphany.cultmesh.repo_work_overview.v0` document into the repo-local Verse when a local Verse store is known. Disposable smokes proved pre-plan `awaiting-plan`/`plan-receipt-missing`, post-close `awaiting-publication`/`bifrost-publication-missing`, and latest-key CultMesh readback through `epiphany-verse-query smoke` as `latestRepoWorkOverview=repo-work-overview-verse-overview-request`, `latestRepoWorkGate=awaiting-publication`, `latestRepoWorkBlocker=bifrost-publication-missing`, with no private-state exposure. The tick pulse reads the repo-local CultMesh swarm brake and writes `refused-by-swarm-brake` without creating run/adopt/execute receipts when the brake is engaged. It also writes active-turn and last-completed scheduler receipts, refuses live duplicate pulses as `refused-active-turn`, refuses explicit completion-anchored cooldown as `refused-by-cooldown`, clears stale active markers after `--active-timeout-seconds`, and records `physiology.recoveredActiveTurn.recovered=true` when recovery proceeds. `epiphany-work queue-run` reads the repo-local typed overview queue, selects only tick-actionable rows for the current repo Body, delegates to `tick`, refreshes overview after real advancement, and is wrapped by `tools/epiphany_local_run.ps1 -Mode repo-work-queue-run`. `epiphany-work serve` wraps the item-scoped tick artery in Self-owned cadence: bounded `--max-iterations` proof mode writes `work-scheduler-serve-<item>.json`, unbounded service mode relies on per-pulse tick receipts, and unbounded zero-second polling is refused. `epiphany-work close` consumes branch-local execute receipts, verifies the Hands commit, writes Soul verdict plus Modeling summary plus Mind gateway/state-commit receipts, and seals `work-close-<item>.json` without granting publication, merge, service lifecycle, cross-repo mutation, or private-state exposure. `epiphany-work publish --closure-receipt` can consume the closure's Soul/Mind ids, while tick no-ops once closure exists before Bifrost publication authority.
|
||||
- 2026-06-20: The same repo-swarm note now carries the explicit migration thesis, MVP status board, Epiphany Online cut order, authority matrix, local CultMesh tool availability doctrine, and upstream-main sync doctrine. `tools/epiphany_local_run.ps1 -Mode repo-work-service-plan` and `-Mode repo-work-service-runbook` now write Idunn-owned non-mutating lifecycle receipts/artifacts for the real `epiphany-work queue-run` command; proofs `local-20260620-021415-094-58439baf` and `local-20260620-021415-147-067c36b0` planned/wrote the queue-run command vector with `privateStateExposed=false` and no service launch/install. Use that note when answering "are we headed toward a functional swarm?" The answer is yes, but only if the remaining cuts preserve typed organ ownership: model-authored Imagination action items over allowlisted safe families, `epiphany-swarm run`, execute-to-close scheduler handoff, proof bundles, and a fresh-repo acceptance run. Persona is the mouth, Imagination plans, Self schedules, Hands acts, Soul verifies, Modeling maps, Mind admits, Gjallar sees, Odin discovers, Idunn keeps daemon physiology alive, Bifrost publishes and credits, and Eve/CultUI renders without becoming truth.
|
||||
- 2026-06-20: The first repo Persona intake mouth is live. `epiphany-work persona-intake` requires a repo-swarm online receipt, records a Persona bubble/speech-audit witness into repo-local CultMesh, creates public discussion and candidate action refs, delegates to `accept`, and seals `work-persona-intake-<item>.json` without Hands, durable-state, publication, service lifecycle, cross-repo, elevation, or private-state authority. Wrapper mode `tools/epiphany_local_run.ps1 -Mode repo-persona-intake -RepoWorkItem <id> -PersonaInput '<request>'` exposes the operator surface. Disposable proof `.epiphany-smoke\persona-intake-20260620-022500` wrote direct item `persona-request` with speech audit `persona-speech-audit-cdcd20a7`, feedback `repo-work-feedback-persona-request`, consensus `repo-work-consensus-persona-request`, and `privateStateExposed=false`; wrapper artifact `local-20260620-022551-566-5576908e` wrote item `persona-wrapper`, speech audit `persona-speech-audit-55f74218`, feedback `repo-work-feedback-persona-wrapper`, consensus `repo-work-consensus-persona-wrapper`, and candidate action `candidate-action://repo-swarm-local/persona-wrapper/persona-speech-audit-55f74218`. The next cut is typed Imagination action-item receipts over allowlisted safe families, not another intake/display surface.
|
||||
- 2026-06-20: Typed Imagination action-item receipts are live in `epiphany-work derive-plan`. The command now writes `work-action-items-<item>.json` with schema `epiphany.repo_work_imagination_action_items_receipt.v0` before writing `work-plan-<item>.json`; the receipt carries model provenance, safe action family, requested paths, verification asks, stop conditions, escalation reasons, rollback hints, public/candidate refs, `operatorAuthoredShellDetails=false`, and no Hands/durable-state/publication/service/cross-repo authority. The plan derivation cites the action-item receipt, while command text remains deterministic safe-family lowering. Disposable proof `.epiphany-smoke\action-items-20260620-023240` wrote action receipt `repo-work-action-items-action-items-request` with `modelAuthored=true`, `safeActionFamily=repo.markdown_planning_note`, requested path `notes/epiphany-work/action-items-request.md`, plan citation present, and `privateStateExposed=false`. The next cut is richer model-authored safe families or an `epiphany-swarm run` mouth over the existing queue/tick physiology, not another basic action-item schema.
|
||||
- 2026-06-20: Gjallar/swarm-overview now exposes repo-work overview history as first-class compact sight, Persona's public Eve surface lowers the same queue for peer-readable collaboration, and Self has a first runnable queue surface over it. `SwarmOverviewOutput` and `SwarmTriageOutput` include `repoWorkOverviewCount`, `repoWorkOverviewRows`, `repoWorkOverviewTuiRows`, `latestRepoWorkOverview`, `latestRepoWorkGate`, `latestRepoWorkBlocker`, and `latestRepoWorkNextSafeMove`; the shared `swarmActionRows` queue gets priority 35 `repo-work-overview` rows owned by Gjallar, hosted body `repo-work`, authority gate `repo.work.overview`, effect class `repo-work-readback`, no mutation, no elevation, proof-bundle ref, and private-state seal. `eve-surfaces`, direct `connect-eve`, and the globally invokable Persona `eve-connect` daemon tool readback expose public `REPO-WORK-PEER` rows with item, gate, blocker, next safe move, branch, publication, sync, and `private=false`. `epiphany-work queue-run` reads the same typed queue, selects current-repo rows at `ready-to-run`, `ready-to-adopt`, or `ready-to-execute`, delegates to `tick`, refreshes overview after real advancement, and wrapper `repo-work-queue-run` exposes the operator surface. Disposable proofs `.epiphany-smoke\gjallar-repo-work-queue-20260620-012027`, `.epiphany-smoke\eve-repo-work-queue-20260620-013322`, `.epiphany-smoke\queue-run-20260620-014314`, and wrapper artifact `local-20260620-014627-174-aada0241` prove two-item queue sight, Eve lowering, direct queue-run advancement, and wrapper dry-run without publication, merge, service lifecycle mutation, elevation, cross-repo mutation, or private-state exposure. The next cut is richer Persona-to-Imagination plan derivation, not another queue display surface.
|
||||
- `service-execution-runbook` makes that next cut repeatable: it generates the exact elevated wrapper command sequence without mutating the service manager, continues after per-step failure to preserve more receipts, runs `service-execution-audit` in `finally`, exits nonzero if any step failed, and seals a typed runbook lifecycle receipt. Run the generated artifact only with explicit operator authority.
|
||||
- `service-execution-audit` is the non-mutating acceptance proof after the elevated rite: it reports `complete` only when typed lifecycle receipts prove the runbook witness plus expected elevated chain, and otherwise reports the missing/failed sealed checks.
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -88,7 +88,7 @@ active_subgoals:
|
|||
- Keep the landed Phase 6 coordinator, limited safe-boundary CRRC automation, and pre-compaction checkpoint intervention ready for the next bridge-equipped dogfood run.
|
||||
- Preserve the Ghostlight-derived heartbeat initiative seam: every lane, including coordinator/Self and Persona, has a organ-state record and competes for heartbeat slots through readiness/reaction timing; initiative heat can raise or cool global, group, arena, role, and agent tempo through typed heartbeat policy; active thinking freezes initiative until completion, so heat never queues a lane already mid-turn; idle winners ruminate instead of inventing project work, and sleep windows distill the accumulated thought pressure into reviewed self-memory or doctrine.
|
||||
- Use `notes/epiphany-swarm-readiness-plan.md` as the live-fire direction gate. The local run path is a compass, not launch clearance: before unattended swarm operation, Epiphany needs typed pause/brake enforcement, one initiative scheduler, completion-gated cooldown, stale active-turn recovery receipts, parent-side Persona speech eligibility, memory lifecycle operations, and CultNet-first operator snapshots/intents/receipts. The local Verse brake document exists, `epiphany-verse-query swarm-brake` can engage/release it, `tools/epiphany_local_run.ps1` refuses live `plan`/`run`/`mvp` modes when the brake is engaged while leaving `status` readable, `epiphany-mvp-coordinator` checks the local Verse brake before app-server startup, and `epiphany-heartbeat-store` guards tick/pump/heat/queue-mention/routine when given `--local-verse-store`. Daemon liveness is now a typed local Verse authority: `epiphany-verse-query daemon-status` writes one daemon status without repainting the table, local Verse seeding preserves existing daemon statuses and swarm brakes, `invoke-tool` refuses when the host daemon is not ready or lacks `submitTypedToolIntent`, and both daemon tool invocation and lifecycle poke fail closed under an engaged matching brake. `epiphany-daemon-supervisor policy` writes durable per-daemon restart policy with command/args/cwd/cooldown/backoff/attempt state plus reconcile cadence and stale-heartbeat threshold; `epiphany-daemon-supervisor reconcile` loads that policy when no override command is supplied, refuses under a matching lifecycle brake, refuses during cooldown/backoff, writes daemon poke intent/receipt, updates daemon status, and updates policy attempt state; `epiphany-daemon-supervisor tick` is an explicit scheduler pulse that scans durable policies, records ready/noop pulses, skips before the configured reconcile interval, marks stale heartbeat status degraded, routes restarts through the same brake/cooldown/poke receipt path, and writes a latest `epiphany.cultmesh.daemon_scheduler_receipt.v0`; `epiphany-daemon-supervisor serve` runs that same pulse on a configurable cadence with bounded `--max-iterations` proof mode or unbounded service mode. `epiphany-daemon-supervisor service-plan`/`install-service` now writes a planned `epiphany.cultmesh.daemon_service_lifecycle_receipt.v0` for the `serve` command, while `service-launch`/`start-service` spawns that `serve` loop through the current executable or `--service-command`, can `--wait-child` for bounded proof, and records command/args/cwd, scheduler id, daemon selector, pid/exit/status, artifact ref, and private-state guard. `service-runbook`, `windows-service-install`/`service-install-plan`, `windows-service-status`, `windows-service-reconcile`, `windows-service-execution-readiness`, and `windows-service-start`/`stop` now record service lifecycle receipts through the same local Verse; the read-only status path has been proved against the real Windows `EventLog` service with receipt `daemon-service-lifecycle-receipt-windows-eventlog-proof-windows-service-status`, status `running`, exit code `0`, and `privateStateExposed=false`; the read-only service-policy reconciliation path has been proved for missing service, real-service drift against `EventLog`, lifecycle-brake refusal, and wrapper/local-Verse receipt `daemon-service-lifecycle-receipt-windows-eventlog-reconcile-proof-windows-service-reconcile`; execution readiness has been proved as a non-mutating `not-elevated` receipt through direct and wrapper paths; start/stop now produce non-mutating `start-planned`/`stop-planned` receipts unless `--execute-control`/`--execute-service-control` is passed, and wrapper `service-start-plan`/`service-stop-plan` proves those receipts against `EventLog`; explicit install/control execution now refuses as `execution-refused-not-elevated` with `executed=false` when the shell lacks Windows administrator authority, and wrapper `service-install-execute`, `service-start-execute`, and `service-stop-execute` prove those refusal receipts without mutation. Service lifecycle actions check the local Verse swarm brake before process launch, artifact writes, service-manager queries, service-policy reconciliation, execution-readiness checks, control planning, elevation-gated execution, or start/stop execution. The local wrapper builds/checks this binary.
|
||||
- Use `notes/epiphany-repo-swarm-mvp-contract.md` as the authority correction and migration plan for repo-swarm autonomy. Autonomous branch-local work inside an Epiphany-owned repo Body is in scope and desired; the safety boundary is typed authority, branch containment, interruptibility, receipts, private-state sealing, and Bifrost-gated publication/merge/escalation, not asking a human before every local edit. Fifteen native repo-swarm front doors are live and documented there: `epiphany-repo init`, `epiphany-swarm online`, `epiphany-work accept`, `epiphany-work persona-intake`, `epiphany-work derive-plan`, `epiphany-work plan`, `epiphany-work run`, `epiphany-work adopt --from-plan`, `epiphany-work execute --from-plan`, `epiphany-work close`, `epiphany-work overview`, `epiphany-work tick`, `epiphany-work queue-run`, `epiphany-work publish`, and `epiphany-work sync`. Fresh-repo smokes proved the chain with `privateStateExposed=false`, including deterministic Persona/Bifrost pressure-to-plan derivation (`append-worklog` and `planning-note`, `operatorAuthoredShellDetails=false`) into `EPIPHANY_WORKLOG.md` or contained markdown planning notes, plan-backed branch-local commit creation, a speech-audited repo Persona intake mouth that records public discussion refs plus candidate action refs before delegating to `accept`, a Self-owned tick pulse that advances `run-from-plan -> adopt-from-plan -> execute-from-plan` then no-ops before closure/publication gates, local CultMesh swarm-brake refusal that writes `refused-by-swarm-brake` without creating a run/adopt/execute receipt, active-turn refusal through `work-tick-active-<item>.json`, explicit completion-anchored cooldown refusal through `work-tick-last-<item>.json`, stale active-turn recovery that records `physiology.recoveredActiveTurn.recovered=true`, Self-owned `epiphany-work serve` cadence that writes `work-scheduler-serve-<item>.json`, bounded serve proof `advanced:run-from-plan -> refused-by-cooldown:none` without adoption, unbounded zero-interval refusal, deterministic `epiphany-work close` proof that consumes execute receipts, verifies the Hands commit, writes Soul verdict plus Modeling summary plus Mind gateway/state-commit receipts, local `epiphany-work overview` proof bundle that reports pre-plan `awaiting-plan`/`plan-receipt-missing` and post-close `awaiting-publication`/`bifrost-publication-missing` with branch, commit, changed paths, Soul verdict, compact rows, and private seal, typed local Verse projection as `epiphany.cultmesh.repo_work_overview.v0` with latest-key/event-history readback through Gjallar plus peer-readable Persona Eve lowering, `epiphany-work queue-run` selection over tick-actionable queue rows with wrapper `repo-work-queue-run`, Idunn-owned non-mutating `repo-work-service-plan`/`repo-work-service-runbook` receipts for the same queue-run command, `publish --closure-receipt` consumption of the close receipt's Soul/Mind refs, post-publication tick `noop:none`, and upstream-main ancestry proof after explicit merge receipt. Remaining MVP organs are typed model-authored Imagination action items beyond deterministic safe templates, optional execute-to-close scheduler handoff, richer published proof bundles, and richer model-authored closure; the scheduler may advance only one safe receipt-backed branch-local step per pulse and must not publish, merge, mutate services, cross repo boundaries, expose private state, or impersonate Idunn.
|
||||
- Use `notes/epiphany-repo-swarm-mvp-contract.md` as the authority correction and migration plan for repo-swarm autonomy. Autonomous branch-local work inside an Epiphany-owned repo Body is in scope and desired; the safety boundary is typed authority, branch containment, interruptibility, receipts, private-state sealing, and Bifrost-gated publication/merge/escalation, not asking a human before every local edit. Fifteen native repo-swarm front doors are live and documented there: `epiphany-repo init`, `epiphany-swarm online`, `epiphany-work accept`, `epiphany-work persona-intake`, `epiphany-work derive-plan`, `epiphany-work plan`, `epiphany-work run`, `epiphany-work adopt --from-plan`, `epiphany-work execute --from-plan`, `epiphany-work close`, `epiphany-work overview`, `epiphany-work tick`, `epiphany-work queue-run`, `epiphany-work publish`, and `epiphany-work sync`. Fresh-repo smokes proved the chain with `privateStateExposed=false`, including deterministic Persona/Bifrost pressure-to-plan derivation (`append-worklog` and `planning-note`) into `EPIPHANY_WORKLOG.md` or contained markdown planning notes, typed Imagination action-item receipts (`epiphany.repo_work_imagination_action_items_receipt.v0`) that carry model provenance, safe family, requested paths, verification asks, stop conditions, escalation reasons, and `operatorAuthoredShellDetails=false` before deterministic safe-family command lowering, plan-backed branch-local commit creation, a speech-audited repo Persona intake mouth that records public discussion refs plus candidate action refs before delegating to `accept`, a Self-owned tick pulse that advances `run-from-plan -> adopt-from-plan -> execute-from-plan` then no-ops before closure/publication gates, local CultMesh swarm-brake refusal that writes `refused-by-swarm-brake` without creating a run/adopt/execute receipt, active-turn refusal through `work-tick-active-<item>.json`, explicit completion-anchored cooldown refusal through `work-tick-last-<item>.json`, stale active-turn recovery that records `physiology.recoveredActiveTurn.recovered=true`, Self-owned `epiphany-work serve` cadence that writes `work-scheduler-serve-<item>.json`, bounded serve proof `advanced:run-from-plan -> refused-by-cooldown:none` without adoption, unbounded zero-interval refusal, deterministic `epiphany-work close` proof that consumes execute receipts, verifies the Hands commit, writes Soul verdict plus Modeling summary plus Mind gateway/state-commit receipts, local `epiphany-work overview` proof bundle that reports pre-plan `awaiting-plan`/`plan-receipt-missing` and post-close `awaiting-publication`/`bifrost-publication-missing` with branch, commit, changed paths, Soul verdict, compact rows, and private seal, typed local Verse projection as `epiphany.cultmesh.repo_work_overview.v0` with latest-key/event-history readback through Gjallar plus peer-readable Persona Eve lowering, `epiphany-work queue-run` selection over tick-actionable queue rows with wrapper `repo-work-queue-run`, Idunn-owned non-mutating `repo-work-service-plan`/`repo-work-service-runbook` receipts for the same queue-run command, `publish --closure-receipt` consumption of the close receipt's Soul/Mind refs, post-publication tick `noop:none`, and upstream-main ancestry proof after explicit merge receipt. Remaining MVP organs are richer model-authored safe families, optional execute-to-close scheduler handoff, richer published proof bundles, and richer model-authored closure; the scheduler may advance only one safe receipt-backed branch-local step per pulse and must not publish, merge, mutate services, cross repo boundaries, expose private state, or impersonate Idunn.
|
||||
- Gjallar/swarm-overview now projects typed repo-work overview history into the compact global sight report, Persona's public Eve surface lowers the same queue for peers, and Self has a first runnable queue surface over it. `epiphany-verse-query gjallar` reads all `epiphany.cultmesh.repo_work_overview.v0` event documents from local Verse, excludes the `latest` mirror, preserves latest scalar fields, emits multi-item `repoWorkOverviewRows`/TUI rows, and publishes bounded priority 35-39 non-mutating `repo-work-overview` action rows with `owner=Gjallar`, `hostedBody=repo-work`, `authorityGate=repo.work.overview`, `mutatesState=false`, `requiresElevatedAuthority=false`, proof-bundle refs, current gate/blocker/next-safe-move, and `privateStateExposed=false`. `epiphany-verse-query eve-surfaces`, `connect-eve`, and globally invokable Persona `eve-connect` tool readbacks expose compact `REPO-WORK-PEER` rows with item, gate, blocker, next safe move, branch, publication/sync state, and private seal for the public Persona surface only. `epiphany-work queue-run` selects current-repo rows at `ready-to-run`, `ready-to-adopt`, or `ready-to-execute`, delegates action to `tick`, refreshes overview after real advancement, and writes `epiphany.repo_work_queue_run_receipt.v0`; wrapper mode `tools/epiphany_local_run.ps1 -Mode repo-work-queue-run` exposes the same surface. Disposable proofs `.epiphany-smoke\gjallar-repo-work-queue-20260620-012027`, `.epiphany-smoke\eve-repo-work-queue-20260620-013322`, `.epiphany-smoke\queue-run-20260620-014314`, and wrapper artifact `local-20260620-014627-174-aada0241` showed two-item queues through sight, public Eve, direct queue-run, and wrapper dry-run without publication, merge, service lifecycle mutation, elevation, cross-repo mutation, or private-state exposure.
|
||||
- Agent memory lifecycle now has a first typed v0 operation surface in `epiphany-core::agent_memory`: `AgentMemoryLifecycleOperation` can revise, retire, crystallize, prune, and merge bounded memory records after role/agent review, and `epiphany-agent-memory-store review-lifecycle|apply-lifecycle` exposes the path at the operator edge. This closes the first explicit lifecycle-operation slice from the swarm-readiness gate; it does not yet make sleep silently mutate identity or project truth.
|
||||
- Persona public speech now has a parent-side eligibility receipt at the Discord/Aquarium mouth edge. `epiphany.persona_speech_audit.v0` records action kind, content fingerprint, opening/topic keys, recent-window counts, repeated opening/topic counts, channel saturation, and allow/block reasons. `epiphany-persona-discord post` blocks repeated public openings before token/webhook work; draft and bubble still emit audit receipts for operator inspection. The compatibility JSON artifact remains for display, but the durable witness is now `epiphany.cultmesh.persona_speech_audit.v0` in CultMesh with latest-key projection through local Verse context. Local MVP Persona bubbles now write that durable witness to `.epiphany-run/cultmesh/local-verse.ccmp`, not a separate mouth-side store. This is posting-edge policy, not a Persona prompt wish.
|
||||
|
|
@ -634,4 +634,4 @@ current_status:
|
|||
- `tools/epiphany_local_run.ps1 -Mode swarm-online-runbook` now emits an explicit Idunn preflight summary before the operator elevation boundary. Its JSON and one-line summary report `preflightStatus`, child artifact present/hash-verified/mismatch/missing counts, aggregate service execution failed/missing check counts, child preflight rows with expected/actual SHA-256s, and private-state exposure. Live proof `local-20260619-025627-410-9724e2f6` generated the non-mutating parent artifact with `preflightStatus=ready-for-elevated-operator`, two child runbooks present, two hashes verified, zero mismatches, zero missing artifacts, eleven failed sealed service checks, zero missing checks, explicit aftercare audits, and `privateStateExposed=false`. The remaining scar is still explicit elevated operator execution followed by complete Idunn audits, not missing parent/child artifact readiness.
|
||||
- Service lifecycle receipt history is now event-only: `load_epiphany_cultmesh_daemon_service_lifecycle_receipts` filters out the `epiphany-local/daemon-service-lifecycle-receipt/latest` mirror, while `load_latest_epiphany_cultmesh_daemon_service_lifecycle_receipt` remains the latest-state reader. Focused unit test `service_lifecycle_receipt_history_excludes_latest_mirror` proves two per-receipt writes return exactly two history records and latest points at the second. Fresh smoke `verse-query-lifecycle-history-filter-smoke` and live overview/triage `local-20260618-145632-497-efac6f0d` / `local-20260618-145632-321-867947af` prove compact swarm sights still expose service lifecycle attention plus the present elevated runbook artifact without daemon pokes or service mutation. Do not use a broad unscoped cargo test filter for this check on Windows; it fans out across bin harnesses and hit a broken pipe during this pass.
|
||||
- `epiphany-verse-query seed-compact` is the compact seed receipt for wrappers and read-only rites. The older `seed` command still prints the full local Verse context for explicit debugging, but compact wrapper modes now avoid full `seed`/final `query` readback after the combined overview proof exposed Windows debug stack overflow from full-context serialization pressure.
|
||||
next_action: Continue repo-swarm MVP work from the documented Epiphany Online cut order in `notes/epiphany-repo-swarm-mvp-contract.md`. Typed Gjallar repo-work history/queue sight, peer-readable Persona Eve lowering, Self-owned `epiphany-work queue-run`, deterministic `derive-plan` families `append-worklog` plus `planning-note`, Idunn-hosted non-mutating queue-run lifecycle plan/runbook receipts, and the speech-audited `epiphany-work persona-intake` mouth plus wrapper `repo-persona-intake` are live with `privateStateExposed=false`; the next cut is typed model-authored Imagination action-item receipts over allowlisted safe families. Preserve Idunn service lifecycle ownership and existing CultMesh/Odin/Eve tool directories; service install/start execution still requires explicit elevated operator authority.
|
||||
next_action: Continue repo-swarm MVP work from the documented Epiphany Online cut order in `notes/epiphany-repo-swarm-mvp-contract.md`. Typed Gjallar repo-work history/queue sight, peer-readable Persona Eve lowering, Self-owned `epiphany-work queue-run`, deterministic `derive-plan` families `append-worklog` plus `planning-note`, typed Imagination action-item receipts over allowlisted safe families, Idunn-hosted non-mutating queue-run lifecycle plan/runbook receipts, and the speech-audited `epiphany-work persona-intake` mouth plus wrapper `repo-persona-intake` are live with `privateStateExposed=false`; the next cut is richer model-authored safe families or an `epiphany-swarm run` mouth over the existing queue/tick physiology. Preserve Idunn service lifecycle ownership and existing CultMesh/Odin/Eve tool directories; service install/start execution still requires explicit elevated operator authority.
|
||||
|
|
|
|||
Reference in a new issue