Skip to content

fix(playground): report prerequisite skips neutrally - #316

Open
replghost wants to merge 1 commit into
mainfrom
epoca-diagnosis
Open

fix(playground): report prerequisite skips neutrally#316
replghost wants to merge 1 commit into
mainfrom
epoca-diagnosis

Conversation

@replghost

@replghost replghost commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Problem

Diagnosis intentionally skips services hosts have not wired and methods whose prerequisites it cannot establish. The UI/report converted every skip into a failure/❌, creating false compatibility failures. Chain/stop_transaction exposed the problem: its manual example requires a live operation id, while Diagnosis only has a hard-coded placeholder.

Fix

  • mark Chain/stop_transaction skipped with its exact live-operation prerequisite
  • preserve skipped through the Diagnosis UI and markdown report
  • show separate success / failed / skipped totals
  • emit the existing ⏭ marker, which the explorer aggregator already treats as unmeasured (null), not supported
  • keep the strict manual stop example unchanged

This does not turn unsupported hosts green: genuine runtime errors remain ❌ and the matrix only records actual ✅/❌ measurements.

Verification

  • cd playground && yarn build
  • cd playground && yarn lint
  • real Epoca canonical-runtime Diagnosis: 34 success · 9 failed · 21 skipped; the report emitted ⏭ for deferred services and transaction stop, while nine real environment/policy failures remained ❌.

@replghost
replghost requested a review from a team July 25, 2026 16:44
@replghost
replghost force-pushed the epoca-diagnosis branch 2 times, most recently from d61f19d to 6456e54 Compare July 25, 2026 16:52
@replghost replghost changed the title fix(playground): make transaction stop diagnosis host-agnostic fix(playground): skip transaction stop without a live operation Jul 25, 2026
@replghost replghost changed the title fix(playground): skip transaction stop without a live operation fix(playground): report prerequisite skips neutrally Jul 25, 2026
@replghost
replghost enabled auto-merge July 25, 2026 17:05
const SKIPPED_METHODS = new Set(["Account/create_account_proof"]);
// Individual methods skipped when Diagnosis cannot establish their prerequisite.
const SKIPPED_REASON: Record<string, string> = {
"Account/create_account_proof": "host surface intentionally deferred",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this one should work now, we should not skip it.

"Account/create_account_proof": "host surface intentionally deferred",
"Chain/stop_transaction":
"requires an operation id from a live transaction broadcast",
};

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need this since you fix the test in #318

@pgherveou pgherveou left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

after reviewing comments

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.

2 participants