Repository navigation
Done
Labels
agent-managedCreated/managed by My Feature Engineerfeature:transfer-endpoint-reportConsolidated push/pull endpoint timings, authentication and asset reportingtype:taskImplementation work item from a feature breakdown
Description
Deliverable
Expose the library request-reporting capability through supported CLI commands for #254, using specs/request-reporting.md. No report-specific enable/file options are added.
Acceptance criteria
- Enable automatic plain-text Request report output for supported push/pull commands; --telemetry-verbosity 0 suppresses collection/output and --telemetry-format json emits one consolidated request_report event. (completion)
- Reuse root --log-file append semantics; existing debug/time/metrics flags remain independently opt-in. Add common telemetry controls to docker push. (completion)
- Preserve ordinary stdout payloads and command --json result schemas; reports use stderr and enabled diagnostic logs, never append report fields to operation results. (completion)
- Render Authentication, ordered assets, full actual HTTP methods, repeated attempts, every redirect hop/original/final endpoint, cumulative timings and unambiguous summary counts from the library model only. (completion)
- Emit reports after workers/remote calls settle, progress and telemetry finalize, and result/error/deferred warnings are emitted; retain reports in noninteractive and --no-progress modes. (completion)
- Preserve primary exceptions/cancellation and existing exit behavior; surface sole reporting/export errors nonzero without claiming an acknowledged push or published pull was rolled back. (completion)
- Escape terminal control characters and untrusted values; do not duplicate correlation, counting, collection, sanitization or timing logic in the CLI. (completion)
- Add text/JSON equivalence, output-ordering, stdout isolation, suppression, structured-log, failure/cancellation and sink-failure tests to hosted pytest/Click-minimum selectors. (completion)
- Document actual new/changed Python file/type/callable contracts, including private renderer/adapter code and test helpers. (completion)
Dependencies
Depends on #259 and #260. Parent #254; capture does not authorize implementation.
Validation
Use Click runner and capturing streams to assert exact report rows/timing/counts and write order; cover all supported leaf commands, --no-progress, non-TTY stderr, JSON results, log mirroring and no-network dry runs.
Metadata
Metadata
Assignees
Labels
agent-managedCreated/managed by My Feature Engineerfeature:transfer-endpoint-reportConsolidated push/pull endpoint timings, authentication and asset reportingtype:taskImplementation work item from a feature breakdown
Activity
toddysm commentedon Dec 2, 2026
Issue: #261
Feature: transfer-endpoint-report · Mode: issues-only · Updated: 2026-12-05
Instance: e0d42f4d-89fd-4978-a788-8c13f57bf7c3
Worktree: /Users/toddysm/Documents/Development/regshape-fe-e0d42f4d
Planning format: full
Design source: Reviewed document via merged design PR #265
Design revision: not-applicable for full
Approved revision: owner authorized all review fixes and conditional design merge on 2026-12-02 UTC; fulfilled by merged PR #265 at f8f57a5
Approved design SHA-256: not-applicable for full
Approved scope: Owner requested #261 implementation and instructed autonomous progress after the scope preview. Scope: isolated worktree/branch, implementation, focused tests and directly related documentation, tracking updates and one ready-for-review PR. Hosted CI selected to match preceding delivery items; no merge or cleanup authorized. Owner additionally authorized all review fixes, per-comment fix-SHA replies/resolution and green-CI merge on 2026-12-05; supersedes the prior no-merge restriction. Branch/worktree deletion remains unauthorized.
Planning inventory PR: included-in-full-design-PR #265 (merged); #271 started capability inventory.
Start inventory PR: #271 merged; In progress verified on origin/main at baf894b.
Immediate prerequisites: #259 and #260 completed via merged #274 and #275; native dependencies verified.
Next: Obtain authorization to start #262 integrated validation/default-on readiness, followed by #263 final feature documentation; #254 stays open until remaining required delivery and inventory close-out land. Retain the merged branch/worktree/claim; deletion is not authorized.
{ "evidence_id": "cli-a14c9c6", "item": "https://github.com/toddysm/regshape/issues/261", "pull_request": "https://github.com/toddysm/regshape/pull/276", "owner": "e0d42f4d-89fd-4978-a788-8c13f57bf7c3", "commit": "a14c9c69547a47afdfb63319897c4aac6cba83f5", "observed_at": "2026-12-05T17:13:43.995777+00:00", "actions_policy_id": "normal-hosted", "actions_policy": "Owner-authorized hosted review fixes, individual fix-SHA replies/resolutions and green-CI merge on 2026-12-05; no additional child work or branch/worktree deletion authorized.", "review": { "policy": "hosted-with-local-self-review", "commit": "a14c9c69547a47afdfb63319897c4aac6cba83f5", "scope": [ "six follow-up findings: layout source metadata, result-output diagnostics, shared destination propagation, shutdown flush guards, Click encoding/binary adaptation and immediate timed-telemetry failure sharing", "coupled artifact terminal regression: healthy sinks retain failed/cancelled rows; failed sinks have zero cleanup writes/flushes", "changed source/test contracts and directly related telemetry documentation" ], "findings": [], "disposition": "Two owner findings fixed in 63c0fd2, two Copilot findings in 64f26a7, Click encoding adaptation in 601673a and immediate timed-telemetry sharing in 0bf4039; each has an individual exact-SHA reply and resolved thread. All fifteen known threads resolved. Four source/diagnostic regressions, seven enhanced sink/shutdown cases, five encoding cases and two timed-scenario cases reproduced before their fixes; cancellation coverage also passes. Sanitized layout source verified for real and dry-run pushes; shared/independent/adapted-buffer failures preserve cause, zero destination retries, healthy report delivery and no rollback claims. Local self-review: no findings.", "hosted": "Final-head reviews and checks completed; owner-authorized merge performed.", "copilot_url": "https://github.com/toddysm/regshape/pull/276#pullrequestreview-6204527690", "codex_url": "https://github.com/toddysm/regshape/pull/276#issuecomment-7441838891" }, "commands": [ { "command": ".venv-current/bin/python -m pytest -q src/regshape/tests/test_request_report_cli.py src/regshape/tests/test_download_validation.py src/regshape/tests/test_manifest_cli.py src/regshape/tests/test_manifest_cli_progress.py src/regshape/tests/test_blob_cli.py src/regshape/tests/test_artifact_pull_cli.py --tb=short", "result": "593 passed", "exit_code": 0 }, { "command": ".venv/bin/python -m pytest -q src/regshape/tests/test_request_report_cli.py src/regshape/tests/test_download_validation.py src/regshape/tests/test_manifest_cli.py src/regshape/tests/test_manifest_cli_progress.py src/regshape/tests/test_blob_cli.py src/regshape/tests/test_artifact_pull_cli.py --tb=short", "result": "593 passed", "exit_code": 0 }, { "command": ".venv-current/bin/python -m pytest -q src/regshape/tests/test_progress_display.py src/regshape/tests/test_component_cli.py src/regshape/tests/test_layout_push.py src/regshape/tests/test_layout_cli.py src/regshape/tests/test_telemetry_log_file.py --tb=short", "result": "480 passed, 3 skipped", "exit_code": 0 }, { "command": "ruff check src/regshape/cli/request_report.py src/regshape/tests/test_request_report_cli.py", "result": "All checks passed", "exit_code": 0 }, { "command": "ruff check --select E9,F src/regshape/cli/downloads.py", "result": "All checks passed", "exit_code": 0 }, { "command": "ruff check --select E9,F src/regshape/tests/test_artifact_pull_cli.py", "result": "All checks passed", "exit_code": 0 }, { "command": "bandit -q src/regshape/cli/request_report.py src/regshape/cli/downloads.py", "result": "Passed", "exit_code": 0 }, { "command": "mypy --python-executable .venv-current/bin/python --follow-imports=silent --ignore-missing-imports --python-version 3.10 src/regshape/cli/downloads.py src/regshape/cli/request_report.py src/regshape/cli/telemetry.py src/regshape/libs/_pull_report.py src/regshape/libs/_push_report.py src/regshape/libs/decorators/request_report.py", "result": "Success: no issues found in 6 source files", "exit_code": 0 }, { "command": "git diff --check", "result": "Passed", "exit_code": 0 }, { "command": ".venv-current/bin/python -m build --wheel --no-isolation --outdir /Users/toddysm/.copilot/session-state/e0d42f4d-89fd-4978-a788-8c13f57bf7c3/files/wheels", "result": "Wheel built successfully; existing build warnings remain", "exit_code": 0 } ], "runtime": "macOS arm64; Python 3.12.16; Click 8.1.0 and 8.5.1; isolated instance-owned environments. Missing Requests type stubs restored only in owned current-Click environment.", "redactions": [ "none; safe commands, aggregate results and synthetic test descriptions only" ], "gaps": [ "Integrated security/performance/default-on acceptance is #262; final feature documentation is #263.", "No approved layout resource benchmark changed or rerun." ], "hosted": { "head": "a14c9c69547a47afdfb63319897c4aac6cba83f5", "checks": [ { "name": "Analyze (actions)", "state": "SUCCESS", "link": "https://github.com/toddysm/regshape/actions/runs/47545471728/job/145753000171" }, { "name": "homebrew-installation", "state": "SUCCESS", "link": "https://github.com/toddysm/regshape/actions/runs/47545474821/job/145753007272" }, { "name": "Analyze (python)", "state": "SUCCESS", "link": "https://github.com/toddysm/regshape/actions/runs/47545471728/job/145753000018" }, { "name": "download-benchmarks", "state": "SKIPPED", "link": "https://github.com/toddysm/regshape/actions/runs/47545474821/job/145753008871" }, { "name": "pytest (3.10)", "state": "SUCCESS", "link": "https://github.com/toddysm/regshape/actions/runs/47545474821/job/145753007123" }, { "name": "pytest (3.11)", "state": "SUCCESS", "link": "https://github.com/toddysm/regshape/actions/runs/47545474821/job/145753007045" }, { "name": "pytest (3.12)", "state": "SUCCESS", "link": "https://github.com/toddysm/regshape/actions/runs/47545474821/job/145753007159" }, { "name": "urllib3-legacy", "state": "SUCCESS", "link": "https://github.com/toddysm/regshape/actions/runs/47545474821/job/145753007116" }, { "name": "click-minimum (3.10)", "state": "SUCCESS", "link": "https://github.com/toddysm/regshape/actions/runs/47545474821/job/145753007050" }, { "name": "click-minimum (3.11)", "state": "SUCCESS", "link": "https://github.com/toddysm/regshape/actions/runs/47545474821/job/145753006853" }, { "name": "click-minimum (3.12)", "state": "SUCCESS", "link": "https://github.com/toddysm/regshape/actions/runs/47545474821/job/145753007124" }, { "name": "artifact-filesystem (macos-latest)", "state": "SUCCESS", "link": "https://github.com/toddysm/regshape/actions/runs/47545474821/job/145753007075" }, { "name": "artifact-filesystem (windows-latest)", "state": "SUCCESS", "link": "https://github.com/toddysm/regshape/actions/runs/47545474821/job/145753007231" }, { "name": "CodeQL", "state": "SUCCESS", "link": "https://github.com/toddysm/regshape/runs/145753135443" } ], "ci_fix_attempts": 1, "observed_at": "2026-12-05T17:13:43.995777+00:00", "unresolved_review_threads": 0, "reviews": "Final-head reviews and checks completed; owner-authorized merge performed.", "prior_head_macos_failure": { "head": "63c0fd201356b8b69e4f71e15929923aaeed3171", "initial_failure": "Unchanged test_download_workers.py::test_retargeted_symlink_never_becomes_a_verified_result rejected the retargeted link with OS EINVAL rather than the expected 'replaced' message.", "local_recheck": ".venv-current/bin/python -m pytest -q src/regshape/tests/test_download_workers.py::test_retargeted_symlink_never_becomes_a_verified_result --tb=short: 1 passed.", "policy": "No unrelated source/test modifications. Prior failed job was not rerun because additional review fixes required a new head; full fresh-head hosted validation is binding." }, "prior_head_artifact_terminal_failure": { "head": "0bf4039030f9222c6eab37f4a04f028c5546aa7d", "cause": "Existing artifact terminal fault assertion expected progress cleanup to retry a known failed sink and repaint a Failed row, contradicting the newly required zero-retry behavior.", "fix": "a14c9c6 preserves healthy terminal failed/cancelled row assertions and all error/storage/resource checks, and adds exact write/flush counters proving no I/O after the first sink failure and borrowed streams remaining open.", "regression": "Reproduced locally; disabling only the no-retry guard makes the strengthened test fail with 7 writes/6 flushes versus 4 writes/3 flushes at failure.", "ci_fix_attempts": 2 } }, "retention": { "branch": "feature/transfer-endpoint-report/cli-e0d42f4d", "worktree": "/Users/toddysm/Documents/Development/regshape-fe-e0d42f4d", "claim": "verified and retained", "working_tree": "clean", "unpushed_commits": 0, "merge": "73932067f91fc4bc91c96a7e9406adacd6a0e4af", "checkpoint": "https://github.com/toddysm/regshape/issues/261#issuecomment-7441963923", "last_pushed_commit": "a14c9c69547a47afdfb63319897c4aac6cba83f5" }, "prior_validation": { "commit": "2d34aba0c9d1122cea805a17d63627e0af8b3817", "commands": [ { "command": ".venv-current/bin/python -m pytest -q src/regshape/tests/test_request_report_cli.py src/regshape/tests/test_manifest_cli.py src/regshape/tests/test_manifest_cli_progress.py src/regshape/tests/test_blob_cli.py src/regshape/tests/test_telemetry_log_file.py src/regshape/tests/test_download_validation.py --tb=short", "result": "399 passed, 1 skipped", "exit_code": 0 }, { "command": ".venv/bin/python -m pytest -q src/regshape/tests/test_request_report_cli.py src/regshape/tests/test_manifest_cli.py src/regshape/tests/test_blob_cli.py src/regshape/tests/test_download_validation.py --tb=short", "result": "311 passed (minimum Click 8.1.0)", "exit_code": 0 } ] }, "source_log_policy": "Layout directory logs must be outside the source; existing outside logs require exactly one hard link. Ambiguous hard-linked logs fail closed using bounded ancestor metadata rather than scanning the source graph. Archive aliases use shared file preflight. Usage checks do not reserve paths against concurrent namespace changes.", "package_assertions": "Layout, downloads and request-report CLI modules byte-match packaged wheel contents.", "review_followup": { "authorization": "Owner explicitly authorized all review fixes, individual fix-SHA replies/resolutions and PR merge when hosted CI is green on 2026-12-05. No additional child work or branch/worktree deletion authorized.", "state": "merged", "comments": [ 4811943381, 4811943469 ], "head_before_fixes": "a972b1ceaa6ac6073299b963ff292657271a8a78", "fix_commit": "a14c9c69547a47afdfb63319897c4aac6cba83f5" } }toddysm commentedon Dec 5, 2026
Checkpoint - 2026-12-05T00:52:23.861446+00:00 - stopped for owner review
Canonical checklist: #261; tracking item: #261
Current state and detailed keyed validation evidence: cli-a972b1c
Changes: Automatic command-line reporting is implemented in ready-for-review #276. Nine hosted findings have pushed fixes, exact fix-SHA replies and resolved threads. The final layout-source guard preserves directory/archive sources before telemetry, including dry runs. Directory logs must be outside the source; ambiguous multiply-linked outside logs fail closed using bounded metadata rather than scanning the graph. Preflight does not reserve paths against concurrent namespace changes.
Item: #261 on
feature/transfer-endpoint-report/cli-e0d42f4dInstance:
e0d42f4d-89fd-4978-a788-8c13f57bf7c3Worktree:
/Users/toddysm/Documents/Development/regshape-fe-e0d42f4dOwnership: verified issue-261 claim retained; no handoff or cleanup.
Testing mode: hosted. Actions policy: normal-hosted; no suppression.
Validation: exact commands/results are retained in the linked state evidence for
a972b1ceaa6ac6073299b963ff292657271a8a78. Final layout/report/download selector: 165 passed on current Click 8.5.1 and 165 on minimum Click 8.1.0, macOS arm64/Python 3.12.16. Focused Ruff, mypy (five modules, Python 3.10 target), Bandit, whitespace and wheel/source-contract checks passed. Eight packaged modules match committed source; packaged layout source guard verified.gh pr checks 276 --repo toddysm/regshape: 13 successful hosted checks, optional download-benchmarks skipped by existing condition, no pending/failed checks. Hosted test run. No owner-approved layout resource benchmark changed or rerun.Review: current-head local self-review passed. Copilot and Codex completed on this head; zero unresolved review threads. These are not human approvals: Copilot requests human assessment of interacting stdout/stderr/log failure paths. Human review and explicit merge authorization remain outstanding.
Redactions: none required; safe commands/aggregate results only, no raw logs posted.
Last pushed commit:
a972b1ceaa6ac6073299b963ff292657271a8a78- fix: protect layout push sources from diagnostic logsUnpushed commits: none.
Working tree: clean.
Next step: Obtain owner review of #276 at a972b1c, especially shared-sink failure paths, and explicit merge authorization. Retain the branch, worktree and claim; no merge or cleanup is authorized.
toddysm commentedon Dec 5, 2026
Delivered the original #261 acceptance criteria through merged #276.
Merge commit:
73932067f91fc4bc91c96a7e9406adacd6a0e4af; the delivered tree exactly matches tested heada14c9c69547a47afdfb63319897c4aac6cba83f5.Issue: #261
Checklist: L7:49e74474605b6aa2adfc4ff71e748be6cc2b1f7310e5d465a746f0be29a356b3
Checklist: L8:30a95f39b146a8fa7f3686762c9119e21ceeef5e41d1b1d4cffcd4efc9e97c29
Checklist: L9:006e58cb1e9b3a6442d816253baae21402b3d073e820ecba65e425e1aff5b38d
Checklist: L10:f5c6d4b8b68646ec708d276cd97ab28e9f731c821fa45c083b0745c8b38edbb4
Checklist: L11:c4c2117e202fba410307918f1ff43d054606ba63c1490f1455ae397293786362
Checklist: L12:42c62a29c1f3f14aebc07df2bac9b2cfbe21a3460c77b7deb73823fae41bb8af
Checklist: L13:c7107bb4006798f22ef1611480b32cd14c842d710692c18597f180129c663f10
Checklist: L14:4d1f227ba9cde9775d8cbf57570c0406878aa1c646b7ea6f3b215a7813f0b282
Checklist: L15:5ec53b2876e89ffd5c6c8a33b6c96531cec0265ae111fe8a67dc925d5344fa86
Outcome: complete
Evidence: #276; #261 (comment); tested HEAD a14c9c6; 593 targeted report/download/artifact tests passed with both current and minimum Click, plus 480 passed/3 skipped supplemental tests; all 13 runnable hosted checks passed, optional dispatch-only benchmark skipped by its existing condition.
Verified outcomes: supported pull/push leaves automatically report through library-owned collection; existing verbosity/format/log controls and opt-in debug/time/metrics behavior are preserved. Tests verify unchanged stdout payload/result schemas, library-derived Authentication/assets/attempts/hops/methods/timing/counts, terminal escaping, no-network dry-run source metadata, settled output/warning order and primary exception/cancellation identity. Sole reporting failures and result-stdout flush failures exit nonzero without rollback claims; healthy reports remain available and failed shared/adapted binary destinations are not retried during scenario telemetry, diagnostics or shutdown. Click Unicode/binary output and borrowed-buffer ownership remain intact. Focused Ruff/Bandit/mypy/whitespace/wheel checks and changed Python source-contract self-review passed. All fifteen review findings have separate fix-SHA replies and resolved threads.
This completes #261 only. Integrated security/performance/default-on readiness (#262), final feature documentation (#263), and parent capability inventory close-out remain separate delivery obligations. No owner-approved resource benchmark changed or rerun.
toddysm commentedon Dec 5, 2026
Checkpoint - 2026-12-05T17:13:43.995777+00:00 - merged
Canonical checklist: #261
Current state and keyed validation evidence: cli-a14c9c6
Changes: #276 merged into main as
73932067f91fc4bc91c96a7e9406adacd6a0e4afat 2026-12-05T17:13:09Z, delivering tested heada14c9c69547a47afdfb63319897c4aac6cba83f5. All six follow-up comments have separate fix-SHA replies and resolved threads; all fifteen threads resolved. Result stdout failures propagate immediately across shared/adapted binary sinks before scenario telemetry finalization, shutdown does not retry failed buffers, Click retains Unicode/binary output behavior, flush failures have their own diagnostic and layout scopes supply library-sanitized source metadata.Item/branch: #261 on
feature/transfer-endpoint-report/cli-e0d42f4d.Instance:
e0d42f4d-89fd-4978-a788-8c13f57bf7c3. Worktree:/Users/toddysm/Documents/Development/regshape-fe-e0d42f4d. Claim: verified and retained.Testing mode: hosted; normal Actions, no suppression or protection bypass.
Validation: exact commands/results in linked state; 593 targeted report/download/artifact tests passed on each of current/minimum Click, supplemental progress/component/layout/telemetry tests passed 480 with 3 skipped; focused Ruff/Bandit/mypy/whitespace/wheel checks passed. All 13 runnable current-head hosted checks passed; optional download-benchmarks skipped by its existing condition. No owner-approved resource benchmark run.
Review: current-head local self-review and Copilot/Codex reviews settled; no remaining review findings. User explicitly authorized conditional merge.
Last pushed SHA:
a14c9c69547a47afdfb63319897c4aac6cba83f5. Unpushed commits: none. Working tree: clean.Redactions: none required; safe aggregate evidence only.
Remaining feature delivery: #262/#263 and capability inventory close-out remain separate and unstarted; parent #254 remains open. Merged branch/worktree/claim retained, no deletion performed.
Next step: Obtain authorization to start #262 integrated validation/default-on readiness, followed by #263 final feature documentation; #254 stays open until remaining required delivery and inventory close-out land. Retain the merged branch/worktree/claim; deletion is not authorized.