Skip to content

Document after_create recipes for env files, generated artifacts and shared local resources #3446

Closed

Description

@integry

Problem

Every task runs in a fresh worktree and container. Git-ignored files (env files, generated clients, build outputs) are absent, and anything shared by name (ports, SQLite files, Docker volumes, test databases) collides across parallel runs. The docs do not mention any of this.

Goal

Documentation and scaffold guidance, no runtime change.

Acceptance criteria

  • docs/docs/features/repository-workflow.md gains a "Fresh worktrees" subsection under lifecycle hooks covering: creating env files from an example file in after_create; running code generation before the agent starts; per-run names for databases, ports and volumes using the environment the hooks receive (PROPR_WORKSPACE, PROPR_CACHE_DIR, PROPR_AGENT_TYPE); cleaning up per-run resources in before_remove; what the cache directory is for.
  • Each recipe is a short, copyable .propr/workflow.yml or setup.sh snippet that is valid against the workflow schema.
  • docs/docs/concepts/repository-best-practices.md links to the new subsection.
  • The propr init scaffold (setup.sh and the workflow comments) gains commented examples for the env-file and codegen cases; the CLI init tests are updated.
  • The docs site builds.

Implementation

Key files: docs/docs/features/repository-workflow.md, docs/docs/concepts/repository-best-practices.md, docs/docs/features/propr-cli.md, packages/cli/src/commands/initCommands.ts (SETUP_SH, WORKFLOW_YML), packages/cli/src/commands/initCommands.test.ts, test/cliInitCommand.test.ts. Hook environment and order: packages/core/src/workflow/workflowExecution.ts (buildWorkflowWrapper).

Activity

  1. propr-dev commented on Nov 11, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: claude
    • Model: claude-opus-5-5
    • Branch: 3446/claude-opus-5-5-document-after_create-rec-20261111-2200-3q5
    • Base Branch: main
    • Worktree: issue-3446-20261111-2200-claude-opus-5-5-3q5

    🔍 Track Task Execution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions