Skip to content

Remove hardcoded conformance badge, report, and CI artifact (#39)#44

Open
davidcrowe wants to merge 1 commit into
mainfrom
fix/conformance-badge-remove
Open

Remove hardcoded conformance badge, report, and CI artifact (#39)#44
davidcrowe wants to merge 1 commit into
mainfrom
fix/conformance-badge-remove

Conversation

@davidcrowe

Copy link
Copy Markdown
Collaborator

Fixes #39.

Recommendation: remove, don't wire

The issue offered two paths — wire saveReport.ts to real tests, or remove the badge + file + script. I recommend removal, for a concrete reason found while investigating:

  • PKCE is not implemented in this repo. The OAuth/PKCE flow is delegated to Auth0; the only pkce reference in the codebase is a ChatGPT-DCR detection heuristic (token_endpoint_auth_method === "none"). There is no code_challenge/S256 verification to assert against. So the pkce category can never be honestly backed here.
  • The other four categories (jwt_verify, scope_enforcement, allowlist, expiry) do map to real, unit-tested package code — but badging library unit tests as "OAuth 2.1 + MCP Authorization conformance" overclaims in exactly the way a skeptical evaluator catches. A conformance badge implies a conformance suite against the spec; that suite doesn't exist.
  • The badge only rendered the version string (0.1.0) anyway — near-zero credibility value, high risk.

An absent badge is honest; a hardcoded one is not. A genuine MCP Authorization conformance suite (real spec test vectors) is a worthwhile later effort, not something to fake under the star-push clock.

Removed

  • README MCP/Auth Conformance badge
  • docs/conformance.json
  • packages/explicabl-core/src/reporting/saveReport.ts (+ its committed compiled .js)
  • docs/testing/conformance.md (was empty)
  • .github/workflows/conformance.yml — redundant: build.yml already runs npm test; this workflow's only distinct job was uploading conformance.json. No loss of test CI.
  • the conformance:report npm script, and stripped && npm run conformance:report from test
  • conformance mentions in operations.md, testing.md, deployment.md, CONTRIBUTING.md

Verification

npm run build clean · npm test green (17 files / 159 tests) · npm test no longer regenerates any conformance file · no residual conformance/saveReport references outside node_modules.

Not merged — that's yours.

Note: packages/explicabl-core/src/reporting/dcrLastSeen.ts (0-byte) + its .js are dead files left in that dir, unrelated to conformance — flagging for the #42 hygiene sweep rather than expanding this PR's scope.

saveReport.ts wrote all five conformance categories (pkce, jwt_verify,
scope_enforcement, allowlist, expiry) as "pass" with a fresh timestamp,
consulting no test — and npm test ran it after every suite. The committed
docs/conformance.json reflected that, and the README badge read its version.
For a repo-visibility push this is the single highest-risk artifact: one
file-read of saveReport.ts discredits every other claim.

Rather than fake a conformance suite, remove it. PKCE is not implemented in
this repo (the OAuth/PKCE flow is delegated to Auth0; the only "pkce"
reference is a ChatGPT-DCR detection heuristic), so that category cannot be
honestly asserted at all. The other four map to real unit-tested code, but
badging library unit tests as "OAuth 2.1 + MCP Authorization conformance"
overclaims the same way. An absent badge is honest; a hardcoded one is not.
A real MCP Authorization conformance suite is a separate, larger effort.

Removed:
- README "MCP/Auth Conformance" badge
- docs/conformance.json
- packages/explicabl-core/src/reporting/saveReport.ts (+ compiled .js)
- docs/testing/conformance.md (empty)
- .github/workflows/conformance.yml (redundant: build.yml already runs tests;
  its only distinct job was uploading conformance.json)
- the conformance:report npm script; stripped it from the test script
- conformance mentions in operations/testing/deployment docs + CONTRIBUTING

Build green, 159 tests pass, npm test no longer regenerates the file.
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.

Conformance report is hardcoded to "pass" — wire to real tests or remove the badge

1 participant