Split repo work stage ownership
This commit is contained in:
parent
a39061c825
commit
f5f5524f7e
5 changed files with 105 additions and 32 deletions
|
|
@ -5047,7 +5047,7 @@ fn repo_work_map_stage_lens_rows(
|
|||
}
|
||||
|
||||
fn repo_work_stage_for_family(safe_action_family: &str) -> (String, String) {
|
||||
let stage = match safe_action_family {
|
||||
let (stage, owner) = match safe_action_family {
|
||||
"repo.append_worklog"
|
||||
| "repo.markdown_planning_note"
|
||||
| "repo.checklist_note"
|
||||
|
|
@ -5056,36 +5056,27 @@ fn repo_work_stage_for_family(safe_action_family: &str) -> (String, String) {
|
|||
| "repo.task_card"
|
||||
| "repo.consensus_brief"
|
||||
| "repo.interpreter_brief"
|
||||
| "repo.objective_draft" => "imagination-planning",
|
||||
"repo.tool_request" | "repo.collaboration_policy" | "repo.collaboration_topic" => {
|
||||
"repo-body-collaboration"
|
||||
}
|
||||
"repo.adoption_request" => "mind-adoption-request",
|
||||
"repo.scheduling_request" => "self-scheduling-request",
|
||||
"repo.work_order" => "hands-execution-request",
|
||||
"repo.verification_request" => "soul-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" => "bifrost-publication-accounting",
|
||||
"repo.doctrine_update_request" | "repo.secret_policy_request" => "repo-governance",
|
||||
"repo.deployment_config" | "repo.deployment_request" => "idunn-deployment",
|
||||
_ => "unknown-safe-family",
|
||||
};
|
||||
let owner = match stage {
|
||||
"imagination-planning" => "Imagination",
|
||||
"repo-body-collaboration" => "Persona/Odin/Eve",
|
||||
"mind-adoption-request" => "Mind",
|
||||
"self-scheduling-request" => "Self",
|
||||
"hands-execution-request" => "Hands",
|
||||
"soul-verification-request" => "Soul",
|
||||
"bifrost-publication-accounting" => "Bifrost",
|
||||
"repo-governance" => "Mind/Soul/Maintainer",
|
||||
"idunn-deployment" => "Idunn",
|
||||
_ => "Unknown",
|
||||
| "repo.objective_draft" => ("imagination-planning", "Imagination"),
|
||||
"repo.tool_request" => ("daemon-tool-request", "target-host-daemon"),
|
||||
"repo.collaboration_policy" => ("collaboration-policy-draft", "Imagination"),
|
||||
"repo.collaboration_topic" => ("collaboration-topic-draft", "Imagination"),
|
||||
"repo.adoption_request" => ("mind-adoption-request", "Mind"),
|
||||
"repo.scheduling_request" => ("self-scheduling-request", "Self"),
|
||||
"repo.work_order" => ("hands-execution-request", "Hands"),
|
||||
"repo.verification_request" => ("soul-verification-request", "Soul"),
|
||||
"repo.publication_request" => ("bifrost-publication-request", "Bifrost"),
|
||||
"repo.sync_request" => ("bifrost-upstream-proof", "Bifrost"),
|
||||
"repo.maintainer_review_request" => ("maintainer-review-request", "Maintainer"),
|
||||
"repo.pr_request" => ("hands-pr-execution-request", "Hands"),
|
||||
"repo.credit_request" => ("bifrost-credit-accounting", "Bifrost"),
|
||||
"repo.artifact_acceptance_request" => ("maintainer-artifact-acceptance", "Maintainer"),
|
||||
"repo.metrics_request" => ("bifrost-metrics-accounting", "Bifrost"),
|
||||
"repo.readiness_review_request" => ("maintainer-readiness-review", "Maintainer"),
|
||||
"repo.doctrine_update_request" => ("mind-doctrine-admission", "Mind"),
|
||||
"repo.secret_policy_request" => ("mind-secret-policy-admission", "Mind"),
|
||||
"repo.dependency_policy_request" => ("mind-dependency-policy-admission", "Mind"),
|
||||
"repo.deployment_config" | "repo.deployment_request" => ("idunn-deployment", "Idunn"),
|
||||
_ => ("unknown-safe-family", "Unknown"),
|
||||
};
|
||||
(stage.to_string(), owner.to_string())
|
||||
}
|
||||
|
|
@ -9500,6 +9491,67 @@ fn required_list(values: &Option<Vec<String>>, message: &str) -> Result<Vec<Stri
|
|||
mod lifecycle_projection_tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn repo_work_stage_lens_preserves_per_family_ownership() {
|
||||
let expected = [
|
||||
(
|
||||
"repo.tool_request",
|
||||
"daemon-tool-request",
|
||||
"target-host-daemon",
|
||||
),
|
||||
(
|
||||
"repo.collaboration_policy",
|
||||
"collaboration-policy-draft",
|
||||
"Imagination",
|
||||
),
|
||||
(
|
||||
"repo.publication_request",
|
||||
"bifrost-publication-request",
|
||||
"Bifrost",
|
||||
),
|
||||
("repo.sync_request", "bifrost-upstream-proof", "Bifrost"),
|
||||
(
|
||||
"repo.maintainer_review_request",
|
||||
"maintainer-review-request",
|
||||
"Maintainer",
|
||||
),
|
||||
("repo.pr_request", "hands-pr-execution-request", "Hands"),
|
||||
(
|
||||
"repo.artifact_acceptance_request",
|
||||
"maintainer-artifact-acceptance",
|
||||
"Maintainer",
|
||||
),
|
||||
(
|
||||
"repo.readiness_review_request",
|
||||
"maintainer-readiness-review",
|
||||
"Maintainer",
|
||||
),
|
||||
(
|
||||
"repo.doctrine_update_request",
|
||||
"mind-doctrine-admission",
|
||||
"Mind",
|
||||
),
|
||||
(
|
||||
"repo.secret_policy_request",
|
||||
"mind-secret-policy-admission",
|
||||
"Mind",
|
||||
),
|
||||
(
|
||||
"repo.dependency_policy_request",
|
||||
"mind-dependency-policy-admission",
|
||||
"Mind",
|
||||
),
|
||||
("repo.deployment_request", "idunn-deployment", "Idunn"),
|
||||
];
|
||||
for (family, stage, owner) in expected {
|
||||
assert_eq!(
|
||||
repo_work_stage_for_family(family),
|
||||
(stage.to_string(), owner.to_string())
|
||||
);
|
||||
}
|
||||
assert!(expected.iter().all(|(_, _, owner)| !owner.contains('/')));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn smoke_reset_is_confined_to_exact_canonical_quarantine() -> Result<()> {
|
||||
let temp = tempfile::tempdir()?;
|
||||
|
|
|
|||
|
|
@ -1358,3 +1358,16 @@ The repo-work stage lens still contains composite labels for grouped safe-action
|
|||
families (`Persona/Odin/Eve` and `Mind/Soul/Maintainer`). Those groups combine
|
||||
families with different authorities and need to be split by family rather than
|
||||
given a more attractive shared label.
|
||||
|
||||
That grouped model is now deleted. `repo_work_stage_for_family` assigns stages
|
||||
and owners per typed safe family: tool requests route to their target host
|
||||
daemon; collaboration drafts remain Imagination-authored; publication, proof,
|
||||
review, PR execution, credit, artifact acceptance, metrics, readiness, policy
|
||||
admission, and deployment each name their actual owner. Dependency policy and
|
||||
readiness review are no longer silently classified as unknown. A table-driven
|
||||
regression test covers the governed families and refuses slash-composite owners.
|
||||
|
||||
The remaining production scan finds composite owner labels in the repo-work
|
||||
readiness projection (`Idunn/Soul`, `Soul/Bifrost`, and
|
||||
`Soul/Mind/Bifrost/Maintainer`) plus arrow-shaped handoff labels presented as
|
||||
owners. Trace those rows to their receipt producers and split owner from route.
|
||||
|
|
|
|||
|
|
@ -489,3 +489,11 @@ Self rather than its Hands/Soul/Modeling stage route. The next projection scar
|
|||
is `repo_work_stage_for_family`: it groups distinct collaboration and governance
|
||||
families under composite owners. Split those stage groups by actual family
|
||||
authority; do not merely rename the composites.
|
||||
|
||||
The stage groups are now split per safe family, with regression coverage for
|
||||
tool host, Imagination draft, Mind admission, Maintainer decision, Hands
|
||||
execution, Bifrost proof/accounting/publication, Soul verification, Self
|
||||
scheduling, and Idunn deployment ownership. Dependency policy and readiness
|
||||
are explicitly classified instead of falling through to Unknown. Next trace
|
||||
the remaining composite owner labels in repo-work readiness rows around the
|
||||
Idunn/Soul, Soul/Bifrost, and four-reviewer projections.
|
||||
|
|
|
|||
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 projection-owner purge. Receipt directory now assigns Eve connection receipts to the target provider cluster rather than Odin/Eve and assigns work-loop telemetry to Self rather than its Hands/Soul/Modeling route. Next split repo_work_stage_for_family's composite collaboration and governance stage groups by actual safe-family authority; do not rename a mixed group into another pseudo-owner. Preserve closure's zero-substring invariant.
|
||||
next_action: Continue the projection-owner purge. repo_work_stage_for_family now assigns a distinct stage and real owner per governed safe family, including previously unknown dependency-policy and readiness families. Next trace repo-work readiness rows carrying Idunn/Soul, Soul/Bifrost, Soul/Mind/Bifrost/Maintainer, and arrow-shaped handoff labels; split receipt producer/decision owner from route participants. Preserve closure's zero-substring invariant.
|
||||
|
|
|
|||
Reference in a new issue