-
Notifications
You must be signed in to change notification settings - Fork 1
docs: DST accepted-boundaries registry + push-with-retry.sh classification (Amara 19th #3) #347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,186 @@ | ||||||||||||||||||||||||||||||||||||||||
| # DST Accepted Boundaries — Registry | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| **Status:** research-grade registry (pre-v1). Origin: Amara | ||||||||||||||||||||||||||||||||||||||||
| 19th courier ferry, Part 2 correction #3 (retry audit for | ||||||||||||||||||||||||||||||||||||||||
| `tools/git/push-with-retry.sh`) and DST-held minimum bar | ||||||||||||||||||||||||||||||||||||||||
| item #6 from `docs/research/dst-compliance-criteria.md`. | ||||||||||||||||||||||||||||||||||||||||
| Author: architect review. | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| ## 1. What this registry is | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| `docs/research/dst-compliance-criteria.md` §2 item #6 | ||||||||||||||||||||||||||||||||||||||||
| requires: | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| > File / network / time / random / task-scheduling | ||||||||||||||||||||||||||||||||||||||||
| > boundaries are either simulated or explicitly marked as | ||||||||||||||||||||||||||||||||||||||||
| > accepted external boundaries. | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| An **accepted external boundary** is a place where the | ||||||||||||||||||||||||||||||||||||||||
| factory deliberately does not route through the simulation | ||||||||||||||||||||||||||||||||||||||||
| layer because the boundary is genuinely outside our | ||||||||||||||||||||||||||||||||||||||||
| control (external network, operating-system calls, git | ||||||||||||||||||||||||||||||||||||||||
| remote protocol, etc.). Each boundary is listed here with: | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| 1. The code location. | ||||||||||||||||||||||||||||||||||||||||
| 2. The entropy class the boundary crosses. | ||||||||||||||||||||||||||||||||||||||||
| 3. Why simulation is not the right answer for this site. | ||||||||||||||||||||||||||||||||||||||||
| 4. What investigation has already been done. | ||||||||||||||||||||||||||||||||||||||||
| 5. What would trigger revisiting. | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| This is not a loophole. It is the discipline: every | ||||||||||||||||||||||||||||||||||||||||
| un-simulated entropy surface is either on this list with | ||||||||||||||||||||||||||||||||||||||||
| rationale, or it is a DST-held compliance gap. No silent | ||||||||||||||||||||||||||||||||||||||||
| boundary exceptions. | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| ## 2. Registry shape | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| Each entry follows the schema: | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| ```text | ||||||||||||||||||||||||||||||||||||||||
| ### <relative path> | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| - **Entropy class:** <one or more of the 12 DST entropy | ||||||||||||||||||||||||||||||||||||||||
| classes, comma- or `+`-separated when a site genuinely | ||||||||||||||||||||||||||||||||||||||||
| crosses multiple (e.g. a network boundary whose only | ||||||||||||||||||||||||||||||||||||||||
| retry policy is itself a distinct entropy source)> | ||||||||||||||||||||||||||||||||||||||||
| - **Scope:** main-path / tools-path / samples-path / tests-path | ||||||||||||||||||||||||||||||||||||||||
| - **Classification:** ACCEPTED_BOUNDARY | ||||||||||||||||||||||||||||||||||||||||
| - **Rationale:** 1-3 sentences on why simulation does not | ||||||||||||||||||||||||||||||||||||||||
| fit this site. | ||||||||||||||||||||||||||||||||||||||||
| - **Investigation performed:** what was checked before | ||||||||||||||||||||||||||||||||||||||||
| classifying. | ||||||||||||||||||||||||||||||||||||||||
| - **Retry discipline (if applicable):** logging, caps, | ||||||||||||||||||||||||||||||||||||||||
| targeted-only (not blind). | ||||||||||||||||||||||||||||||||||||||||
| - **Revisit triggers:** conditions that would reopen this | ||||||||||||||||||||||||||||||||||||||||
| classification. | ||||||||||||||||||||||||||||||||||||||||
| - **First classified:** YYYY-MM-DD tick reference. | ||||||||||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| ## 3. Entries | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| ### `tools/git/push-with-retry.sh` | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| - **Entropy class:** external network I/O + | ||||||||||||||||||||||||||||||||||||||||
| retry-on-failure (retries are a non-determinism smell | ||||||||||||||||||||||||||||||||||||||||
| per the DST skill). | ||||||||||||||||||||||||||||||||||||||||
| - **Scope:** tools-path (never imported from `src/Core/`; | ||||||||||||||||||||||||||||||||||||||||
| called only by developer / CI scripts wrapping | ||||||||||||||||||||||||||||||||||||||||
| `git push`). | ||||||||||||||||||||||||||||||||||||||||
| - **Classification:** ACCEPTED_BOUNDARY. | ||||||||||||||||||||||||||||||||||||||||
| - **Rationale:** `git push` to `github.com` crosses the | ||||||||||||||||||||||||||||||||||||||||
| factory/GitHub boundary. The HTTP 500s the wrapper | ||||||||||||||||||||||||||||||||||||||||
| retries on are genuinely external transients originating | ||||||||||||||||||||||||||||||||||||||||
| at GitHub's server. Simulation is not applicable — we | ||||||||||||||||||||||||||||||||||||||||
| are not simulating GitHub. Routing through a simulated | ||||||||||||||||||||||||||||||||||||||||
| network would mask the real boundary rather than handle | ||||||||||||||||||||||||||||||||||||||||
| it. | ||||||||||||||||||||||||||||||||||||||||
| - **Investigation performed** (quoted from the script's | ||||||||||||||||||||||||||||||||||||||||
| own header comment block, 2026-04-23): | ||||||||||||||||||||||||||||||||||||||||
| - Local git config clean: no trailing-slash URL bug. | ||||||||||||||||||||||||||||||||||||||||
| - `GIT_TRACE=1 GIT_CURL_VERBOSE=1 git ls-remote origin` | ||||||||||||||||||||||||||||||||||||||||
| confirmed the on-wire URL is correct per Git protocol | ||||||||||||||||||||||||||||||||||||||||
| spec. | ||||||||||||||||||||||||||||||||||||||||
| - HTTP 500 reproduces intermittently on different | ||||||||||||||||||||||||||||||||||||||||
| commands (push / ls-remote), consistent with an | ||||||||||||||||||||||||||||||||||||||||
| external GitHub-server-side transient. | ||||||||||||||||||||||||||||||||||||||||
| - **Retry discipline:** | ||||||||||||||||||||||||||||||||||||||||
| - **Targeted only:** retries ONLY on explicit 5xx | ||||||||||||||||||||||||||||||||||||||||
| patterns (`500 | 502 | 503 | 504 | Internal Server | ||||||||||||||||||||||||||||||||||||||||
| Error | Bad Gateway | Service Unavailable | Gateway | ||||||||||||||||||||||||||||||||||||||||
| Timeout`). Non-transient errors (auth, protected- | ||||||||||||||||||||||||||||||||||||||||
| branch, hook, divergence) propagate immediately. | ||||||||||||||||||||||||||||||||||||||||
| - **Capped:** default 3 attempts; overridable via | ||||||||||||||||||||||||||||||||||||||||
| `GIT_PUSH_MAX_ATTEMPTS`. | ||||||||||||||||||||||||||||||||||||||||
| - **Backoff:** exponential (2s → 4s → 8s default). | ||||||||||||||||||||||||||||||||||||||||
| - **Logged:** each retry emits | ||||||||||||||||||||||||||||||||||||||||
| `push-with-retry: transient 5xx on attempt | ||||||||||||||||||||||||||||||||||||||||
| N/MAX; retrying in Ks...` to stderr; after exhaustion | ||||||||||||||||||||||||||||||||||||||||
| emits `failed after MAX attempts on transient 5xx`. | ||||||||||||||||||||||||||||||||||||||||
| - **Error-text preserved:** `tee "$tmp_stderr"` keeps | ||||||||||||||||||||||||||||||||||||||||
| the full git-push stderr output visible + usable for | ||||||||||||||||||||||||||||||||||||||||
| downstream diagnosis. | ||||||||||||||||||||||||||||||||||||||||
| - **Exit codes distinct:** 0 = success; 1 = all retries | ||||||||||||||||||||||||||||||||||||||||
| exhausted; 2 = env validation failed; N = non-transient | ||||||||||||||||||||||||||||||||||||||||
| error (git push's own code). | ||||||||||||||||||||||||||||||||||||||||
| - **Revisit triggers:** | ||||||||||||||||||||||||||||||||||||||||
| - 5xx rate escalates beyond the "intermittent transient" | ||||||||||||||||||||||||||||||||||||||||
| pattern (sustained 5xx → investigate for GitHub | ||||||||||||||||||||||||||||||||||||||||
| incident or factory config regression before | ||||||||||||||||||||||||||||||||||||||||
| retrying). | ||||||||||||||||||||||||||||||||||||||||
| - Investigation surfaces a new root cause (client-side | ||||||||||||||||||||||||||||||||||||||||
| bug, auth drift, proxy issue). | ||||||||||||||||||||||||||||||||||||||||
| - Factory adopts a simulated remote for offline / | ||||||||||||||||||||||||||||||||||||||||
| isolated-CI mode — the wrapper's behavior should | ||||||||||||||||||||||||||||||||||||||||
| compose with a simulated endpoint when one exists. | ||||||||||||||||||||||||||||||||||||||||
| - **First classified:** 2026-04-23 (initial implementation); | ||||||||||||||||||||||||||||||||||||||||
| formally registered Otto-168 2026-04-24 after Amara 19th- | ||||||||||||||||||||||||||||||||||||||||
| ferry correction #3 audit. | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| ## 4. Pending classifications | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| Boundaries identified by the Amara 19th-ferry entropy- | ||||||||||||||||||||||||||||||||||||||||
| source scan (Part 1 §2) but not yet formally registered: | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| - `DiskBackingStore.fs` (planned, not yet landed in | ||||||||||||||||||||||||||||||||||||||||
| `src/` — referenced here as the target of PR 5 of the | ||||||||||||||||||||||||||||||||||||||||
| 19th-ferry revised roadmap) — will be classified BLOCKER | ||||||||||||||||||||||||||||||||||||||||
| on landing and immediately migrated to SIMULATED via | ||||||||||||||||||||||||||||||||||||||||
| `ISimulationFs` (also planned, not yet landed). The | ||||||||||||||||||||||||||||||||||||||||
| BLOCKER → SIMULATED transition is the PR 5 body of | ||||||||||||||||||||||||||||||||||||||||
| work; this registry entry is the forward-looking | ||||||||||||||||||||||||||||||||||||||||
| placeholder so the accepted-boundary scan has a row to | ||||||||||||||||||||||||||||||||||||||||
| compare against when the code arrives. | ||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+124
to
+132
|
||||||||||||||||||||||||||||||||||||||||
| - `DiskBackingStore.fs` (planned, not yet landed in | |
| `src/` — referenced here as the target of PR 5 of the | |
| 19th-ferry revised roadmap) — will be classified BLOCKER | |
| on landing and immediately migrated to SIMULATED via | |
| `ISimulationFs` (also planned, not yet landed). The | |
| BLOCKER → SIMULATED transition is the PR 5 body of | |
| work; this registry entry is the forward-looking | |
| placeholder so the accepted-boundary scan has a row to | |
| compare against when the code arrives. | |
| - `DiskBackingStore<'K>` already exists in | |
| `src/Core/DiskSpine.fs`; its current entropy boundary is | |
| real filesystem I/O, so this implementation is pending | |
| formal classification as BLOCKER until it is simulated. | |
| The 19th-ferry PR 5 roadmap item refers to the planned | |
| refactor path (`DiskBackingStore.fs` plus | |
| `ISimulationFs`, both not yet landed), not to the | |
| existence of disk-backed storage itself. That future work | |
| is expected to perform the BLOCKER → SIMULATED | |
| transition. |
Copilot
AI
Apr 24, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P1 (xref/doc): The inline code path to the Amara 19th-ferry doc is split across two lines (backtick opens on line 180 and closes on 181). Markdown inline code spans can’t contain newlines, so this will render oddly and makes the path hard to copy/paste. Keep the entire docs/aurora/... path on a single line (or switch to a normal link / reference-style link).
| - Amara 19th ferry — `docs/aurora/2026-04-24-amara-dst- | |
| audit-deep-research-plus-5-5-corrections-19th-ferry.md` | |
| - Amara 19th ferry — `docs/aurora/2026-04-24-amara-dst-audit-deep-research-plus-5-5-corrections-19th-ferry.md` |
Uh oh!
There was an error while loading. Please reload this page.