Split Eve requests from provider receipts
This commit is contained in:
parent
e1140d39d6
commit
b861c58254
6 changed files with 42 additions and 58 deletions
|
|
@ -1445,6 +1445,20 @@ fn run_cli() -> Result<()> {
|
|||
.eve_connection_receipt_id
|
||||
.clone()
|
||||
.context("collaboration-feedback requires --eve-connection-receipt-id")?;
|
||||
let provider_connection_receipt =
|
||||
load_latest_epiphany_cultmesh_eve_connection_receipt(
|
||||
&args.store,
|
||||
args.runtime_id.clone(),
|
||||
)?
|
||||
.filter(|receipt| receipt.receipt_id == eve_connection_receipt_id)
|
||||
.with_context(|| {
|
||||
format!(
|
||||
"collaboration-feedback requires a persisted Eve provider receipt {eve_connection_receipt_id:?}; a consumer intent is not acceptance"
|
||||
)
|
||||
})?;
|
||||
if provider_connection_receipt.status.trim().is_empty() {
|
||||
anyhow::bail!("persisted Eve provider receipt has no status");
|
||||
}
|
||||
let collaboration_topic = args
|
||||
.collaboration_topic
|
||||
.clone()
|
||||
|
|
@ -1545,6 +1559,11 @@ fn run_cli() -> Result<()> {
|
|||
);
|
||||
}
|
||||
"connect-eve" | "eve-connection" => {
|
||||
if args.receipt_id.is_some() || args.receipt_status.is_some() {
|
||||
anyhow::bail!(
|
||||
"connect-eve accepts consumer intent fields only; the advertised Eve provider owns connection receipt id and status"
|
||||
);
|
||||
}
|
||||
seed_epiphany_local_verse_context(
|
||||
&args.store,
|
||||
args.runtime_id.clone(),
|
||||
|
|
@ -1552,7 +1571,7 @@ fn run_cli() -> Result<()> {
|
|||
)?;
|
||||
let directory =
|
||||
load_epiphany_cultmesh_eve_surface_directory(&args.store, args.runtime_id.clone())?;
|
||||
let (target_cluster, target, _target_surface) = if let Some(advertisement_id) =
|
||||
let (_target_cluster, target, _target_surface) = if let Some(advertisement_id) =
|
||||
args.advertisement_id.as_deref()
|
||||
{
|
||||
directory
|
||||
|
|
@ -1583,10 +1602,6 @@ fn run_cli() -> Result<()> {
|
|||
.intent_id
|
||||
.clone()
|
||||
.unwrap_or_else(|| "eve-connection-intent".to_string());
|
||||
let receipt_id = args
|
||||
.receipt_id
|
||||
.clone()
|
||||
.unwrap_or_else(|| "eve-connection-receipt".to_string());
|
||||
let requesting_cluster_id = args
|
||||
.source_cluster_id
|
||||
.clone()
|
||||
|
|
@ -1613,65 +1628,34 @@ fn run_cli() -> Result<()> {
|
|||
args.runtime_id.clone(),
|
||||
intent.clone(),
|
||||
)?;
|
||||
let receipt_status = args
|
||||
.receipt_status
|
||||
.clone()
|
||||
.unwrap_or_else(|| "accepted-for-consensus-discovery".to_string());
|
||||
let receipt = epiphany_cultmesh_eve_connection_receipt_for_intent(
|
||||
receipt_id,
|
||||
&intent,
|
||||
receipt_status,
|
||||
);
|
||||
let written_receipt = write_epiphany_cultmesh_eve_connection_receipt(
|
||||
&args.store,
|
||||
args.runtime_id.clone(),
|
||||
receipt,
|
||||
)?;
|
||||
let latest_intent = load_latest_epiphany_cultmesh_eve_connection_intent(
|
||||
&args.store,
|
||||
args.runtime_id.clone(),
|
||||
)?;
|
||||
let latest_receipt = load_latest_epiphany_cultmesh_eve_connection_receipt(
|
||||
&args.store,
|
||||
args.runtime_id.clone(),
|
||||
)?;
|
||||
if latest_intent
|
||||
.as_ref()
|
||||
.map(|intent| intent.intent_id.as_str())
|
||||
!= Some(written_intent.intent_id.as_str())
|
||||
|| latest_receipt
|
||||
.as_ref()
|
||||
.map(|receipt| receipt.receipt_id.as_str())
|
||||
!= Some(written_receipt.receipt_id.as_str())
|
||||
{
|
||||
anyhow::bail!("local Verse query lost Eve connection intent/receipt after write");
|
||||
anyhow::bail!("local Verse query lost Eve connection intent after write");
|
||||
}
|
||||
let (_latest_repo_work_overview, repo_work_overviews) =
|
||||
load_repo_work_overview_queue(&args)?;
|
||||
let (repo_work_queue_rows, _) = repo_work_overview_rows(&repo_work_overviews);
|
||||
let repo_work_queue_tui_rows = if target_cluster.public_persona_discussion_allowed {
|
||||
repo_work_peer_tui_rows(&repo_work_queue_rows)
|
||||
} else {
|
||||
Vec::new()
|
||||
};
|
||||
println!(
|
||||
"{}",
|
||||
serde_json::to_string_pretty(&json!({
|
||||
"status": "ok",
|
||||
"status": "pending-provider",
|
||||
"store": args.store,
|
||||
"runtimeId": args.runtime_id,
|
||||
"intentId": written_intent.intent_id,
|
||||
"receiptId": written_receipt.receipt_id,
|
||||
"receiptId": null,
|
||||
"receiptStatus": null,
|
||||
"responseOwner": written_intent.target_cluster_id,
|
||||
"targetAdvertisementId": written_intent.target_advertisement_id,
|
||||
"targetClusterId": written_intent.target_cluster_id,
|
||||
"targetEveSurfaceId": written_intent.target_eve_surface_id,
|
||||
"requestedAction": written_intent.requested_action,
|
||||
"feedbackRoute": written_intent.feedback_route,
|
||||
"repoWorkQueueCount": repo_work_queue_tui_rows.len(),
|
||||
"repoWorkQueueRows": if target_cluster.public_persona_discussion_allowed { repo_work_queue_rows } else { Vec::new() },
|
||||
"repoWorkQueueTuiRows": repo_work_queue_tui_rows,
|
||||
"privateStateRequested": written_intent.private_state_requested,
|
||||
"privateStateExposed": written_receipt.private_state_exposed,
|
||||
"privateStateExposed": false,
|
||||
}))?
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,6 +28,15 @@
|
|||
- Forbidden writers: `invoke-tool` cannot accept or synthesize receipt id/status, result reference, or result summary; it no longer executes local readback functions and labels them daemon results.
|
||||
- Negative proof: request intent persists, latest provider receipt remains absent, and response-shaped CLI fields are refused.
|
||||
|
||||
## Eve connection request path (2026-07-12)
|
||||
|
||||
- Owner: the consumer owns `eve_connection_intent`; the advertised provider cluster owns `eve_connection_receipt`.
|
||||
- Input: persisted Odin advertisement, requesting cluster, reason, and requested action.
|
||||
- Output: one pending intent naming target advertisement, cluster, Eve surface, and feedback route.
|
||||
- Forbidden writers: `connect-eve` cannot accept or synthesize provider receipt id/status and cannot return provider-owned queue projection as a connection result.
|
||||
- Dependent invariant: collaboration feedback may cite only a persisted provider receipt; a consumer request is not acceptance.
|
||||
- Negative proof: provider receipt remains absent after request, response-shaped fields fail, and feedback without provider acceptance fails.
|
||||
|
||||
This is the source-grounded map of the live machine. Historical route and
|
||||
bridge anatomy belongs in git history and evidence ledgers, not here.
|
||||
|
||||
|
|
|
|||
|
|
@ -12,6 +12,10 @@ The conceptual-substitution audit found observation manufacturing the body it cl
|
|||
|
||||
`invoke-tool` and wrapper mode `tool-invoke` now write only `epiphany.cultmesh.daemon_tool_invocation_intent`. They return `pending-provider`, name the host daemon as `responseOwner`, expose its observed status without promoting it, and leave receipt/result fields null. A request may queue while the host is `unknown`; readiness is daemon-authored state, not a prerequisite the requester may synthesize. Caller-supplied receipt ids/status, result refs, and result summaries are rejected. The former local service-health, runbook, policy, daemon-status, Eve, and authority readback execution was removed from the request path. Physical proof shows a persisted request accepted against an unknown host, no provider receipt, and rejection of counterfeit accepted/result fields.
|
||||
|
||||
## 2026-07-12 Eve consumer/provider split
|
||||
|
||||
`connect-eve` and wrapper mode `eve-connect` now persist only `epiphany.cultmesh.eve_connection_intent`, return `pending-provider`, name the target cluster as response owner, and leave receipt fields null. Consumer-supplied connection receipt id/status is rejected. The request path no longer projects repo-work queue data as if the provider had accepted and returned a surface. `collaboration-feedback` now requires the cited Eve connection receipt to exist in CultMesh, and the wrapper no longer invokes `connect-eve` then cites a receipt that the same command fabricated. Physical proof shows intent present, provider receipt absent, counterfeit receipt fields rejected, and feedback refused without a genuine provider receipt.
|
||||
|
||||
This is the re-entry rite for `E:\Projects\EpiphanyAgent`: the waking chant for
|
||||
the local machine-spirit before it touches the forge.
|
||||
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -70,7 +70,7 @@ data_flow:
|
|||
- move historical proof to git, commits, smoke artifacts, or distilled evidence rather than plan prose
|
||||
|
||||
active_subgoals:
|
||||
- Use `notes/conceptual-substitution-audit-2026-07-12.md` as the current authority-corrosion audit. The June 18 typed swarm-surface pass collapsed bootstrap, observation, request routing, and provider receipt authorship into one local CLI. Diagnostics no longer seed state or manufacture missing provider/liveness truth. Bifrost body-change publication and daemon tool invocation are requester-only: each persists an intent, reports a pending owner, rejects caller-supplied result fields, and leaves the provider receipt absent. Tool requests may queue while host status is unknown; the requester no longer manufactures readiness or executes local readback helpers as the daemon. Next cut Eve connection, daemon poke, public-proof publication, artifact acceptance, and metrics.
|
||||
- Use `notes/conceptual-substitution-audit-2026-07-12.md` as the current authority-corrosion audit. The June 18 typed swarm-surface pass collapsed bootstrap, observation, request routing, and provider receipt authorship into one local CLI. Diagnostics no longer seed state or manufacture missing provider/liveness truth. Bifrost publication, daemon tool invocation, and Eve connection are requester-only: each persists an intent, reports a pending owner, rejects caller-supplied result fields, and leaves provider receipts absent. Collaboration feedback now requires an actual persisted Eve provider receipt; its wrapper no longer manufactures its own prerequisite. Next cut daemon poke, collaboration consensus response, public-proof publication, artifact acceptance, and metrics.
|
||||
- `swarm-overview` is an Epiphany-local, renderer-neutral diagnostic projection over provider-owned typed state. It owns no lifecycle, discovery, composition, or mutation authority. Epiphany publishes clean provider-owned Eve surfaces; Odin may discover them; downstream lowerers and compositors remain outside Epiphany's concern.
|
||||
- Idunn owns daemon survival and service lifecycle physiology. Codex/operator sessions may inspect, generate runbooks, and route explicit operator authority, but keeping daemons alive belongs to Idunn-owned service lifecycle receipts, scheduler policy, audits, and aftercare. Do not let Self, diagnostic projections, or ad hoc wrapper summaries become a second daemon-keeper. Global tool readbacks for Self `service-health`, `service-policy-directory`, and `swarm-online-runbook` state `lifecycleOwner=Idunn` and `hostedBody=Epiphany` without service mutation or private-state exposure.
|
||||
- Use `notes/epiphany-cultmesh-dreaming-roadmap.md` as the design authority for distributed Epiphany dreaming. Public dreams are separately authored typed documents distributed through CultMesh/CultNet; private state remains local and cannot be shared by flipping a visibility flag. Foreign dreams are external thought weather until a reviewed local adoption receipt digests them into memory, planning, doctrine, or governance.
|
||||
|
|
|
|||
|
|
@ -825,7 +825,7 @@ if ($Mode -eq "eve-connect") {
|
|||
$connectArgs += @("--target-cluster-id", $EveTargetClusterId)
|
||||
}
|
||||
Invoke-Checked `
|
||||
-Label "record compact Odin/Eve connection receipt" `
|
||||
-Label "submit compact Odin/Eve connection intent" `
|
||||
-FilePath $verseQueryExe `
|
||||
-Arguments $connectArgs `
|
||||
-WorkingDirectory $Root `
|
||||
|
|
@ -834,19 +834,6 @@ if ($Mode -eq "eve-connect") {
|
|||
}
|
||||
|
||||
if ($Mode -eq "collaboration-feedback") {
|
||||
Invoke-Checked `
|
||||
-Label "record prerequisite Odin/Eve connection receipt" `
|
||||
-FilePath $verseQueryExe `
|
||||
-Arguments @(
|
||||
"connect-eve",
|
||||
"--store", $localVerseStore,
|
||||
"--runtime-id", $LocalVerseRuntimeId,
|
||||
"--target-cluster-id", $EveTargetClusterId
|
||||
) `
|
||||
-WorkingDirectory $Root `
|
||||
-StdoutPath (Join-Path $artifactRoot "collaboration-eve-connect.stdout.json") `
|
||||
-StderrPath (Join-Path $artifactRoot "collaboration-eve-connect.stderr.log")
|
||||
|
||||
$resultPath = Join-Path $artifactRoot "collaboration-feedback.stdout.json"
|
||||
Invoke-Checked `
|
||||
-Label "record public collaboration feedback for Imagination consensus" `
|
||||
|
|
@ -2775,7 +2762,7 @@ if ($resultPath -ne "" -and (Test-Path -LiteralPath $resultPath)) {
|
|||
if ($null -ne $result.repoWorkQueueTuiRows -and $result.repoWorkQueueTuiRows.Count -gt 0) {
|
||||
$repoWorkQueueRows = ($result.repoWorkQueueTuiRows -join "; ")
|
||||
}
|
||||
Write-Host "Eve connect: status=$($result.status), target=$($result.targetClusterId), surface=$($result.targetEveSurfaceId), receipt=$($result.receiptId), repoWorkQueue=$($result.repoWorkQueueCount), repoWorkRows=$repoWorkQueueRows, privateStateExposed=$($result.privateStateExposed)"
|
||||
Write-Host "Eve connection request: status=$($result.status), target=$($result.targetClusterId), surface=$($result.targetEveSurfaceId), intent=$($result.intentId), responseOwner=$($result.responseOwner), privateStateExposed=$($result.privateStateExposed)"
|
||||
} elseif ($Mode -eq "collaboration-feedback") {
|
||||
$feedbackRows = "none"
|
||||
if ($null -ne $result.tuiRows -and $result.tuiRows.Count -gt 0) {
|
||||
|
|
|
|||
Reference in a new issue