GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test(qualification): gate live locality journal inventory and retirement · arencloud/unf@3dd7809

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • docs
    • adr
      • 0385-live-journal-inventory-observer.md
    • development
      • phase9-required-locality-plan.md
    • project-status.md
  • hack
    • required-reply-locality.jq
    • required-reply-locality.sh
    • verify-required-reply-inventory.sh
    • verify-required-reply-transport.sh
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎docs/adr/0385-live-journal-inventory-observer.md‎

Copy file name to clipboard
+30Lines changed: 30 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# ADR 0385: Live Journal Inventory Candidate Observer
2+
3+
Date: 2026-09-21
4+
5+
Status: qualifier verified locally; cl02-first runtime gate pending
6+
7+
Extend the existing Required reply gate with opt-in
8+
`UNF_REQUIRED_REPLY_REQUIRE_LOCALITY_INVENTORY=true`. It requires both existing
9+
locality-candidate and CNI UID/nonce ownership gates; it cannot replace either.
10+
The runtime candidate is ADR 0384's committed source `d007071`.
11+
12+
Require fresh observations after each polling stage starts, positive integral
13+
attachment/address/payload counts during Required admission, address counts
14+
covering the dual-stack fixture population, no more than two addresses per
15+
attachment, no more selected addresses than replayed placement, and a logical
16+
payload within the implementation's 16-MiB limit. Native baseline and retirement
17+
must positively report zero for all three counters. HTTP/API errors fail the
18+
run; every failed poll and its exact status remain in evidence.
19+
20+
The counters establish an aggregate candidate-inventory observation, not a
21+
per-record kernel proof, atomic journal/API snapshot or packet-time permission.
22+
Separate real fixture UID/nonce checks, policy denials, ciphertext capture,
23+
traffic and cleanup remain required. The full Phase 9 locality matrix and
24+
production consumer remain open even when this bounded gate passes.
25+
26+
Local validation: four positive and 47 negative inventory cases pass, including
27+
missing/wrong-type/fractional/negative fields, impossible cardinalities, payload
28+
overflow and incomplete retirement. The previous locality gate still passes
29+
two positive and 105 negative cases. Shell syntax checks pass. Live cl02 must
30+
precede independent matching Kind; an unavailable retained cluster is not a pass.
Collapse file

‎docs/development/phase9-required-locality-plan.md‎

Copy file name to clipboardExpand all lines: docs/development/phase9-required-locality-plan.md
+3Lines changed: 3 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ exact address/UID matching, stale-cut checks, bounded selected copies and
149149
candidate-only counts. All 820 workspace tests and strict Clippy pass; no live rollout or
150150
kernel/packet admission is claimed. The retained Kind runtime is unavailable
151151
after the workstation reboot; fresh qualification cannot replace continuity evidence.
152+
ADR 0385 adds the locally verified opt-in live inventory counter/retirement
153+
observer, requiring the existing CNI UID/nonce and locality placement gates.
154+
Its complete cl02-first runtime gate remains pending; counts are not kernel proof.
152155

153156
L3a (ADR 0327) implements runtime Pod-UID capture, versioned durable attachment
154157
ownership and veth incarnation cookies. 778 workspace tests and strict Clippy pass;
Collapse file

‎docs/project-status.md‎

Copy file name to clipboardExpand all lines: docs/project-status.md
+3Lines changed: 3 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -780,6 +780,9 @@ address/UID matching and bounded selected copies. All 820 workspace tests and
780780
strict Clippy pass; cl02-first runtime qualification and kernel/packet consumption remain
781781
pending. The retained Kind runtime is unavailable after the workstation reboot;
782782
no fresh cluster or retained-state pass has been substituted.
783+
ADR 0385 adds the opt-in live journal-inventory observer: four positive and
784+
47 negative local cases pass alongside the existing locality regressions.
785+
The complete cl02 runtime/traffic gate remains pending, followed by Kind.
783786
ADR 0338 closes the staging guard's init-container failure/restart gap before
784787
the matching Kind rollout; no live image changes occur in that metadata slice.
785788
Required locality/replica coverage, full lifecycle requalification and S1–S5
Collapse file

