fix: index parent_entity as alias for decision records (Ganymede review)
MetaDAO queries now surface MetaDAO's decision records because parent_entity: "[[metadao]]" is stripped and added to the alias set. Pentagon-Agent: Epimetheus <3D35839A-7722-4740-B93D-51157F7D5E70>
This commit is contained in:
parent
425e7a1bac
commit
3ed0f20fa1
1 changed files with 5 additions and 0 deletions
|
|
@ -145,6 +145,11 @@ class KBIndex:
|
|||
# Add proposer name as alias for decision records
|
||||
if proposer:
|
||||
aliases.add(proposer.lower())
|
||||
# Add parent_entity as alias (Ganymede: MetaDAO queries should surface its decisions)
|
||||
parent = fm.get("parent_entity", "")
|
||||
if parent:
|
||||
parent_slug = parent.strip("[]").lower()
|
||||
aliases.add(parent_slug)
|
||||
|
||||
# Mine body for ticker mentions ($XXXX and standalone ALL-CAPS tokens)
|
||||
dollar_tickers = re.findall(r"\$([A-Z]{2,10})", body[:2000])
|
||||
|
|
|
|||
Loading…
Reference in a new issue