Skip to content

chore: bootstrap docs/exec-plans/ with Phase 1 foundation plan#1781

Draft
0xDEnYO wants to merge 2 commits into
mainfrom
chore/architecture-md-and-exec-plans
Draft

chore: bootstrap docs/exec-plans/ with Phase 1 foundation plan#1781
0xDEnYO wants to merge 2 commits into
mainfrom
chore/architecture-md-and-exec-plans

Conversation

@0xDEnYO
Copy link
Copy Markdown
Contributor

@0xDEnYO 0xDEnYO commented May 13, 2026

Summary

This PR bootstraps the docs/exec-plans/ directory and lands the Phase 1 Foundation plan — the first of four PRs that take the contracts repo from agent-readiness audit 10 / 16 → 15 / 16.

  • docs/exec-plans/TEMPLATE.md — template for future plans
  • docs/exec-plans/active/phase-1-foundation.md — Phase 1 plan (this PR is task 1.4 of that plan)
  • docs/exec-plans/completed/.gitkeep — placeholder so the dir ships

The plan itself is the PR description — see docs/exec-plans/active/phase-1-foundation.md.

What this enables

A single, agent-readable state file per multi-step initiative. Subsequent automation work (sc-verify-source, sc-verify-bytecode, sc-deploy, sc-security-audit) creates and updates exec plans rather than scattering state across Linear, Slack, and PR comments.

What this PR is NOT

  • Not the ARCHITECTURE.md work (lands as a follow-up commit on this same branch — see task 1.1 in the plan)
  • Not the docs-index-check / file-size-lint / structural-invariants gates (separate PRs — see Approach table in the plan)
  • Not a Linear-epic migration tool — the plan explicitly scopes EXSC-272 / EXSC-282 migrations out

Test plan

  • bun lint:fix passes (markdown-only diff)
  • Pre-commit hooks pass (secret scan, lint-staged)
  • One SC core team review — no audit label needed (pure docs)

Out of scope / follow-ups

  • Task 1.1 — draft ARCHITECTURE.md with Mermaid domain map (same branch, next commit)
  • Task 1.2 — trim .agents/rules/002-architecture.md to a 10-line stub pointing at ARCHITECTURE.md
  • Then merge

Open questions for reviewers

Captured in the plan's Open Questions section. Recommended answers are in the plan; one-line "all defaults OK" reply works.

🤖 Generated with Claude Code

Adds the exec-plans directory and TEMPLATE.md, plus the Phase 1
Foundation plan that closes the gaps identified in the recent
agent-readiness audit (10/16 → 15/16).

This PR ships only the bootstrap. ARCHITECTURE.md and the trim of
.agents/rules/002-architecture.md land in a follow-up commit on the
same branch (see task 1.1 in the plan).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@lifi-action-bot lifi-action-bot marked this pull request as draft May 13, 2026 08:46
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 13, 2026

Review Change Stack

Warning

Rate limit exceeded

@0xDEnYO has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 41 minutes and 48 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: ecbb0031-6f41-4479-9ad7-2a635dea0afa

📥 Commits

Reviewing files that changed from the base of the PR and between 6d41939 and ff3b040.

📒 Files selected for processing (1)
  • docs/exec-plans/active/phase-1-foundation.md

Walkthrough

This PR introduces a standardized agent planning framework by adding a reusable plan template and the concrete Phase 1 implementation roadmap. The template establishes metadata, goal/approach, task tracking, decision logging, and operational guidelines. The Phase 1 plan then instantiates this template to specify the Contracts Automation Foundation with four sequenced PR workstreams covering documentation enforcement, CI checks, file-size budgets, and structural tests.

Changes

Phase 1 Plan and Governance

Layer / File(s) Summary
Plan Template Definition
docs/exec-plans/TEMPLATE.md
Establishes the canonical plan structure with required sections: metadata (status, dates, owner/reviewer), Goal and Approach, Tasks checklist, Done criteria, Decision Log, Open Questions, and agent operational instructions.
Phase 1 Foundation Overview
docs/exec-plans/active/phase-1-foundation.md (lines 1–33)
Defines Phase 1 scope metadata, goal statement (Contracts Automation Foundation), current/target audit scores, and the four-PR dependency-ordered approach with enforcement gates.
Phase 1 PR Workstreams
docs/exec-plans/active/phase-1-foundation.md (lines 35–265)
Specifies detailed task breakdowns for PR-1 through PR-4: documentation/architecture (PR-1), docs-index CI enforcement (PR-2), file-size lint checks with exemptions (PR-3), and Foundry structural invariant tests (PR-4), including file creation/modification lists and local command examples.
Phase 1 Operations and Completion
docs/exec-plans/active/phase-1-foundation.md (lines 380–420)
Includes done criteria, dated Decision Log entries, Open Questions, and operational guidelines describing how agents track progress, update checkboxes, and record deviations in the plan.