‎hack/required-reply-locality.jq‎

Copy file name to clipboardExpand all lines: hack/required-reply-locality.jq
+20Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,23 @@ def locality_absent_valid:
3535
and .matchesReportedIdentityAndRouting == false
3636
and .kernelAdmitted == false and .observedDelivery == false
3737
and .dataplaneReady == true;
38+
39+
# Candidate counters only: never substitute these for per-attachment kernel
40+
# proof or for the separate API UID/nonce ownership gate.
41+
def locality_inventory_valid($minimum_addresses):
42+
try (
43+
.observation as $o
44+
| ([$o.journalSelectedAttachments, $o.journalSelectedAddresses,
45+
$o.journalSelectedPayloadBytes]
46+
| all(.[]; type == "number" and . > 0 and . == floor))
47+
and $o.journalSelectedAddresses >= $minimum_addresses
48+
and $o.journalSelectedAddresses <= $o.localAddresses
49+
and $o.journalSelectedAttachments <= $o.journalSelectedAddresses
50+
and $o.journalSelectedAddresses <= (2 * $o.journalSelectedAttachments)
51+
and $o.journalSelectedPayloadBytes <= 16777216
52+
) catch false;
53+
54+
def locality_inventory_absent_valid:
55+
.observation.journalSelectedAttachments == 0
56+
and .observation.journalSelectedAddresses == 0
57+
and .observation.journalSelectedPayloadBytes == 0;
Collapse file

‎hack/required-reply-locality.sh‎

