[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F4V0CZ5CEDCT5BSX6B8JAN":3,"skill-same:01M7F4V0CZ5CEDCT5BSX6B8JAN":45},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7F4V0CZ5CEDCT5BSX6B8JAN","access-control-and-audit",null,"Access control propagation and audit trail — enforces source ACLs at query time, validates permission boundaries, maintains lineage, tracks citations, and logs access for compliance","cwik-tech\u002Foctopus","cwik-tech","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F54542292?v=4","01M7F42E123GEHVK6RWC5MSWJ9","Tomasz Cwik","01M7F42E1PD4P54MTG8PG32VCV",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fcwik-tech\u002Foctopus\u002Fblob\u002Fmain\u002Fagents\u002Fknowledge-governance-architect\u002Fskills\u002Faccess-control-and-audit\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: access-control-and-audit\ndescription: Access control propagation and audit trail — enforces source ACLs at query time, validates permission boundaries, maintains lineage, tracks citations, and logs access for compliance\n---\n\n# Access Control and Audit\n\n## Purpose\n\nPropagation source access control through the retrieval layer and maintain an auditable lineage for every citation. If a user cannot access a document in the source system, they cannot retrieve it through the knowledge base. If a document is retrieved, the citation must be traceable to its source. These are non-negotiable security and governance requirements.\n\nThis skill owns permission enforcement, lineage tracking, and audit compliance.\n\n## When to Use\n\n- Before production handover: test permission boundaries end-to-end\n- Continuously: audit retrieval access logs for violations\n- Quarterly: comprehensive permission-boundary re-test\n- On incidents: investigate access violations or citation failures\n- On source ACL changes: verify propagation to retrieval filters\n- On compliance audits: provide lineage reports and access logs\n\n## How to Use\n\n### 1. Permission Architecture\n\nEvery document in the knowledge base comes with source ACL metadata:\n\n```\ndocument_id: \"doc_12345\"\nsource_uri: \"https:\u002F\u002Fsharepoint.company.com\u002Fsites\u002Fproducts\u002FProduct%20Spec.docx\"\nsource_owner: \"alice@company.com\"\nsource_acl: [\"alice@company.com\", \"eng-team@company.com\", \"product-council@company.com\"]\nacl_update_timestamp: \"2026-08-20T14:32:00Z\"\n```\n\nWhen an agent or user queries the knowledge base, the retrieval service must filter results:\n\n1. **Retrieve candidate chunks** using semantic search, lexical search, reranking.\n2. **Filter by ACL:** for each returned chunk, check the source document's ACL. Only return chunks from documents the querying user has permission to access.\n3. **Log the access:** (see Audit Trail section below).\n4. **Return filtered results:** if all chunks are filtered out, abstain (return zero results or a \"not found\" message, not a permission-denied error that leaks the existence of the document).\n\n**Implementation:**\n\n- Store source_acl and acl_update_timestamp in the metadata index (alongside chunk text and embeddings).\n- At query time, resolve the querying user's identity (from authentication\u002Fauthorization layer).\n- For each candidate chunk, check if user ∈ chunk.source_acl.\n- Return only filtered chunks.\n\n**ACL updates:**\n\nWhen a source document's ACL changes in SharePoint, the knowledge base must detect and propagate the change:\n\n- **Detect:** during incremental sync, fetch source document ACLs; check if they have changed since the last sync.\n- **Propagate:** update metadata for all chunks from that source; do NOT re-parse the document (only metadata changes).\n- **Validate:** test permission boundaries immediately after ACL changes.\n\n### 2. Permission-Boundary Testing\n\nBefore going to production and quarterly thereafter, run automated permission-boundary tests.\n\n**Test design:**\n\nFor each document in the knowledge base:\n\n1. **Identify a test user who should NOT have access** (use a test account with no special permissions; or create an ACL that explicitly excludes them).\n2. **Query the knowledge base** with a question that would retrieve that document if permissions were not enforced (e.g., search for a unique phrase from the document).\n3. **Verify that the document is NOT returned:** if the test user successfully retrieves the document, permissions are leaking.\n4. **Repeat for each document category** (high-confidentiality, team-specific, archived, etc.).\n\n**Test harness:**\n\n```\nfor each document_d in knowledge_base:\n  test_user = select_unprivileged_user_for(d)\n  results = query_knowledge_base(unique_phrase_from(d), user=test_user)\n  assert document_d NOT in results, f\"SECURITY VIOLATION: test_user retrieved {d}\"\n```\n\n**Execution:**\n- Before production handover: run against entire corpus (100% coverage).\n- Quarterly: run against a random sample (10–20% of corpus).\n- After ACL changes: run tests for affected documents.\n- After permission-filter code changes: run full suite.\n\n**Escalation:**\nIf any test fails, it is a security violation. Stop retrieval service; investigate; fix. Do not proceed until the issue is resolved.\n\n### 3. Lineage Tracking\n\nEvery citation returned from the knowledge base must be traceable to its authoritative source. Lineage has five layers:\n\n**Layer 1: Citation (what the agent got)**\n```\nPassage retrieved by knowledge base:\n\"The product must operate within 15–25°C per spec section 3.2.\"\nInternal citation ID: chunk_uuid = \"5f3e2d1a-9c0b-4e2f-8f3d-1b7c8e2f4a9d\"\n```\n\n**Layer 2: Chunk metadata (where it came from)**\n```\nchunk_metadata:\n  chunk_id: \"5f3e2d1a-9c0b-4e2f-8f3d-1b7c8e2f4a9d\"\n  document_id: \"doc_12345\"\n  markdown_file: \"products\u002Fthermal-spec-v3.md\"\n  heading_path: \"## Thermal Requirements \u002F ### Operating Range\"\n  char_offset: [2048, 2150]\n  parser_version: \"v2.1.0\"\n  parse_timestamp: \"2026-08-15T10:45:00Z\"\n```\n\n**Layer 3: Markdown (authoritative internal representation)**\n```\nMarkdown excerpt from products\u002Fthermal-spec-v3.md:\n---\nmarkdown_id: \"doc_12345\"\nsource_uri: \"https:\u002F\u002Fsharepoint.company.com\u002Fsites\u002Fproducts\u002FThermalSpec_v3.docx\"\nsource_revision: \"rev12345\"\nsource_owner: \"therm-eng@company.com\"\nsource_acl: [\"therm-eng@company.com\", \"product-council@company.com\"]\n---\n\n## Thermal Requirements\n\n### Operating Range\nThe product must operate within 15–25°C per spec section 3.2.\n```\n\n**Layer 4: Parser metadata (how it was converted)**\n```\nParser run for https:\u002F\u002Fsharepoint.company.com\u002Fsites\u002Fproducts\u002FThermalSpec_v3.docx:\n  parser_type: \"docx_converter\"\n  parser_version: \"v2.1.0\"\n  run_timestamp: \"2026-08-15T10:45:00Z\"\n  source_content_hash: \"md5:abc123def456\"\n  markdown_content_hash: \"md5:xyz789uvw012\"\n  is_deterministic: true\n```\n\n**Layer 5: Source (original authority)**\n```\nSharePoint document: ThermalSpec_v3.docx\n  URI: https:\u002F\u002Fsharepoint.company.com\u002Fsites\u002Fproducts\u002FThermalSpec_v3.docx\n  Revision ID: rev12345\n  Last modified: 2026-08-10T14:30:00Z\n  Owner: therm-eng@company.com\n  ACL: [\"therm-eng@company.com\", \"product-council@company.com\"]\n```\n\n**Citation format:**\n\nWhen an agent cites a passage, return all five layers:\n\n```json\n{\n  \"citation\": \"The product must operate within 15–25°C per spec section 3.2.\",\n  \"chunk_id\": \"5f3e2d1a-9c0b-4e2f-8f3d-1b7c8e2f4a9d\",\n  \"document_id\": \"doc_12345\",\n  \"markdown_file\": \"products\u002Fthermal-spec-v3.md\",\n  \"heading_path\": \"## Thermal Requirements \u002F ### Operating Range\",\n  \"source_uri\": \"https:\u002F\u002Fsharepoint.company.com\u002Fsites\u002Fproducts\u002FThermalSpec_v3.docx\",\n  \"source_revision\": \"rev12345\",\n  \"source_owner\": \"therm-eng@company.com\",\n  \"parser_version\": \"v2.1.0\",\n  \"parse_timestamp\": \"2026-08-15T10:45:00Z\",\n  \"source_modified\": \"2026-08-10T14:30:00Z\"\n}\n```\n\n**Validation:**\n- Every returned citation must include all five layers.\n- The source_uri must be resolvable and match the current source revision.\n- The char_offset must point to the exact text in the source.\n- The heading_path must match the document structure.\n- If lineage breaks at any layer, the citation is untrustworthy — do not return it.\n\n### 4. Audit Trail\n\nLog every retrieval access for compliance and security.\n\n**Audit log format:**\n\n```json\n{\n  \"timestamp\": \"2026-08-21T09:15:32.456Z\",\n  \"user_id\": \"user_789\",\n  \"user_identity\": \"bob@company.com\",\n  \"query_id\": \"q_12345\",\n  \"query_text\": \"operating temperature range\",\n  \"results_count\": 3,\n  \"results_filtered_by_acl\": 1,\n  \"returned_documents\": [\n    \"doc_12345\",\n    \"doc_67890\"\n  ],\n  \"filtered_documents\": [\n    \"doc_54321\"\n  ],\n  \"retrieval_latency_ms\": 1240,\n  \"retrieval_model\": \"hybrid+reranker\",\n  \"status\": \"success\"\n}\n```\n\n**Optional: Access-denied log:**\n\n```json\n{\n  \"timestamp\": \"2026-08-21T09:17:05.123Z\",\n  \"user_id\": \"user_999\",\n  \"user_identity\": \"eve@company.com\",\n  \"query_id\": \"q_12346\",\n  \"query_text\": \"confidential roadmap\",\n  \"results_count\": 0,\n  \"all_results_filtered_by_acl\": true,\n  \"documents_in_knowledge_base_matching_query\": 2,\n  \"user_acl_coverage\": 0,\n  \"status\": \"no_results_permission_denied\"\n}\n```\n\n**Retention:**\n- Audit logs must be retained for ≥ 1 year.\n- Do not overwrite or delete logs; archive to cold storage after 90 days.\n- Logs must be tamper-evident (signed, stored immutably, or in append-only storage).\n\n**Analysis:**\n- Monthly: query audit logs for access-denied patterns (e.g., repeated attempts to access restricted content by the same user).\n- Monthly: compute per-user retrieval statistics (most frequently retrieved topics, retrieval patterns).\n- Quarterly: search logs for anomalies (e.g., after-hours access, high-volume queries, unusual queries).\n\n### 5. Incident Response\n\nWhen a permission or lineage issue is discovered:\n\n**Access violation (user successfully retrieved restricted document):**\n1. **Stop:** disable the affected user's retrieval access immediately.\n2. **Investigate:** review audit logs; identify all documents the user accessed that they should not have had permission for; determine the root cause (ACL filter misconfigured, ACL stale, permission check bypassed).\n3. **Notify:** data owners of the affected documents; governance owner; security team.\n4. **Fix:** update ACL metadata, fix filter code, re-run permission-boundary tests.\n5. **Audit:** verify that all unauthorized retrievals have been identified; assess if the issue affected other users.\n6. **Remediate:** restore user access only after fix is verified and root cause is understood.\n\n**Lineage failure (citation cannot be traced to source):**\n1. **Flag:** do not return the citation to the agent; log the failure.\n2. **Investigate:** check chunk metadata (is document_id valid?); check markdown file (does it exist?); check source URI (is it resolvable?); check parser metadata (was the parser version valid?).\n3. **Assess:** is this a single corrupted chunk (re-parse the document) or a systemic issue (indexing failed, storage corruption)?\n4. **Repair:** re-ingest the affected document; re-run chunk validation; re-test retrieval quality.\n5. **Prevent:** add validation gates to the ingestion pipeline to catch broken lineage before index time.\n\n## Rules\n\n1. Source ACLs must be enforced at query time; never relax permissions at the retrieval layer.\n2. Every citation must be traceable through all five lineage layers to the authoritative source.\n3. Permission-boundary tests must pass 100% before production handover and quarterly thereafter.\n4. Audit logs must be retained for ≥ 1 year and be tamper-evident.\n5. Any access violation is a security incident; investigate immediately.\n6. Any lineage failure is a data-integrity incident; do not return the citation.\n7. ACL updates must be detected and propagated within 24 hours of source change.\n8. Do not leak document existence through error messages; return empty results for denied access.","# Access Control and Audit\n\n## Purpose\n\nPropagation source access control through the retrieval layer and maintain an auditable lineage for every citation. If a user cannot access a document in the source system, they cannot retrieve it through the knowledge base. If a document is retrieved, the citation must be traceable to its source. These are non-negotiable security and governance requirements.\n\nThis skill owns permission enforcement, lineage tracking, and audit compliance.\n\n## When to Use\n\n- Before production handover: test permission boundaries end-to-end\n- Continuously: audit retrieval access logs for violations\n- Quarterly: comprehensive permission-boundary re-test\n- On incidents: investigate access violations or citation failures\n- On source ACL changes: verify propagation to retrieval filters\n- On compliance audits: provide lineage reports and access logs\n\n## How to Use\n\n### 1. Permission Architecture\n\nEvery document in the knowledge base comes with source ACL metadata:\n\n```\ndocument_id: \"doc_12345\"\nsource_uri: \"https:\u002F\u002Fsharepoint.company.com\u002Fsites\u002Fproducts\u002FProduct%20Spec.docx\"\nsource_owner: \"alice@company.com\"\nsource_acl: [\"alice@company.com\", \"eng-team@company.com\", \"product-council@company.com\"]\nacl_update_timestamp: \"2026-08-20T14:32:00Z\"\n```\n\nWhen an agent or user queries the knowledge base, the retrieval service must filter results:\n\n1. **Retrieve candidate chunks** using semantic search, lexical search, reranking.\n2. **Filter by ACL:** for each returned chunk, check the source document's ACL. Only return chunks from documents the querying user has permission to access.\n3. **Log the access:** (see Audit Trail section below).\n4. **Return filtered results:** if all chunks are filtered out, abstain (return zero results or a \"not found\" message, not a permission-denied error that leaks the existence of the document).\n\n**Implementation:**\n\n- Store source_acl and acl_update_timestamp in the metadata index (alongside chunk text and embeddings).\n- At query time, resolve the querying user's identity (from authentication\u002Fauthorization layer).\n- For each candidate chunk, check if user ∈ chunk.source_acl.\n- Return only filtered chunks.\n\n**ACL updates:**\n\nWhen a source document's ACL changes in SharePoint, the knowledge base must detect and propagate the change:\n\n- **Detect:** during incremental sync, fetch source document ACLs; check if they have changed since the last sync.\n- **Propagate:** update metadata for all chunks from that source; do NOT re-parse the document (only metadata changes).\n- **Validate:** test permission boundaries immediately after ACL changes.\n\n### 2. Permission-Boundary Testing\n\nBefore going to production and quarterly thereafter, run automated permission-boundary tests.\n\n**Test design:**\n\nFor each document in the knowledge base:\n\n1. **Identify a test user who should NOT have access** (use a test account with no special permissions; or create an ACL that explicitly excludes them).\n2. **Query the knowledge base** with a question that would retrieve that document if permissions were not enforced (e.g., search for a unique phrase from the document).\n3. **Verify that the document is NOT returned:** if the test user successfully retrieves the document, permissions are leaking.\n4. **Repeat for each document category** (high-confidentiality, team-specific, archived, etc.).\n\n**Test harness:**\n\n```\nfor each document_d in knowledge_base:\n  test_user = select_unprivileged_user_for(d)\n  results = query_knowledge_base(unique_phrase_from(d), user=test_user)\n  assert document_d NOT in results, f\"SECURITY VIOLATION: test_user retrieved {d}\"\n```\n\n**Execution:**\n- Before production handover: run against entire corpus (100% coverage).\n- Quarterly: run against a random sample (10–20% of corpus).\n- After ACL changes: run tests for affected documents.\n- After permission-filter code changes: run full suite.\n\n**Escalation:**\nIf any test fails, it is a security violation. Stop retrieval service; investigate; fix. Do not proceed until the issue is resolved.\n\n### 3. Lineage Tracking\n\nEvery citation returned from the knowledge base must be traceable to its authoritative source. Lineage has five layers:\n\n**Layer 1: Citation (what the agent got)**\n```\nPassage retrieved by knowledge base:\n\"The product must operate within 15–25°C per spec section 3.2.\"\nInternal citation ID: chunk_uuid = \"5f3e2d1a-9c0b-4e2f-8f3d-1b7c8e2f4a9d\"\n```\n\n**Layer 2: Chunk metadata (where it came from)**\n```\nchunk_metadata:\n  chunk_id: \"5f3e2d1a-9c0b-4e2f-8f3d-1b7c8e2f4a9d\"\n  document_id: \"doc_12345\"\n  markdown_file: \"products\u002Fthermal-spec-v3.md\"\n  heading_path: \"## Thermal Requirements \u002F ### Operating Range\"\n  char_offset: [2048, 2150]\n  parser_version: \"v2.1.0\"\n  parse_timestamp: \"2026-08-15T10:45:00Z\"\n```\n\n**Layer 3: Markdown (authoritative internal representation)**\n```\nMarkdown excerpt from products\u002Fthermal-spec-v3.md:\n---\nmarkdown_id: \"doc_12345\"\nsource_uri: \"https:\u002F\u002Fsharepoint.company.com\u002Fsites\u002Fproducts\u002FThermalSpec_v3.docx\"\nsource_revision: \"rev12345\"\nsource_owner: \"therm-eng@company.com\"\nsource_acl: [\"therm-eng@company.com\", \"product-council@company.com\"]\n---\n\n## Thermal Requirements\n\n### Operating Range\nThe product must operate within 15–25°C per spec section 3.2.\n```\n\n**Layer 4: Parser metadata (how it was converted)**\n```\nParser run for https:\u002F\u002Fsharepoint.company.com\u002Fsites\u002Fproducts\u002FThermalSpec_v3.docx:\n  parser_type: \"docx_converter\"\n  parser_version: \"v2.1.0\"\n  run_timestamp: \"2026-08-15T10:45:00Z\"\n  source_content_hash: \"md5:abc123def456\"\n  markdown_content_hash: \"md5:xyz789uvw012\"\n  is_deterministic: true\n```\n\n**Layer 5: Source (original authority)**\n```\nSharePoint document: ThermalSpec_v3.docx\n  URI: https:\u002F\u002Fsharepoint.company.com\u002Fsites\u002Fproducts\u002FThermalSpec_v3.docx\n  Revision ID: rev12345\n  Last modified: 2026-08-10T14:30:00Z\n  Owner: therm-eng@company.com\n  ACL: [\"therm-eng@company.com\", \"product-council@company.com\"]\n```\n\n**Citation format:**\n\nWhen an agent cites a passage, return all five layers:\n\n```json\n{\n  \"citation\": \"The product must operate within 15–25°C per spec section 3.2.\",\n  \"chunk_id\": \"5f3e2d1a-9c0b-4e2f-8f3d-1b7c8e2f4a9d\",\n  \"document_id\": \"doc_12345\",\n  \"markdown_file\": \"products\u002Fthermal-spec-v3.md\",\n  \"heading_path\": \"## Thermal Requirements \u002F ### Operating Range\",\n  \"source_uri\": \"https:\u002F\u002Fsharepoint.company.com\u002Fsites\u002Fproducts\u002FThermalSpec_v3.docx\",\n  \"source_revision\": \"rev12345\",\n  \"source_owner\": \"therm-eng@company.com\",\n  \"parser_version\": \"v2.1.0\",\n  \"parse_timestamp\": \"2026-08-15T10:45:00Z\",\n  \"source_modified\": \"2026-08-10T14:30:00Z\"\n}\n```\n\n**Validation:**\n- Every returned citation must include all five layers.\n- The source_uri must be resolvable and match the current source revision.\n- The char_offset must point to the exact text in the source.\n- The heading_path must match the document structure.\n- If lineage breaks at any layer, the citation is untrustworthy — do not return it.\n\n### 4. Audit Trail\n\nLog every retrieval access for compliance and security.\n\n**Audit log format:**\n\n```json\n{\n  \"timestamp\": \"2026-08-21T09:15:32.456Z\",\n  \"user_id\": \"user_789\",\n  \"user_identity\": \"bob@company.com\",\n  \"query_id\": \"q_12345\",\n  \"query_text\": \"operating temperature range\",\n  \"results_count\": 3,\n  \"results_filtered_by_acl\": 1,\n  \"returned_documents\": [\n    \"doc_12345\",\n    \"doc_67890\"\n  ],\n  \"filtered_documents\": [\n    \"doc_54321\"\n  ],\n  \"retrieval_latency_ms\": 1240,\n  \"retrieval_model\": \"hybrid+reranker\",\n  \"status\": \"success\"\n}\n```\n\n**Optional: Access-denied log:**\n\n```json\n{\n  \"timestamp\": \"2026-08-21T09:17:05.123Z\",\n  \"user_id\": \"user_999\",\n  \"user_identity\": \"eve@company.com\",\n  \"query_id\": \"q_12346\",\n  \"query_text\": \"confidential roadmap\",\n  \"results_count\": 0,\n  \"all_results_filtered_by_acl\": true,\n  \"documents_in_knowledge_base_matching_query\": 2,\n  \"user_acl_coverage\": 0,\n  \"status\": \"no_results_permission_denied\"\n}\n```\n\n**Retention:**\n- Audit logs must be retained for ≥ 1 year.\n- Do not overwrite or delete logs; archive to cold storage after 90 days.\n- Logs must be tamper-evident (signed, stored immutably, or in append-only storage).\n\n**Analysis:**\n- Monthly: query audit logs for access-denied patterns (e.g., repeated attempts to access restricted content by the same user).\n- Monthly: compute per-user retrieval statistics (most frequently retrieved topics, retrieval patterns).\n- Quarterly: search logs for anomalies (e.g., after-hours access, high-volume queries, unusual queries).\n\n### 5. Incident Response\n\nWhen a permission or lineage issue is discovered:\n\n**Access violation (user successfully retrieved restricted document):**\n1. **Stop:** disable the affected user's retrieval access immediately.\n2. **Investigate:** review audit logs; identify all documents the user accessed that they should not have had permission for; determine the root cause (ACL filter misconfigured, ACL stale, permission check bypassed).\n3. **Notify:** data owners of the affected documents; governance owner; security team.\n4. **Fix:** update ACL metadata, fix filter code, re-run permission-boundary tests.\n5. **Audit:** verify that all unauthorized retrievals have been identified; assess if the issue affected other users.\n6. **Remediate:** restore user access only after fix is verified and root cause is understood.\n\n**Lineage failure (citation cannot be traced to source):**\n1. **Flag:** do not return the citation to the agent; log the failure.\n2. **Investigate:** check chunk metadata (is document_id valid?); check markdown file (does it exist?); check source URI (is it resolvable?); check parser metadata (was the parser version valid?).\n3. **Assess:** is this a single corrupted chunk (re-parse the document) or a systemic issue (indexing failed, storage corruption)?\n4. **Repair:** re-ingest the affected document; re-run chunk validation; re-test retrieval quality.\n5. **Prevent:** add validation gates to the ingestion pipeline to catch broken lineage before index time.\n\n## Rules\n\n1. Source ACLs must be enforced at query time; never relax permissions at the retrieval layer.\n2. Every citation must be traceable through all five lineage layers to the authoritative source.\n3. Permission-boundary tests must pass 100% before production handover and quarterly thereafter.\n4. Audit logs must be retained for ≥ 1 year and be tamper-evident.\n5. Any access violation is a security incident; investigate immediately.\n6. Any lineage failure is a data-integrity incident; do not return the citation.\n7. ACL updates must be detected and propagated within 24 hours of source change.\n8. Do not leak document existence through error messages; return empty results for denied access.",{"name":5,"description":7},"main","f0f0efe1d4c64b51a51f44427ad147750d29154e","agents\u002Fknowledge-governance-architect\u002Fskills\u002Faccess-control-and-audit","https:\u002F\u002Fgithub.com\u002Fcwik-tech\u002Foctopus","www.cuteoctopus.site","https:\u002F\u002Fgithub.com\u002Fcwik-tech","2026-10-27 06:12:19",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add cwik-tech\u002Foctopus --skill access-control-and-audit",{"tool":37,"command":38},"bunx","bunx skills add cwik-tech\u002Foctopus --skill access-control-and-audit",{"tool":40,"command":41},"pnpm","pnpm dlx skills add cwik-tech\u002Foctopus --skill access-control-and-audit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcwik-tech\u002Foctopus\u002Fblob\u002Fmain\u002Fagents\u002Fknowledge-governance-architect\u002Fskills\u002Faccess-control-and-audit\u002FSKILL.md",true,[],[46,53,60,67,74,81],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":19},"01M7F5MQVQ3CHGM77Q51M4B1AC","twenty-year-land-plan","Apply the Bren discipline of evaluating every land and development decision on a twenty-year horizon, with a comprehensive plan for how the land, the community, and the surrounding public infrastructure evolve together. Deals optimized for a five-year exit are structurally different from deals that compound across generations; insist on knowing which kind you are making. Use when evaluating land, entitlements, master-planned development, or phasing decisions, and when separating five-year exit deals from generational holds.","https:\u002F\u002Fgithub.com\u002Fcwik-tech\u002Foctopus\u002Fblob\u002Fmain\u002Fskills\u002Ftwenty-year-land-plan\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M7F5MGQ8JSV27SFDQVVGFQE3","thematic-gut-check","Apply the Gray discipline of identifying the structural theme behind every real estate deal, testing where that theme sits in its capital-flow lifecycle, and insisting that deals without a named theme — or deals late in a crowded theme — clear a higher bar. A mediocre deal in a strong theme usually beats a clever deal in a weak one. Use when naming the structural thesis behind a deal, judging whether that theme is early or crowded, and setting the bar the deal must clear.","https:\u002F\u002Fgithub.com\u002Fcwik-tech\u002Foctopus\u002Fblob\u002Fmain\u002Fskills\u002Fthematic-gut-check\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M7F5M8V64Y0ZD8PTPWEJQXJ9","supply-pipeline-gut-check","Apply the Zell discipline of grounding every real estate thesis in the local supply pipeline. Demand counts over adjectives — units under construction, units permitted, units proposed — and convert them into a forward absorption schedule. A deal that ignores the pipeline is a bet on a market you have not actually studied. Use when validating a market thesis, forecasting absorption and rent growth, or counting units under construction, permitted, and proposed.","https:\u002F\u002Fgithub.com\u002Fcwik-tech\u002Foctopus\u002Fblob\u002Fmain\u002Fskills\u002Fsupply-pipeline-gut-check\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M7F5M3J2Q146BJC13TD3YCXF","ruin-scenario-mapping","Apply the Taleb discipline of identifying, for every real estate deal, the specific chain of events that produces ruin — permanent, unrecoverable capital loss — and verifying that no single such chain has non-trivial probability. Deals with any plausible ruin path must be restructured or abandoned. Use when sizing leverage, testing refinancing, covenant, and liquidity risk, or checking whether any single failure chain can permanently wipe out the position.","https:\u002F\u002Fgithub.com\u002Fcwik-tech\u002Foctopus\u002Fblob\u002Fmain\u002Fskills\u002Fruin-scenario-mapping\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7F5KZDS0DYD172P6HS0WXEM","revenue-cost-architecture","Design a venture's revenue streams, pricing logic, cost structure, and unit economics so the business model has a coherent theory of value capture, not just value creation. Use after the value proposition and customer segment are set and before financial projections, when choosing a pricing model, calculating contribution margin or CAC payback, or checking whether the unit economics hold at scale.","https:\u002F\u002Fgithub.com\u002Fcwik-tech\u002Foctopus\u002Fblob\u002Fmain\u002Fskills\u002Frevenue-cost-architecture\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7F5KP1CNQMYAVCDTV4EEW3J","replacement-cost-stress-test","Apply the Buffett discipline of pricing every real estate asset against the cost to rebuild it from scratch. The ratio of purchase price to replacement cost sets a ceiling on long-run downside: below replacement cost, new supply cannot profitably undercut you; at or above it, you are buying a liability disguised as an asset. Use when setting a purchase price, judging downside protection, or testing how exposed an asset is to newly built competing supply.","https:\u002F\u002Fgithub.com\u002Fcwik-tech\u002Foctopus\u002Fblob\u002Fmain\u002Fskills\u002Freplacement-cost-stress-test\u002FSKILL.md",[],[]]