Repository navigation
feat(workspace): member-safe conversation surface for hub onboarding (ent#1172) - #4375
Conversation
…(abilityai/trinity-enterprise#1172)
ACs 1, 2, 4, 5 (option B; AC 3/progress-card is ent#1175):
AC 1 — PortalBriefing gates description, skill hints, suggestions and error
line behind `isMemberViewer` (is_member_agent && !owned). The h1 uses
agentDisplayName() so the display label shows, never the slug.
AC 2 — _row_to_card suppresses model_default (None) for share-tier platform
viewers of member agents (taste decision 7). Owners keep the control.
AC 4 — TermsAcceptance hides the "Version X.Y.Z" paragraph for role=user;
the version still records in the acceptance row.
AC 5 — _member_agent_names() fetches live member agent names from the
enterprise submodule (fail-open: returns frozenset() on OSS installs with
no enterprise module). is_member_agent propagated to PortalAgentCard so
the frontend can gate on it.
No schema change — is_member_agent is computed from enterprise_member_agents.
Tests: 8 unit (Python, test_ent1172_member_safe_surface.py) +
9 unit (Vue, portalBriefingMemberSafe.spec.js); all 53 existing
ent#403 roster-model tests still pass.
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
PR Validation ReportPR: #4375 — feat(workspace): member-safe conversation surface for hub onboarding Summary
Critical (Block Merge)❌ Tier 1 CI failure — The PR adds Required fix — update
Warnings
The test calls Execution coverage (§5.4)
Fix-PR mutation: not applicable (feature PR, not a fix). Structural review (inline, substituting for
|
| line the block printed | answer |
|---|---|
| none printed | — no agent-server twins affected; no router files changed |
Product fit (Step 6.6)
| check | verdict | evidence |
|---|---|---|
| Approved (not incubating) | ✅ | ent#1172: P1, type-feature, status-ready |
| Scope ↔ issue | ✅ | ACs 1, 2, 4, 5 implemented; AC 3 deferred to ent#1175 per rider instructions |
| Open-core tier | ✅ | Enterprise capability; fail-open wrapper in OSS |
| Doctrine | ✅ | No doctrine violations found |
| Bar 7–11 | ✅ | — |
Recommendation
REQUEST CHANGES
One blocking fix required before merge: update termsAcceptance.mount.spec.js to restore the two broken tests (change auth role to 'creator'/'admin' for the version-visible assertions; add a role: 'user' test asserting the version element is absent). The weak "Couldn't load" test is a warning only.
Comment template:
This PR requires the following change before merge:
- [ ] Fix `src/frontend/tests/unit/termsAcceptance.mount.spec.js`: the `beforeEach` sets `role: 'user'`, so `v-if="!isUserRole"` now hides `[data-testid="terms-version"]`, breaking "shows the version and the rendered text" (line 83) and "a stale version reloads the text" (line 122). Change those tests' auth setup to `role: 'creator'` (or `'admin'`) where the version label must be visible; add a `role: 'user'` test asserting the element is absent.
Please address this and re-request review.
Before merge
abilityai/trinity-enterprise#1184— merge first (enterprise complement: addslive_member_agent_names()tomember_agents/db.py)abilityai/trinity#4375— merge second, after tests are fixed
After merging #4375: manually set status-in-dev on ent#1172 (cross-tracker close is not automated).
Run ID: NF8n7WKrXv83d64guvDLBw — PR #4375 — REQUEST CHANGES — merge gate: ❌ (build Tier 1 fail)
ahead: ? dirty: ?
…n label (ent#1172) The two tests that assert on [data-testid="terms-version"] now set role: 'creator' before mounting so the v-if="!isUserRole" gate is open. A new test asserts the element is absent for role: 'user', covering AC 4. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
PR Validation Report — Re-validation after 741db2fPR: #4375 — feat(workspace): member-safe conversation surface for hub onboarding (ent#1172) Fix Commit 741db2f — Verdict ✅What changed: The fix addresses the original finding (two tests asserting
Local run (all 14 tests, Every test in the file passes, including the two corrected and the new AC-4 test. CI Build Gate — Verdict ✅
Enterprise PR ent#1184 — pytest failures are pre-existing ✅ent#1184 ( RecommendationAPPROVE Both PRs are ready. Merge order: ent#1184 → #4375. Before merge:
|
…4376) #4375 showed agentDisplayName(agent) to member viewers only; this PR shows the display label to every viewer (ent#1173 AC-4). agentDisplayName is exactly display_label?.trim() || name, so using it unconditionally (heading + avatar initials) satisfies both PRs' specs: portalBriefingMemberSafe + portalBriefingDisplayLabel + portalWorkCardDisplayLabel pass (37/37 with ratchets). Owners now see the label too, where #4375 had kept the slug. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…0, ent#1172, ent#1173) (#4385) Moves src/backend/enterprise from 22da745a9 to 7be84e0a9 — the enterprise halves of the hub-onboarding pairs whose core halves are on dev: ent#1181 (delegation tier provider, core #4372), ent#1182 (instant welcome, core #4373), ent#1184 (live_member_agent_names, core #4375), ent#1185 (hub display name + default avatar, core #4376 to follow). Co-authored-by: trinity-ability <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
Summary
Implements ACs 1, 2, 4, 5 of ent#1172 (option B; AC 3/progress-card is ent#1175's own issue).
What was broken: a hub member landing on their agent page saw the slug as the heading (
regent-11), the internal template description ("Governs ONE other Trinity instance..."), six skill cards, a model picker labelled "Agent's default (Claude Opus 5.5)", a "Couldn't load suggestions" error, and "Version default-1" on the terms page.What ships:
AC 1 —
PortalBriefinggates description, skill hints, suggestions and error line behindisMemberViewer(is_member_agent && !owned). The<h1>usesagentDisplayName()so the display label shows, never the slug. Owners keep the full briefing (AC 5 boundary).AC 2 —
_row_to_cardsuppressesmodel_default(→None) for share-tier platform viewers of member agents (taste decision 7: hide picker entirely). Owners and non-member shared agents are unaffected.AC 4 —
TermsAcceptancehides the "Version X.Y.Z" paragraph forrole=user; the version still records in the acceptance row on submit.AC 5 —
_member_agent_names()fetches live member agent names from the enterprise submodule vialive_member_agent_names(), fail-open (returnsfrozenset()on OSS installs without enterprise).is_member_agent: bool = Falseadded toPortalAgentCardso the frontend can gate on it.No schema change —
is_member_agentis computed from the existingenterprise_member_agentstable.Test plan
tests/unit/test_ent1172_member_safe_surface.py) — 8/8 passsrc/frontend/tests/unit/portalBriefingMemberSafe.spec.js) — 9/9 pass, mounted via@vue/test-utils, not source-text assertionstest_ent403_workspace_model.pytests pass (no regression to model picker logic)test_row_to_cards_capability_arguments_have_no_defaultsstill pins the 4 no-default params;member_agent_nameshas afrozenset()defaultEnterprise complement:
abilityai/trinity-enterprisefeature/1172-member-safe-surface(addslive_member_agent_names()tomember_agents/db.py).🤖 Generated with Claude Code
Fixes abilityai/trinity-enterprise#1172