Skip to content

feat: contributor mode, session awareness, recommendation format#90

Merged
garrytan merged 8 commits intomainfrom
garrytan/dev-mode-clean
Mar 16, 2026
Merged

feat: contributor mode, session awareness, recommendation format#90
garrytan merged 8 commits intomainfrom
garrytan/dev-mode-clean

Conversation

@garrytan
Copy link
Owner

Summary

  • Contributor modegstack-config set gstack_contributor true makes gstack file casual field reports to ~/.gstack/contributor-logs/ when it hits its own bugs. Fork and fix.
  • Session awareness — detects 3+ concurrent gstack sessions, enters "ELI16 mode" where every question re-grounds you on project/branch/task context.
  • Universal RECOMMENDATION format — every AskUserQuestion ends with RECOMMENDATION: Choose X because ___ before options. Consistent across all 11 skills.
  • Enum & Value Completeness — new CRITICAL review category in /review that traces new enum values through every consumer outside the diff.
  • qa-only preamble — updated qa-only template from {{UPDATE_CHECK}} to {{PREAMBLE}} (missed in original rename).

29 files changed, ~770 insertions. Clean cherry-pick from garrytan/dev-mode — no team-supabase-store code. Supersedes #82.

Test plan

  • bun test — 78 pass, 0 fail
  • bun run gen:skill-docs --dry-run — all 11 SKILL.md files FRESH
  • EVALS=1 bun run test:evals — E2E contributor mode eval

🤖 Generated with Claude Code

garrytan and others added 8 commits March 16, 2026 00:32
…ormat

- Rename {{UPDATE_CHECK}} → {{PREAMBLE}} across all 10 skill templates
- Add session tracking (touch ~/.gstack/sessions/$PPID, count active sessions)
- ELI16 mode when 3+ concurrent sessions detected (re-ground user on context)
- Contributor mode: auto-file field reports to ~/.gstack/contributor-logs/
- Universal AskUserQuestion format: context → question → RECOMMENDATION → options
- Update plan-ceo-review and plan-eng-review to reference preamble baseline
- Add vendored symlink awareness section to CLAUDE.md
- Rewrite CONTRIBUTING.md with contributor workflow and cross-project testing
- Add tests for contributor mode and session awareness in generated output
- Add E2E eval for contributor mode report filing

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
New CRITICAL review category that traces new enum values, status strings,
and type constants through every consumer outside the diff. Catches the
class of bugs where a new value is added but not handled in all switch/case
chains, allowlists, or frontend-backend contracts.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…d architecture docs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…m completeness

Free tests (Tier 1): RECOMMENDATION format + session awareness in all
preamble SKILL.md files, enum completeness checklist structure and CRITICAL
classification.

E2E eval: /review catches missed enum handlers when a new status value
is added but not handled in case/switch and notify methods.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Stubs _SESSIONS=4, gives agent a decision point on feature/add-payments
branch, verifies the output re-grounds the user with project, branch,
context, and RECOMMENDATION — the ELI16 mode behavior for 3+ sessions.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The test intentionally runs a nonexistent binary to trigger contributor
mode. The session runner's browse error detection catches "no such file
or directory...browse" and sets browseErrors, causing recordE2E to mark
passed=false. Override passed to check only exitReason since the browse
error is the expected scenario.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@garrytan garrytan merged commit 3e3843c into main Mar 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant