Add Mind adoption decision receipts
This commit is contained in:
parent
652e152b1a
commit
943b034db6
6 changed files with 194 additions and 20 deletions
|
|
@ -292,6 +292,77 @@ fn run_smoke(args: Args) -> Result<Value> {
|
|||
&["status"],
|
||||
"approved-for-branch-local-hands-action",
|
||||
)?;
|
||||
require_eq(
|
||||
&adoption,
|
||||
&["mindAdoptionDecision", "schemaVersion"],
|
||||
"epiphany.repo_work_mind_adoption_decision.v0",
|
||||
)?;
|
||||
require_eq(
|
||||
&adoption,
|
||||
&["mindAdoptionDecision", "status"],
|
||||
"adopted-for-branch-local-hands",
|
||||
)?;
|
||||
require_eq(&adoption, &["mindAdoptionDecision", "owner"], "Mind")?;
|
||||
require_bool(
|
||||
&adoption,
|
||||
&["mindAdoptionDecision", "gates", "selfPresentedActionItem"],
|
||||
true,
|
||||
)?;
|
||||
require_bool(
|
||||
&adoption,
|
||||
&["mindAdoptionDecision", "gates", "mindReviewedEvidence"],
|
||||
true,
|
||||
)?;
|
||||
require_bool(
|
||||
&adoption,
|
||||
&["mindAdoptionDecision", "gates", "branchLocalOnly"],
|
||||
true,
|
||||
)?;
|
||||
require_bool(
|
||||
&adoption,
|
||||
&["mindAdoptionDecision", "authority", "handsAuthorityGranted"],
|
||||
false,
|
||||
)?;
|
||||
require_bool(
|
||||
&adoption,
|
||||
&["mindAdoptionDecision", "authority", "durableStateAdmitted"],
|
||||
false,
|
||||
)?;
|
||||
require_bool(
|
||||
&adoption,
|
||||
&["mindAdoptionDecision", "authority", "publicationAuthorized"],
|
||||
false,
|
||||
)?;
|
||||
require_bool(
|
||||
&adoption,
|
||||
&[
|
||||
"mindAdoptionDecision",
|
||||
"authority",
|
||||
"serviceLifecycleAuthority",
|
||||
],
|
||||
false,
|
||||
)?;
|
||||
require_bool(
|
||||
&adoption,
|
||||
&["mindAdoptionDecision", "authority", "privateStateExposed"],
|
||||
false,
|
||||
)?;
|
||||
let mind_adoption_path = value_at_path(&adoption, &["mindAdoptionDecision", "receiptPath"])
|
||||
.and_then(Value::as_str)
|
||||
.ok_or_else(|| anyhow!("missing Mind adoption decision receipt path"))?;
|
||||
let mind_adoption = read_json(Path::new(mind_adoption_path))?;
|
||||
require_eq(
|
||||
&mind_adoption,
|
||||
&["schemaVersion"],
|
||||
"epiphany.repo_work_mind_adoption_decision.v0",
|
||||
)?;
|
||||
require_eq(
|
||||
&mind_adoption,
|
||||
&["adoptedActionItem", "safeActionFamily"],
|
||||
"repo.markdown_planning_note",
|
||||
)?;
|
||||
require_text_field(&mind_adoption, &["rationale"], "Mind adopted")?;
|
||||
require_bool(&mind_adoption, &["privateStateExposed"], false)?;
|
||||
require_eq(
|
||||
&adoption,
|
||||
&["adoptedActionItem", "safeActionFamily"],
|
||||
|
|
@ -360,6 +431,9 @@ fn run_smoke(args: Args) -> Result<Value> {
|
|||
"decisionPointsRecorded": true,
|
||||
"evidenceNeedsRecorded": true,
|
||||
"adoptedActionItemRecorded": true,
|
||||
"mindAdoptionDecisionRecorded": true,
|
||||
"mindDecisionHandsAuthorityGranted": false,
|
||||
"mindDecisionDurableStateAdmitted": false,
|
||||
"adoptionFacetsRecorded": true,
|
||||
"handsAuthorityGranted": false,
|
||||
"durableStateAdmitted": false,
|
||||
|
|
|
|||
|
|
@ -198,6 +198,7 @@ struct AdoptArgs {
|
|||
artifact_dir: Option<PathBuf>,
|
||||
plan_summary: Option<String>,
|
||||
adoption_evidence_refs: Vec<String>,
|
||||
mind_adoption_rationale: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
|
|
@ -662,6 +663,7 @@ fn parse_adopt_args(args: impl Iterator<Item = String>) -> Result<AdoptArgs> {
|
|||
let mut artifact_dir = None;
|
||||
let mut plan_summary = None;
|
||||
let mut adoption_evidence_refs = Vec::new();
|
||||
let mut mind_adoption_rationale = None;
|
||||
|
||||
let mut args = args.peekable();
|
||||
while let Some(arg) = args.next() {
|
||||
|
|
@ -679,6 +681,10 @@ fn parse_adopt_args(args: impl Iterator<Item = String>) -> Result<AdoptArgs> {
|
|||
"--adoption-evidence-ref" | "--evidence-ref" => {
|
||||
adoption_evidence_refs.push(take_string(&mut args, "--adoption-evidence-ref")?);
|
||||
}
|
||||
"--mind-adoption-rationale" | "--adoption-rationale" => {
|
||||
mind_adoption_rationale =
|
||||
Some(take_string(&mut args, "--mind-adoption-rationale")?);
|
||||
}
|
||||
other => return Err(anyhow!("unexpected adopt argument {other:?}")),
|
||||
}
|
||||
}
|
||||
|
|
@ -698,6 +704,7 @@ fn parse_adopt_args(args: impl Iterator<Item = String>) -> Result<AdoptArgs> {
|
|||
artifact_dir,
|
||||
plan_summary,
|
||||
adoption_evidence_refs,
|
||||
mind_adoption_rationale,
|
||||
})
|
||||
}
|
||||
|
||||
|
|
@ -6678,6 +6685,12 @@ fn run_adopt(args: AdoptArgs) -> Result<Value> {
|
|||
queued_review.decision
|
||||
));
|
||||
}
|
||||
let item = run_receipt
|
||||
.get("item")
|
||||
.and_then(Value::as_str)
|
||||
.unwrap_or("work-item")
|
||||
.to_string();
|
||||
let item_slug = sanitize(&item);
|
||||
let now = Utc::now().to_rfc3339_opts(chrono::SecondsFormat::Secs, true);
|
||||
let plan_summary = if let Some(summary) = args.plan_summary {
|
||||
summary
|
||||
|
|
@ -6703,6 +6716,75 @@ fn run_adopt(args: AdoptArgs) -> Result<Value> {
|
|||
.as_ref()
|
||||
.map(adopted_action_item_from_plan)
|
||||
.unwrap_or(Value::Null);
|
||||
let action_item_receipt_id = adopted_action_item
|
||||
.get("receiptId")
|
||||
.and_then(Value::as_str)
|
||||
.unwrap_or("manual-plan");
|
||||
let action_item_summary = adopted_action_item
|
||||
.get("summary")
|
||||
.and_then(Value::as_str)
|
||||
.unwrap_or(&plan_summary);
|
||||
let mind_adoption_id = format!("repo-work-mind-adoption-{item_slug}");
|
||||
let mind_adoption_rationale = args.mind_adoption_rationale.unwrap_or_else(|| {
|
||||
format!(
|
||||
"Mind adopted the selected Imagination action item for branch-local Hands work because Self presented explicit adoption evidence and the safe family remains bounded: {}",
|
||||
compact_line(action_item_summary)
|
||||
)
|
||||
});
|
||||
let mind_adoption_decision = json!({
|
||||
"schemaVersion": "epiphany.repo_work_mind_adoption_decision.v0",
|
||||
"createdAt": now,
|
||||
"workspace": workspace,
|
||||
"runtimeId": run_receipt["runtimeId"],
|
||||
"runtimeStore": runtime_store,
|
||||
"decisionId": mind_adoption_id,
|
||||
"item": item,
|
||||
"status": "adopted-for-branch-local-hands",
|
||||
"owner": "Mind",
|
||||
"interpreter": "Mind",
|
||||
"router": "Self",
|
||||
"sourcePlanReceiptPath": plan_receipt_path,
|
||||
"sourceRunReceiptPath": run_receipt_path,
|
||||
"adoptedActionItemReceiptId": action_item_receipt_id,
|
||||
"adoptedActionItem": adopted_action_item,
|
||||
"adoptionEvidenceRefs": adoption_evidence_refs,
|
||||
"rationale": mind_adoption_rationale,
|
||||
"gates": {
|
||||
"selfPresentedActionItem": true,
|
||||
"mindReviewedEvidence": true,
|
||||
"safeFamilyRequired": true,
|
||||
"branchLocalOnly": true,
|
||||
"bifrostPublicationRequired": true,
|
||||
"soulClosureRequired": true
|
||||
},
|
||||
"authority": {
|
||||
"durableStateAdmitted": false,
|
||||
"handsAuthorityGranted": false,
|
||||
"publicationAuthorized": false,
|
||||
"mergeAuthorized": false,
|
||||
"serviceLifecycleAuthority": false,
|
||||
"crossRepoMutation": false,
|
||||
"privateStateExposed": false,
|
||||
"nextGate": "hands.branch_local_action"
|
||||
},
|
||||
"privateStateExposed": false,
|
||||
"nextSafeMove": "The adoption decision may be cited by the Hands review; it does not itself execute, publish, merge, or mutate durable project state."
|
||||
});
|
||||
let mind_adoption_path = artifact_dir.join(format!("work-mind-adopt-{item_slug}.json"));
|
||||
write_json(&mind_adoption_path, &mind_adoption_decision)?;
|
||||
let reread_mind_adoption = read_json(&mind_adoption_path)?;
|
||||
if reread_mind_adoption["schemaVersion"] != "epiphany.repo_work_mind_adoption_decision.v0" {
|
||||
return Err(anyhow!(
|
||||
"Mind adoption decision {} failed reread schema verification",
|
||||
mind_adoption_path.display()
|
||||
));
|
||||
}
|
||||
if reread_mind_adoption["privateStateExposed"] != json!(false) {
|
||||
return Err(anyhow!(
|
||||
"Mind adoption decision {} exposed private state",
|
||||
mind_adoption_path.display()
|
||||
));
|
||||
}
|
||||
let mut approved_review = hands_action_review_for_intent(
|
||||
review_id.to_string(),
|
||||
&intent,
|
||||
|
|
@ -6729,12 +6811,6 @@ fn run_adopt(args: AdoptArgs) -> Result<Value> {
|
|||
];
|
||||
put_hands_action_review(&runtime_store, &approved_review)?;
|
||||
|
||||
let item = run_receipt
|
||||
.get("item")
|
||||
.and_then(Value::as_str)
|
||||
.unwrap_or("work-item")
|
||||
.to_string();
|
||||
let item_slug = sanitize(&item);
|
||||
let adoption_receipt = json!({
|
||||
"schemaVersion": "epiphany.repo_work_adoption_receipt.v0",
|
||||
"createdAt": now,
|
||||
|
|
@ -6747,6 +6823,18 @@ fn run_adopt(args: AdoptArgs) -> Result<Value> {
|
|||
"status": "approved-for-branch-local-hands-action",
|
||||
"planSummary": plan_summary,
|
||||
"adoptionEvidenceRefs": adoption_evidence_refs,
|
||||
"mindAdoptionDecision": {
|
||||
"decisionId": mind_adoption_decision["decisionId"],
|
||||
"receiptPath": mind_adoption_path,
|
||||
"schemaVersion": mind_adoption_decision["schemaVersion"],
|
||||
"status": mind_adoption_decision["status"],
|
||||
"owner": mind_adoption_decision["owner"],
|
||||
"interpreter": mind_adoption_decision["interpreter"],
|
||||
"rationale": mind_adoption_decision["rationale"],
|
||||
"gates": mind_adoption_decision["gates"],
|
||||
"authority": mind_adoption_decision["authority"],
|
||||
"privateStateExposed": false
|
||||
},
|
||||
"adoptedActionItem": adopted_action_item,
|
||||
"handsActionGate": {
|
||||
"intentId": intent.intent_id,
|
||||
|
|
@ -6783,6 +6871,7 @@ fn run_adopt(args: AdoptArgs) -> Result<Value> {
|
|||
"runtimeStore": adoption_receipt["runtimeStore"],
|
||||
"receiptPath": receipt_path,
|
||||
"item": adoption_receipt["item"],
|
||||
"mindAdoptionDecision": adoption_receipt["mindAdoptionDecision"],
|
||||
"adoptedActionItem": adoption_receipt["adoptedActionItem"],
|
||||
"handsActionGate": adoption_receipt["handsActionGate"],
|
||||
"authority": adoption_receipt["authority"],
|
||||
|
|
@ -8955,6 +9044,9 @@ fn run_tick(args: TickArgs) -> Result<Value> {
|
|||
artifact_dir: Some(artifact_dir.clone()),
|
||||
plan_summary: None,
|
||||
adoption_evidence_refs: vec![format!("self.scheduler:repo-work-tick-{item_slug}")],
|
||||
mind_adoption_rationale: Some(format!(
|
||||
"Mind adopted the scheduler-presented plan for item {item} after Self found a queued run packet and matching Imagination plan receipt."
|
||||
)),
|
||||
})?;
|
||||
status = "advanced".to_string();
|
||||
reason = "adopted queued Hands run packet from typed action plan".to_string();
|
||||
|
|
@ -10202,7 +10294,7 @@ fn print_usage() {
|
|||
derive-plan --workspace <repo> [--item <id>] [--accept-receipt <path>] [--action-family append-worklog|planning-note|checklist-note|section-note|repo-status-section|task-card|repo-manifest|repo-tool-capabilities|repo-eve-surface|repo-collaboration-topic|repo-consensus-brief|repo-objective-draft|repo-adoption-request|repo-scheduling-request|repo-work-order|repo-verification-request|repo-publication-request|repo-sync-request|repo-maintainer-review-request|repo-pr-request|repo-credit-request|repo-artifact-acceptance-request|repo-metrics-request] [--target-path <path>] [--model-ref <ref>] [--model-authored] [--action-summary <text>] [--verification-ask <text>] [--stop-condition <text>] [--escalation-reason <text>] [--assumption <text>] [--constraint <text>] [--non-goal <text>] [--open-question <text>] [--decision-point <text>] [--evidence-need <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\
|
||||
adopt --workspace <repo> [--item <id>] [--run-receipt <path>] [--from-plan <path>] [--plan-summary <text>] [--adoption-evidence-ref <ref>] [--mind-adoption-rationale <text>]\n\
|
||||
execute --workspace <repo> [--item <id>] [--from-plan <path>] [--command <command>] [--changed-path <path>] [--commit-message <text>]\n\
|
||||
close --workspace <repo> [--item <id>] [--execute-receipt <path>] [--verification-command <command>] [--closure-model-ref <ref>] [--model-authored] [--closure-model-verdict passed|failed|needs-work|blocked] [--closure-model-finding <text>] [--require-closure-model-verdict]\n\
|
||||
publish --workspace <repo> [--item <id>] --change-summary <text> --justification <text> --verification-receipt <ref> --review-receipt <ref> --ledger-entry-id <id> --pull-request-url <url> --pull-request-title <text>\n\
|
||||
|
|
|
|||
|
|
@ -1388,7 +1388,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` 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, planning facets (assumptions, constraints, non-goals, open questions, decision points, and evidence needs), and private-state seals; command text remains deterministic safe-family lowering for `append-worklog`, `planning-note`, `checklist-note`, `section-note` / `repo.markdown_managed_section`, `repo-status-section` / `repo.status_section`, `task-card` / `repo.task_card`, `repo-manifest` / `repo.body_manifest`, `repo-tool-capabilities` / `repo.tool_capabilities`, `repo-eve-surface` / `repo.eve_surface`, `repo-collaboration-topic` / `repo.collaboration_topic`, `repo-consensus-brief` / `repo.consensus_brief`, `repo-objective-draft` / `repo.objective_draft`, `repo-adoption-request` / `repo.adoption_request`, `repo-scheduling-request` / `repo.scheduling_request`, `repo-work-order` / `repo.work_order`, `repo-verification-request` / `repo.verification_request`, `repo-publication-request` / `repo.publication_request`, `repo-sync-request` / `repo.sync_request`, `repo-maintainer-review-request` / `repo.maintainer_review_request`, `repo-pr-request` / `repo.pr_request`, `repo-credit-request` / `repo.credit_request`, `repo-artifact-acceptance-request` / `repo.artifact_acceptance_request`, and `repo-metrics-request` / `repo.metrics_request`. `plan` remains manual quarantine scaffolding. | Deepen adoption/interpreter behavior and further useful repo-owned configuration classes without turning model text into arbitrary shell authority. |
|
||||
| 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, planning facets (assumptions, constraints, non-goals, open questions, decision points, and evidence needs), and private-state seals; command text remains deterministic safe-family lowering for `append-worklog`, `planning-note`, `checklist-note`, `section-note` / `repo.markdown_managed_section`, `repo-status-section` / `repo.status_section`, `task-card` / `repo.task_card`, `repo-manifest` / `repo.body_manifest`, `repo-tool-capabilities` / `repo.tool_capabilities`, `repo-eve-surface` / `repo.eve_surface`, `repo-collaboration-topic` / `repo.collaboration_topic`, `repo-consensus-brief` / `repo.consensus_brief`, `repo-objective-draft` / `repo.objective_draft`, `repo-adoption-request` / `repo.adoption_request`, `repo-scheduling-request` / `repo.scheduling_request`, `repo-work-order` / `repo.work_order`, `repo-verification-request` / `repo.verification_request`, `repo-publication-request` / `repo.publication_request`, `repo-sync-request` / `repo.sync_request`, `repo-maintainer-review-request` / `repo.maintainer_review_request`, `repo-pr-request` / `repo.pr_request`, `repo-credit-request` / `repo.credit_request`, `repo-artifact-acceptance-request` / `repo.artifact_acceptance_request`, and `repo-metrics-request` / `repo.metrics_request`. `adopt` now writes `epiphany.repo_work_mind_adoption_decision.v0` before the main adoption receipt cites the decision and grants branch-local Hands authority. `plan` remains manual quarantine scaffolding. | Deepen further interpreter behavior and useful repo-owned configuration/action classes 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; `tick` now routes executed branch-local work through the existing Soul/Modeling/Mind `close` gate; `queue-run` selects tick-actionable rows from the typed repo-work queue and delegates to `tick`; `epiphany-swarm run` is the bounded operator mouth over that queue/tick physiology; `repo-work-service-plan` and `repo-work-service-runbook` write Idunn lifecycle receipts/artifacts for the same queue-run command without launching it. | 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, writes `epiphany.repo_work_closure_review.v0`, refuses path-scope mismatches, and writes Soul, Modeling, and Mind receipts. | Deepen model-authored closure review beyond the first structured closure-review packet while preserving deterministic local closure for simple mechanical work. |
|
||||
|
|
@ -1425,10 +1425,12 @@ Build the remaining MVP in this order:
|
|||
facets, model provenance, and no Hands/publication/durable-state authority
|
||||
before it lowers the chosen safe family into a plan receipt. `adopt` now
|
||||
records the chosen action item and planning facets in the Mind adoption
|
||||
receipt before granting branch-local Hands authority. Banter remains banter
|
||||
unless Mind/Interpreter extracts a work candidate. The remaining cut is
|
||||
richer model-authored families and interpreter/adoption semantics, not basic
|
||||
action-item or adoption receipt shape.
|
||||
artery before granting branch-local Hands authority. `adopt` now writes a
|
||||
separate Mind interpreter decision receipt and cites it from the main
|
||||
adoption receipt. Banter remains banter unless Mind/Interpreter extracts a
|
||||
work candidate. The remaining cut is richer model-authored families and
|
||||
deeper interpreter semantics beyond the first Mind decision packet, not
|
||||
basic action-item or adoption 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
|
||||
|
|
@ -1722,13 +1724,18 @@ Required organs before MVP:
|
|||
antecedents plus model-call/token-cost/review-load/artifact/proof/credit-readback/redaction
|
||||
packet requirements while granting no metrics ledger, spend, review-load,
|
||||
credit ledger, publication, PR, merge, sync, Hands, or cross-body authority.
|
||||
`repo-planning-facets` smoke `.epiphany-smoke\repo-planning-facets-20260620-164958`
|
||||
`repo-planning-facets` smoke `.epiphany-smoke\repo-planning-facets-20260620-171324`
|
||||
proves model-authored planning facets on action-item receipts: assumptions,
|
||||
constraints, non-goals, open questions, decision points, and evidence needs
|
||||
survive into the Imagination receipt, plan derivation, and Mind adoption
|
||||
receipt while the adoption receipt grants only branch-local Hands authority;
|
||||
Hands command authority, durable-state authority, publication, merge, service
|
||||
lifecycle, cross-body mutation, and private-state exposure remain false; the
|
||||
survive into the Imagination receipt, plan derivation, and the adoption
|
||||
artery. Adoption now writes a distinct
|
||||
`epiphany.repo_work_mind_adoption_decision.v0` receipt before the main
|
||||
adoption receipt opens branch-local Hands authority; the Mind decision records
|
||||
Self presentation, Mind evidence review, safe-family requirement,
|
||||
branch-local scope, Bifrost publication gate, and Soul closure requirement
|
||||
while still granting no Hands, durable-state, publication, merge, service
|
||||
lifecycle, cross-body, or private-state authority. The main adoption receipt
|
||||
cites that Mind decision, then grants only branch-local Hands authority; the
|
||||
branch-local item still closes through Soul with family assertions and path
|
||||
scope passing.
|
||||
`repo-eve-surface` now proves branch-local Eve/CultUI surface contract cargo
|
||||
|
|
@ -1740,8 +1747,8 @@ Required organs before MVP:
|
|||
renderer ownership, rendering/state/publication/service/cross-body authority,
|
||||
private Verse rummaging, and private-state exposure remain false.
|
||||
Remaining work is later model-authored action classes that can change more
|
||||
useful repo-owned configuration, plus deeper interpreter/adoption semantics,
|
||||
without arbitrary shell authority.
|
||||
useful repo-owned configuration, plus deeper interpreter semantics after Mind
|
||||
adoption, without arbitrary shell authority.
|
||||
- Closure depth: `close` now writes a structured
|
||||
`epiphany.repo_work_closure_review.v0` packet for Hands commits, records
|
||||
model-review provenance when supplied, refuses actual-vs-declared path-scope
|
||||
|
|
|
|||
|
|
@ -119,6 +119,7 @@ remembers doctrine; the branch remembers the blade.
|
|||
- 2026-06-20: `notes/epiphany-repo-swarm-mvp-contract.md` now has the explicit functional-swarm answer. The current seventeen front doors are real proof surfaces, not decorative wrapper smoke, but Epiphany is not fully online until the typed artery can run as a living repo organism: deeper model-authored closure review, further non-planning action classes, Idunn-owned queue-run service lifecycle under explicit operator authority. Use that section when answering whether Epiphany is headed toward a functional swarm.
|
||||
- 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`, `ready-to-execute`, or `awaiting-closure`, 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 deeper model-authored closure review, further non-planning action classes, or Idunn-owned queue-run service execution; not another queue display surface.
|
||||
- 2026-06-20: Deeper model-authored closure review is now live. `epiphany-work close` accepts `--closure-model-verdict passed|failed|needs-work|blocked`, `--closure-model-finding`, and `--require-closure-model-verdict`; the close review embeds `epiphany.repo_work_model_closure_review.v0` under `modelingReview.closureReview`, records reviewed inputs and gate enforcement, and Soul refuses closure when a supplied or required model verdict does not pass. Focused smoke `.epiphany-smoke\closure-model-gate-20260620-135103` created a disposable repo, ran two `repo.status_section` items through public front doors, closed one with required model verdict `passed`, and blocked one with `needs-work` while `familyAssertions.status=passed`, `pathScopeMatched=true`, and `privateStateExposed=false`. Current remaining repo-swarm MVP organs are deeper interpreter/adoption semantics, more useful repo-owned configuration/action families, and Idunn-owned queue-run service lifecycle under explicit operator authority.
|
||||
- 2026-06-20: Mind adoption/interpreter depth now has a concrete receipt. `epiphany-work adopt` writes `epiphany.repo_work_mind_adoption_decision.v0` before the main adoption receipt, records Self presentation, Mind evidence review, safe-family requirement, branch-local scope, Bifrost publication gate, Soul closure requirement, and no Hands/durable-state/publication/merge/service/cross-body/private authority inside the Mind decision; the main adoption receipt cites that decision before granting branch-local Hands authority. Focused smoke `.epiphany-smoke\repo-planning-facets-20260620-171324` proves model-authored planning facets survive into Imagination, plan derivation, Mind decision, and adoption, while close still passes Soul/family/path checks with `privateStateExposed=false`. Current remaining repo-swarm MVP organs are deeper interpreter semantics beyond the first Mind decision packet, more useful repo-owned configuration/action families, and Idunn-owned queue-run service lifecycle under explicit operator authority.
|
||||
- 2026-06-20: `repo-manifest` is now the next non-planning safe family. `epiphany-work derive-plan --action-family repo-manifest` lowers accepted pressure into a structured `epiphany.toml` Body manifest with safe family `repo.body_manifest`, body domain, private/local/public Verse ids, Eve surface id, receipt-required capability hints, arbitrary shell sealed false, and private-state seals. Soul closure assertions now inspect the committed manifest for schema, safe family, summary, body domain, Verse ids, Eve surface, receipt requirement, no arbitrary shell, and private-state seals. Focused smoke `.epiphany-smoke\repo-manifest-family-20260620-141552` ran a disposable repo through init -> online -> accept -> repo-manifest derive-plan -> tick run/adopt/execute/close; Hands committed only `epiphany.toml`, Soul passed with `pathScopeMatched=true`, `familyAssertions.status=passed`, and `privateStateExposed=false`. Current remaining repo-swarm MVP organs are deeper interpreter/adoption semantics, additional useful repo-owned config/action families, and Idunn-owned queue-run service lifecycle under explicit operator authority.
|
||||
- 2026-06-20: `repo-tool-capabilities` is now live as repo-owned tool capability configuration cargo. `epiphany-work derive-plan --action-family repo-tool-capabilities` writes `.epiphany/repo-tool-capabilities.toml` with safe family `repo.tool_capabilities`, local CultMesh/Odin discovery flags, daemon tool invocation intent/receipt contracts, expected repo-swarm capability ids, host-daemon execution ownership, Idunn lifecycle ownership, and authority seals for no shell/deploy/service/private-rummaging authority. Soul closure assertions inspect schema, family, summary, tool directory, contracts, expected capability ids, host receipt requirement, authority seals, and private-state seal. Focused smoke `.epiphany-smoke\repo-tool-capabilities-family-20260620-142430` ran init -> online -> accept -> repo-tool-capabilities derive-plan -> tick run/adopt/execute/close; Hands committed only `.epiphany/repo-tool-capabilities.toml`, Soul passed with `pathScopeMatched=true`, `familyAssertions.status=passed`, `hostDaemonOwnsExecution=true`, `idunnOwnsLifecycle=true`, and `privateStateExposed=false`. Current remaining repo-swarm MVP organs are deeper interpreter/adoption semantics, more useful repo-owned configuration/action families, and Idunn-owned queue-run service lifecycle under explicit operator authority.
|
||||
- 2026-06-20: `repo-collaboration-topic` is now live as public collaboration planning cargo. `epiphany-work derive-plan --action-family repo-collaboration-topic` writes `.epiphany/collaboration-topics/<item>.toml` with safe family `repo.collaboration_topic`, public Persona collaboration room, Eve surface, Imagination consensus route, non-authoritative candidate action semantics, Mind/Bifrost gates, and seals against adoption/action/publication/cross-body/private-rummaging authority. Soul closure assertions inspect schema, family, summary, topic surface, Imagination route, authority seals, and private-state seal. Focused smoke `.epiphany-smoke\repo-collaboration-topic-family-20260620-143342` ran init -> online -> accept -> repo-collaboration-topic derive-plan -> tick run/adopt/execute/close; Hands committed only `.epiphany/collaboration-topics/repo-collaboration-topic-family.toml`, Soul passed with `pathScopeMatched=true`, `familyAssertions.status=passed`, `candidateActionsNonAuthoritative=true`, and `privateStateExposed=false`. Current remaining repo-swarm MVP organs are deeper interpreter/adoption semantics, more useful repo-owned configuration/action families, and Idunn-owned queue-run service lifecycle under explicit operator authority.
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -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`, bounded `epiphany-swarm run`, execute-to-close scheduler handoff through `close-from-execute`, deterministic `derive-plan` families `append-worklog`, `planning-note`, `checklist-note`, `section-note` / `repo.markdown_managed_section`, `task-card` / `repo.task_card`, `repo-status-section` / `repo.status_section`, `repo-manifest` / `repo.body_manifest`, `repo-tool-capabilities` / `repo.tool_capabilities`, `repo-eve-surface` / `repo.eve_surface`, `repo-collaboration-topic` / `repo.collaboration_topic`, `repo-consensus-brief` / `repo.consensus_brief`, `repo-objective-draft` / `repo.objective_draft`, `repo-adoption-request` / `repo.adoption_request`, `repo-scheduling-request` / `repo.scheduling_request`, `repo-work-order` / `repo.work_order`, `repo-verification-request` / `repo.verification_request`, `repo-publication-request` / `repo.publication_request`, `repo-sync-request` / `repo.sync_request`, `repo-maintainer-review-request` / `repo.maintainer_review_request`, `repo-pr-request` / `repo.pr_request`, `repo-credit-request` / `repo.credit_request`, `repo-artifact-acceptance-request` / `repo.artifact_acceptance_request`, and `repo-metrics-request` / `repo.metrics_request`, typed Imagination action-item receipts over allowlisted safe families, hash-backed local proof bundles with Bifrost/GitHub/credit/PR/upstream-main publication rows, redacted `epiphany-work export-proof` public bundles plus local Verse `epiphany.cultmesh.repo_work_public_proof.v0` Gjallar readback, Bifrost-owned `gamecult.bifrost.public_proof_publication_receipt.v0` closure plus wrapper `bifrost-public-proof` for redacted public proofs, 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 contract note now explicitly answers that Epiphany is headed toward a functional repo swarm but is not fully online until the typed artery runs as a living repo organism. The next cut is deeper interpreter/adoption semantics, more useful repo-owned config/action families, or Idunn-owned queue-run service lifecycle under explicit operator authority. 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`, bounded `epiphany-swarm run`, execute-to-close scheduler handoff through `close-from-execute`, deterministic `derive-plan` families `append-worklog`, `planning-note`, `checklist-note`, `section-note` / `repo.markdown_managed_section`, `task-card` / `repo.task_card`, `repo-status-section` / `repo.status_section`, `repo-manifest` / `repo.body_manifest`, `repo-tool-capabilities` / `repo.tool_capabilities`, `repo-eve-surface` / `repo.eve_surface`, `repo-collaboration-topic` / `repo.collaboration_topic`, `repo-consensus-brief` / `repo.consensus_brief`, `repo-objective-draft` / `repo.objective_draft`, `repo-adoption-request` / `repo.adoption_request`, `repo-scheduling-request` / `repo.scheduling_request`, `repo-work-order` / `repo.work_order`, `repo-verification-request` / `repo.verification_request`, `repo-publication-request` / `repo.publication_request`, `repo-sync-request` / `repo.sync_request`, `repo-maintainer-review-request` / `repo.maintainer_review_request`, `repo-pr-request` / `repo.pr_request`, `repo-credit-request` / `repo.credit_request`, `repo-artifact-acceptance-request` / `repo.artifact_acceptance_request`, and `repo-metrics-request` / `repo.metrics_request`, typed Imagination action-item receipts over allowlisted safe families, `epiphany.repo_work_mind_adoption_decision.v0` Mind interpreter receipts before branch-local Hands authority, hash-backed local proof bundles with Bifrost/GitHub/credit/PR/upstream-main publication rows, redacted `epiphany-work export-proof` public bundles plus local Verse `epiphany.cultmesh.repo_work_public_proof.v0` Gjallar readback, Bifrost-owned `gamecult.bifrost.public_proof_publication_receipt.v0` closure plus wrapper `bifrost-public-proof` for redacted public proofs, 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`; proof `.epiphany-smoke\repo-planning-facets-20260620-171324` shows model-authored facets survive into Imagination, plan derivation, Mind decision, adoption, and Soul closure while Mind decision authority remains sealed. The contract note now explicitly answers that Epiphany is headed toward a functional repo swarm but is not fully online until the typed artery runs as a living repo organism. The next cut is deeper interpreter semantics beyond the first Mind decision packet, more useful repo-owned config/action families, or Idunn-owned queue-run service lifecycle under explicit operator authority. 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