Skip to content

Latest commit

 

History

History
91 lines (72 loc) · 3.51 KB

File metadata and controls

91 lines (72 loc) · 3.51 KB

Workplace Initialization

Workplace initialization is run once per machine, device, server, or runner host. For human-led setup of a new machine, prefer Guided workplace setup; use this direct command path for fully automatic setup or when the setup answers are already known. Fully automatic setup starts with an optional read-only device-discovery stage: the agent inspects accessible AGENTS.md, skills, local docs, platforms, toolchains, tools, MCP configuration, and project roots, then proposes which ProcessForge entities to create or register before apply.

The command can be run from any directory. Do not use the shell current working directory as an implicit project root. Machine setup records explicit roles: installed ProcessForge distribution, workplace root, optional global agent root, knowledge roots, and candidate project roots. A global agent root may be a knowledge source, but it is not a project unless a later approved project-onboard step targets it explicitly.

It creates:

  • workplace.yaml
  • terms.yaml
  • registries/
  • knowledge/
  • packages/
  • reusable-templates/
  • tools/
  • mcp/
  • runtime/events/events.ndjson

Command:

python bin/pf.py workplace-init --workplace ./pf-workplace --apply
python bin/pf.py doctor-workplace --root ./pf-workplace

The default generic profile leaves all domain-specific official packs inactive:

python bin/pf.py workplace-init --profile generic --workplace ./pf-workplace --apply

Select a production workflow profile when the workplace should activate its official bundled pack:

python bin/pf.py workplace-init --profile software-development --workplace ./pf-workplace --apply
python bin/pf.py workplace-init --profile content-workflow --workplace ./pf-workplace --apply
python bin/pf.py workplace-init --profile verification --workplace ./pf-workplace --apply

Profiles activate data packs; they do not change the ProcessForge kernel. See Official packs for discovery and explicit activation.

Workplace coordination is capability-level. Enabling Director support makes a workplace organized-capable, but projects still choose their own mode:

coordination:
  director_enabled: true
  director_office_enabled: true
  default_project_mode: simple

Useful commands:

python bin/pf.py workplace-mode status --workplace ./pf-workplace
python bin/pf.py workplace-mode set --workplace ./pf-workplace --director-enabled true --director-office-enabled true
python bin/pf.py workplace-mode set-default-project-mode --workplace ./pf-workplace --mode simple
python bin/pf.py workplace-mode doctor --workplace ./pf-workplace

This process does not create .pf/ in a project and does not select a project type.

For automatic setup, apply starts only after the operator approves the automatic setup proposal produced from device discovery. If broad disk access is not available, the agent uses the configured fallback scope rather than scanning the whole device.

Heavy local documentation should be registered as knowledge_roots.local-docs. The root may live near the workplace on disk, but project source scans treat it as external knowledge rather than project source.

Resource Creation Order

After workplace-init, create resources in this order when they are needed: knowledge packages, tools/MCP, templates, platform contracts, then specializations. Specializations reference existing resource ids and are stored under the workplace or project flow, not in the ProcessForge distribution root.