Skip to content

Batch estates (#3806): metadata-only candidate list and target draw rounds - #6317

Merged
squid-protocol merged 3 commits into
mainfrom
churn/3806-20261024T0032Z
Oct 24, 2026
Merged

squid-protocol merged 3 commits into
mainfrom
churn/3806-20261024T0032Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #3806. Checklist: partial [c:143e6adc] (candidate list and target rounds done; the draw itself runs on the target rounds, after this merges).

Owner decisions

Owner OK (2026-10-23, answered via Claude): approve the metadata-only draw per the pre-registration. Condition (LLC, commercial use): record each drawn estate's licence and tier BEFORE any code is read or anything is published. Breadth-stage priority.

What this does

  • estate4_draw.py build --kind batch --approved-by-owner ran (metadata endpoints only, 0 content endpoints in the request log; the committed-log test checks it). 9638 COBOL repos -> 37 eligible (179 passed rules 4-5 and 154 passed 6-7 before rule 8). Total weight 110. Every candidate's licence (MIT / Apache-2.0 / BSD-3-Clause) is on the page.
  • estate_batch_candidates.md: filter counts, table, candidates-file hash, target rounds 6589046 / 6589047 / 6589048 (2026-10-27 12:00:00-12:01:00 UTC). Fixed after the list was built and before any draw, so the draw cannot be steered by the list.
  • The draw is NOT run here: a drand round in the future is the pre-registered mechanism, and the candidates hash is fixed by this commit. A follow-up fills the "Draw record" table (winner, sha, licence, tier) before anyone reads code.
  • draw --exclude OWNER/NAME (repeatable) for without-replacement successive rounds, with a test (seed still hashes the full file).
  • Pre-registration section 0 (a) marked answered.

Open (for the owner)

  • Two-or-three estates: I fixed three rounds; the trial uses them in order, so stopping at two costs nothing.
  • "Tier": read as the draw-weight tier (foreign / hard / weight), the only tier metadata the tool holds. Say if another tier was meant.
  • Three mirror pairs sit in the list (identical counts); the page declares that a mirror of an earlier winner is skipped and the next round replaces it.

Class / Sibling gaps

Class: the batch-estate draw pipeline (candidate list -> rounds fixed -> draw -> record). Done here: list, rounds, --exclude, tests. Sibling gaps: the draw run and its record (needs the target time, a follow-up PR); trial start per drawn estate and publication (#3806 later checklist items, blocked on the draw and Q16 licence/publishing hold).

Gates

pr_gates --fast 7/7 pass (ruff run was the pinned 0.17.1 binary); pr_gates --ratchets 9/9 pass; test_estate4_draw.py, test_source_reads.py, test_generated_branch.py pass. Hand-written files: 4 (tool, test, page, pre-registration); the two JSONs are generated and were git add -fed (*.json is ignored).

🤖 Generated with Claude Code

…ounds, draw --exclude

The owner approved the metadata-only draw (2026-10-23). build --kind batch ran
(37 eligible of 9638 COBOL repos, 0 content endpoints); the page fixes rounds
6589046-6589048 (2026-10-27 12:00 UTC). The draw itself has not run.
estate4_draw draw gains --exclude for without-replacement successive rounds.

Part of #3806

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 24, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 24, 2026 01:41
@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #6317 @ 2a2c81a: 2 failed check(s)

== full-suite (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/40050943091/job/120747932168
repro: python -m pytest -q tests
errors:
##[error]Process completed with exit code 1.
log tail:
Commit: f3dc54e1fb89da6852db922499a0233137369e1d
Build Date: 2026-10-12T17:48:21Z
Worker ID: {24a8b99b-1d73-4ed7-987e-8c876a9bad8e}
Region: westus3
Cloud: Azure
##[endgroup]
##[group]Operating System
Ubuntu
24.04.5
LTS
##[endgroup]
##[group]Runner Image
Image: ubuntu-24.04
Version: 20261012.334.1
Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20261012.334/images/ubuntu/Ubuntu2404-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20261012.334
##[endgroup]
##[group]GITHUB_TOKEN Permissions
Contents: read
Metadata: read
##[endgroup]
Secret source: Actions
Cache mode: write
Prepare workflow directory
Prepare all required actions
Complete job name: full-suite
##[group]Run echo "full-suite parts: $PARTS (tested-tree skip: $SKIP, suite plan: $PLAN)"
echo "full-suite parts: $PARTS (tested-tree skip: $SKIP, suite plan: $PLAN)"
# #4935: "skipped" is a pass only when the gate proved this tree green on the PR; otherwise it is a failure.
# #6278: or when the suite plan proved the PR changes only prose no test or engine code opens (mode skip).
test "$PARTS" = "success" || { test "$PARTS" = "skipped" && { test "$SKIP" = "true" || test "$PLAN" = "skip"; }; }
shell: /usr/bin/bash -e {0}
env:
PARTS: failure
SKIP:
PLAN: full
##[endgroup]
full-suite parts: failure (tested-tree skip: , suite plan: full)
##[error]Process completed with exit code 1.
Cleaning up orphan processes

== full-suite part 2/3 (failure) -- main
https://github.com/squid-protocol/gitgalaxy/actions/runs/40050943091/job/120746657903
repro: stale base (main changed these tests since this branch): git merge origin/main
failing tests: tests/tools/test_change_classifier.py::test_the_committed_list_is_fresh
errors:
fail-on-cache-miss: false
E AssertionError: docs_read_by_tests.txt is stale: python tests/tools/change_classifier.py --write
tests/tools/test_change_classifier.py:88: AssertionError
FAILED tests/tools/test_change_classifier.py::test_the_committed_list_is_fresh - AssertionError: docs_read_by_tests.txt is stale: python tests/tools/change_classifier.py --write
##[error]Process completed with exit code 1.
log tail:
env:
PYTHONUTF8: 1
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
OMP_NUM_THREADS: 1
pythonLocation: /opt/hostedtoolcache/Python/3.12.15/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
PYTEST_ADDOPTS: --ignore=tests/cobol_mainframe
##[endgroup]
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-part-2.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 194625
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is e2c126557e19efe3d1eb0afc780e26799f42005aac24ca26dcee8ab79908362b
Finalizing artifact upload
Artifact test-times-part-2 successfully finalized. Artifact ID 12543632276
Artifact test-times-part-2 has been successfully uploaded! Final size is 194625 bytes. Artifact ID is 12543632276
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/40050943091/artifacts/12543632276
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/497da14f-61a8-4ba9-a05f-c095698ef436' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-protocol
squid-protocol enabled auto-merge (squash) October 24, 2026 02:10
@squid-protocol squid-protocol added shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md labels Oct 24, 2026
@squid-protocol squid-protocol removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 24, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (83ba650) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then).

@squid-protocol squid-protocol added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Oct 24, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 24, 2026 02:27
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit 21d595f into main Oct 24, 2026
34 checks passed
@squid-protocol
squid-protocol deleted the churn/3806-20261024T0032Z branch October 24, 2026 02:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant