Skip to content

refactor: rebuild ECNU skill around routing, engineering and live evidence - #8

Merged
JJasonSun merged 5 commits into
mainfrom
refactor/skill-first-principles
Nov 22, 2026
Merged

JJasonSun merged 5 commits into
mainfrom
refactor/skill-first-principles

Conversation

@JJasonSun

Copy link
Copy Markdown
Owner

Summary

Rebuilds the skill around what the official ECNU docs do not provide, syncs it with ECNU v3.5.0, and adds an audit workflow for existing integrations.

 SKILL.md                      # single routing table → official pages
 references/
+├── audit.md                  # read-only checklist for existing integrations
+├── engineering.md            # concurrency, retries, timeouts, cost, error shapes
+├── troubleshooting.md        # symptom → action → evidence (date + runner case)
 ├── examples.md               # recipes, each with an offline test (+ ecnu-decision)
 ├── models.md                 # dated model snapshot + account pages
-├── api_reference.md          # merged into SKILL.md
-├── workflows.md              # merged into troubleshooting.md
-├── known_deviations.md       # merged into troubleshooting.md (current rows only)
-├── workbuddy_setup.md        # official agent-tool guides cover this
-└── agent_development.md      # historical
-docs/skill-refactor-plan.md   # historical

Every observed (non-documented) behavior names a runner case, so revalidation after a release is mechanical:

after ECNU release
  reread every linked official page
  run smoke_test --profile all
  case passes   → delete its row
  case mismatch → redate its row

Other changes:

  • ecnu-decision (POST /systemone): recipe, runner cases, troubleshooting rows
  • Runner: effort deviation cases, anthropic>=2 (httpx2) support, base64 embedding vectors, no global stop after a local client error that sent no request, status page SSO redirect, cache-hit price 1/10
  • Validator: skips Git-ignored files; checks links and heading anchors in all Markdown
  • Tests: observed troubleshooting rows must name existing runner cases

Evidence

  • Offline: validate_skill.py passes, unittest 81 tests OK (1 skipped), agentskills validate passes.

  • Live (2026-11-23, off-peak): full --profile all run plus targeted cases. Rows kept only where the case still mismatches the docs, for example:

    effort_unsupported_ecnu_plus   thinking + "high" on ecnu-plus   → 500 text/plain
    effort_only_ecnu_max / _plus   reasoning_effort without thinking → reasoning returned
    anthropic_max_1m               ecnu-max[1m]                      → 401
    decision_three_types           choice / noul / score             → pass
    

    Removed because they no longer reproduce: invalid/missing bearer, empty embedding array, Anthropic effort none, rapid-request 401, ecnu-max minimal/medium 500s.

  • Audit workflow: a synthetic legacy project with 12 planted issues, audited by two independent agents.

                        with skill   without skill
    issues found          12/12         11/12
    consequence correct   12/12          8/12   (wrong on plus "high", effort-only,
                                                 over-length embedding, [1m])
    

Merge Danger

Door: two-way

Docs and test tooling only; revert restores the previous files.

Blast Radius: consumers

Installed copies update on npx skills update -g ecnu-api. Links into removed files (api_reference.md, workflows.md, known_deviations.md, workbuddy_setup.md) stop resolving for anyone who bookmarked them.

🤖 Generated with Claude Code

JJasonSun and others added 2 commits November 23, 2026 01:46
…dence

Keep only what the official docs do not provide and make every live claim
reproducible.

- SKILL.md: single routing table linking official pages, including the
  official agent-tool guides; short "before shipping" list
- Add references/engineering.md (concurrency, retries, timeouts, cost,
  error shapes) and references/troubleshooting.md (symptom table with
  dated runner cases, live-check usage)
- Remove api_reference, workflows, known_deviations, workbuddy_setup,
  agent_development and the refactor plan; history stays in Git
- Document ecnu-decision (/systemone) with a tested recipe and runner cases
- Refresh the model snapshot (v3.5.0, 2026-11-23) and cache pricing
- Runner: effort deviation cases, anthropic>=2 (httpx2) support, base64
  embedding vectors, no global stop on local client errors, status-page SSO
  redirect
- Validator: skip Git-ignored files; check links and heading anchors in all
  Markdown; tests require observed rows to name existing runner cases
- AGENTS.md: maintenance rules; maintainer live tests have no credit ceiling

Co-Authored-By: Claude Code <noreply@anthropic.com>
- Add references/audit.md: read-only checklist for existing ECNU
  integrations, grouped by consequence, each check citing its evidence
- Route audits from SKILL.md; trigger on chat.ecnu.edu.cn/open/api,
  ECNU_API_KEY or ecnu-* model names in code
- Recheck all linked official pages: the docs retired the [1m] suffix,
  403 IP allowlist errors are documented, the VL 5 MiB cap does not say
  encoded or decoded, the 32-item batch cap is VL-only
- Note that x-api-key and Bearer were both accepted on the Anthropic API
- Audit flags personal tokens behind shared services (production pool)
- AGENTS.md: doc claims must link their page; revalidation rereads every
  linked page and the runner's expectation strings

Co-Authored-By: Claude Code <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-22T18:14:57.457433Z c90ffc6 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

The template follows the Summary / Evidence / Merge Danger structure and
reminds authors to keep keys, account details and local paths out of PRs.
The glossary fixes the terms used across the skill and its maintenance rules.

Co-Authored-By: Claude Code <noreply@anthropic.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c90ffc6c79

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/smoke_test.py Resolved
Comment thread references/troubleshooting.md Resolved
Comment thread references/examples.md Resolved
Comment thread references/troubleshooting.md Resolved
Comment thread scripts/smoke_test.py Resolved
JJasonSun and others added 2 commits November 23, 2026 02:17
- Runner releases the reservation and records zero spend when an SDK
  fails locally before sending a request
- Base64 embeddings whose byte length is not a multiple of four are
  reported as invalid instead of truncated to a float count
- Decision recipe and runner reject JSON booleans as probabilities or
  confidence
- Troubleshooting: dates are Asia/Shanghai with UTC report times; live-check
  commands no longer assume python3

Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
@JJasonSun
JJasonSun merged commit dafcd37 into main Nov 22, 2026
2 checks passed
@JJasonSun
JJasonSun deleted the refactor/skill-first-principles branch November 22, 2026 18:58
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