Skip to content

fix(output): expose all 11 --format choices + schema_version in json (refs #271 Group A) - #283

Merged
Wolfvin merged 1 commit into
mainfrom
fix/issue-271a-formatter-schema-version
Jul 14, 2026
Merged

fix(output): expose all 11 --format choices + schema_version in json (refs #271 Group A)#283
Wolfvin merged 1 commit into
mainfrom
fix/issue-271a-formatter-schema-version

Conversation

@Wolfvin

@Wolfvin Wolfvin commented Jul 14, 2026

Copy link
Copy Markdown
Owner

Mengapa (subset #271 — Group A: output-contract drift)

Dua kegagalan test ter-unmask segfault fix, keduanya bug output-contract nyata (repro Windows+Linux):

  1. test_formatters_phase2::test_help_lists_new_formats — argparse --format choices cuma expose 6, padahal 5 formatter Phase-2 (text/junit-xml/emacs/vim/gitlab-sast) ada & berfungsi.
  2. test_confidence::TestEndToEndSchemaVersion (×3) — output json default hilang schema_version (drift refactor refactor(commands): consolidate 78 commands → 12 focused commands #195).

Perbaikan

  • _FORMAT_CHOICES tuple = single source of truth semua argparse choices + pre-parse guard.
  • formatters/__init__.py default-json stamp schema_version (shallow copy, tak mutate caller).
  • Test secretssecurity (umbrella) — bukan pelemahan, tetap assert 5 format muncul.

Verifikasi (BOS independen di worktree agent)

test_formatters_phase2.py + test_confidence.py → 96 passed. 5 format baru hasilkan output; json kini punya schema_version.

Menutup subset Group A #271, bukan seluruh #271. Dikerjakan sub-agent (mati mid-stream sebelum commit); diselamatkan + diverifikasi ulang BOS.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

… json (refs #271)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

@Wolfvin
Wolfvin merged commit febb2d1 into main Jul 14, 2026
2 of 8 checks passed
@Wolfvin
Wolfvin deleted the fix/issue-271a-formatter-schema-version branch July 14, 2026 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant