fix(hub): the grant label helper no longer redeclares labelOf, and the grant-mode probe escapes its inner templates
14bb4f3 added function labelOf(item) to page-grant.js beside page-dom.js's labelOf(key), the agent name every other page file calls. The assembled page script then stopped parsing ('Identifier labelOf has already been declared'), so the hub page could not load, and test_page_scope, test_hub_page, test_page_reveal and the decision-row, inbox-gone and operator-task harnesses failed on it. The item helper is now grantLabel(item); its 5 callers in page-inbox.js follow, page-dom.js keeps labelOf.
The same commit put two template literals (b${proofs.length} and ${label}: ) inside test_hub_grant_mode.py's probe, itself a template literal, so they closed it early; both are escaped now.
Checks: the assembled page parses with no name declared twice (test_page_scope's own parse_error and clashes helpers, called inline), and node --check passes the probe. No test ran: the full suite runs again on master after the four fix bundles (operator order).
Security: MEDUSA over the 7 files of the four fix bundles on master: 100, all covered, 0 open findings.
🎯 Fix: 90 %
💥 Break: 2 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 88
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %
Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a4f7017691
commit
9b8e2a7d71
3 files changed
+7
-7
No files matched your search
@@ -20,7 +20,7 @@
|
||||
* @param {Object} item a batchable inbox item.
|
||||
* @returns {string} the label its grant carries: the picked option, else a decision's recommendation, else "".
|
||||
*/
|
||||
function labelOf(item) {
|
||||
function grantLabel(item) {
|
||||
const label = chosenLabel(item);
|
||||
if (label !== undefined) {
|
||||
return label;
|
||||
|
||||
Reference in new issue
Block a user