Skip to content

011 toon mcp output#21

Merged
andhijeannot merged 4 commits into
mainfrom
011-toon-mcp-output
Jun 4, 2026
Merged

011 toon mcp output#21
andhijeannot merged 4 commits into
mainfrom
011-toon-mcp-output

Conversation

@andhijeannot
Copy link
Copy Markdown
Member

No description provided.

…handling`

**Details:**
- **Rules file path:** Changed from `specs/009-constitution-compliance/contracts/structural-rules.yaml` to `tools/archcheck/rules.yaml` for centralized rule management.
- **Suppression flags:** Added `--suppressions` to specify suppression files, and `--no-suppress` to bypass suppression logic entirely.
- **Formatting:** Adjusted `--format` and `--report` flags for flexibility in output.
- **Exit code:** Updated to handle suppressed violations gracefully (exit code 1 for violations, 0 for compliance).

**Impact:**
- Ensures consistent rule enforcement across the tool.
- Provides flexibility for suppression rules while maintaining compliance checks.
- Improves usability by allowing customization of output formats and suppression behavior.
Close the remaining test-infrastructure, baseline, and documentation gaps
for the constitution-compliance feature (production refactor already at 0
archcheck violations, constitution v1.2.0).

Golden / regression suites (run under go test ./... — no build tags):
- tests/integration/api: HTTP API goldens for all /api/v1/* routes (T063/T064)
- tests/integration/mcp:  MCP smoke fixtures for 5 read tools (T005/T030)
- tests/integration/cli:  CLI goldens for init + validate (T004/T019)
  (new system|container|component left to use-case unit tests — template
   resolution is install-layout-sensitive; documented in the test)

Baselines + coverage gate (T006/T007/T051):
- coverage-baseline.txt, baseline-violations.json
- fix scripts/coverage-delta.sh: it compared go-tool-cover-func output that
  has no per-package totals (silent no-op); now derives per-package coverage
  and genuinely detects regressions

Docs (T032/T058/T059/T060/T065):
- internal/mcp/tools/MIGRATION.md (tool -> use-case map)
- README quality-gates section
- docs/architecture/constitution-compliance.md (contributor reference)
- quickstart-validation.md (SC-010 diagnostic-legibility + 0.07s benchmark)

Bookkeeping: T039/T052 marked out-of-scope (referenced unbuilt
--baseline/--include flags); T025 not needed; T056/T062 resolved.

Verified: go test ./... green, task audit-constitution 0 violations,
golangci-lint 0 issues, coverage-delta OK.
- Test query project with TOON format
- Test query architecture with TOON format
- Test search elements with TOON format
- Validate error handling for invalid formats"
@andhijeannot andhijeannot enabled auto-merge (squash) June 4, 2026 18:41
The .gitignore 'archcheck' pattern (added for build artifacts) also matched
the tools/archcheck/ directory, causing suppression.go, suppression_test.go,
and rules.yaml to be silently excluded from git. This broke CI compilation of
the archcheck tool, which in turn failed the Test, Lint, and Constitution
Audit jobs.

Also force-add .archcheck-suppressions.yaml which contains the initial
constitution v1.2.0 suppression entries and was similarly ignored.
@andhijeannot andhijeannot merged commit 91a3ad3 into main Jun 4, 2026
5 checks passed
@andhijeannot andhijeannot deleted the 011-toon-mcp-output branch June 4, 2026 18:49
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