Skip to content

Commit 49557ea

Browse files
committed
chore: final polish - documentation links, demo pacing, and rate limit tuning
1 parent c1ae376 commit 49557ea

3 files changed

Lines changed: 15 additions & 15 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
> **"One Engine. Two Worlds. Total Accountability."**
1515
16-
[**Full Documentation 📚**](https://daretechie.github.io/CommitVigil/) | [**Live Site 🌐**](https://daretechie.github.io/CommitVigil/) | [**Safety Validation Report 🛡️**](https://daretechie.github.io/CommitVigil/validation/safety_validation_report/)
16+
[**Full Documentation 📚**](https://daretechie.github.io/CommitVigil/) | [**Live Site 🌐**](https://daretechie.github.io/CommitVigil/) | [**Safety Validation Report 🛡️**](https://daretechie.github.io/CommitVigil/validation/safety_validation_report/) | [**Manager Feedback Guide 🎮**](docs/guides/feedback_loop.md)
1717

1818
---
1919

scripts/demo.sh

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -83,21 +83,21 @@ CHECK_IN="I am drowning in these refactor tasks. I've worked 60 hours this week.
8383
curl -s -X POST -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \
8484
"$API_URL/evaluate?sync=true" \
8585
-d "{\"user_id\": \"$USER_ID\", \"commitment\": \"Architecture Refactor\", \"check_in\": \"$CHECK_IN\"}" | jq .
86-
sleep 5
86+
sleep 7
8787
# Scenario B: Japanese Cultural Routing (Wa/Harmony)
8888
echo -e "\n${YELLOW}--- Scenario B: Cultural Persona Routing (Japanese) ---${NC}"
8989
CHECK_IN_JA="申し訳ありませんが、締め切りに間に合わない可能性があります。和を重んじ、精一杯調整いたします。"
9090
curl -s -X POST -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \
9191
"$API_URL/evaluate?sync=true" \
9292
-d "{\"user_id\": \"$USER_ID\", \"commitment\": \"API Sync\", \"check_in\": \"$CHECK_IN_JA\"}" | jq .
93-
sleep 5
93+
sleep 7
9494
# Scenario C: German Directness (Sachlichkeit)
9595
echo -e "\n${YELLOW}--- Scenario C: Cultural Persona Routing (German) ---${NC}"
9696
CHECK_IN_DE="Ich werde die Datenbank-Migration bis Freitag abschließen. Die Fakten sprechen für eine Verzögerung von zwei Tagen."
9797
curl -s -X POST -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \
9898
"$API_URL/evaluate?sync=true" \
9999
-d "{\"user_id\": \"$USER_ID\", \"commitment\": \"DB Migration\", \"check_in\": \"$CHECK_IN_DE\"}" | jq .
100-
sleep 5
100+
sleep 7
101101
# 4. The Industry Semantic Firewall
102102
print_header "[PHASE 4] Industry Semantic Firewall (Blocking & Redaction)"
103103
# Scenario A: Finance Compliance (Insidier Trading/Market Manipulation)
@@ -106,14 +106,14 @@ CHECK_IN_FIN="I'm busy manipulating the market and discussing insider trading."
106106
curl -s -X POST -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \
107107
"$API_URL/evaluate?sync=true" \
108108
-d "{\"user_id\": \"$USER_ID\", \"commitment\": \"Financial Audit\", \"check_in\": \"$CHECK_IN_FIN\"}" | jq .
109-
sleep 5
109+
sleep 7
110110
# Scenario B: HR/Legal Policy Enforcement
111111
echo -e "\n${YELLOW}--- Scenario B: HR Boundary Protection (Salary Discussion) ---${NC}"
112112
CHECK_IN_HR="I am late because I am fighting with HR about my salary increase."
113113
curl -s -X POST -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \
114114
"$API_URL/evaluate?sync=true" \
115115
-d "{\"user_id\": \"$USER_ID\", \"commitment\": \"Weekly Sync\", \"check_in\": \"$CHECK_IN_HR\"}" | jq .
116-
sleep 5
116+
sleep 7
117117
# 5. GitOps Accountability
118118
print_header "[PHASE 5] GitOps Ingestion Layer"
119119
COMMIT_MSG="fix: resolve racing condition. [CommitVigil: I will implement the lock strategy by Monday]"
@@ -162,7 +162,7 @@ print_header "[PHASE 9] Organizational 'God-View' (CEO/CTO Reporting)"
162162
echo -e "${YELLOW}Generating organizational audit JSON...${NC}"
163163
curl -s -H "X-API-Key: $API_KEY" "$API_URL/reports/organization" | jq . > reports/organizational_audit.json
164164
echo "✅ Org JSON saved to: $(pwd)/reports/organizational_audit.json"
165-
sleep 5
165+
sleep 7
166166

167167
# Advanced Scenarios
168168
print_header "[ADVANCED] Ingestion & Dynamic Intelligence"
@@ -172,7 +172,7 @@ echo "Sending messy Slack text. System will extract 'Who', 'What', and 'When'...
172172
RAW_TEXT="Hey @dev_god, please make sure you finish the server migration by next Tuesday at 4pm. Thanks!"
173173
curl -s -X POST -H "X-API-Key: $API_KEY" \
174174
"$API_URL/ingest/raw?user_id=$USER_ID&raw_text=$(urlencode "$RAW_TEXT")" | jq .
175-
sleep 6
175+
sleep 7
176176

177177
echo -e "${PURPLE}--- [ELITE] Scenario 13: HR Sensitivity & Privacy (Salary Block) ---${NC}"
178178
echo "Simulating an HR manager accidentally mentioning salary in a check-in..."
@@ -187,7 +187,7 @@ HR_RESPONSE=$(curl -s -X 'POST' \
187187
\"check_in\": \"$CHECK_IN\"
188188
}")
189189
echo "$HR_RESPONSE" | jq .
190-
sleep 6
190+
sleep 7
191191

192192
# Extract Intervention ID for Feedback Loop Demo
193193
INTERVENTION_ID=$(echo "$HR_RESPONSE" | jq -r '.safety_audit.id // empty')
@@ -204,7 +204,7 @@ curl -s -X 'POST' \
204204
\"commitment\": \"Vendor Onboarding\",
205205
\"check_in\": \"$CHECK_IN\"
206206
}" | jq .
207-
sleep 6
207+
sleep 7
208208

209209
# Scenario 15: ERP Integration (SAP Webhook Simulation)
210210
CHECK_IN_SAP="The purchase order for the server rack was approved 2 days late due to budget review."
@@ -217,7 +217,7 @@ curl -s -X 'POST' \
217217
\"commitment\": \"PO-12345 Approval\",
218218
\"check_in\": \"$CHECK_IN_SAP\"
219219
}" | jq .
220-
sleep 6
220+
sleep 7
221221

