Delete caller-transcribed preflight authority
This commit is contained in:
parent
f4d922e321
commit
5703802530
6 changed files with 34 additions and 89 deletions
|
|
@ -317,22 +317,6 @@ fn service_plan(args: Args) -> Result<()> {
|
|||
fn service_launch(args: Args) -> Result<()> {
|
||||
let brake = load_epiphany_cultmesh_swarm_brake(&args.store, args.runtime_id.clone())?;
|
||||
assert_swarm_brake_allows_service_lifecycle_entry(brake.as_ref())?;
|
||||
if !args.required_document_types.is_empty()
|
||||
&& (!args.schema_preflight_passed
|
||||
|| args.executable_sha256.as_deref().is_none_or(str::is_empty)
|
||||
|| args
|
||||
.schema_catalog_sha256
|
||||
.as_deref()
|
||||
.is_none_or(str::is_empty)
|
||||
|| args
|
||||
.preflight_witness_id
|
||||
.as_deref()
|
||||
.is_none_or(str::is_empty))
|
||||
{
|
||||
anyhow::bail!(
|
||||
"typed service launch requires passing schema preflight, executable and schema SHA-256 fingerprints, and preflight witness identity"
|
||||
);
|
||||
}
|
||||
let started_at = Utc::now();
|
||||
let command_path = service_command_path(&args)?;
|
||||
let service_args = service_serve_args(&args);
|
||||
|
|
@ -411,11 +395,6 @@ fn service_launch(args: Args) -> Result<()> {
|
|||
"exitCode": written.exit_code,
|
||||
"stdoutArtifact": args.stdout_artifact,
|
||||
"stderrArtifact": args.stderr_artifact,
|
||||
"executableSha256": written.executable_sha256,
|
||||
"schemaCatalogSha256": written.schema_catalog_sha256,
|
||||
"preflightWitnessId": written.preflight_witness_id,
|
||||
"requiredDocumentTypes": written.required_document_types,
|
||||
"schemaPreflightPassed": written.schema_preflight_passed,
|
||||
"privateStateExposed": written.private_state_exposed,
|
||||
}))?
|
||||
);
|
||||
|
|
@ -3325,11 +3304,11 @@ fn service_lifecycle_receipt(
|
|||
"The service command may run the supervisor serve loop, but scheduler decisions remain typed local Verse receipts."
|
||||
.to_string(),
|
||||
],
|
||||
executable_sha256: args.executable_sha256.clone().unwrap_or_default(),
|
||||
schema_catalog_sha256: args.schema_catalog_sha256.clone().unwrap_or_default(),
|
||||
preflight_witness_id: args.preflight_witness_id.clone().unwrap_or_default(),
|
||||
required_document_types: args.required_document_types.clone(),
|
||||
schema_preflight_passed: args.schema_preflight_passed,
|
||||
executable_sha256: String::new(),
|
||||
schema_catalog_sha256: String::new(),
|
||||
preflight_witness_id: String::new(),
|
||||
required_document_types: Vec::new(),
|
||||
schema_preflight_passed: false,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -3493,11 +3472,6 @@ struct Args {
|
|||
artifact_ref: Option<String>,
|
||||
stdout_artifact: Option<PathBuf>,
|
||||
stderr_artifact: Option<PathBuf>,
|
||||
executable_sha256: Option<String>,
|
||||
schema_catalog_sha256: Option<String>,
|
||||
preflight_witness_id: Option<String>,
|
||||
required_document_types: Vec<String>,
|
||||
schema_preflight_passed: bool,
|
||||
}
|
||||
|
||||
impl Args {
|
||||
|
|
@ -3541,11 +3515,6 @@ impl Args {
|
|||
let mut artifact_ref = None;
|
||||
let mut stdout_artifact = None;
|
||||
let mut stderr_artifact = None;
|
||||
let mut executable_sha256 = None;
|
||||
let mut schema_catalog_sha256 = None;
|
||||
let mut preflight_witness_id = None;
|
||||
let mut required_document_types = Vec::new();
|
||||
let mut schema_preflight_passed = false;
|
||||
|
||||
while let Some(arg) = values.next() {
|
||||
match arg.as_str() {
|
||||
|
|
@ -3688,30 +3657,6 @@ impl Args {
|
|||
values.next().context("missing --stderr-artifact value")?,
|
||||
));
|
||||
}
|
||||
"--executable-sha256" => {
|
||||
executable_sha256 =
|
||||
Some(values.next().context("missing --executable-sha256 value")?);
|
||||
}
|
||||
"--schema-catalog-sha256" => {
|
||||
schema_catalog_sha256 = Some(
|
||||
values
|
||||
.next()
|
||||
.context("missing --schema-catalog-sha256 value")?,
|
||||
);
|
||||
}
|
||||
"--preflight-witness-id" => {
|
||||
preflight_witness_id = Some(
|
||||
values
|
||||
.next()
|
||||
.context("missing --preflight-witness-id value")?,
|
||||
);
|
||||
}
|
||||
"--required-document-type" => required_document_types.push(
|
||||
values
|
||||
.next()
|
||||
.context("missing --required-document-type value")?,
|
||||
),
|
||||
"--schema-preflight-passed" => schema_preflight_passed = true,
|
||||
other => anyhow::bail!("unknown argument {other:?}"),
|
||||
}
|
||||
}
|
||||
|
|
@ -3847,11 +3792,6 @@ impl Args {
|
|||
artifact_ref,
|
||||
stdout_artifact,
|
||||
stderr_artifact,
|
||||
executable_sha256,
|
||||
schema_catalog_sha256,
|
||||
preflight_witness_id,
|
||||
required_document_types,
|
||||
schema_preflight_passed,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13347,15 +13347,18 @@ fn launch_repo_work_modeling_worker(
|
|||
let executable_sha256 = preflight["executableSha256"]
|
||||
.as_str()
|
||||
.filter(|value| !value.is_empty())
|
||||
.ok_or_else(|| anyhow!("Modeling runtime preflight omitted executable SHA-256"))?;
|
||||
.ok_or_else(|| anyhow!("Modeling runtime preflight omitted executable SHA-256"))?
|
||||
.to_string();
|
||||
let schema_catalog_sha256 = preflight["schemaCatalogSha256"]
|
||||
.as_str()
|
||||
.filter(|value| !value.is_empty())
|
||||
.ok_or_else(|| anyhow!("Modeling runtime preflight omitted schema catalog SHA-256"))?;
|
||||
.ok_or_else(|| anyhow!("Modeling runtime preflight omitted schema catalog SHA-256"))?
|
||||
.to_string();
|
||||
let preflight_witness_id = preflight["preflightWitnessId"]
|
||||
.as_str()
|
||||
.filter(|value| !value.is_empty())
|
||||
.ok_or_else(|| anyhow!("Modeling runtime preflight omitted witness identity"))?;
|
||||
.ok_or_else(|| anyhow!("Modeling runtime preflight omitted witness identity"))?
|
||||
.to_string();
|
||||
let created_at = Utc::now().to_rfc3339_opts(chrono::SecondsFormat::Secs, true);
|
||||
open_runtime_spine_heartbeat_job(
|
||||
runtime_store,
|
||||
|
|
@ -13421,21 +13424,6 @@ fn launch_repo_work_modeling_worker(
|
|||
.arg(&stdout_path)
|
||||
.arg("--stderr-artifact")
|
||||
.arg(&stderr_path)
|
||||
.arg("--executable-sha256")
|
||||
.arg(executable_sha256)
|
||||
.arg("--schema-catalog-sha256")
|
||||
.arg(schema_catalog_sha256)
|
||||
.arg("--preflight-witness-id")
|
||||
.arg(preflight_witness_id)
|
||||
.arg("--required-document-type")
|
||||
.arg(epiphany_core::REPO_WORK_MODELING_ROUTE_TYPE)
|
||||
.arg("--required-document-type")
|
||||
.arg(epiphany_core::REPO_WORK_MODELING_REQUEST_TYPE)
|
||||
.arg("--required-document-type")
|
||||
.arg(epiphany_core::REPO_WORK_MODELING_FINDING_TYPE)
|
||||
.arg("--required-document-type")
|
||||
.arg(epiphany_core::RUNTIME_WORKER_LAUNCH_REQUEST_TYPE)
|
||||
.arg("--schema-preflight-passed")
|
||||
.arg("--reason")
|
||||
.arg(format!(
|
||||
"Idunn launches typed repo-work Modeling job {job_id}."
|
||||
|
|
@ -13463,11 +13451,11 @@ fn launch_repo_work_modeling_worker(
|
|||
"lifecycleOwner": "Idunn",
|
||||
"lifecycleReceiptId": lifecycle["receiptId"],
|
||||
"serviceId": lifecycle["serviceId"],
|
||||
"executableSha256": lifecycle["executableSha256"],
|
||||
"schemaCatalogSha256": lifecycle["schemaCatalogSha256"],
|
||||
"preflightWitnessId": lifecycle["preflightWitnessId"],
|
||||
"requiredDocumentTypes": lifecycle["requiredDocumentTypes"],
|
||||
"schemaPreflightPassed": lifecycle["schemaPreflightPassed"],
|
||||
"executableSha256": executable_sha256,
|
||||
"schemaCatalogSha256": schema_catalog_sha256,
|
||||
"preflightWitnessId": preflight_witness_id,
|
||||
"requiredDocumentTypes": required_document_types,
|
||||
"schemaPreflightPassed": true,
|
||||
"stdoutArtifact": stdout_path,
|
||||
"stderrArtifact": stderr_path,
|
||||
"requestId": request.request_id,
|
||||
|
|
|
|||
|
|
@ -460,3 +460,17 @@ repo and quarantine could silently disagree. The option and field are deleted
|
|||
throughout the family. Each binary now canonicalizes the selected repo root and
|
||||
derives its only quarantine as `<root>/.epiphany-smoke`; the old flag is refused
|
||||
before its target can be created.
|
||||
|
||||
## Caller-transcribed schema preflight proof
|
||||
|
||||
`epiphany-work` ran the model runtime's real schema preflight, then copied its
|
||||
hashes, witness ID, required document types, and pass bit through five command
|
||||
line arguments to `epiphany-daemon-supervisor`. Idunn accepted those strings and
|
||||
republished them inside its lifecycle receipt. That changed a caller's
|
||||
transcription into Idunn-observed launch proof; any direct caller could award
|
||||
itself the same badge. The five arguments and lifecycle projection are deleted.
|
||||
Repo work still blocks before launch unless the runtime's actual preflight
|
||||
passes, and reports that verifier output from the verifier call itself. Idunn's
|
||||
receipt now owns only the process consequence it can observe. A future shared
|
||||
preflight chain must resolve an immutable typed verifier receipt rather than
|
||||
carry testimony across argv.
|
||||
|
|
|
|||
|
|
@ -118,6 +118,9 @@ The confirmed conceptual substitutions have been cut:
|
|||
- Thirty-two repo-family and survival smokes no longer accept an independent
|
||||
deletion root. They derive `.epiphany-smoke` only after canonicalizing the
|
||||
selected repo root; `--smoke-root` is rejected before creating its target.
|
||||
- Idunn lifecycle receipts no longer accept caller-transcribed executable/schema
|
||||
hashes, witness identity, required types, or a preflight-pass bit. Repo work
|
||||
consumes the runtime's real preflight directly; Idunn reports process facts.
|
||||
|
||||
The presentation boundary is now plain: `swarm overview` is a generic compact read-only projection. Gjallar is a downstream TUI application on Nightwing and is not an Epiphany organ, provider, owner, runtime, or architectural dependency. Eve/CultUI graphs may be lowered or composited downstream without Epiphany caring which presentation client does it.
|
||||
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -660,4 +660,4 @@ current_status:
|
|||
- 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.
|
||||
last_completed_repo_swarm_cut: Huginn live-fire has crossed the first real repo Body from Persona pressure to branch-local Hands commit and Soul/Mind closure, and now has repeatable closure and redacted-public-proof mouths. On `E:\Projects\Huginn` branch `epiphany/huginn/first-awakening`, `tools/epiphany_local_run.ps1 -Mode repo-persona-intake` accepted item `huginn-inspection-readback-livefire`, Weksa/Persona intake remained sealed, and `epiphany-work derive-plan` lowered it to model-authored safe family `repo.status_section` for `README.md` only. `tools/epiphany_local_run.ps1 -Mode repo-swarm-run` advanced four bounded pulses: run-from-plan, adopt-from-plan, execute-from-plan, and close-from-execute. Huginn commit `e9b07c38fceabbdc89ea35c2156326c80c0393a2` updated only `README.md`; closure receipt `.epiphany\work\work-close-huginn-inspection-readback-livefire.json` records status `closed`, Soul verdict `passed`, Mind state commit `repo-work-close-huginn-inspection-readback-livefire-mind-commit`, safe family `repo.status_section`, path scope `README.md`, Bifrost publication gate, and `privateStateExposed=false`. Verification also ran Huginn's TypeScript compiler through concrete Node path: `C:\Program Files\nodejs\node.exe E:\Projects\Huginn\node_modules\typescript\bin\tsc -p tsconfig.json` passed. Native verifier `epiphany-repo-livefire-closure-smoke --workspace E:\Projects\Huginn --item huginn-inspection-readback-livefire --expected-path README.md --expected-family repo.status_section --expected-gate awaiting-publication --expected-blocker bifrost-publication-missing` checks closure receipt, Mind map entry, overview gate/blocker, authority seals, and `git show` changed paths, returning `status=ok`, `soulVerdict=passed`, `publicationGate=Bifrost`, and `privateStateExposed=false`. Wrapper `tools/epiphany_local_run.ps1 -Mode repo-livefire-closure -Workspace E:\Projects\Huginn -RepoWorkItem huginn-inspection-readback-livefire -SkipBuild` exposes the same read-only proof through the local operator mouth; artifact `local-20260621-190156-803-2f85ba15` printed commit, path, gate, blocker, Soul verdict, Mind commit receipt, and `privateStateExposed=False` without push, merge, publication, or target mutation. New wrapper `tools/epiphany_local_run.ps1 -Mode repo-work-public-proof -Workspace E:\Projects\Huginn -RepoWorkItem huginn-inspection-readback-livefire -SkipBuild` exports the redacted proof bundle and repo-local Verse index without publishing; artifact `local-20260621-190645-345-4555b1dc` wrote `.epiphany\public\proof-bundles\repo-work-public-proof-huginn-inspection-readback-livefire.json`, proof id `repo-work-public-proof-huginn-inspection-readback-livefire`, SHA-256 `857545b199f3e37eb06c2e757e5cfc201958e46667bb1f8403fd333a22620f63`, nine artifact rows, zero publication rows, and `privateStateExposed=False`. swarm overview readback `local-20260621-190701-140-b9519ec6` sees the `REPO-WORK-PUBLIC-PROOF` row and action row from Huginn's repo-local Verse with the same SHA-256 while Bifrost publication remains missing. Launcher compact modes are now named compact operator-context modes instead of read-only modes, and `bifrost-public-proof` summaries print item, target public Verse, room, proof SHA-256, review receipts, and credit receipts so publication receipts are auditable without claiming upstream sync.
|
||||
next_action: Continue the conceptual-substitution modeling pass beyond receipt writers. Publication/closure/Hands authority is single-sourced; cluster heartbeat is derived; query smoke cannot author Idunn truth; smoke fixture stores and recursive deletion roots are derived beneath the canonical workspace `.epiphany-smoke`. Continue auditing daemon-supervisor lifecycle statuses for observed consequence provenance, then inspect remaining projections/caches/adapters and destructive path consumers.
|
||||
next_action: Continue the conceptual-substitution modeling pass beyond receipt writers. Publication/closure/Hands authority is single-sourced; cluster heartbeat is derived; query smoke cannot author Idunn truth; smoke fixture stores and recursive deletion roots are derived beneath the canonical workspace `.epiphany-smoke`; Idunn lifecycle receipts no longer republish caller-transcribed schema preflight proof. Continue auditing daemon-supervisor lifecycle statuses and service configuration claims for observed consequence provenance, then inspect remaining projections/caches/adapters and destructive path consumers.
|
||||
|
|
|
|||
Reference in a new issue