[self-care:server-go-logging] Extract ADX visibility digest comparison with diagnostic logging
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 62/100
- issue の種類
- リファクタリング
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- go
調査の方向性
server/internal/adxingest/client.go から始め、特に Client.Verify と提案されている checkVisibleDigests 関数に注目します。挙げられたすべての可視性の失敗モードについて直接的な単体テストを確認してから、go -C server test ./... を実行します。Verify の動作が変更前と同一であり、診断ログには固定された理由コードとカウントだけが公開され、全テストスイートが成功した場合に完了とします。
索引モデルが issue の本文から書いたものです。
説明
Extracts the ADX projection visibility comparison from Client.Verify into checkVisibleDigests in server/internal/adxingest/client.go. Behavior is unchanged, and the comparison now has debug logging and direct unit tests.
Action: Reviewer should confirm Verify is behavior-identical and that the new tests cover each visibility-failure mode; acceptance is a green go -C server test ./....
Summary
- Subsystem:
server/internal/adxingest(next afterinternal/admission/service.goin the stable path rotation; earlier files had recently been refactored). - Refactor boundary: the post-query step of
Verify(decode Table/RowDigest rows, sort, compare against expectedtable:digestentries) is now a pure function. The one intentional internal difference is that sorting no longer reorders the caller'sexpectedslice; it was local toVerify, so there is no observable change. - Diagnostics: three
cao:adx:clientdebug logs, reusing the existing package logger, one per failure reason (unexpected_shape,non_string_cell,digest_mismatch). Each logs only fixed reason codes and integer counts. Nothing logged is secret, user-authored, or a raw row, digest, table name, or URL. Logging is off by default and has no effect on control flow.
Tests added
TestCheckVisibleDigests runs real values through the production function. Cases:
- exact match, order independence, unsorted expected
- nothing expected or visible
- missing, unexpected, wrong-digest and wrong-table rows
- short and extra-column rows
- non-string table and digest cells
TestCheckVisibleDigestsDoesNotReorderExpected verifies the caller's slice is untouched. No mocks, fakes, or stubs.
Validation
gofmt -l server/internal/adxingest: cleango -C server vet ./...: cleango -C server test ./...: all packages pass- Diff scanned for secrets: none
Control Plane
- Correlation ID:
46139721156-5007 - Central repository:
githubnext/gh-cao - Control plane run: https://github.com/githubnext/gh-cao/actions/runs/46139721156
[!NOTE]
This was originally intended as a pull request, but the git push operation failed.Original error: ERR_VALIDATION: pushSignedCommits: refusing unsigned push for branch 'self-care/server-go-logging-adx-visibility-14b1bd465a4945b9': GitHub did not verify the initial commit signature; refusing to publish branch 'self-care/server-go-logging-adx-visibility-14b1bd465a4945b9'
Workflow Run: View run details and download bundle artifact
The bundle file is available in the
agentartifact in the workflow run linked above.
Create the pull request manually
# Download the artifact from the workflow run
gh run download '46140098759' -n agent -D '/tmp/agent-46140098759'
# Resolve the bundle source ref, fetch it into a temporary ref, then create the local branch
bundle_path='/tmp/agent-46140098759/aw-githubnext-gh-cao-self-care-server-go-logging-adx-visibility.bundle'
temp_ref='refs/bundles/create-pr-self-care-server-go-logging-adx-visibility-14b1bd465a4945b9-0d9f8b97'
target_ref='refs/heads/self-care/server-go-logging-adx-visibility-14b1bd465a4945b9'
bundle_source_ref=$(git bundle list-heads "$bundle_path" | awk '$2 ~ /^refs\/heads\// { print $2 }')
if [ -z "$bundle_source_ref" ]; then
bundle_source_ref=$(git bundle list-heads "$bundle_path" | awk '$2 == "HEAD" { print $2 }')
fi
if [ "$(printf '%s\n' "$bundle_source_ref" | sed '/^$/d' | wc -l | tr -d ' ')" != "1" ]; then
echo "Expected exactly one bundle source ref, found: $bundle_source_ref" >&2
exit 1
fi
git fetch "$bundle_path" "${bundle_source_ref}:${temp_ref}"
git update-ref "$target_ref" "$temp_ref"
git checkout 'self-care/server-go-logging-adx-visibility-14b1bd465a4945b9'
# Ensure the working tree matches the updated branch
git reset --hard
# Remove the temporary bundle ref
git update-ref -d "$temp_ref"
# Push the branch to the target remote
git push 'origin' 'self-care/server-go-logging-adx-visibility-14b1bd465a4945b9'
# Create the pull request
gh pr create --title '[self-care:server-go-logging] Extract ADX visibility digest comparison with diagnostic logging' --base 'main' --head 'self-care/server-go-logging-adx-visibility-14b1bd465a4945b9' --repo 'githubnext/gh-cao'
Generated by SelfCare / Server Go Logging · copilot · routed: sonnet55 high · ~72 AIC · ⌖ ~2 AIC · ⊞ 9.1K · history
- expires on Dec 5, 2026, 11:40 AM UTC
- 主要言語
- JavaScript
- スター
- 23
- フォーク
- 8
- 平均マージ
- 7時間 18分
- マージ済み PR(30日)
- 426
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
githubnext/gh-cao のほかの issue
-
agentic-workflows self-care self-care:dashboard-debug-logging
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
githubnext/gh-cao#21781 ·
メンテナーはふだん 1 日以内に返信
-
agentic-workflows self-care self-care:dashboard-debug-logging
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
githubnext/gh-cao#21768 ·
メンテナーはふだん 1 日以内に返信
-
repo-assist repo-assist:maintenance
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
githubnext/gh-cao#21758 ·
メンテナーはふだん 1 日以内に返信
-
agentic-workflows pull-request-fallback self-care self-care:reactive-ui-expert
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
githubnext/gh-cao#21740 ·
メンテナーはふだん 1 日以内に返信
-
agentic-workflows pull-request-fallback self-care self-care:reactive-ui-expert
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
githubnext/gh-cao#21728 ·
メンテナーはふだん 1 日以内に返信
githubnext/gh-cao の issue をすべて見る
似ている issue
-
Bug Nethernet Tests
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
JSPrismarine/JSPrismarine#3949 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
Jason-Vaughan/TangleClaw#3360 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
documentation good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
OWASP/cve-lite-cli#1880 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
MetaMask/eth-phishing-detect#317371 ·
メンテナーはふだん 1 日以内に返信
-
Docs: explain the Human Eval YAML export and connect viewer ratings to the LLM judge calibration guide対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信