222222
echo -e "\n--- [GOD-MODE] Scenario 16: Adaptive Cultural Learning (Dutch) ---"
223223
echo "We are sending a check-in in DUTCH ('nl'). The system has NEVER seen this culture before."
@@ -232,7 +232,7 @@ curl -s -X 'POST' \
232232
\"commitment\": \"Marketing Report\",
233233
\"check_in\": \"$CHECK_IN_NL\"
234234
}" | jq .
235-
sleep 5
235+
sleep 7
236236

237237
echo -e "\n--- [GOD-MODE] Scenario 17: Adaptive Safety Onboarding (Nuclear Industry) ---"
238238
echo "Switching context to 'nuclear'. The system has NO prior rules for this industry."
@@ -249,7 +249,7 @@ curl -s -X 'POST' \
249249
\"industry\": \"nuclear\",
250250
\"department\": \"operations\"
251251
}" | jq .
252-
sleep 5
252+
sleep 7
253253

254254
echo -e "\n--- [GOD-MODE] Scenario 18: Zero-Shot Industry Sensing (Aerospace) ---"
255255
echo "Sending a check-in with 'AUTO' industry. The system will GUESS the context..."
@@ -264,7 +264,7 @@ curl -s -X 'POST' \
264264
\"check_in\": \"$CHECK_IN_AERO\",
265265
\"industry\": \"AUTO\"
266266
}" | jq .
267-
sleep 5
267+
sleep 7
268268

269269
echo -e "\n--- [GOD-MODE] Scenario 19: Adaptive Safety Onboarding (Pharma Industry) ---"
270270
echo "Switching context to 'pharmaceutical'. The system has NO prior rules for this industry."

src/api/v1/evaluation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
@router.post(
1515
"/evaluate",
16-
dependencies=[Depends(get_api_key), Depends(RateLimiter(times=5, seconds=60))]
16+
dependencies=[Depends(get_api_key), Depends(RateLimiter(times=10, seconds=60))]
1717
)
1818
async def evaluate_commitment(
1919
update: CommitmentUpdate,

0 commit comments

Comments
 (0)