Repository navigation
feat(spans): weekly fleet span summary on a Family Wiki page (#2899) - #2930
Merged
Merged
Conversation
scripts/spans-weekly.py folds the hub's daily span-view records for the previous Monday-Sunday (KST) into one Markdown section (per-node table with cost USD, fleet total, top-5 failing tools, provisional big-change rules, gaps with reason codes; one 「수집 없음」 line when nothing was collected) and adds it to pages/services/span-rollup.md via wiki-agent write-path -> edit -> wiki-agent pr. Per-week marker gate, 12 newest weeks with a digest line, older weeks moved to a yearly archive, catch-up retry, --dry-run prints Markdown only. install-spans-weekly-timer.sh: Monday 05:00 hub timer, dry-run by default. Rollup wiki-candidate suggested-path moves to pages/services/span-rollup.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jinon86
approved these changes
Nov 27, 2026
jinon86
left a comment
Contributor
There was a problem hiding this comment.
Approved after exact-head validation and fresh operator authorization using the relay-held jinon86 credential.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #2899 (implementation of the finalized design; owner decision 2026-11-27: page
pages/services/span-rollup.md, cost USD column included).변경
scripts/spans-weekly.py— 허브의 spans-view 수집 기록(<state>/spans-view/data/<날짜>/<노드>.json,_status.json)만 읽어 직전 월~일(KST) 한 주를 Markdown 절 하나로 만든다. 노드 접속 없음.--error-rate-pp/--turns-low/--turns-high또는CCC_SPANS_WEEKLY_*)no-run,no-result,no-folder,ssh-255,record-invalid…)?, 60자) 코드 스팬 안에 둔다 → 표·마커 주입 불가. 절 24 KiB 상한. 타임스탬프 없음 → 같은 입력이면 같은 출력<!-- span-weekly:YYYY-Www -->; 같은 주가 페이지나 그 해 보관 페이지에 있으면 아무것도 안 함(PR 없음). 최신 12주 최신순, 맨 위에이전트 다이제스트한 줄(최신 주), 더 오래된 주는pages/services/span-rollup-archive-<ISO 연도>.md로 이동. 새 페이지의[DOC-N]은 work-board와 같은 규칙으로 워크트리에서 부여. 생성기가 만들지 않은 기존 페이지·symlink 대상·더러운 워크트리는 손대지 않고 중단wiki-agent write-path→ 쓰기 →wiki-agent pr(기존 게이트).--catch-up N(기본 1)으로 PR이 실패한 주를 다음 주 실행에서 다시 넣는다.--dry-run은 Markdown만 출력(워크트리 안 엶)scripts/install-spans-weekly-timer.sh— 허브 타이머 하나(월 05:00 Asia/Seoul: 04:30 일일 수집(900 s 상한) 뒤, 같은 wiki-agent 워크트리를 쓰는 05:30 work-board 전; 1500 s 상한,detached_jobs.py있으면 실패 즉시 알림). 기본 dry-run,--apply,--uninstallscripts/spans-rollup.py— 롤업 wiki-candidatesuggested-path:pages/fleet/span-rollup.md→pages/services/span-rollup.mdscripts/spans_weekly_test.py(CI 목록에 추가),scripts/install-spans-weekly-timer.test.sh,docs/bridge-ops.md절,changelog.d/2899-spans-weekly-wiki.md검증 (로컬)
python -m pytest -q scripts/spans_weekly_test.py scripts/spans_view_test.py scripts/spans_rollup_test.py tests/test_scripts_test_collection.py tests/test_changelog_fragments.py→ 151 passedbash scripts/install-spans-weekly-timer.test.sh→ PASS=17 FAIL=0shellcheck -S warning(새 셸 2개) → cleanruff check .→ All checks passedbash scripts/canon-node-name-scan.sh --repo-wide→ ok (baseline 일치)python3 scripts/changelog_fragments.py check→ okCCC_HARNESS_PHASE=static bash scripts/validate-harness.sh→ PASS범위 밖 / 남은 것
--apply)는 별도 오너 승인. 이 PR은 아무 노드에도 설치하지 않는다metrics/span-rollup후보 등록 끄기는 설계대로 범위 밖scripts/cost-ledger-weekly.py의pages/fleet/cost-ledger.md는 이 이슈 범위가 아니라 그대로 둠🤖 Generated with Claude Code