🎯 2 (Simple) | ⏱️ ~12 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description does not follow the required template structure, missing key required sections like Linear task reference, implementation rationale, and contributor checklists. Restructure the description to include all required template sections: Linear task, implementation rationale, and both contributor and reviewer checklists with appropriate checkboxes.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the main change: bootstrapping the docs/exec-plans directory with a Phase 1 foundation plan.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/architecture-md-and-exec-plans

Warning

Review ran into problems

🔥 Problems

Stopped waiting for pipeline failures after 30000ms. One of your pipelines takes longer than our 30000ms fetch window to run, so review may not consider pipeline-failure results for inline comments if any failures occurred after the fetch window. Increase the timeout if you want to wait longer or run a @coderabbit review after the pipeline has finished.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
docs/exec-plans/active/phase-1-foundation.md (1)

185-195: 💤 Low value

JSON schema reference serves no functional purpose.

Line 187 includes "$schema": "https://json-schema.org/draft-07/schema#", but no actual schema definition or validation is shown. This reference is decorative and might mislead readers into thinking schema validation is performed.

Options to address this

Option 1: Remove the schema reference if validation isn't implemented:

  {
-   "$schema": "https://json-schema.org/draft-07/schema#",
    "exemptions": [

Option 2: Keep it as documentation of intent (current approach is fine if schema validation might be added later).

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/exec-plans/active/phase-1-foundation.md` around lines 185 - 195, The
JSON snippet contains a decorative "$schema" key but no validation is performed;
either remove the "$schema": "https://json-schema.org/draft-07/schema#" entry
from the JSON block, or explicitly annotate the block (e.g., an adjacent
sentence or HTML comment) stating that the schema reference is informational
only and no schema validation is executed, so readers are not misled; locate the
JSON block by the "$schema" key and update it accordingly.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/exec-plans/active/phase-1-foundation.md`:
- Line 43: Replace every incorrect reference of
`.agents/rules/002-architecture.md` with the correct path
`.cursor/rules/002-architecture.mdc` throughout the document: update the task
description, the subtask reference, the subtask title/description, the git add
command in task 1.4, and the done criteria so the plan points to the existing
file and the git command succeeds.

---

Nitpick comments:
In `@docs/exec-plans/active/phase-1-foundation.md`:
- Around line 185-195: The JSON snippet contains a decorative "$schema" key but
no validation is performed; either remove the "$schema":
"https://json-schema.org/draft-07/schema#" entry from the JSON block, or
explicitly annotate the block (e.g., an adjacent sentence or HTML comment)
stating that the schema reference is informational only and no schema validation
is executed, so readers are not misled; locate the JSON block by the "$schema"
key and update it accordingly.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 0c9e8a62-b044-4024-9f09-d1d342c5f736

📥 Commits

Reviewing files that changed from the base of the PR and between acc7e6e and 6d41939.

📒 Files selected for processing (3)
  • docs/exec-plans/TEMPLATE.md
  • docs/exec-plans/active/phase-1-foundation.md
  • docs/exec-plans/completed/.gitkeep

Comment thread docs/exec-plans/active/phase-1-foundation.md
Adds task 1.4 (docs/CONVENTIONS.md - rule-anchor index) and task 1.5
(docs/references/deployment-state.md - Mongo deploy store reference)
to PR-1 scope.

The original 4-PR scope only moved the audit score 10 -> 14, not the
10 -> 15 I optimistically claimed in the first draft. These two
documentation additions close the remaining points:

- Doc Health "anti-patterns documented" -> CONVENTIONS.md
- Agent Workflow "in-repo deploy artifact" -> deployment-state.md
  (the artifact already exists in MongoDB; only discoverability
  was missing)

Both are pure docs, ~2 hours each, no code risk.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants