molecule-dev-department/dev-lead
claude-ceo-assistant (Claude Opus 4.7 on Hongming's MacBook) 5cfeb65fc1 feat(team): comprehensive PR-gate + 100% coverage + e2e + identity-tag mechanics
Per Hongming's audit directive (2026-05-09): make the core team
operate-by-mechanism rather than self-report.

## SHARED_RULES.md §PR Merge Approval Gate (extended)
- Tag prefix corrected: `[<team>-qa-agent]` etc., not bare `[qa-agent]`.
  Bare unprefixed tags rejected by lint. Each persona has its own
  Gitea identity (post-2026-05-06; feedback_per_agent_gitea_identity_default),
  so the tag reflects who actually authored.
- Coverage bar bumped 80% → 100% per-changed-file. Aggregate
  doesn't satisfy. Doc-only files exempt.
- e2e gate added: PRs touching workspace-server/canvas/workspace/
  controlplane/plugins MUST run the matching tests/e2e/test_*.sh
  and the QA approval comment MUST report `e2e: <suite>=pass`.
- §Issue Discipline tightened to a 5-min SLA. The orchestrator
  cross-checks Loki finding-events vs Gitea issue creates and files
  a [missed-finding] issue when a finding event has no matching
  issue.
- §PR Template requirement added (links to .gitea/pull_request_template.md
  in internal + molecule-core; scripts-lint enforces).
- §Identity Tag updated: "GitHub" → "Gitea"; mechanical-parsing
  rationale spelled out.

## dev-lead/core-lead/schedules/orchestrator-pulse.md (rewritten)
- Replaces "merge CI-green PRs FIRST" with the four-condition
  gate-check sequence (CI green AND [core-qa-agent]  AND
  [core-security-agent]  AND [core-uiux-agent] -or-N/A).
- Force-merge call-out: explicitly fires incident.force_merge to
  Loki and reports to orchestrator (audit-force-merge.scripts).
- Reviewer-rotation §SOP-10 check before approving.
- Structured-logging report at end of each pulse so the
  orchestrator can monitor team behavior in Loki.
- Fixes duplicate "Step 2" (was both SCAN TEAM STATE and REVIEW
  OPEN PRs).

## dev-lead/core-lead/core-qa/system-prompt.md
- IDENTITY TAG header points at the gate-parsing role.
- 100% per-changed-file coverage codified.
- e2e mandatory on platform-touching PRs.
- New §PR Review section: required comment-on-every-open-PR each
  cycle with one of three exact forms (APPROVED/CHANGES/N-A).

## dev-lead/core-lead/core-security/system-prompt.md
- Same identity-tag fix.
- File findings as Gitea issues (was "GitHub issues") within 5 min.
- Required PR review on every PR touching auth/middleware/db/handlers/
  plugin-install; quick-N/A on the rest.
- New §PR Review section with the three exact comment forms.

Tier: medium (changes how 9 personas behave; spine of dev tree).

Verification:
- Markdown structurally consistent
- All edits surgical — no per-engineer prompt changes (those
  follow naturally from SHARED_RULES.md)
- live verification deferred to Layer C (when workspaces actually
  boot with the new prompts)
2026-05-08 23:47:28 -07:00
..
app-lead atomize(dev-tree): nest sub-teams + leaf workspaces under dev-lead/, dissolve teams/ 2026-05-08 04:08:22 -07:00
core-lead feat(team): comprehensive PR-gate + 100% coverage + e2e + identity-tag mechanics 2026-05-08 23:47:28 -07:00
cp-lead atomize(dev-tree): nest sub-teams + leaf workspaces under dev-lead/, dissolve teams/ 2026-05-08 04:08:22 -07:00
fullstack-engineer atomize(dev-tree): nest sub-teams + leaf workspaces under dev-lead/, dissolve teams/ 2026-05-08 04:08:22 -07:00
infra-lead atomize(dev-tree): nest sub-teams + leaf workspaces under dev-lead/, dissolve teams/ 2026-05-08 04:08:22 -07:00
integration-tester atomize(dev-tree): nest sub-teams + leaf workspaces under dev-lead/, dissolve teams/ 2026-05-08 04:08:22 -07:00
release-manager atomize(dev-tree): nest sub-teams + leaf workspaces under dev-lead/, dissolve teams/ 2026-05-08 04:08:22 -07:00
schedules fix(personas): migrate gh CLI → tea (Gitea CLI) + curl-via-API (#45) 2026-05-07 02:54:35 -07:00
sdk-lead atomize(dev-tree): nest sub-teams + leaf workspaces under dev-lead/, dissolve teams/ 2026-05-08 04:08:22 -07:00
triage-operator atomize(dev-tree): nest sub-teams + leaf workspaces under dev-lead/, dissolve teams/ 2026-05-08 04:08:22 -07:00
.env.example import from local vendored copy (2026-05-06) 2026-05-06 13:53:42 -07:00
idle-prompt.md fix(personas): migrate gh CLI → tea (Gitea CLI) + curl-via-API (#45) 2026-05-07 02:54:35 -07:00
initial-prompt.md fix(post-suspension): migrate github.com/Molecule-AI refs to git.moleculesai.app (Class G #168) 2026-05-07 12:59:14 -07:00
system-prompt.md fix(personas): migrate gh CLI → tea (Gitea CLI) + curl-via-API (#45) 2026-05-07 02:54:35 -07:00
workspace.yaml atomize(dev-tree): nest sub-teams + leaf workspaces under dev-lead/, dissolve teams/ 2026-05-08 04:08:22 -07:00