Skip to content
Merged
Show file tree
Hide file tree
Changes from 77 commits
Commits
Show all changes
103 commits
Select commit Hold shift + click to select a range
7e17bff
Sizing becomes derived: unbundle NodeSizing, delete the authored cell…
Sep 11, 2026
d7f274b
Restore the intricacy-does-not-change-effort controls on the new expe…
Sep 11, 2026
8ae9d82
Admit the four remaining sizing-vocabulary relocations in the effort-…
Sep 11, 2026
b28f6cb
Merge main into the sizing unbundling
Sep 11, 2026
8a4b01e
Review 63379: cite the drop by the identity it actually has, and hois…
Sep 11, 2026
19df1ca
Merge main into the sizing unbundling
Sep 11, 2026
6f4bdf4
Review 63398: restore the two forecast discriminators the mechanical …
Sep 11, 2026
dc24b2e
Review 63425: regenerate the rung-drop projection from the merged aut…
Sep 11, 2026
58f9790
Key the sizing subject to the node's minted identity, not its slug
Sep 11, 2026
e487839
Merge main into the sizing unbundling
Sep 11, 2026
ea90ae3
Review 63447: the drop row said the dispatch passenger was deleted; i…
Sep 11, 2026
d254741
Review 63466: roster the cycle-time history loss instead of leaving t…
Sep 11, 2026
a9a90b0
Review 63483: delete the two size-rendering folds no production route…
Sep 11, 2026
391ad48
Review 63524: two annotations stated a false history; repair both
Sep 11, 2026
a1c0f63
Delist the two retired forecast witnesses from the floor cost-debt ro…
Sep 11, 2026
8a76f3d
Review 63572: repoint the page's exact-shape disclosure pin at the re…
Sep 11, 2026
f9c3a90
Admit the two relocations the restored calibration-gap discriminator …
Sep 11, 2026
5929ccc
Merge main into the sizing unbundling
Sep 11, 2026
c4d7f10
Retire the authored-size-distribution witness with its subject
Sep 11, 2026
1868158
Key the sizing assignment durably, refuse a cell answered for another…
Sep 11, 2026
cda8b68
Merge main into the sizing unbundling
Sep 11, 2026
3464e81
Review 63738: the adapter cited the wrong witness module for its own …
Sep 11, 2026
b564591
Review 63757: run both assignment checks on the history path too
Sep 11, 2026
ceda718
Merge main into the sizing unbundling
Sep 11, 2026
dbd23ac
cargo fmt: reindent main's admission row inside the unioned roster
Sep 11, 2026
f80d2d9
Review 63780: identity-join the history control and read its denomina…
Sep 11, 2026
2cff392
Merge main into the sizing unbundling
Sep 11, 2026
2351881
Regenerate the rung-drop projection from the merged roster
Sep 11, 2026
bc49c80
Pay the consumed admission #10956's merge created, per the roster's o…
Sep 11, 2026
0c987b1
Merge main into the sizing unbundling
Sep 11, 2026
8b5a792
Merge main into the sizing unbundling
Sep 11, 2026
b4ec82a
Merge main into the sizing unbundling
Sep 11, 2026
f46bc6b
Regenerate the rung-drop projection from the merged roster
Sep 11, 2026
acde78e
Merge main into the sizing unbundling
Sep 11, 2026
107b2ad
Regenerate the rung-drop projection from the merged roster
Sep 11, 2026
d27b937
Merge main into the sizing unbundling
Sep 11, 2026
434b600
Review 64051: build the sizing assignment population through std.keye…
Sep 11, 2026
ff9128c
Merge main into the sizing unbundling
Sep 11, 2026
e98e416
Pay the three consumed admissions #11071's merge created
Sep 11, 2026
46252bb
Merge main into the sizing unbundling
Sep 11, 2026
e8a11ed
Merge main into the sizing unbundling
Sep 12, 2026
c599126
Regenerate the rung-drop projection from the merged roster
Sep 12, 2026
7c5d5e4
Review 64179: the spawn wire contract changed materially, so the sche…
Sep 12, 2026
16c814b
Merge main into the sizing unbundling
Sep 12, 2026
81a01d0
State the v1->v2 trigger in consumer terms at the top of the frozen c…
Sep 12, 2026
7561996
Close the two bare blank lines inside the admission roster's doc comment
Sep 12, 2026
29e9f25
Merge main into the sizing unbundling
Sep 12, 2026
9c311ec
Merge main into the sizing unbundling
Sep 12, 2026
b884668
chore: regenerate drifted generated artifacts (ci auto-heal)
Sep 12, 2026
46b4ba1
Merge remote-tracking branch 'origin/main' into session/eager-gull-33
Sep 12, 2026
1cac734
Record how #10994's expected_candidates sets were established
Sep 12, 2026
6d6a39f
Complete the RemainingShape.unsized -> undispatchable rename at its c…
Sep 12, 2026
34ba662
Merge remote-tracking branch 'origin/main' into session/eager-gull-33
Sep 12, 2026
d8039b7
Merge remote-tracking branch 'origin/main' into session/eager-gull-33
Sep 12, 2026
40bece6
chore: regenerate drifted generated artifacts (ci auto-heal)
Sep 12, 2026
c5b9a04
Cut the live-graph unsized witness's cost without weakening its join
Sep 13, 2026
54bd489
Merge remote-tracking branch 'origin/main' into session/eager-gull-33
Sep 13, 2026
6923fc0
Make the unsized-population claim complete, and stop three claims ove…
Sep 13, 2026
dddd4fb
Remove the last sentence reading a forecast as the drop retiring
Sep 13, 2026
db13474
Merge remote-tracking branch 'origin/main' into session/eager-gull-33
Sep 13, 2026
6d0ced1
Complete the sizing deletion into #11014's destination module
Sep 13, 2026
a3ef3eb
chore: regenerate drifted generated artifacts (ci auto-heal)
Sep 13, 2026
92e67ab
Give #10994's seventeen admission rows their retirement trigger
Sep 13, 2026
fcac248
Pin the launch-refusal vocabulary by identity join, not by a row count
Sep 13, 2026
abc1eee
Name what the arm join does not red
Sep 13, 2026
1c0e686
Merge remote-tracking branch 'origin/main' into session/eager-gull-33
Sep 13, 2026
35066bb
Reconcile the wire contract by coverage, not by sequence equality
Sep 13, 2026
9d0a0ef
Drop the sequence comparison that the helper already made by coverage
Sep 13, 2026
2567da9
Stop two page-witness names attributing their subject to sizing
Sep 13, 2026
027733d
Rename two test helpers that still called undispatchable nodes unsized
Sep 13, 2026
01459d1
Retract a false census sentence, and make the trigger exclude a varia…
Sep 13, 2026
6bbc89c
chore: regenerate drifted generated artifacts (ci auto-heal)
Sep 13, 2026
2af33d1
Merge origin/main into session/eager-gull-33; adjudicate live sizing …
Sep 14, 2026
ce634f8
chore: regenerate drifted generated artifacts (ci auto-heal)
Sep 14, 2026
e70807c
Merge origin/main and retain dispatch binding alongside attempt subje…
Sep 14, 2026
f7ee7ac
Merge origin/main; compose withheld frontier with derived sizing and …
Sep 14, 2026
001a158
Merge origin/main; preserve named dissolution receipts and live sizin…
Sep 14, 2026
cce9fb6
Merge origin/main into session/eager-gull-33
Sep 15, 2026
7d406ee
Merge remote-tracking branch 'origin/main' into session/eager-gull-33
Sep 15, 2026
d29fcb0
Port main's new consumers onto the unbundled roadmap model
Sep 15, 2026
ff07cce
Merge remote-tracking branch 'origin/main' into session/eager-gull-33
Sep 15, 2026
cfc39d6
roadmap-spawner doc: stop asserting a v1 consumer refuses
Sep 15, 2026
4362567
Merge remote-tracking branch 'origin/main' into session/eager-gull-33
Sep 16, 2026
85a3c35
Merge remote-tracking branch 'origin/main' into session/eager-gull-33
Sep 16, 2026
8da0aba
Rename the unsized_derivable test helpers to undispatchable_derivable
Sep 16, 2026
382f483
Merge remote-tracking branch 'origin/main' into session/eager-gull-33
Sep 16, 2026
30475f0
chore: regenerate drifted generated artifacts (ci auto-heal)
Sep 16, 2026
19ef86d
Merge origin/main: keep #10994's seventeen admission rows, drop #1117…
Sep 16, 2026
baf6745
Merge origin/main: adopt the loaded transition-admission roster
Sep 16, 2026
9e558fe
chore: regenerate drifted generated artifacts (ci auto-heal)
Sep 16, 2026
349b706
Author the seventeen transition-admission roster rows as directory me…
Sep 16, 2026
aa7620d
Merge remote-tracking branch 'origin/main' into session/eager-gull-33
Sep 17, 2026
465418d
chore: regenerate drifted generated artifacts (ci auto-heal)
Sep 17, 2026
a591760
Merge remote-tracking branch 'origin/main' into session/eager-gull-33
Sep 18, 2026
7e854c4
chore: regenerate drifted generated artifacts (ci auto-heal)
Sep 18, 2026
b48851d
Merge remote-tracking branch 'origin/main' into session/eager-gull-33
Sep 19, 2026
9aa8247
Supply the values four roadmap witnesses were deriving whole projecti…
Sep 19, 2026
ad6dd1f
Delete the forty consumed admission rows this roster touch made due, …
Sep 19, 2026
f64a889
Revert the live forecast claim to the projection: the cheaper form wa…
Sep 19, 2026
d12fb13
Declare the live forecast control's eval-step overrun as its own 4b(3…
Sep 19, 2026
a844a9c
Fix the copied accumulator review 68130 found, and stop it standing i…
Sep 19, 2026
3bb0df1
Remove two copied accumulators from the roadmap stylesheet builder
Sep 19, 2026
6a3fbbc
Declare the page stylesheet inhabitance claim's eval-step overrun as …
Sep 19, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
149 changes: 87 additions & 62 deletions dag/gunbc/dispatch_selection.dag

