Skip to content

fix(helpdesk): repair and modularize handler registration - #44

Open
dutch2005 wants to merge 8 commits into
masterfrom
fix/43-helpdesk-handler-modularization
Open

dutch2005 wants to merge 8 commits into
masterfrom
fix/43-helpdesk-handler-modularization

Conversation

@dutch2005

Copy link
Copy Markdown
Owner

Summary

Repairs the corrupted Helpdesk Quick Actions handler registration discovered while re-validating the MSP modernization plan.

Changes

  • replaces the duplicated/corrupted 1,363-line Register-HelpdeskHandlers.ps1 with a small composition layer
  • splits endpoint, session/printer, identity, and Exchange handlers into focused files under 200 LoC
  • centralizes Helpdesk UI target validation and safe error rendering
  • registers every existing Helpdesk button exactly once
  • adds structural tests for parse validity, file-size limit, composition imports, and duplicate/missing registrations

Why first

The existing file contained repeated function bodies embedded inside catch strings and trailing malformed content, so adding more MSP UI on top of it would compound an unstable surface.

Fixes #43

No .speq files are changed.

@ecc-tools

ecc-tools Bot commented Sep 23, 2026

Copy link
Copy Markdown

ECC Tools / Security Evidence

Commit: 7f906a310f085db1d8de6ac9a81dd7448c3c77f8

Security evidence gate passed (success)

No security-sensitive scanner-evidence gap detected.

Mode: enforce

Scanned 7 changed file(s). No missing scanner-evidence signal was detected.

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

@ecc-tools

ecc-tools Bot commented Sep 23, 2026

Copy link
Copy Markdown

ECC Tools / PR Risk Taxonomy

Commit: 7f906a310f085db1d8de6ac9a81dd7448c3c77f8

PR taxonomy clear (success)

Scanned 7 changed file(s). No taxonomy bucket signals were detected.

Scanned 7 changed file(s).

No PR taxonomy bucket signals were detected.

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

@ecc-tools

ecc-tools Bot commented Sep 23, 2026

Copy link
Copy Markdown

ECC Tools / Reference Set Readiness

Commit: 7f906a310f085db1d8de6ac9a81dd7448c3c77f8

Reference set readiness gaps detected (neutral)

Reference evidence present for 0/7 areas (0%) across 7 changed file(s).

This check is based on files changed in this PR. Repository-level readiness is still reported by /ecc-tools analyze comments and generated manifests.

Area Status Evidence / Next Step
Deep analyzer corpus Missing Add analyzer fixture, golden, benchmark, or reference-set files that can catch analyzer regressions.
RAG/evaluator comparison Missing Add retrieval or evaluator reference-set comparison fixtures with expected ranking behavior.
PR salvage/review corpus Missing Add stale-PR, review-thread, reopen-flow, or salvage reference cases for queue cleanup automation.
Discussion triage corpus Missing Add public discussion triage fixtures, golden cases, or reference sets for informational, answered, and no-response classifications.
Harness compatibility Missing Add cross-harness, adapter-compliance, or harness-audit evidence for Claude, Codex, OpenCode, Zed, dmux, and agent surfaces.
Security evidence Missing Attach security evidence such as SBOMs, SARIF, audit reports, or AgentShield evidence packs.
CI failure-mode evidence Missing Add captured CI failure logs, dry-run fixtures, or troubleshooting docs for common workflow failure modes.

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

@ecc-tools

ecc-tools Bot commented Sep 23, 2026

Copy link
Copy Markdown

ECC Tools / Hosted Promotion Readiness

Commit: 7f906a310f085db1d8de6ac9a81dd7448c3c77f8

Hosted promotion readiness passed (success)

No hosted promotion evidence gaps detected across 7 changed file(s); 0 corpus scenarios had matching evidence.

This check compares PR file changes against the evaluator/RAG promotion corpus in src/analyzers/fixtures/evaluator-rag-corpus.ts.
Hosted output scoring inspected 0 completed cached hosted job results.

No evaluator corpus scenarios matched this PR.

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

@kilo-code-bot

kilo-code-bot Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Code Review Summary

The review did not run because the selected model is no longer available.

Choose another model in Kilo Code review settings: https://app.kilo.ai/code-reviews

Previous Review Summary

Current summary above is authoritative. Previous snapshots are kept for context only.

