Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
89ca804
feat(skills): Skills tab on the server page of the Web UI (spec 125, …
Dumbris Nov 18, 2026
c14b689
fix(skills): review round 2 for the Skills tab and its sweep
Dumbris Nov 18, 2026
1961d59
fix(skills): review round 3 for the Skills tab and its sweep
Dumbris Nov 18, 2026
d10ee8b
fix(skills): review round 4 for the Skills tab and its sweep
Dumbris Nov 20, 2026
046fc17
docs(skills): browser sweep evidence for d10ee8b67
Dumbris Nov 20, 2026
f188957
fix(skills): review round 5 for the Skills tab and its sweep
Dumbris Nov 20, 2026
9722b1e
docs(skills): browser sweep evidence for f1889571e
Dumbris Nov 20, 2026
72e14ec
fix(skills): review round 6 for the Skills tab and its sweep
Dumbris Nov 20, 2026
b01a8f7
docs(skills): browser sweep evidence for 72e14ec9d
Dumbris Nov 20, 2026
1698add
fix(skills): review round 7 for the Skills tab and its sweep
Dumbris Nov 20, 2026
be491e0
docs(skills): browser sweep evidence for 1698add39
Dumbris Nov 20, 2026
3e59c6e
Redact macOS temporary path aliases in Skills sweep diagnostics
Dumbris Nov 20, 2026
30e6443
fix(skills): review round 8 for the Skills tab and its sweep
Dumbris Nov 20, 2026
eb3533b
docs(skills): browser sweep evidence for 30e6443d8
Dumbris Nov 20, 2026
459a4d2
fix(skills): review round 9 for the Skills tab and its sweep
Dumbris Nov 20, 2026
a8cfc9a
docs(skills): browser sweep evidence for 459a4d274
Dumbris Nov 20, 2026
36e268f
fix(web): refresh Skills tabs for bulk server updates
Dumbris Nov 20, 2026
efa8c0c
fix(skillsfixture): handle startup output and check response cleanup
Dumbris Nov 20, 2026
493ae6a
Merge origin/main into 125-skills-pr4-web-ui
Dumbris Nov 21, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 30 additions & 1 deletion .github/workflows/release-qa-gate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ jobs:
# failed that test.
go build -tags server,nogui -ldflags "${LDFLAGS}" -o dist-bin/mcpproxy-server ./cmd/mcpproxy
go build -o dist-bin/mcpfixture ./cmd/mcpfixture
# Spec 125: the skills-capable upstream of the Skills tab sweep.
go build -o dist-bin/skillsfixture ./cmd/skillsfixture
go build -o dist-bin/oauthserver ./tests/oauthserver/cmd/server
go build -o dist-bin/release-gate ./cmd/release-gate
./dist-bin/mcpproxy --version || true
Expand Down Expand Up @@ -530,7 +532,12 @@ jobs:
name: Web UI sweep (advisory)
needs: build-candidate
runs-on: ubuntu-latest
timeout-minutes: 20
# Two sweeps in one job: run-web-smoke.sh (which had 20 minutes alone) and
# the Skills tab sweep with --self-test-first (two throwaway cores for the
# self-test, its own npm ci + Chromium install, eight serial scenarios;
# about 35 s locally with the browser and builds cached, about 1 min with a
# scenario timing out). 35 minutes leaves headroom for a cold runner.
timeout-minutes: 35
continue-on-error: true # advisory: never blocks the tag (FR-019 pattern)
steps:
- name: Checkout
Expand Down Expand Up @@ -562,6 +569,28 @@ jobs:
--name advisory/web-ui-sweep --advisory --report-dir "${GATE_REPORT_DIR}" \
-- bash scripts/run-web-smoke.sh

# Spec 125: the Skills tab sweep needs enable_skills and a skills-capable
# upstream, so it has its own launcher (throwaway core + cmd/skillsfixture
# on free loopback ports). It runs even when the sweep above failed, inside
# this advisory job, and records its own ADVISORY manifest entry
# (advisory/skills-tab-sweep), so a red run is listed under the verdict's
# advisory_failures; its fragment lands in GATE_REPORT_DIR, which the
# fragment upload below carries. Its results file (skills-sweep-results.json)
# and screenshots land under tmp/web-smoke-artifacts/, which the Playwright
# report upload below already carries. --self-test-first first proves that
# no ambient MCPPROXY_* (data dir, audit log path, ...) reaches the core,
# that the results writer redacts the API key, and that a DEBUG=1 run
# never prints it.
- name: Run Skills tab sweep (spec 125)
if: ${{ !cancelled() }}
env:
MCPPROXY_BINARY_PATH: ${{ github.workspace }}/dist-bin/mcpproxy
SKILLS_FIXTURE_BINARY: ${{ github.workspace }}/dist-bin/skillsfixture
run: |
./dist-bin/release-gate run-suite \
--name advisory/skills-tab-sweep --advisory --report-dir "${GATE_REPORT_DIR}" \
-- bash scripts/run-skills-tab-sweep.sh --self-test-first --out "${GITHUB_WORKSPACE}/tmp/web-smoke-artifacts/skills-sweep"

- name: Upload Playwright report
if: always()
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
Expand Down
4 changes: 2 additions & 2 deletions ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -1262,7 +1262,7 @@ graph LR
| Spec 108 profiles v3: scoped profiles, client binding, scope-aware observability | In progress | P1 | 194/195 (99%) | [108-profiles-v3](./specs/108-profiles-v3/) | |
| Spec 109 navigation, scope filters and cross-surface UX consistency | In progress | P1 | 257/258 (100%) | [109-ux-navigation-consistency](./specs/109-ux-navigation-consistency/) | |
| Spec 124 work sessions and the failure timeline | In progress | P1 | 0/74 (0%) | [124-session-failure-timeline](./specs/124-session-failure-timeline/) | |
| Spec 125 Skills over MCP: catalog, approval gate, read-only agent tools | In progress | P1 | 41/51 (80%) | [125-skills-over-mcp](./specs/125-skills-over-mcp/) | |
| Spec 125 Skills over MCP: catalog, approval gate, read-only agent tools | In progress | P1 | 44/51 (86%) | [125-skills-over-mcp](./specs/125-skills-over-mcp/) | |
| Planning/docs truth automation | In progress | P2 | — | | |
| Discovery-quality eval harness (Spec 065 second half) | In progress | P3 | — | [065-evaluation-foundation](./specs/065-evaluation-foundation/) | |
| Spec 114 typed pending-call outcome + call correlation for long-running stdio tool calls | In review | P2 | — | | #1536 |
Expand Down Expand Up @@ -1439,7 +1439,7 @@ Legend: `shipped` ≥95% checked · `in-flight` 1–94% · `drafted` 0% · `—`
| [122-scanner-skillspector-checks](./specs/122-scanner-skillspector-checks/) | `shipped` | 31/31 (100%) |
| [123-oauth-token-encryption](./specs/123-oauth-token-encryption/) | `drafted` | 0/56 (0%) |
| [124-session-failure-timeline](./specs/124-session-failure-timeline/) | `drafted` | 0/74 (0%) |
| [125-skills-over-mcp](./specs/125-skills-over-mcp/) | `in-flight` | 41/51 (80%) |
| [125-skills-over-mcp](./specs/125-skills-over-mcp/) | `in-flight` | 44/51 (86%) |
| [127-profile-argument-rules](./specs/127-profile-argument-rules/) | — | — |
| [128-server-list-outcomes](./specs/128-server-list-outcomes/) | — | — |
| [129-per-user-upstream-credentials](./specs/129-per-user-upstream-credentials/) | — | — |
60 changes: 60 additions & 0 deletions cmd/release-gate/webui_sweep_audit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
"path/filepath"
"regexp"
"strings"
"testing"

Expand Down Expand Up @@ -82,6 +83,65 @@ func TestWebUISweepJobReportsAndUploads(t *testing.T) {
if !strings.Contains(uploads, "playwright-report") {
t.Errorf("the sweep job must upload the Playwright HTML report artifact; upload steps: %s", uploads)
}
// Spec 125: the Skills tab sweep runs in the same advisory job, and its
// results file lands inside the uploaded artifact directory.
var skillsStep *step
for i := range sweep.Steps {
if strings.Contains(sweep.Steps[i].Run, "scripts/run-skills-tab-sweep.sh") {
skillsStep = &sweep.Steps[i]
}
}
if skillsStep == nil {
t.Fatalf("the sweep job must run scripts/run-skills-tab-sweep.sh; run steps: %s", runs)
}
if !strings.Contains(skillsStep.Run, "tmp/web-smoke-artifacts/") {
t.Errorf("run-skills-tab-sweep.sh must write into tmp/web-smoke-artifacts/ so its results file is uploaded with the job's artifacts: %s", skillsStep.Run)
}
// Its outcome must reach the gate verdict: wrapped in run-suite under its
// own advisory manifest entry, so a red skills sweep is listed under
// advisory_failures instead of vanishing inside continue-on-error.
for _, want := range []string{"release-gate run-suite", "--name " + gatereport.EntryAdvisorySkillsTabSweep, "--advisory", "--report-dir", "--self-test-first"} {
if !strings.Contains(skillsStep.Run, want) {
t.Errorf("the Skills tab sweep step must run through `release-gate run-suite --name %s --advisory --report-dir ... -- bash scripts/run-skills-tab-sweep.sh --self-test-first ...` (missing %q): %s",
gatereport.EntryAdvisorySkillsTabSweep, want, skillsStep.Run)
}
}
if skillsStep.If == "" || !strings.Contains(skillsStep.If, "!cancelled()") {
t.Errorf("the Skills tab sweep step must run even when the sweep before it failed (if: !cancelled()), got %q", skillsStep.If)
}
}

// runSuiteNameRe matches the entry name of every `release-gate run-suite` call.
var runSuiteNameRe = regexp.MustCompile(`run-suite\s*\\?\s*--name\s+(\S+)`)

// TestEveryRunSuiteNameIsInTheManifest: a run-suite call whose --name no
// manifest entry declares writes a fragment the merger treats as unexpected,
// and a manifest entry no step writes is a missing fragment. Every suite the
// gate workflow runs must be a declared entry, and every advisory entry that is
// a workflow step must be run by one.
func TestEveryRunSuiteNameIsInTheManifest(t *testing.T) {
wf := parseWorkflow(t, gateWorkflowPath)
declared := map[string]bool{}
for _, m := range gatereport.Manifest() {
declared[m.Name] = true
}
seen := map[string]bool{}
for jobName, job := range wf.Jobs {
for _, s := range job.Steps {
for _, m := range runSuiteNameRe.FindAllStringSubmatch(s.Run, -1) {
name := strings.Trim(m[1], `"'`)
seen[name] = true
if !declared[name] {
t.Errorf("job %q runs suite %q, which no gatereport.Manifest() entry declares", jobName, name)
}
}
}
}
for _, name := range []string{gatereport.EntryAdvisoryWebUISweep, gatereport.EntryAdvisorySkillsTabSweep, gatereport.EntryAdvisoryMacOSSmoke} {
if !seen[name] {
t.Errorf("no workflow step runs the advisory suite %q (its fragment would always be missing)", name)
}
}
}

// yamlFlatten renders a `with:` mapping node as a flat string for substring
Expand Down
33 changes: 20 additions & 13 deletions cmd/release-gate/webui_sweep_speclist_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,28 @@ import (

var playwrightTestLine = regexp.MustCompile(`"\$PLAYWRIGHT_BIN"\s+test\s+(.+)`)

// sweepSpecsRun parses the spec names off the launcher's `playwright test` line.
// sweepLaunchers are the scripts the web-ui-sweep job runs. run-web-smoke.sh
// is the standing sweep; run-skills-tab-sweep.sh (spec 125) runs the spec that
// needs a skills-capable upstream and enable_skills.
var sweepLaunchers = []string{"run-web-smoke.sh", "run-skills-tab-sweep.sh"}

// sweepSpecsRun parses the spec names off every launcher's `playwright test` line.
func sweepSpecsRun(t *testing.T) []string {
t.Helper()
b, err := os.ReadFile(filepath.Join(repoRootFromTest, "scripts", "run-web-smoke.sh"))
if err != nil {
t.Fatal(err)
}
m := playwrightTestLine.FindStringSubmatch(string(b))
if m == nil {
t.Fatal(`scripts/run-web-smoke.sh has no "$PLAYWRIGHT_BIN" test <specs> line: the sweep runs nothing`)
}
var specs []string
for _, field := range strings.Fields(m[1]) {
if strings.HasSuffix(field, ".spec.ts") {
specs = append(specs, field)
for _, launcher := range sweepLaunchers {
b, err := os.ReadFile(filepath.Join(repoRootFromTest, "scripts", launcher))
if err != nil {
t.Fatal(err)
}
m := playwrightTestLine.FindStringSubmatch(string(b))
if m == nil {
t.Fatalf(`scripts/%s has no "$PLAYWRIGHT_BIN" test <specs> line: it runs nothing`, launcher)
}
for _, field := range strings.Fields(m[1]) {
if strings.HasSuffix(field, ".spec.ts") {
specs = append(specs, field)
}
}
}
sort.Strings(specs)
Expand Down Expand Up @@ -70,7 +77,7 @@ func specListProblems(run, onDisk []string, docs map[string]string) []string {
}
for _, name := range onDisk {
if !has(run, name) {
problems = append(problems, name+" exists in e2e/web-ui-sweep but scripts/run-web-smoke.sh does not run it (an orphan spec never gates a release)")
problems = append(problems, name+" exists in e2e/web-ui-sweep but no sweep launcher (scripts/run-web-smoke.sh, scripts/run-skills-tab-sweep.sh) runs it (an orphan spec never gates a release)")
}
}
for _, name := range run {
Expand Down
1 change: 1 addition & 0 deletions cmd/release-gate/workflow_audit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ type job struct {
type step struct {
Uses string `yaml:"uses"`
Run string `yaml:"run"`
If string `yaml:"if"`
With yaml.Node `yaml:"with"`
}

Expand Down
149 changes: 149 additions & 0 deletions cmd/skillsfixture/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
// Command skillsfixture serves a fake upstream MCP server with three skills so
// the Skills tab of the Web UI can be exercised against a real core (spec 125,
// docs/development/web-ui-verification.md). It is a development tool, not part
// of any release.
//
// skillsfixture -addr 127.0.0.1:18931
//
// Point an upstream at <printed URL>/mcp (streamable HTTP). To make a skill
// change, POST the new bytes of one file:
//
// curl -X POST -H 'X-Skills-Fixture: mutate' --data-binary @SKILL.md \
// 'http://127.0.0.1:18931/_fixture/mutate?skill=plain&file=SKILL.md'
//
// It answers only requests whose Host is the address it listens on (no DNS
// rebinding), and mutate refuses any request with an Origin header.
package main

import (
"flag"
"fmt"
"io"
"log"
"net"
"net/http"
"os"
"slices"
"strings"

"github.com/smart-mcp-proxy/mcpproxy-go/internal/skills/skillstest"
)

func main() {
addr := flag.String("addr", "127.0.0.1:0", "listen address (loopback only)")
flag.Parse()
if err := run(*addr); err != nil {
log.Fatal(err)
}
}

func run(addr string) error {
host, _, err := net.SplitHostPort(addr)
if err != nil {
return err
}
if ip := net.ParseIP(host); host != "localhost" && (ip == nil || !ip.IsLoopback()) {
return fmt.Errorf("skillsfixture listens on loopback only, got %q", host)
}
ln, err := net.Listen("tcp", addr)
if err != nil {
return err
}
f := skillstest.NewDetached()
Seed(f)
if _, err := fmt.Fprintf(os.Stdout, "skillsfixture listening on http://%s/mcp\n", ln.Addr()); err != nil {
_ = ln.Close()
return fmt.Errorf("announce fixture address: %w", err)
}
return http.Serve(ln, Handler(f, allowedHosts(addr, ln.Addr())...))
}

// Seed registers the three skills: a plain one, one with a supporting text file
// and a binary file, and one with a file large enough to need several parts.
func Seed(f *skillstest.Fixture) {
f.AddSkill(skillstest.Skill{Path: "plain"})
f.AddSkill(skillstest.Skill{
Path: "with-files",
Files: map[string][]byte{
"notes.txt": []byte("Supporting notes\nsecond line\n"),
"logo.bin": {0x89, 'P', 'N', 'G', 0x00, 0x01, 0x02, 0x03},
},
Binary: []string{"logo.bin"},
})
var big strings.Builder
for i := 1; big.Len() < 150*1024; i++ {
fmt.Fprintf(&big, "line %06d of the large reference file\n", i)
}
f.AddSkill(skillstest.Skill{
Path: "big",
Files: map[string][]byte{"data/large.txt": []byte(big.String())},
})
}

// MutateHeader must carry MutateHeaderValue on every mutate request. A web page
// cannot add a custom header to a cross-site request without a CORS preflight,
// which the fixture never grants, so a page the operator happens to have open
// cannot change a skill under review.
const (
MutateHeader = "X-Skills-Fixture"
MutateHeaderValue = "mutate"
)

// allowedHosts is the set of Host values the fixture answers: the address it
// actually listens on, plus localhost:<port> when it was started as localhost.
func allowedHosts(requested string, actual net.Addr) []string {
out := []string{actual.String()}
if host, _, err := net.SplitHostPort(requested); err == nil && host == "localhost" {
if _, port, err := net.SplitHostPort(actual.String()); err == nil {
out = append(out, net.JoinHostPort("localhost", port))
}
}
return out
}

// Handler serves the fixture's JSON-RPC on every path except /_fixture/mutate,
// which replaces one file: POST ?skill=<path>&file=<relpath> with the new bytes
// as the body and the MutateHeader set. Any request whose Host is not one of
// hosts (DNS rebinding: a foreign name that resolves to 127.0.0.1) is refused
// with 421, and a mutate request that carries an Origin header (every browser
// request does) is refused with 403.
func Handler(f *skillstest.Fixture, hosts ...string) http.Handler {
mux := http.NewServeMux()
mux.HandleFunc("/_fixture/mutate", func(w http.ResponseWriter, r *http.Request) {
if r.Method != http.MethodPost {
http.Error(w, "POST only", http.StatusMethodNotAllowed)
return
}
if _, ok := r.Header["Origin"]; ok {
http.Error(w, "mutate refuses browser requests (Origin header present)", http.StatusForbidden)
return
}
if r.Header.Get(MutateHeader) != MutateHeaderValue {
http.Error(w, "mutate needs the header "+MutateHeader+": "+MutateHeaderValue, http.StatusForbidden)
return
}
skill, file := r.URL.Query().Get("skill"), r.URL.Query().Get("file")
if skill == "" || file == "" {
http.Error(w, "skill and file are required", http.StatusBadRequest)
return
}
body, err := io.ReadAll(io.LimitReader(r.Body, 4<<20))
if err != nil || len(body) == 0 {
http.Error(w, "a non-empty body is required", http.StatusBadRequest)
return
}
if err := f.TryMutate(skill, file, body); err != nil {
http.Error(w, err.Error(), http.StatusNotFound)
return
}
w.WriteHeader(http.StatusNoContent)
})
mux.Handle("/", f.Handler())
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
if !slices.Contains(hosts, r.Host) {
http.Error(w, "unexpected Host", http.StatusMisdirectedRequest)
return
}
mux.ServeHTTP(w, r)
})
}
Loading
Loading