[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CG2YHDNMS3FGBEP197AHEP":3,"skill-same:01M6CG2YHDNMS3FGBEP197AHEP":84},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":17,"categories":18,"keywords":29,"publishedAt":51,"linkOnly":52,"markdownContent":53,"markdownBody":54,"frontMatter":55,"refName":56,"commitSha":57,"skillDirectory":58,"forksCount":59,"repositoryHtmlUrl":60,"repositoryHomepageUrl":61,"ownerHtmlUrl":62,"ownerBlogUrl":13,"ownerDescription":13,"updatedAt":63,"install":64,"resources":77},"01M6CG2YHDNMS3FGBEP197AHEP","byot-e2e-validation","BYOT 团队证书认证端到端测试","Use when writing e2e tests for BYOT\u002FAWID team-certificate auth, testing aw id request --team-auth, building a docker awid-service harness, or validating replay, revocation, fail-closed, and team-scoping behavior.","编写 BYOT\u002FAWID 团队证书认证的端到端测试、测试 aw id request --team-auth、搭建 docker awid-service 测试框架，或验证重放攻击、证书撤销、失效关闭（fail-closed）和团队范围隔离等行为时使用。","awebai\u002Faweb","awebai","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F258851262?v=4","01M6CG2164V80VQVXFEXSFQ3P0",null,"01M6CG21ARN03ENSNQ3AKA9HTB",129,"MIT","https:\u002F\u002Fgithub.com\u002Fawebai\u002Faweb\u002Fblob\u002Fmain\u002Fnaapp\u002Ffolio\u002Fskills\u002Fbyot-e2e-validation\u002FSKILL.md",[19,24],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师","PROFESSION","适用职业",{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障","SCENARIO","使用场景",[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],"validation","e2e","byot e2e validation","behavior","when","request","for","id","tests","service","replay","use","scoping","testing","team","certificate","harness","e2e tests","auth","docker","writing","2026-11-10 10:12:30",false,"---\nname: byot-e2e-validation\ndescription: Use when writing e2e tests for BYOT\u002FAWID team-certificate auth, testing aw id request --team-auth, building a docker awid-service harness, or validating replay, revocation, fail-closed, and team-scoping behavior.\n---\n\n# BYOT e2e validation\n\nUse this when testing an agent-first app that relies on AWID team\ncertificates. The goal is to prove the relying-party chain works with real\nkeys, real certificates, real signatures, and real AWID facts.\n\n## Iron rule: no mocked auth in e2e\n\nNo mocked certificates. No mocked signatures. No mocked AWID responses. If\nyou are tempted to mock one of those in e2e, you are about to test nothing.\n\nGenerate real keys and certificates with `aw id` against a local\n`awid-service`. Send requests with `aw id request --team-auth`. Unit tests\ncan cover small parsing and interop cases, but the e2e layer must exercise\nthe same cryptographic and registry path a customer uses.\n\n## Harness shape\n\nThe known-good shape in this repo is `docker-compose.e2e.yml`,\n`tests\u002Ftest_e2e_smoke.py`, and the `Makefile` `e2e` target:\n\n1. Docker Compose starts Postgres, Redis, and `awid-service`.\n2. `AWID_SKIP_DNS_VERIFY=1` lets tests register disposable `.test`\n   namespaces locally.\n3. Each test workspace gets an isolated `HOME` and clean working directory.\n4. Provision through the CLI, not fixtures: `aw id create` →\n   `aw id team create` → `aw id team add-member` → `aw id team fetch-cert`\n   → `aw id team switch`.\n5. Send the application request with `aw id request --team-auth`; never\n   reimplement signing in test code.\n\nOpen finding: current `aw id request --team-auth` needs a workspace binding,\nnot only `.aw\u002Fteams.yaml` plus `.aw\u002Fteam-certs\u002F`. The harness writes a\nminimal `.aw\u002Fworkspace.yaml` after fetching the cert so the released CLI sees\nan active workspace. Document this as a workaround, not as product truth. The\nfile contains only the test service URL, one membership (`team_id`, `alias`,\n`workspace_id`, `cert_path`, `joined_at`), and workspace metadata\n(`human_name`, `agent_type`, `workspace_path`, `updated_at`).\n\n## Required negative suite\n\nAuth-critical negatives must be hard assertions. Do not `xfail` them: an\n`xfail` on auth failure can hide a regression back to 422, 500, or a bypass.\n\nCover at least:\n\n- Missing envelope: assert 401.\n- Replay over the wire: capture one valid request through a recording proxy,\n  replay its headers\u002Fbody against a different path, a different method, and a\n  different audience\u002Fhost; all must 401.\n- Revocation: revoke the member certificate through AWID, wait for the app's\n  auth cache to refresh, and assert the next request fails closed.\n- Fail-closed registry outage: stop `awid-service`; assert requests still\n  succeed while an unexpired cache entry exists, then fail 503\u002F401 after\n  cache expiry. Test both halves.\n- Cross-team scoping: a second real team cannot read or write the first\n  team's documents; naming another `team_id` in the body must not bypass the\n  certificate's `team_id`.\n- Raw body contracts: reject invalid UTF-8 when an endpoint accepts raw text.\n\nAlso assert attribution fields where writes create history: `did_key`, alias,\nand certificate id should come from the verified signer.\n\n## Operational hardening\n\nMake the e2e command boring and repeatable:\n\n- Install the teardown trap **before** `compose up`.\n- Clear stale compose state before starting.\n- Prefer fixture-level health waits over `docker compose --wait`; Compose\n  wait behavior can be flaky with recreated or stale containers.\n- Keep one documented command (`make e2e`) that starts services, runs pytest,\n  and tears everything down.\n- Repeated runs must pass from a dirty Docker environment.\n- Expected auth failures should be asserted in test output, not left as\n  unexplained log noise.\n\n## Reference implementation\n\nUse this repo's current harness as the working example:\n\n- `docker-compose.e2e.yml`\n- `tests\u002Ftest_e2e_smoke.py`\n- `Makefile` `e2e`, `e2e-up`, and `e2e-down` targets\n\nThe code is the source of truth. Keep prose thin and update it when the\nharness changes.\n","# BYOT e2e validation\n\nUse this when testing an agent-first app that relies on AWID team\ncertificates. The goal is to prove the relying-party chain works with real\nkeys, real certificates, real signatures, and real AWID facts.\n\n## Iron rule: no mocked auth in e2e\n\nNo mocked certificates. No mocked signatures. No mocked AWID responses. If\nyou are tempted to mock one of those in e2e, you are about to test nothing.\n\nGenerate real keys and certificates with `aw id` against a local\n`awid-service`. Send requests with `aw id request --team-auth`. Unit tests\ncan cover small parsing and interop cases, but the e2e layer must exercise\nthe same cryptographic and registry path a customer uses.\n\n## Harness shape\n\nThe known-good shape in this repo is `docker-compose.e2e.yml`,\n`tests\u002Ftest_e2e_smoke.py`, and the `Makefile` `e2e` target:\n\n1. Docker Compose starts Postgres, Redis, and `awid-service`.\n2. `AWID_SKIP_DNS_VERIFY=1` lets tests register disposable `.test`\n   namespaces locally.\n3. Each test workspace gets an isolated `HOME` and clean working directory.\n4. Provision through the CLI, not fixtures: `aw id create` →\n   `aw id team create` → `aw id team add-member` → `aw id team fetch-cert`\n   → `aw id team switch`.\n5. Send the application request with `aw id request --team-auth`; never\n   reimplement signing in test code.\n\nOpen finding: current `aw id request --team-auth` needs a workspace binding,\nnot only `.aw\u002Fteams.yaml` plus `.aw\u002Fteam-certs\u002F`. The harness writes a\nminimal `.aw\u002Fworkspace.yaml` after fetching the cert so the released CLI sees\nan active workspace. Document this as a workaround, not as product truth. The\nfile contains only the test service URL, one membership (`team_id`, `alias`,\n`workspace_id`, `cert_path`, `joined_at`), and workspace metadata\n(`human_name`, `agent_type`, `workspace_path`, `updated_at`).\n\n## Required negative suite\n\nAuth-critical negatives must be hard assertions. Do not `xfail` them: an\n`xfail` on auth failure can hide a regression back to 422, 500, or a bypass.\n\nCover at least:\n\n- Missing envelope: assert 401.\n- Replay over the wire: capture one valid request through a recording proxy,\n  replay its headers\u002Fbody against a different path, a different method, and a\n  different audience\u002Fhost; all must 401.\n- Revocation: revoke the member certificate through AWID, wait for the app's\n  auth cache to refresh, and assert the next request fails closed.\n- Fail-closed registry outage: stop `awid-service`; assert requests still\n  succeed while an unexpired cache entry exists, then fail 503\u002F401 after\n  cache expiry. Test both halves.\n- Cross-team scoping: a second real team cannot read or write the first\n  team's documents; naming another `team_id` in the body must not bypass the\n  certificate's `team_id`.\n- Raw body contracts: reject invalid UTF-8 when an endpoint accepts raw text.\n\nAlso assert attribution fields where writes create history: `did_key`, alias,\nand certificate id should come from the verified signer.\n\n## Operational hardening\n\nMake the e2e command boring and repeatable:\n\n- Install the teardown trap **before** `compose up`.\n- Clear stale compose state before starting.\n- Prefer fixture-level health waits over `docker compose --wait`; Compose\n  wait behavior can be flaky with recreated or stale containers.\n- Keep one documented command (`make e2e`) that starts services, runs pytest,\n  and tears everything down.\n- Repeated runs must pass from a dirty Docker environment.\n- Expected auth failures should be asserted in test output, not left as\n  unexplained log noise.\n\n## Reference implementation\n\nUse this repo's current harness as the working example:\n\n- `docker-compose.e2e.yml`\n- `tests\u002Ftest_e2e_smoke.py`\n- `Makefile` `e2e`, `e2e-up`, and `e2e-down` targets\n\nThe code is the source of truth. Keep prose thin and update it when the\nharness changes.\n",{"name":5,"description":7},"main","e93dbd61326d317691715e339739fa5266f02232","naapp\u002Ffolio\u002Fskills\u002Fbyot-e2e-validation",13,"https:\u002F\u002Fgithub.com\u002Fawebai\u002Faweb","https:\u002F\u002Faweb.ai","https:\u002F\u002Fgithub.com\u002Fawebai","2026-11-15 03:33:47",{"source":9,"skillName":5,"commands":65,"prompt":75,"zipAvailable":76},[66,69,72],{"tool":67,"command":68},"npx","npx skills add awebai\u002Faweb --skill byot-e2e-validation",{"tool":70,"command":71},"bunx","bunx skills add awebai\u002Faweb --skill byot-e2e-validation",{"tool":73,"command":74},"pnpm","pnpm dlx skills add awebai\u002Faweb --skill byot-e2e-validation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fawebai\u002Faweb\u002Fblob\u002Fmain\u002Fnaapp\u002Ffolio\u002Fskills\u002Fbyot-e2e-validation\u002FSKILL.md",true,[78],{"path":79,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":82,"sourceHtmlUrl":83},"references\u002Fhex_graph_provider_matrix.md","REFERENCE","参考文档",4019,"https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Flevn-ln-012-mcp-configurator\u002Freferences\u002Fhex_graph_provider_matrix.md",[85,98,108,119,126,133],{"skillNo":86,"name":87,"nameZh":88,"description":13,"descriptionZh":89,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":90,"categories":91,"keywords":97,"publishedAt":51},"01M6CG7FQ52R3DF9BPTSZW0PR6","review","代码审查","","https:\u002F\u002Fgithub.com\u002Fawebai\u002Faweb\u002Fblob\u002Fmain\u002Ftest-vectors\u002Fblueprints\u002Fengineering\u002Fsource\u002Fprofiles\u002Freviewer\u002Fskills\u002Freview\u002FSKILL.md",[92,95],{"categoryNo":93,"categoryName":94,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":96,"categoryName":88,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8CH8T3M7B4Y4V28A6YRCB0N",[87],{"skillNo":99,"name":100,"nameZh":101,"description":13,"descriptionZh":89,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":102,"categories":103,"keywords":107,"publishedAt":51},"01M6CG7DWVMW3CAV6E54JCK20G","implement","代码实现","https:\u002F\u002Fgithub.com\u002Fawebai\u002Faweb\u002Fblob\u002Fmain\u002Ftest-vectors\u002Fblueprints\u002Fengineering\u002Fsource\u002Fprofiles\u002Fdeveloper\u002Fskills\u002Fimplement\u002FSKILL.md",[104,105],{"categoryNo":93,"categoryName":94,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":106,"categoryName":101,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BT7QVANT4709358VEJK53E",[100],{"skillNo":109,"name":110,"nameZh":111,"description":13,"descriptionZh":89,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":112,"categories":113,"keywords":118,"publishedAt":51},"01M6CG7C1TK4X48E909BEN4SN1","coordinate","任务协作协调","https:\u002F\u002Fgithub.com\u002Fawebai\u002Faweb\u002Fblob\u002Fmain\u002Ftest-vectors\u002Fblueprints\u002Fengineering\u002Fsource\u002Fprofiles\u002Fcoordinator\u002Fskills\u002Fcoordinate\u002FSKILL.md",[114,115],{"categoryNo":93,"categoryName":94,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":116,"categoryName":117,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BRN0DBCRG4XGJMB6QQEP11","编码任务委派",[110],{"skillNo":120,"name":87,"nameZh":88,"description":13,"descriptionZh":89,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":121,"categories":122,"keywords":125,"publishedAt":51},"01M6CG79Z76QPYG9478ANWN6BQ","https:\u002F\u002Fgithub.com\u002Fawebai\u002Faweb\u002Fblob\u002Fmain\u002Ftest-vectors\u002Fblueprints\u002Fengineering\u002Fnegatives\u002Ftoken\u002Fprofiles\u002Freviewer\u002Fskills\u002Freview\u002FSKILL.md",[123,124],{"categoryNo":93,"categoryName":94,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":96,"categoryName":88,"taxonomyType":27,"taxonomyTypeDesc":28},[87],{"skillNo":127,"name":100,"nameZh":101,"description":13,"descriptionZh":89,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":128,"categories":129,"keywords":132,"publishedAt":51},"01M6CG77V6E9E7STWA5NNCVWPV","https:\u002F\u002Fgithub.com\u002Fawebai\u002Faweb\u002Fblob\u002Fmain\u002Ftest-vectors\u002Fblueprints\u002Fengineering\u002Fnegatives\u002Ftoken\u002Fprofiles\u002Fdeveloper\u002Fskills\u002Fimplement\u002FSKILL.md",[130,131],{"categoryNo":93,"categoryName":94,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":106,"categoryName":101,"taxonomyType":27,"taxonomyTypeDesc":28},[100],{"skillNo":134,"name":110,"nameZh":111,"description":13,"descriptionZh":89,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":135,"categories":136,"keywords":139,"publishedAt":51},"01M6CG766593VZADKEQ1Z0W6TT","https:\u002F\u002Fgithub.com\u002Fawebai\u002Faweb\u002Fblob\u002Fmain\u002Ftest-vectors\u002Fblueprints\u002Fengineering\u002Fnegatives\u002Ftoken\u002Fprofiles\u002Fcoordinator\u002Fskills\u002Fcoordinate\u002FSKILL.md",[137,138],{"categoryNo":93,"categoryName":94,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":116,"categoryName":117,"taxonomyType":27,"taxonomyTypeDesc":28},[110]]