feat: add first-run setup interview gate (PROTOCOL_RULES §P10)#22
Open
leonardobuares wants to merge 2 commits into
Open
feat: add first-run setup interview gate (PROTOCOL_RULES §P10)#22leonardobuares wants to merge 2 commits into
leonardobuares wants to merge 2 commits into
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ba8dd3f2f0
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
When a project still runs the pristine
PROJECT_RULES.mdtemplate, agents currently proceed against an unconfigured scaffold (and a pristine§J8even breaks the baseline boot, since step 3 loads the modules named there). This PR adds a protocol-level boot gate: any compliant agent, on any install path, runs a short setup interview on first boot and writes the project identity before serving requests. It is rules text only, no runtime code, so it works for copy-paste installs, the CLI, and every agent.Closes #21.
Changes
.agents/PROTOCOL_RULES.md: new section§P10 First-run setup interview(pristine detection, framework-source carve-out, hard gate with one-timelaterdefer, non-interactive skip, the interview table, AGENTS_MAP governance, self-clearing idempotency). Kernel version 2.0.1 to 2.1.0..agents/CORE_RULES.md: added a baseline-load note and an essential-contract subsection "First-run setup is a hard boot gate" pointing to§P10. Version 1.5.0 to 1.6.0; Protocol reference updated to v2.1.0..agents/modules/meta-repo.md: added aPROJECT_RULES.mdrow to the§M-meta-4pristine-markers table, cross-referencing§P10. Version 1.1.0 to 1.1.1.CLAUDE.mdandAGENTS.md: added boot step 2a (Setup gate) that runs the interview when pristine and no.lead-protocol-sourcesentinel is present.README.md: Current version 2.1.0; a "First run" note in the boot section; quick-start identity comment softened to note the agent will interview you; new 2.1.0 row in Version history..lead-protocol-source(new, repo root): sentinel that disables the gate in the framework's own source repo. It lives outside.agents/, so neither install path ships it to consumers.Testing
python .agents/scripts/validate_state.pypasses (OK, validated 1 file(s)); no schema or state-file structure changed.cli/src/lib/project.tsreadProjectNamerejects values containing[).§P10section heading keeps the§PN — Titleconvention shared by every other section heading in the file)..agents/plusCLAUDE.mdplusAGENTS.md, andcli/scripts/sync-templates.mjsbundles only those same paths.Checklist
.agents/was modified; validator passes)