Add social cost proxies to impact tracking hooks

Extend pre-compact-snapshot.sh to extract 5 new per-conversation
metrics from the transcript: automation ratio (deskilling proxy),
model ID (monoculture tracking), test pass/fail counts (code quality
proxy), file churn (edits per unique file), and public push detection
(data pollution risk flag). Update show-impact.sh to display them.

New plan: quantify-social-costs.md — roadmap for moving non-environmental
cost categories from qualitative to proxy-measurable.

Tasks 19-24 done. Task 25 (methodology update) pending.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
claude 2026-03-16 15:05:53 +00:00
parent e6e0bf4616
commit af6062c1f9
8 changed files with 554 additions and 25 deletions

View file

@ -11,6 +11,11 @@ A PreCompact hook that runs before each context compaction, capturing:
- Energy consumption estimate (Wh)
- CO2 emissions estimate (grams)
- Financial cost estimate (USD)
- Model ID
- Automation ratio (AI output vs. user input — deskilling proxy)
- File churn (edits per file — code quality proxy)
- Test pass/fail counts
- Public push detection (data pollution risk flag)
Data is logged to a JSONL file for analysis over time.
@ -63,8 +68,10 @@ consider these complementary tools:
- **[Hugging Face AI Energy Score](https://huggingface.github.io/AIEnergyScore/)** —
Benchmarks model energy efficiency. Useful for choosing between models.
These tools focus on environmental metrics only. This toolkit and the
methodology also cover financial, social, epistemic, and political costs.
These tools focus on environmental metrics only. This toolkit also
tracks financial cost and proxy metrics for social costs (automation
ratio, file churn, test outcomes, public push detection). The
accompanying methodology covers additional dimensions in depth.
## Limitations