Copy file name to clipboardExpand all lines: hack/required-reply-locality.sh
+12-1Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/usr/bin/env bash
22
# Sourced by the reply gate. Read-only candidate observation, not packet proof.
33
required_reply_locality_wait() {
4-
local mode=$1 deadline=$((SECONDS+120)) attempt=0 attempt_dir node pod uid minimum valid
4+
local mode=$1 deadline=$((SECONDS+120)) attempt=0 attempt_dir node pod uid minimum valid observed_after
5+
observed_after=$(date +%s%3N)
56
local -a records
67
while (( SECONDS < deadline )); do
78
attempt=$((attempt+1))
@@ -27,6 +28,16 @@ required_reply_locality_wait() {
2728
if ! jq -L "$project_root/hack" -e 'include "required-reply-locality"; locality_absent_valid' \
2829
"$attempt_dir/$node-status.json" > "$attempt_dir/$node-check.json"; then valid=false; fi
2930
fi
31+
if [[ ${require_locality_inventory:-false} == true ]]; then
32+
minimum=2; [[ $node != "$source_node" ]] || minimum=4
33+
if ! jq -L "$project_root/hack" -e --arg mode "$mode" \
34+
--argjson minimum "$minimum" --argjson observed_after "$observed_after" '
35+
include "required-reply-locality";
36+
.observation.observedAtUnixMs >= $observed_after
37+
and (if $mode == "required" then locality_inventory_valid($minimum)
38+
else locality_inventory_absent_valid end)
39+
' "$attempt_dir/$node-status.json" > "$attempt_dir/$node-inventory-check.json"; then valid=false; fi
40+
fi
3041
records+=("$attempt_dir/$node-status.json")
3142
done
3243
if [[ $valid == true ]]; then
Collapse file

‎hack/verify-required-reply-inventory.sh‎

Copy file name to clipboard
+28Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/usr/bin/env bash
2+
set -Eeuo pipefail
3+
project_root=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)
4+
jq -n -L "$project_root/hack" '
5+
include "required-reply-locality";
6+
{observation:{localAddresses:8,journalSelectedAttachments:2,
7+
journalSelectedAddresses:4,journalSelectedPayloadBytes:1024}} as $valid
8+
| {observation:{journalSelectedAttachments:0,journalSelectedAddresses:0,
9+
journalSelectedPayloadBytes:0}} as $absent
10+
| [($valid|locality_inventory_valid(4)),
11+
($valid|.observation.journalSelectedPayloadBytes=16777216|locality_inventory_valid(4)),
12+
($valid|.observation.journalSelectedAddresses=3|locality_inventory_valid(2)),
13+
($absent|locality_inventory_absent_valid)] as $positive
14+
| ["journalSelectedAttachments","journalSelectedAddresses","journalSelectedPayloadBytes"] as $fields
15+
| [ $fields[] as $field | [null,false,true,"4",{},[],-1,0,1.5][] as $bad
16+
| $valid | .observation[$field]=$bad | locality_inventory_valid(4) ] as $types
17+
| [ $valid | (.observation.journalSelectedAttachments=5),
18+
(.observation.journalSelectedAddresses=5), (.observation.localAddresses=3),
19+
(.observation.journalSelectedPayloadBytes=16777217),
20+
(.observation.journalSelectedAddresses=2)
21+
| locality_inventory_valid(4) ] as $bounds
22+
| [ $fields[] as $field | [null,false,"0",1,-1][] as $bad
23+
| $absent | .observation[$field]=$bad | locality_inventory_absent_valid ] as $retirement
24+
| ($types+$bounds+$retirement) as $negative
25+
| if all($positive[]; .==true) and all($negative[]; .==false)
26+
then {result:"passed",positiveCases:($positive|length),negativeCases:($negative|length)}
27+
else error("journal inventory observer accepted invalid counters") end
28+
'
Collapse file

‎hack/verify-required-reply-transport.sh‎

Copy file name to clipboardExpand all lines: hack/verify-required-reply-transport.sh
+7-1Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ require_cni_ownership=${UNF_REQUIRED_REPLY_REQUIRE_CNI_OWNERSHIP:-false}
1616
[[ $require_cni_ownership == true || $require_cni_ownership == false ]]
1717
require_locality_candidate=${UNF_REQUIRED_REPLY_REQUIRE_LOCALITY_CANDIDATE:-false}
1818
[[ $require_locality_candidate == true || $require_locality_candidate == false ]]
19+
require_locality_inventory=${UNF_REQUIRED_REPLY_REQUIRE_LOCALITY_INVENTORY:-false}
20+
[[ $require_locality_inventory == true || $require_locality_inventory == false ]]
21+
if [[ $require_locality_inventory == true ]]; then
22+
[[ $require_locality_candidate == true && $require_cni_ownership == true ]]
23+
fi
1924
[[ -z $(git -C "$project_root" status --porcelain) ]]
2025
git -C "$project_root" merge-base --is-ancestor "$UNF_REQUIRED_REPLY_RUNTIME_REVISION" HEAD
2126
context=${KUBE_CONTEXT:-$(kubectl --kubeconfig "$KUBECONFIG" config current-context)}
@@ -287,7 +292,8 @@ if [[ $require_locality_candidate == true ]]; then
287292
stage=locality-native-retirement
288293
required_reply_locality_wait native
289294
jq -n --slurpfile candidate "$directory/locality-required.json" --slurpfile retired "$directory/locality-native.json" \
290-
'{scope:"placement-candidate-only",replayedAgents:($candidate[0]|length),retiredAgents:($retired[0]|length),kernelAdmitted:false,observedDelivery:false}' > "$directory/locality-candidate.json"
295+
--argjson inventory "$require_locality_inventory" \
296+
'{scope:"placement-candidate-only",replayedAgents:($candidate[0]|length),retiredAgents:($retired[0]|length),journalInventoryCountsVerified:$inventory,kernelAdmitted:false,observedDelivery:false}' > "$directory/locality-candidate.json"
291297
else
292298
printf 'null\n' > "$directory/locality-candidate.json"
293299
fi

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.