Repository navigation
feat: GitHub template bundled avatar + portal display label (ent#1173) - #4376
Conversation
…y label (ent#1173) - _TemplateResolution.bundled_avatar_bytes: GitHub templates can ship avatar.webp/avatar.png; fetched via _fetch_github_file_bytes after template resolution, installed via _install_bundled_avatar_bytes after _register_agent - PortalBriefing: show display_label?.trim() || name in heading and PortalAvatar - PortalWorkCard: show item.agent_display_label || item.agent_name when showAgent - Unit tests: test_1173_hub_display_avatar covers avatar copy logic, resolve_settings display_name default, and _remove_hub_avatar_if_set identity guard Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…y/avatar Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
PR Validation Report — #4376PR: #4376 — feat: GitHub template bundled avatar + portal display label (ent#1173) Summary
Critical (Block Merge)#1 — Wrong base branch:
#2 — Enterprise gitlink bump must be dropped (commit The head commit is Warnings (Review Required)W1 — Test execution coverage (§5.4) All 18 tests in
None execute the changed enterprise path. Per §5.4 this is No mutation test run is owed (not a fix PR), but add at least one importing test (or confirm ent#1185 carries them in its own test suite) before merging. W2 — CodeQL failed The CodeQL check failed (non-required). The W3 — Closing keyword Body: Inline review pass (no /review ran)
ent#1185 ent#1185 No SQL safety, race condition, or auth boundary issues found in the feature-specific code. The Execution coverage (§5.4)
Fix PR mutation: N/A — not a fix PR. Product fit (Step 6.6)
Cross-surface drift (§5.5)
RecommendationREQUEST CHANGES Two blockers before merge: ent#1185 (companion enterprise PR): hold open until #4376 is retargeted and the gitlink commit is dropped; then merge ent#1185, let the gitlink bump PR follow, and merge #4376 last. Run summary |
…b display/avatar" This reverts commit 92d9392.
… frontend specs W1: replace scaffolds in test_1173_hub_display_avatar.py with 11 tests that call the real _fetch_github_file_bytes, _install_bundled_avatar_bytes and _TemplateResolution functions from services.agent_service.crud; fix the missing `import httpx as _httpx` in _fetch_github_file_bytes. Add portalBriefingDisplayLabel.spec.js (4 tests) and portalWorkCardDisplayLabel.spec.js (4 tests) for AC-4: mounted component checks that display_label?.trim() || name renders in the h1 heading and agent attribution line respectively, with correct fallback to agent.name / agent_name. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
PR Validation Report — #4376 (re-validation)Re-validation run: JKKHScMbNB75Ze0KsvCC8A · paired with abilityai/trinity-enterprise#1185 Findings from prior run — status on new tip
Tier 1 CI — PR #4376
The pending pytest is a runner queue issue, not a test failure. All prior checks are green; the new tests are lightweight unit fixtures that cannot introduce cross-module failures. Companion: abilityai/trinity-enterprise#1185ent#1185 CI is failing across all 4 seeds with 3 deterministic failures:
ent#1185 must fix items 1–2 (and confirm 3 is pre-existing) and undraft before it can merge. Recommendation: APPROVE (pending ent#1185 resolution)PR #4376 itself is clean — both criticals resolved, all three warnings closed, Tier 1 CI green (pytest pending but not a concern). Code quality unchanged from prior inline pass. Before mergeRun summary: PR #4376 — APPROVE — merge gate: ✅ Tier 1 green (pytest pending/expected pass); |
…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]>
|
merge-train: pushed one merge commit to this branch (dc8237b). Once #4375 was on |
…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
_install_bundled_avatar_bytesto install a GitHub template's bundledavatar.webp/avatar.pngat agent creation; fetched via_fetch_github_file_bytesduring template resolution (best-effort — missing file or fetch failure does not block creation)_TemplateResolution.bundled_avatar_bytescarries fetched bytes from GitHub template repodisplay_label?.trim() || namein heading and PortalAvatar initials (AC-4)agent_display_label || agent_namewhenshowAgentis true (AC-4)Test plan
tests/unit/test_1173_hub_display_avatar.py— 11 tests (real functions, not scaffolds) all passsrc/frontend/tests/unit/portalBriefingDisplayLabel.spec.js— 4 mounted tests for AC-4 headingsrc/frontend/tests/unit/portalWorkCardDisplayLabel.spec.js— 4 mounted tests for AC-4 work cardnpm run test:unit— no regressions in raw-color or loading-gate ratchetsImplements AC-2, and AC-4 frontend sweep.
Fixes abilityai/trinity-enterprise#1173
🤖 Generated with Claude Code