

Also from Kynth Studios


Also from Kynth Studios


Also from Kynth Studios
123456# AI Governance — Copilot Instructions78> Applied automatically when working with AI model code, model cards, Bedrock, or SageMaker files. Loaded alongside copilot-instructions.md.910---1112## EU AI Act Risk Tier Classification1314Before deploying any AI system, classify it using the following tier table. Record the classification in the system's model card.1516| Tier | Definition | Examples | Controls Required |17|------|-----------|---------|------------------|18| **Unacceptable Risk** | Banned — must not be deployed | Real-time biometric surveillance in public spaces; social scoring systems; subliminal manipulation | Do not build |19| **High Risk** | Directly affects fundamental rights or safety | Credit scoring, employment screening, medical diagnosis, law enforcement, educational assessment, critical infrastructure control | Full HITL, audit trail, bias evaluation, model card, ARB + AI governance approval |20| **Limited Risk** | Transparency obligations only | Chatbots, content recommendation, synthetic media | Disclosure to users, hallucination controls, model card recommended |21| **Minimal Risk** | No specific obligation | Spam filters, AI game NPCs, basic document search | Best practices; model card optional |2223### High-Risk Classification Examples for This Organisation2425| System | EU AI Act Article | Classification |26|--------|------------------|---------------|27| Credit risk model | Art. 6(2), Annex III §5 | High Risk |28| HR candidate ranking | Art. 6(2), Annex III §4 | High Risk |29| Clinical decision support | Art. 6(2), Annex III §6 | High Risk |30| Automated underwriting | Art. 6(2), Annex III §5 | High Risk |31| Customer service chatbot | Art. 50 | Limited Risk |32| Fraud detection (alert only) | Art. 6(2), Annex III §6 | High Risk |3334---3536## Mandatory Model Card Sections3738Every AI system deployed to production must have a model card at `docs/ai-models/{system-name}/MODEL-CARD.md`. Use this template:3940```markdown41# Model Card: {System Name}4243Version: {semver}44Date: YYYY-MM-DD45Status: Draft | Reviewed | Approved46Owner: {team name}47EU AI Act Tier: Unacceptable | High | Limited | Minimal48ISO 42001 Review Completed: Yes | No | N/A4950## System Overview5152One paragraph: what does this system do, what decisions does it influence or automate?5354## Intended Use5556- **Primary use case:** {specific description}57- **Intended users:** {who operates or is subject to this system}58- **Deployment context:** {production environment description}5960## Out-of-Scope Use6162- Do not use for {specific misuse scenario 1}63- Do not use for {specific misuse scenario 2}64- Not validated for use with {excluded population or context}6566## Training Data6768- **Dataset:** {name, version, or description}69- **Date range:** {earliest — latest}70- **Size:** {number of samples}71- **Source:** {internal systems | licensed | public — specify licence}72- **PII included:** Yes (anonymised via {method}) | No73- **Known biases:** {list any known demographic or contextual biases in the training data}7475## Evaluation Results7677| Metric | Value | Dataset | Notes |78|--------|-------|---------|-------|79| Accuracy | 0.94 | held-out test set (n=10,000) | |80| Precision | 0.91 | held-out test set | |81| Recall | 0.88 | held-out test set | |82| F1 | 0.895 | held-out test set | |83| p99 Latency | 180ms | production load test | SageMaker ml.m5.xlarge |84| Faithfulness (RAG) | 0.82 | RAGAS evaluation set | Minimum threshold: 0.7 |8586## Fairness Evaluation8788Evaluated using **Amazon SageMaker Clarify** — results at `docs/ai-models/{name}/clarify-report/`.8990| Demographic Group | Metric | Value | Acceptable Threshold | Pass/Fail |91|------------------|--------|-------|---------------------|-----------|92| Gender (Male vs Female) | Disparate Impact | 0.95 | ≥ 0.80 | Pass |93| Age (< 30 vs ≥ 30) | Statistical Parity Difference | 0.03 | ≤ 0.10 | Pass |9495## Known Limitations9697- {Limitation 1 — be specific, e.g., "Performance degrades for non-English text; BLEU score drops 40% for Spanish input"}98- {Limitation 2}99- {Limitation 3}100101## Ethical Considerations102103- {List any ethical risks identified and how they are mitigated}104- Human review required for: {list decision types that must be reviewed by a human}105106## EU AI Act Compliance107108- Conformity Assessment: {Internal | Third-party notified body} — Reference: {document ID}109- Technical Documentation: `docs/ai-models/{name}/technical-documentation/`110- Register Entry: EU AI Act Registration Number {number} (for High Risk)111112## Contact and Governance113114- System Owner: {name, email}115- AI Ethics Review: ai-governance@{company}.com116- Report issues: {Jira project or email}117- Review cadence: Quarterly (model performance) | Annually (full governance review)118```119120---121122## ISO 42001 Controls — Required Before Production Deployment123124ISO 42001 defines an AI Management System (AIMS). The following controls are required for all production AI systems in this organisation:125126| Control | ISO 42001 Reference | Verification |127|---------|-------------------|-------------|128| AI policy documented and approved | §5.2 | Document at `docs/ai-governance/ai-policy.md` |129| Risk assessment completed | §6.1.2 | `ai-risk-assessment.prompt.md` output stored |130| Objectives and KPIs defined | §6.2 | In model card Evaluation Results section |131| Roles and responsibilities assigned | §5.3 | Model card Contact section completed |132| Data governance documented | §8.4 | Data lineage and consent documented |133| Monitoring and measurement active | §9.1 | SageMaker Model Monitor configured |134| Internal audit scheduled | §9.2 | Quarterly review in calendar |135| Nonconformity and corrective action process | §10.1 | AI incident classification process followed |136137---138139## Audit Trail Requirements140141All High-Risk AI systems must emit **immutable audit log records** for every inference. Log to a write-once store (e.g., AWS CloudTrail Lake, S3 with Object Lock).142143### Required Fields per Inference Record144145```json146{147 "event_type": "ai_inference",148 "model_id": "arn:aws:bedrock:eu-west-1::foundation-model/anthropic.claude-3-sonnet-20240229-v1:0",149 "model_version": "3-sonnet-20240229-v1:0",150 "system_id": "credit-risk-scoring-v2",151 "input_hash_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",152 "output_hash_sha256": "a665a45920422f9d417e4867efdc4fb8a04a1f3fff1fa07e998e86f7f7a27ae3",153 "user_id": "usr_abc123",154 "session_id": "sess_xyz789",155 "timestamp": "2024-11-01T14:30:00.000Z",156 "latency_ms": 142,157 "cost_tokens": { "input": 512, "output": 128 },158 "decision_outcome": "APPROVED | DECLINED | REFERRED",159 "hitl_reviewed": false,160 "hitl_reviewer_id": null,161 "jurisdiction": "GB"162}163```164165- Do **not** log raw input or output — log hashes only (PII protection)166- Retention: minimum 5 years for High-Risk systems (EU AI Act Article 12)167- Logs must be exportable for regulatory inspection within 24 hours of request168169---170171## Human-in-the-Loop (HITL) Requirements172173| EU AI Act Tier | HITL Required | Mode |174|---------------|--------------|------|175| High Risk | Mandatory | Meaningful oversight — human can override every decision |176| Limited Risk | Recommended | Escalation path available |177| Minimal Risk | Not required | — |178179### HITL Implementation Pattern180181- High-Risk systems must present a **confidence score** alongside every automated decision182- If `confidence < 0.85`, the system must **automatically route to human review**183- The human reviewer must be provided with the model's explanation (SHAP values or equivalent)184- Override decisions must be logged with reviewer ID and reasoning185- HITL override rate must be reported in quarterly model performance reviews186187---188189## Hallucination and Groundedness Thresholds (RAG Systems)190191| Metric | Tool | Minimum Threshold | Action if Below |192|--------|------|------------------|----------------|193| Faithfulness | RAGAS | 0.70 | Block deployment; retune retrieval |194| Answer Relevancy | RAGAS | 0.75 | Review prompt template; expand context window |195| Context Precision | RAGAS | 0.65 | Improve chunking strategy or embedding model |196| Context Recall | RAGAS | 0.70 | Increase top-k retrieval; review document preprocessing |197198Run RAGAS evaluation as part of ML CI pipeline before every model version promotion.199200---201202## Bias Evaluation — SageMaker Clarify203204Required for all systems used in: credit decisions, employment screening, healthcare triage, insurance underwriting.205206```python207# SageMaker Clarify bias configuration208from sagemaker import clarify209210clarify_processor = clarify.SageMakerClarifyProcessor(211 role=role,212 instance_count=1,213 instance_type="ml.m5.xlarge",214 sagemaker_session=session215)216217bias_config = clarify.BiasConfig(218 label_values_or_threshold=[1], # positive outcome value219 facet_name="gender", # protected attribute220 facet_values_or_threshold=["F"], # group to evaluate221 group_name="age_band" # intersectional analysis222)223224# Acceptable thresholds — fail CI if exceeded225# DI (Disparate Impact): must be >= 0.80 (i.e., minority group ≥ 80% of majority group outcome rate)226# SPD (Statistical Parity Difference): must be <= ±0.10227# FTR (False Positive Rate difference): must be <= 0.05 for credit/employment decisions228```229230---231232## AI Acceptable Use Policy Template233234Include in `docs/ai-governance/acceptable-use-policy.md`:235236```markdown237## Prohibited Uses238239- Generating content that impersonates a real person without consent240- Automated decision-making on loan/employment/housing applications without HITL for edge cases241- Processing special category personal data (health, biometrics, religion) without explicit consent242- Generating synthetic training data from production PII without anonymisation review243244## Required Disclosures245246- Users must be informed when interacting with an AI system (chatbots, automated emails, scoring systems)247- AI-generated content presented externally must be labelled as AI-generated248249## Incident Reporting250251Report AI incidents (bias discovered, model drift, unexpected outputs) via the AI incident register at {Jira project}.252```253254---255256## AI Incident Classification257258| Class | Definition | Response |259|-------|-----------|---------|260| AI-P1 | Discriminatory outcome confirmed; regulatory breach | Disable system immediately; notify DPO; ARB within 24h |261| AI-P2 | Model drift detected (PSI > 0.2); significant accuracy degradation | Page on-call ML engineer; retrain within 48h |262| AI-P3 | Evaluation metric dropped below threshold; unexpected output pattern | ML team investigates next business day |263| AI-P4 | Isolated unusual output; no systemic pattern | Log in model card Known Limitations; review at next quarterly |264
One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| doubts-suplab/eeik-bootstrap.clinerules/golden-rules.md · 1 | Cline rules | gitsecuritydo-not | 61/100 | today | |
| doubts-suplab/eeik-bootstrap.clinerules/project.md · 1 | Cline rules | teststylegit | 63/100 | today | |
| doubts-suplab/eeik-bootstrap.cursor/rules/architecture.mdc · 1 | Cursor rules | do-not | 52/100 | today | |
| doubts-suplab/eeik-bootstrap.cursor/rules/capabilities.mdc · 1 | Cursor rules | teststylegit | 58/100 | today | |
| doubts-suplab/eeik-bootstrap.cursor/rules/golden-rules.mdc · 1 | Cursor rules | gitsecuritydo-not | 61/100 | today | |
| doubts-suplab/eeik-bootstrap.cursor/rules/python.mdc · 1 | Cursor rules | lint-formatstyletypesapi+1 | 77/100 | today | |
| doubts-suplab/eeik-bootstrap.cursor/rules/security.mdc · 1 | Cursor rules | security | 39/100 | today | |
| doubts-suplab/eeik-bootstrap.github/copilot-instructions.md · 1 | Copilot instructions | lint-formatstyletesting-strategygit+2 | 54/100 | today | |
| doubts-suplab/eeik-bootstrap.github/instructions/a2a-protocol.instructions.md · 1 | Copilot instructions | styleagent-behaviour | 48/100 | today | |
| doubts-suplab/eeik-bootstrap.github/instructions/angular.instructions.md · 1 | Copilot instructions | teststyletypestesting-strategy+4 | 69/100 | today | |
| doubts-suplab/eeik-bootstrap.github/instructions/architecture-governance.instructions.md · 1 | Copilot instructions | testlint-formatstylegit+4 | 65/100 | today | |
| doubts-suplab/eeik-bootstrap.github/instructions/autogen.instructions.md · 1 | Copilot instructions | typessecurityagent-behaviour | 50/100 | today | |
| doubts-suplab/eeik-bootstrap.github/instructions/aws-architecture.instructions.md · 1 | Copilot instructions | styletypessecurityperformance | 58/100 | today | |
| doubts-suplab/eeik-bootstrap.github/instructions/aws-data-ml-ai.instructions.md · 1 | Copilot instructions | deployment | 54/100 | today | |
| doubts-suplab/eeik-bootstrap.github/instructions/cdk-terraform.instructions.md · 1 | Copilot instructions | teststylearchtypes+2 | 96/100 | today | |
| doubts-suplab/eeik-bootstrap.github/instructions/cicd.instructions.md · 1 | Copilot instructions | stylesecuritydeploymentdo-not+1 | 65/100 | today | |
| doubts-suplab/eeik-bootstrap.github/instructions/containerisation.instructions.md · 1 | Copilot instructions | buildstylesecuritydo-not | 77/100 | today | |
| doubts-suplab/eeik-bootstrap.github/instructions/crewai.instructions.md · 1 | Copilot instructions | styleagent-behaviour | 48/100 | today | |
| doubts-suplab/eeik-bootstrap.github/instructions/data-engineering.instructions.md · 1 | Copilot instructions | teststyletypesgit+5 | 69/100 | today | |
| doubts-suplab/eeik-bootstrap.github/instructions/deployment.instructions.md · 1 | Copilot instructions | teststylegitdeployment | 77/100 | today |
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| HerringtonDarkholme/megarepo.github/copilot-instructions.md · 17 | Copilot instructions | setupbuildtestlint-format+7 | 100/100 | 14 days ago | |
| louislam/uptime-kuma.github/copilot-instructions.md · 90k | Copilot instructions | setupbuildtestlint-format+9 | 100/100 | 14 days ago | |
| chihebnabil/lovable-boilerplate.github/instructions/global.instructions.md · 65 | Copilot instructions | buildlint-formatstylearch+4 | 100/100 | 14 days ago | |
| pytorch/pytorch.github/copilot-instructions.md · 102k | Copilot instructions | setupbuildteststyle+5 | 100/100 | 14 days ago | |
| JCodesMore/ai-website-cloner-template.github/copilot-instructions.md · 32k | Copilot instructions | buildlint-formatstylearch+3 | 97/100 | 7 days ago | |
| bagisto/bagisto.github/copilot-instructions.md · 28k | Copilot instructions | setupbuildteststyle+5 | 97/100 | 14 days ago | |
| hiyouga/LlamaFactory.github/copilot-instructions.md · 74k | Copilot instructions | setupbuildtestlint-format+5 | 97/100 | 13 days ago | |
| darkmatter/nixmac.github/copilot-instructions.md · 25 | Copilot instructions | setupbuildtestlint-format+8 | 96/100 | 14 days ago |
A badge carrying the measured quality of the strongest agent config file in this repository, out of 100. It reads from this index every time somebody loads your page, so it changes when the measurement changes and there is nothing to keep up to date. Free, no account, and the value is not something you or we can set by hand.
[](https://rulestack.kynth.studio/configs/doubts-suplab-eeik-bootstrap-github-instructions-ai-governance-instructions)Would rather not hotlink us? Every badge is also served in shields.io’s endpoint schema, so shields renders the image and your readers never talk to our domain:
Published by Toolproof, the masthead over this index and eight others. The method behind the number is at toolproof.kynth.studio/methodology, and the whole thing is readable as JSON with no key at /api.