oliver-zehentleitner / maity

CLI: the project comes from the working directory; --project at the workspace root; one wait over all memberships

Sign in to report

tsk-npgk1z1pcghj Open

Step 2 of tsk-1h9wcf58rec5, after step 1's contract.

  • Inside the clone of project X, every project-scoped command acts on X, as git acts on the repository it runs in. At the workspace root (or anywhere outside a clone of a joined project), such a command needs --project and is refused without it. There is no stored "current project".
  • maity wait reads the one stream over all memberships of the instance and prints each event's project first on its line.
  • maity resume at the root lists each project briefly (role, open cards, unread); inside a clone it gives that project's full view, rules and briefing.
  • State: one instance credential, with the per-project cursors or the combined cursor as the contract says.
  • Guards: a write never takes its project from an earlier command; the resume prints the cross-project rule (no restricted text, security cards or private content into another project).

Done when: tests for the project resolution (inside a clone, at the root with and without --project, a clone of a project the instance is not in), wait over two projects, docs/agents.md and cli/README.md updated.