Separate PR publication and provider authority
This commit is contained in:
parent
5f3d1b85cc
commit
6a755aa937
10 changed files with 45 additions and 10 deletions
|
|
@ -198,7 +198,11 @@ fn run_smoke(args: Args) -> Result<Value> {
|
|||
require_text(&request_text, "safe_action_family = \"repo.pr_request\"")?;
|
||||
require_text(&request_text, "[request]")?;
|
||||
require_text(&request_text, "status = \"awaiting-pr-publication-review\"")?;
|
||||
require_text(&request_text, "requested_owner = \"Bifrost/GitHub\"")?;
|
||||
require_text(&request_text, "routing_owner = \"Self\"")?;
|
||||
require_text(&request_text, "publication_owner = \"Bifrost\"")?;
|
||||
require_text(&request_text, "execution_owner = \"Hands\"")?;
|
||||
require_text(&request_text, "provider = \"GitHub\"")?;
|
||||
require_text(&request_text, "provider_receipt_required = true")?;
|
||||
require_text(
|
||||
&request_text,
|
||||
"requested_effect = \"open-or-update-review-pr-from-redacted-proof-and-maintainer-context\"",
|
||||
|
|
|
|||
|
|
@ -7751,7 +7751,7 @@ fn bifrost_ledger_report(
|
|||
&mut tui_rows,
|
||||
BifrostLedgerRow {
|
||||
document_kind: "github-publication-receipt".to_string(),
|
||||
owner: "Bifrost/GitHub".to_string(),
|
||||
owner: "GitHub".to_string(),
|
||||
id: receipt.receipt_id.clone(),
|
||||
status: receipt.publication_status.clone(),
|
||||
route: receipt.ledger_entry_id.clone(),
|
||||
|
|
|
|||
|
|
@ -4381,7 +4381,11 @@ fn derive_repo_pr_request_plan(
|
|||
"[request]".to_string(),
|
||||
format!("id = {}", toml_basic_string(&request_id)),
|
||||
"status = \"awaiting-pr-publication-review\"".to_string(),
|
||||
"requested_owner = \"Bifrost/GitHub\"".to_string(),
|
||||
"routing_owner = \"Self\"".to_string(),
|
||||
"publication_owner = \"Bifrost\"".to_string(),
|
||||
"execution_owner = \"Hands\"".to_string(),
|
||||
"provider = \"GitHub\"".to_string(),
|
||||
"provider_receipt_required = true".to_string(),
|
||||
"requested_effect = \"open-or-update-review-pr-from-redacted-proof-and-maintainer-context\""
|
||||
.to_string(),
|
||||
format!(
|
||||
|
|
@ -6753,7 +6757,7 @@ fn closure_family_assertions(
|
|||
request
|
||||
.as_ref()
|
||||
.is_some_and(RepoPrRequest::awaits_owned_review),
|
||||
"Committed PR request waits for Bifrost/GitHub review before consequence."
|
||||
"Committed PR request separates Self routing, Bifrost publication, Hands execution, and GitHub provider outcome."
|
||||
.to_string(),
|
||||
);
|
||||
push_assertion(
|
||||
|
|
@ -10109,7 +10113,7 @@ fn run_readiness(args: ReadinessArgs) -> Result<Value> {
|
|||
)?,
|
||||
readiness_missing_row(
|
||||
"bifrost-publication",
|
||||
"Bifrost/GitHub",
|
||||
"Bifrost",
|
||||
"provider-authored publication receipts",
|
||||
"Wait for Bifrost and the GitHub publication adapter; legacy local publish aggregates are not authority.",
|
||||
),
|
||||
|
|
@ -10372,7 +10376,7 @@ fn run_readiness(args: ReadinessArgs) -> Result<Value> {
|
|||
private_state_exposed: false,
|
||||
notes: vec![
|
||||
"Repo work readiness is reviewable sight only; Maintainer/Soul/Mind/Bifrost own any readiness approval.".to_string(),
|
||||
"Bifrost/GitHub own publication and upstream-main sync; Idunn owns service lifecycle; Hands owns branch-local action consequences.".to_string(),
|
||||
"Bifrost owns publication gates; Hands performs bounded PR actions; GitHub supplies provider receipts; Idunn owns service lifecycle.".to_string(),
|
||||
"Downstream consumers may project these rows without scheduling, publication, merge, deployment, service lifecycle, cross-body mutation, or private Verse authority.".to_string(),
|
||||
],
|
||||
};
|
||||
|
|
|
|||
|
|
@ -770,7 +770,11 @@ impl RepoPrRequest {
|
|||
pub(super) fn awaits_owned_review(&self) -> bool {
|
||||
let r = &self.request;
|
||||
r.status == "awaiting-pr-publication-review"
|
||||
&& r.requested_owner == "Bifrost/GitHub"
|
||||
&& r.routing_owner == "Self"
|
||||
&& r.publication_owner == "Bifrost"
|
||||
&& r.execution_owner == "Hands"
|
||||
&& r.provider == "GitHub"
|
||||
&& r.provider_receipt_required
|
||||
&& r.requested_effect
|
||||
== "open-or-update-review-pr-from-redacted-proof-and-maintainer-context"
|
||||
&& !r.maintainer_review_request_ref.is_empty()
|
||||
|
|
@ -828,7 +832,11 @@ impl RepoPrRequest {
|
|||
#[derive(Debug, Deserialize)]
|
||||
struct RepoPrRequestBody {
|
||||
status: String,
|
||||
requested_owner: String,
|
||||
routing_owner: String,
|
||||
publication_owner: String,
|
||||
execution_owner: String,
|
||||
provider: String,
|
||||
provider_receipt_required: bool,
|
||||
requested_effect: String,
|
||||
maintainer_review_request_ref: String,
|
||||
publication_request_ref: String,
|
||||
|
|
|
|||
|
|
@ -359,7 +359,11 @@ summary = "summary"
|
|||
private_state_exposed = false
|
||||
[request]
|
||||
status = "awaiting-pr-publication-review"
|
||||
requested_owner = "Bifrost/GitHub"
|
||||
routing_owner = "Self"
|
||||
publication_owner = "Bifrost"
|
||||
execution_owner = "Hands"
|
||||
provider = "GitHub"
|
||||
provider_receipt_required = true
|
||||
requested_effect = "open-or-update-review-pr-from-redacted-proof-and-maintainer-context"
|
||||
maintainer_review_request_ref = "review"
|
||||
publication_request_ref = "publication"
|
||||
|
|
|
|||
|
|
@ -1272,6 +1272,14 @@ deployment body. Compilation caught the mismatch before semantic tests ran;
|
|||
secret policy was restored and the exact deployment struct changed. This is
|
||||
further evidence that broad textual surgery needs owner-specific contexts.
|
||||
|
||||
## GitHub provider as Bifrost publication ownership
|
||||
|
||||
`repo.pr_request` named `Bifrost/GitHub` as one owner. The request and operator
|
||||
ledger now separate Self routing, Bifrost publication gating, Hands PR action,
|
||||
and GitHub provider outcome. GitHub-authored PR receipts are labeled GitHub;
|
||||
they do not make the provider a publication-policy organ. The request requires
|
||||
the provider receipt rather than treating provider identity as participation.
|
||||
|
||||
The same inspection found 33 consecutive duplicate `#[cfg(test)]` attributes
|
||||
on provider constructors/writers and their re-exports. One gate already makes
|
||||
each item test-only; the second owned nothing. The duplicates are removed.
|
||||
|
|
|
|||
|
|
@ -59,6 +59,7 @@
|
|||
- Doctrine update requests split authority: Imagination authors, Self routes, Maintainer reviews, Soul verifies, Mind admits doctrine state, and Hands mutates `AGENTS.md` under receipts. There is no Maintainer/Mind composite owner or OR gate.
|
||||
- Closure has no substring authority. Worklog, planning/checklist notes, managed/status sections, and task cards are explicitly presentation-only; closure relies on committed target/path/blob evidence instead of treating formatting text as Soul truth.
|
||||
- Deployment requests split Self routing from independent Maintainer/Soul/Mind/Bifrost review and Idunn-only execution. Maintainer review cannot impersonate Idunn deployment; only Idunn deployment and aftercare receipts prove outcomes.
|
||||
- PR requests split Self routing, Bifrost publication gating, Hands execution, and GitHub provider outcomes. GitHub receipt authorship does not grant publication-policy authority.
|
||||
- `repo.planning_brief` is deleted. It contained no candidate work-item records and let copied global catalog/schema/closure constants self-attest as per-item planning and readiness evidence. The live preparation chain is consensus draft -> interpretation request -> objective draft -> Mind adoption.
|
||||
- There is no aggregate repo-swarm MVP gate. The former smoke manually aggregated fixture summaries into green rows and `demoReady=true`; it and its wrapper are deleted. Whole-organism readiness requires a live-fire path whose claimed consequences are observed at their owning boundaries.
|
||||
- Persona owner: `collaboration-feedback` writes public, bounded feedback only after that provider receipt exists.
|
||||
|
|
|
|||
|
|
@ -425,6 +425,12 @@ outcomes. A generic patch briefly struck secret-policy fields; compilation
|
|||
caught it before tests, the fields were restored, and exact deployment tests
|
||||
plus the full baseline pass.
|
||||
|
||||
PR request no longer has a `Bifrost/GitHub` composite owner. Self routes,
|
||||
Bifrost owns the publication gate, Hands performs bounded PR action, and GitHub
|
||||
only supplies provider outcomes. The GitHub receipt ledger row is now
|
||||
GitHub-owned. Nine external-governance fixtures, 259 library tests, and all
|
||||
binaries pass.
|
||||
|
||||
Consensus Brief keeps its honest draft/unconverged semantics but no longer
|
||||
proves them with substring presence. Preparation owns its typed consensus,
|
||||
Imagination route, inputs, authority, and privacy closure; a malicious comment
|
||||
|
|
|
|||
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 beyond-closure composite-owner purge. Deployment request now splits Self routing, independent Maintainer/Soul/Mind/Bifrost review, and Idunn-only execution/outcome receipts. The remaining production scan findings include Bifrost/GitHub PR routing, Maintainer/Bifrost artifact review, Bifrost/Maintainer metrics/accounting, Maintainer/Soul/Bifrost security/dependency policy, and composite owner labels in epiphany-verse-query projections. Map and cut the highest-consequence family next; keep closure's zero-substring invariant intact.
|
||||
next_action: Continue the beyond-closure composite-owner purge. Deployment and PR are split: Self routes, Bifrost gates publication, Hands performs PR actions, GitHub supplies provider receipts, and Idunn alone executes deployment. Remaining production findings include Maintainer/Bifrost artifact review, Bifrost/Maintainer metrics/accounting, Maintainer/Soul/Bifrost security/dependency policy, plus composite owner labels in epiphany-verse-query projections. Map and cut artifact acceptance next; keep closure's zero-substring invariant intact.
|
||||
|
|
|
|||
Reference in a new issue