Previous review

The review did not run because the selected model is no longer available.

Choose another model in Kilo Code review settings: https://app.kilo.ai/code-reviews

@dutch2005 dutch2005 added bug Something isn't working refactor Code restructuring without behavior change labels Sep 23, 2026
@dutch2005 dutch2005 self-assigned this Sep 23, 2026
@ecc-tools

ecc-tools Bot commented Sep 23, 2026

Copy link
Copy Markdown

ECC Tools / Security Evidence

Commit: 7ddff657b0e3973696d5d510f6cd2eccd53c5472

Security evidence gate passed (success)

No security-sensitive scanner-evidence gap detected.

Mode: enforce

Scanned 8 changed file(s). No missing scanner-evidence signal was detected.

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

@ecc-tools

ecc-tools Bot commented Sep 23, 2026

Copy link
Copy Markdown

ECC Tools / PR Risk Taxonomy

Commit: 7ddff657b0e3973696d5d510f6cd2eccd53c5472

PR taxonomy clear (success)

Scanned 8 changed file(s). No taxonomy bucket signals were detected.

Scanned 8 changed file(s).

No PR taxonomy bucket signals were detected.

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

@ecc-tools

ecc-tools Bot commented Sep 23, 2026

Copy link
Copy Markdown

ECC Tools / Reference Set Readiness

Commit: 7ddff657b0e3973696d5d510f6cd2eccd53c5472

Reference set readiness gaps detected (neutral)

Reference evidence present for 0/7 areas (0%) across 8 changed file(s).

This check is based on files changed in this PR. Repository-level readiness is still reported by /ecc-tools analyze comments and generated manifests.

Area Status Evidence / Next Step
Deep analyzer corpus Missing Add analyzer fixture, golden, benchmark, or reference-set files that can catch analyzer regressions.
RAG/evaluator comparison Missing Add retrieval or evaluator reference-set comparison fixtures with expected ranking behavior.
PR salvage/review corpus Missing Add stale-PR, review-thread, reopen-flow, or salvage reference cases for queue cleanup automation.
Discussion triage corpus Missing Add public discussion triage fixtures, golden cases, or reference sets for informational, answered, and no-response classifications.
Harness compatibility Missing Add cross-harness, adapter-compliance, or harness-audit evidence for Claude, Codex, OpenCode, Zed, dmux, and agent surfaces.
Security evidence Missing Attach security evidence such as SBOMs, SARIF, audit reports, or AgentShield evidence packs.
CI failure-mode evidence Missing Add captured CI failure logs, dry-run fixtures, or troubleshooting docs for common workflow failure modes.

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

@ecc-tools

ecc-tools Bot commented Sep 23, 2026

Copy link
Copy Markdown

ECC Tools / Hosted Promotion Readiness

Commit: 7ddff657b0e3973696d5d510f6cd2eccd53c5472

Hosted promotion readiness passed (success)

No hosted promotion evidence gaps detected across 8 changed file(s); 0 corpus scenarios had matching evidence.

This check compares PR file changes against the evaluator/RAG promotion corpus in src/analyzers/fixtures/evaluator-rag-corpus.ts.
Hosted output scoring inspected 0 completed cached hosted job results.

No evaluator corpus scenarios matched this PR.

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

@dutch2005

Copy link
Copy Markdown
Owner Author

Verification on head 7ddff65:

  • HelpdeskHandlers.Tests.ps1: 45 passed, 0 failed.
  • PSScriptAnalyzer on the changed Helpdesk production and test files: 0 Error/Warning findings.
  • All changed Helpdesk production files are at or below 200 lines.
  • Full local suite: 485 discovered, 452 passed, 24 failed, 9 skipped. The master-based suite with the separate refactor: extract CimSession lifecycle helper (STRUCT-3) #15 test repair has 440 discovered, 408 passed, 23 failed, 9 skipped; the extra failure on this branch is the known refactor: extract CimSession lifecycle helper (STRUCT-3) #15 test, not a Helpdesk test.
  • Hosted CI stops at the same 22 Private/ analyzer findings that fail on master. The Kilo review did not run because its configured model is unavailable. A working independent review and repository CI repair remain before merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working refactor Code restructuring without behavior change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: repair and modularize Helpdesk handler registration

1 participant