Large diffs are not rendered by default.

427 changes: 129 additions & 298 deletions dag/gunbc/roadmap/roadmap_authority.dag

Large diffs are not rendered by default.

29 changes: 16 additions & 13 deletions dag/gunbc/roadmap/roadmap_belt_actuate.dag
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ import std.algebra { trim }

import gunbc.output_policy { OutcomeIsData }
import std.types { String, Int, Bool, List, NonEmptyStr, FilePath, CommitSha, GitRef }
import gunbc.roadmap_model { RoadmapNode, RoadmapNodeId, node_criteria_digest }
import gunbc.roadmap_model { RoadmapNode, RoadmapNodeId, node_criteria_digest, node_sizing_derivation }
import gunbc.roadmap_spawner { SpawnFrontier, spawn_frontier, doc_all_nodes }
import gunbc.roadmap_status { signoff_accepts, line_ticket }
import gunbc.roadmap_spawner { node_title }
import gunbc.roadmap_status { signoff_accepts, line_ticket, node_title }
import gunbc.roadmap.roadmap_review_role {
ReviewReceiptSource, ReviewReceiptAbsent, ReviewReceiptPresent, ReviewReceiptUnreadable,
CriterionReviewEvidence, criterion_standing, criterion_standing_text, review_verdict_instruction,
Expand Down Expand Up @@ -46,7 +45,7 @@ import gunbc.roadmap_launch_admission {
LaunchRefusal,
LaunchNoActuatingInstance, LaunchInstanceActuationRefused, LaunchTransitionInhibited, LaunchRevisionUnobserved,
LaunchAuthorityUnobserved, LaunchNodeUnknown, LaunchNodeSuperseded, LaunchAlreadyAccepted, LaunchReviewRequired,
LaunchSizeMissing, LaunchExecutionContractMissing, LaunchNotAgentWork, LaunchDependenciesBlocked, LaunchSessionsUnobservable,
LaunchDispatchBindingMissing, LaunchExecutionContractMissing, LaunchNotAgentWork, LaunchDependenciesBlocked, LaunchSessionsUnobservable,
LaunchAlreadyLive, LaunchStaleSession, LaunchLivenessUnobserved, LaunchSessionMultiplicityConflict,
LaunchNoCapacity, LaunchCauseNotPermitted, LaunchGateNotEvaluated,
LaunchAdmission, LaunchAdmitted, LaunchRefused,
Expand Down Expand Up @@ -194,7 +193,7 @@ import gunbc.worker_lifecycle {
transcript_evidence_label,
terminal_outcome_evidence_label,
}
import gunbc.dispatch_selection { default_provider_selection_request }
import gunbc.dispatch_selection { default_provider_selection_request, SizingProfileExpectation, NoDerivedSizingExpectation, sizing_profile_expectation }
import gunbc.host_layout { srv1_gunbc_repo_root, belt_spawn_workdir_env_var, instance_receipts_dir }
import gunbc.deploy_transition {
ActuationAdmission,
Expand Down Expand Up @@ -1748,7 +1747,9 @@ fn belt_actuate_spawn_for_instance(
launch: launch,
}
EnvironmentAdmitted { receipts, validation_summary } => {
let selection = dispatch_actuator_selection(node_sizing: node.sizing)
let selection = dispatch_actuator_selection(
sizing_expectation: sizing_profile_expectation(d: node_sizing_derivation(rn: node)),
)
match selection {
DispatchActuatorSelectionRefused { reason } =>
SpawnFailed {
Expand Down Expand Up @@ -2095,7 +2096,9 @@ fn belt_actuate_spawn(node: RoadmapNode, probed_at: String, workdir: String, lau
launch: launch,
}
EnvironmentAdmitted { receipts, validation_summary } => {
let selection = dispatch_actuator_selection(node_sizing: node.sizing)
let selection = dispatch_actuator_selection(
sizing_expectation: sizing_profile_expectation(d: node_sizing_derivation(rn: node)),
)
match selection {
DispatchActuatorSelectionRefused { reason } =>
SpawnFailed {
Expand Down Expand Up @@ -2357,7 +2360,7 @@ fn belt_observe_from_result(
BeltSessionsObserved {
live: dispatch_live_sessions_from_entries(
entries: entries,
selection: dispatch_actuator_selection(node_sizing: Unsized),
selection: dispatch_actuator_selection(sizing_expectation: NoDerivedSizingExpectation),
),
}
TmuxNoServer { evidence: _ } =>
Expand Down Expand Up @@ -3736,7 +3739,7 @@ fn belt_sessions_observe_for_instance(
entries: entries,
panes: panes,
pane_observation_refusal: "",
selection: dispatch_actuator_selection(node_sizing: Unsized),
selection: dispatch_actuator_selection(sizing_expectation: NoDerivedSizingExpectation),
),
}
BeltAttemptPanesRefused { reason } =>
Expand All @@ -3745,7 +3748,7 @@ fn belt_sessions_observe_for_instance(
entries: entries,
panes: [],
pane_observation_refusal: reason,
selection: dispatch_actuator_selection(node_sizing: Unsized),
selection: dispatch_actuator_selection(sizing_expectation: NoDerivedSizingExpectation),
),
}
}
Expand Down Expand Up @@ -5748,7 +5751,7 @@ fn belt_stop_node_for_instance(
BeltSessionsObserved { live } => {
match dispatch_tmux_session_scope(
node_id: node_id,
selection: dispatch_actuator_selection(node_sizing: Unsized),
selection: dispatch_actuator_selection(sizing_expectation: NoDerivedSizingExpectation),
) {
Absent =>
StopRefusedResult {
Expand Down Expand Up @@ -6434,7 +6437,7 @@ fn launch_refusal_band(r: LaunchRefusal) -> DispatchBand {
LaunchNodeSuperseded { by: _ } => BandFail
LaunchAlreadyAccepted => BandFail
LaunchReviewRequired => BandFail
LaunchSizeMissing => BandFail
LaunchDispatchBindingMissing => BandFail
LaunchExecutionContractMissing { reason: _ } => BandFail
LaunchNotAgentWork { mode: _ } => BandFail
LaunchDependenciesBlocked { blockers: _ } => BandFail
Expand Down Expand Up @@ -6552,7 +6555,7 @@ data belt_dispatch_path_prefix: String = "/dispatch/"
// at construction time, so exemplars, sandbox echoes and post-selection receipts stay honest when
// standing refuses production re-query.
fn belt_dispatch_provider_label() -> String {
match dispatch_actuator_selection(node_sizing: Unsized) {
match dispatch_actuator_selection(sizing_expectation: NoDerivedSizingExpectation) {
DispatchActuatorSelectionOk { provider, effort: _, model: _, process_fingerprint: _ } =>
dispatch_provider_label(provider: provider)
DispatchActuatorSelectionRefused { reason } =>
Expand Down
59 changes: 31 additions & 28 deletions dag/gunbc/roadmap/roadmap_dispatch_actuator.dag
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,12 @@ import std.upsert_decision {
}
import gunbc.roadmap_model {
RoadmapNode, RoadmapNodeId,
Intricacy,
IntricacyLow,
IntricacyMedium,
IntricacyHigh,
Volume,
VolumeSmall,
VolumeMedium,
VolumeLarge,
NodeSizing,
Sized,
Unsized,
}
import gunbc.roadmap_spawner { dispatch_brief_template, node_title }
NotDispatchable,
Dispatchable,
node_sizing_derivation,
}
import gunbc.roadmap_spawner { dispatch_brief_template }
import gunbc.roadmap_status { node_title }
import gunbc.roadmap.roadmap_attempt_continuation { AttemptOrigin, FreshFromBase, attempt_origin_base_ref, continuation_brief_prefix }
import gunbc.dispatch_pipe_pane_emit {
PipePaneEmission,
Expand Down Expand Up @@ -108,6 +101,10 @@ import gunbc.dispatch_selection {
DispatchExecutionReceipt,
DispatchSelectionResolved,
DispatchSelectionRefused,
SizingProfileExpectation,
NoDerivedSizingExpectation,
DerivedSizingExpectation,
sizing_profile_expectation,
default_provider_selection_request,
provider_selection_request_for_kind,
dispatch_selection_for_instance,
Expand Down Expand Up @@ -342,15 +339,21 @@ fn dispatch_harness_selection() -> DispatchActuatorSelection {
}
}

fn dispatch_actuator_selection(node_sizing: NodeSizing) -> DispatchActuatorSelection {
// WHAT THESE SELECTORS TAKE IS AN EXPECTATION, NOT A SIZE. The parameter used to be a hand-authored
// NodeSizing read off the roadmap node; it is now gunbc.dispatch_selection
// SizingProfileExpectation, which a caller with a task derives from that task and a caller without
// one (a harness probe) states as absent. The harness arm ignores it for the same reason it always
// did -- there is one harness and nothing to choose -- and says so here rather than leaving a silent
// unused parameter.
fn dispatch_actuator_selection(sizing_expectation: SizingProfileExpectation) -> DispatchActuatorSelection {
dispatch_harness_selection()
}

fn dispatch_actuator_vendor_selection(node_sizing: NodeSizing) -> DispatchActuatorSelection {
fn dispatch_actuator_vendor_selection(sizing_expectation: SizingProfileExpectation) -> DispatchActuatorSelection {
match dispatch_selection_for_instance(
instance: srv1_live_dashboard_instance(),
request: default_provider_selection_request(),
node_sizing: node_sizing,
sizing_expectation: sizing_expectation,
) {
DispatchSelectionResolved { receipt } =>
DispatchActuatorSelectionOk {
Expand All @@ -359,7 +362,7 @@ fn dispatch_actuator_vendor_selection(node_sizing: NodeSizing) -> DispatchActuat
model: resolved_model_selection(resolved: receipt.resolved_selection),
process_fingerprint: resolved_process_fingerprint(resolved: receipt.resolved_selection),
}
DispatchSelectionRefused { node_sizing: _, requested_selection: _, reason } =>
DispatchSelectionRefused { sizing_expectation: _, requested_selection: _, reason } =>
DispatchActuatorSelectionRefused { reason: reason }
}
}
Expand All @@ -371,7 +374,7 @@ fn dispatch_actuator_vendor_selection(node_sizing: NodeSizing) -> DispatchActuat
// path instead.
fn dispatch_actuator_selection_for_provider(
provider: DispatchCliProvider,
node_sizing: NodeSizing,
sizing_expectation: SizingProfileExpectation,
) -> DispatchActuatorSelection {
match dispatch_cli_to_provider_kind(provider: provider) {
DispatchExecutorHasNoVendorKind { executor: e } =>
Expand All @@ -387,7 +390,7 @@ fn dispatch_actuator_selection_for_provider(
request: provider_selection_request_for_kind(
kind: vendor_kind,
),
node_sizing: node_sizing,
sizing_expectation: sizing_expectation,
) {
DispatchSelectionResolved { receipt } =>
DispatchActuatorSelectionOk {
Expand All @@ -396,7 +399,7 @@ fn dispatch_actuator_selection_for_provider(
model: resolved_model_selection(resolved: receipt.resolved_selection),
process_fingerprint: resolved_process_fingerprint(resolved: receipt.resolved_selection),
}
DispatchSelectionRefused { node_sizing: _, requested_selection: _, reason } =>
DispatchSelectionRefused { sizing_expectation: _, requested_selection: _, reason } =>
DispatchActuatorSelectionRefused { reason: reason }
}
}
Expand Down Expand Up @@ -603,7 +606,7 @@ fn dispatch_provider_instance_for_kind(
// The alternative was to invent one so the shape stayed populated, which would put a fabricated
// vendor row into every session observation downstream.
fn dispatch_provider_instance() -> ProviderInstance? {
match dispatch_actuator_selection(node_sizing: Unsized) {
match dispatch_actuator_selection(sizing_expectation: NoDerivedSizingExpectation) {
DispatchActuatorSelectionOk { provider, effort: _, model: _, process_fingerprint: _ } =>
match dispatch_cli_to_provider_kind(provider: provider) {
DispatchProviderKindIs { kind: k } =>
Expand Down Expand Up @@ -638,7 +641,7 @@ fn dispatch_worker_observation() -> WorkerObservation? {
}

fn dispatch_applied_effort() -> ReasoningEffort? {
match dispatch_actuator_selection(node_sizing: Unsized) {
match dispatch_actuator_selection(sizing_expectation: NoDerivedSizingExpectation) {
DispatchActuatorSelectionOk { provider: _, effort, model: _, process_fingerprint: _ } =>
Present { value: effort }
DispatchActuatorSelectionRefused { reason: _ } => none
Expand All @@ -648,7 +651,7 @@ fn dispatch_applied_effort() -> ReasoningEffort? {
fn dispatch_provider_process_fingerprint(provider: DispatchCliProvider) -> NonEmptyStr? {
match dispatch_actuator_selection_for_provider(
provider: provider,
node_sizing: Unsized,
sizing_expectation: NoDerivedSizingExpectation,
) {
DispatchActuatorSelectionOk { provider: _, effort: _, model: _, process_fingerprint } =>
Present { value: process_fingerprint }
Expand Down Expand Up @@ -1567,8 +1570,8 @@ fn dispatch_brief_fields_for_environment(
contract: node.execution,
environment: environment,
)
match node.sizing {
Sized { intricacy, volume, repo, acceptance: _ } => {
match node.dispatch {
Dispatchable { repo, acceptance: _ } => {
let f = dispatch_slot_fields(node: node, repo: repo)
DispatchBriefFields {
node_id: f.node_id,
Expand All @@ -1583,7 +1586,7 @@ fn dispatch_brief_fields_for_environment(
expected_artifact: "implementation diff plus receipts from the declared validation operations",
}
}
Unsized => {
NotDispatchable => {
let f = dispatch_slot_fields(node: node, repo: "")
DispatchBriefFields {
node_id: f.node_id,
Expand Down Expand Up @@ -2492,9 +2495,9 @@ fn dispatch_spawn_commands_for_inventory(
match resolve_dispatch_selection(
inventory: inventory,
request: request,
node_sizing: node.sizing,
sizing_expectation: sizing_profile_expectation(d: node_sizing_derivation(rn: node)),
) {
DispatchSelectionRefused { node_sizing: _, requested_selection: _, reason } =>
DispatchSelectionRefused { sizing_expectation: _, requested_selection: _, reason } =>
DispatchSpawnRefused {
step: "dispatch-selection" as NonEmptyStr,
detail: reason as String,
Expand Down
19 changes: 11 additions & 8 deletions dag/gunbc/roadmap/roadmap_dispatch_destination.dag
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import extdeps.languages.json.emit {
serialize_json,
}
import gunbc.repository { gunbc_repository }
import gunbc.roadmap_model { RoadmapNode, NodeSizing, Sized, Unsized }
import gunbc.roadmap_model { RoadmapNode, WorkItemDispatch, Dispatchable, NotDispatchable }
import gunbc.roadmap_model { RoadmapNodeIdentity }
import extdeps.git.object_store { GitObjectId }
import gunbc.merge_admission_subject { render_git_object_id_wire, parse_git_object_id_wire }
Expand All @@ -28,8 +28,11 @@ import std.dissolution { unbound_dissolution }
import std.decl_ref { decl_ref }

// A dispatch's destination is a per-NODE fact. The slug is a String: "gunbc" or owner/name.
// It is read from NodeSizing.repo. destination_from_sizing matches Sized/Unsized.
// The resolver itself does not change. After #10994 lands, this fold binds WorkItemDispatch.
// It is read from the node's WorkItemDispatch: destination_from_dispatch matches Dispatchable,
// whose repo slug is the destination, against NotDispatchable, which has none. The resolver
// itself did not change when #10994 unbundled the carrier -- only what the fold reads did.
// Sizing is no longer part of this question at all: a node's destination never depended on
// intricacy or volume, which is precisely why the unbundling could separate them.
//
// THIS MODULE NAMES NO PRIVATE REPOSITORY. A node whose work lives elsewhere supplies its
// own owner/name via the repo slug; the public authority only knows gunbc_repository as an
Expand Down Expand Up @@ -165,19 +168,19 @@ fn repository_from_repo_slug(repo: String) -> DispatchDestination {
}
}

fn destination_from_sizing(sizing: NodeSizing) -> DispatchDestination {
match sizing {
Unsized =>
fn destination_from_dispatch(dispatch: WorkItemDispatch) -> DispatchDestination {
match dispatch {
NotDispatchable =>
DispatchDestinationMissing {
reason: "the node carries no dispatch binding, so it has no destination repository" as NonEmptyStr,
}
Sized { repo, intricacy: _, volume: _, acceptance: _ } =>
Dispatchable { repo, acceptance: _ } =>
repository_from_repo_slug(repo: repo)
}
}

fn node_dispatch_destination(node: RoadmapNode) -> DispatchDestination {
destination_from_sizing(sizing: node.sizing)
destination_from_dispatch(dispatch: node.dispatch)
}

// Destination identity and spawn actuation are different facts. repository_from_repo_slug
Expand Down
Loading
Loading