chore(contract): phase 4b GATE 1/2 micro-gates [gated], answers 4-amended, 6-bis, 7-amended, FILE SCOPE
This commit is contained in:
1 parent
a403df2472
commit
24f53afa99
1 file changed
+4
@@ -25,6 +25,9 @@ Brainstorm answers `[gated 2026-11-03]` (user: "oui" to recommendations 1-8):
|
||||
8. The tool stays deferred like `route`; skills load it with `ToolSearch` once per session.
|
||||
2-amended `[gated 2026-11-04]` (noise gate, plan Task 7 step 3; user: option A): the distinctive line must hold an error-shaped word, matched case-insensitive on the redacted line by `error|fatal|cannot|can't|no such|not found|denied|failed|failure|unexpected|invalid|exception|traceback|panic|usage:|SC\d{4}|> \d+|assert`; a line without one is no line and the failure is dropped (same treatment as a letterless line). Measured on 14 days of transcripts (NOISE.md): 83 % noise on the shipped rule, every useful sample kept by the filter, 81 → 27 captures. Options B (no sub-agent capture) and C (ship as is) declined.
|
||||
6-amended `[gated 2026-11-04]` (final review I2; user: "corriger les trois"): the KEY=value name class admits digits (`OAUTH2_CLIENT_SECRET=`, `S3_SECRET=`, `TOKEN_V2=` redacted); a JWT (`eyJ…`.`eyJ…`.`sig`, three base64url parts) → `<redacted:jwt>`; `-u user:pass` / `--user user:pass`, `--password value` / `--password=value`, and `Authorization: (Basic|Bearer|token) value` → redacted. Oracles literal; secret-shaped fixtures built at runtime.
|
||||
4-amended `[gated 2026-11-04]` (final review I1, GATE 1 observation; user: "oui, les trois"): a 4-gram whose four words are all placeholders (`#`, `<path>`, `<hex>`) indexes nothing and matches nothing (on this repo's registries `# # # #` indexed LRN-074, so every IP:port or timestamp read known).
|
||||
6-bis `[gated 2026-11-04]` (GATE 2 MEDIUM redaction-coverage; user: "ajouter ces formes"): vendor prefixes `sk-ant-`, `sk-proj-`, `github_pat_`, `glpat-`, `AIza`, `npm_` → `<redacted:kind>`; `--(token|api-key|secret)[ =]value` → `--<flag> <redacted>`; headers `X-Api-Key:`, `PRIVATE-TOKEN:`, `Cookie:` → `<header>: <redacted>`; JSON/YAML `"(password|token|secret|api_key)"\s*:\s*"…"` and `(password|token|secret|api_key)\s*[:=]\s*value` (spaces admitted, so `aws_secret_access_key = …` is caught) → `<key>: <redacted>`; a 40-hex token as URL user (`scheme://<hex>@host`) → `scheme://<redacted>@host` (bare 40-hex SHAs elsewhere stay). All bounded, measured on 64 KiB, literal oracles, runtime-built fixtures.
|
||||
7-amended `[gated 2026-11-04]` (GATE 1 observation; user: "oui, les trois"): `init-project` STEP 10b (founding decisions of a new project) is excluded from the consumers by nature; the REQUEST's "every CAPITALIZE step" means the session-level steps listed in answer 7.
|
||||
|
||||
## ACCEPTANCE CRITERIA (seed, enriched at STEP 3 `[gated]`)
|
||||
1. A mod captures failures (scope decided at the brainstorm) as entries {normalized line, verbatim excerpt, command, tool, time}, redacted BEFORE storage, in a bounded store layout decided at the brainstorm (entries per session, bytes per entry, eviction of stale sessions, total under the 4 MiB `$.store` cap).
|
||||
@@ -69,6 +72,7 @@ STEP 3 gate `[gated 2026-11-04]` (user: "oui aux deux, lance"): plan r3 (`docs/s
|
||||
- skills/capitalize/SKILL.md, skills/close/SKILL.md, skills/{feat,bugfix,hotfix,ship-feature,commit-change}/SKILL.md, agents/commit-changer.md (§ Capitalize candidates, one line), lib/capitalize-commit.md (unchanged unless a citer needs it)
|
||||
- CLAUDE.global.md ("Proactive capitalization", only if the brainstorm changes it), README.md, USAGE.md, CHANGELOG.md, ARCHITECTURE.md
|
||||
- .claude/tasks/TODO.md, .claude/tasks/plans/ (spike notes), docs/superpowers/{specs,plans} (transient)
|
||||
- `[gated 2026-11-04]` (GATE 1 micro-gate; user: "oui, les trois"): this contract file (committed per lib/contract-interview.md § Commit) and `.claude/memory/journal.md` (phase-3 close memory commit 60f28a6 landed on the branch; a `.claude/**` memory commit, BDR-068 class)
|
||||
## PROOF (Task 9)
|
||||
- Step 0 (2026-11-04, user go): `~/.claude/memory.json` moved to `$CLAUDE_JOB_DIR/tmp/memory.json.off`; capture is on from the next session.
|
||||
- Step 1 headless (2026-11-04 12:08, `claude -p --model haiku`, live user settings, mod `memory@skills-dir`, scratch repo `$CLAUDE_JOB_DIR/tmp/proof9/repo.gYdo` on `feature/probe`, `GITFLOW_NO_PUSH=1`, fixture `.claude/memory/blockers.md` with one unrelated BLK): four tool calls as scripted (ToolSearch select, `ls /nonexistent-dir-xyz`, `git commit --allow-empty -m "fix: probe"`, `mcp__memory__memory_pending {}`), rc 0, cost $0.011. Answer: `memory_pending (project repo.gYdo, 1 session(s))` / `index: read blockers.md; skipped learnings.md (missing)` / `milestones (this session): - commit fix: probe (12:08)` (UTC at the time; local time after final review M5) / `failures: - NEW ×1 ls: cannot access '/nonexistent-dir-xyz': No such file or directory — command: ls /nonexistent-dir-xyz` + excerpt. Log: `$CLAUDE_JOB_DIR/tmp/proof9/out.jsonl`. The run leaves a `p:<tmp path>` key (one session, ~1 KiB) in the real store; the 1 MiB sweep drops it only when the store is over the cap (final review M10 corrected R3 conf 12), harmless.
|
||||
|
||||
Reference in new issue
Block a user