Repository navigation
docs: fix the claims the cold read of #377 found in its files - #447
Merged
Merged
Conversation
CognitiveMechanismsEngine scales schemaEncoding.noveltyBoost by 0.8 + openness * 0.4, so seven of the eight mechanisms take a HEXACO trait; only temporal gist is left unscaled.
The hierarchical strategy copies the configured roster at the start of each run (buildHierarchicalTools), and nothing reads emergent.tier, so the tier table's agent and shared lifetimes did not exist. agency() also uses no AgencyMemoryManager, so a session has no shared memory to reset.
Without a declared return type, parseStreamEvent() returned objects whose type widened to string, which does not match StreamEvent, and its parameters were implicit any under strict.
…orge demo GIF The GIF shows agent() options and an npc.chat() method that the Agent API does not have, labelled as a live run, and the example its caption names runs a hierarchical agency with two static agents that forges no tool. The assets stay in the repository.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Reviewer's GuideThis documentation-focused PR corrects five claims identified by a code-level cold read: cognitive-memory modulation, agency and specialist lifetimes, CLI bridge typing, tool support across low-level helpers, and the README forge-demo description. It updates prose, examples, type annotations, links, and an agency source comment without changing runtime behavior. Sequence diagram for per-call specialist lifetimesequenceDiagram
participant Caller
participant Agency
participant Strategy
participant Manager
Caller->>Agency: send()
Agency->>Strategy: wrappedExecute()
Strategy->>Manager: buildHierarchicalTools()
Manager-->>Strategy: configured roster copy
Strategy->>Manager: spawn_specialist()
Manager-->>Strategy: specialist available for this call
Strategy-->>Agency: result
Agency-->>Caller: response
Caller->>Agency: send()
Agency->>Strategy: wrappedExecute()
Strategy->>Manager: buildHierarchicalTools()
Manager-->>Strategy: configured roster copy without prior specialist
Flow diagram for HEXACO modulation of cognitive memoryflowchart LR
Traits[CognitiveMemoryConfig.traits] --> Engine[CognitiveMemoryManager]
Engine --> Modulation["applyPersonalityModulation()"]
Modulation --> Boost[schemaEncoding.noveltyBoost]
Boost --> Encoding["applySchemaEncoding()"]
Encoding --> Trace[Novel trace encoding strength]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
A failed output validation retries the strategy, and each run copies the configured roster, so the specialist is gone in the retry as well as in the next call.
runGuardrails() evaluates no guardrail and never throws; it reports each id as not evaluated. retrieveRagContext() returns null, so no context is added, and the rag.documents notice now says the documents go unused and names the runtime's ragConfig and retrievalAugmentor in place of AgentOSOrchestrator, which sets up no retrieval. listen() serves JSON text, not audio. The usage totals are real in-memory sums, not stubs. adaptive compiles the hierarchical strategy directly, and the parallel strategy runs every member, so the header no longer says otherwise. The parseStructuredOutput() JSDoc sits on its function and counts three patterns.
…he full runtime alone agency() reports its guardrails as not evaluated, retrieves no RAG context, reads no discovery, serves voice as text and wires no channels, so the warning names agency() only for hitl, emergent, output and provenance.
github-actions Bot
pushed a commit
that referenced
this pull request
Oct 14, 2026
## [0.13.118](v0.13.117...v0.13.118) (2026-10-14) ### feat * **claims:** browser test reports as claim evidence (#449) ([ed46090](ed46090)) ### docs * correct the GMI paper's lines on persona traits and T4 contexts (#448) ([3fbc713](3fbc713)) * fix the claims the cold read of #377 found in its files (#447) ([798ffa2](798ffa2))
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A cold read of #377 (merged as
0a7da7dd) checked its twelve items against the code, and each holds. It also found claims that #377 left false or misleading in the files it changed, and more insrc/api/agency.tsonce that file was open for item 2. This pull request fixes them. Each was read again at masterf7e7548c(0.13.116), and the lines below are at the branch head.docs/architecture/ARCHITECTURE.md:385,:394,:644,:653: openness also scales schema encoding. The page said six of the eight mechanisms take a HEXACO trait and gave schema encoding no modulator.applyPersonalityModulation()scalesschemaEncoding.noveltyBoostby0.8 + openness * 0.4(src/cognition/memory/mechanisms/CognitiveMechanismsEngine.ts:114), and onlytemporalGistis passed through unscaled (:110).applySchemaEncoding()multiplies a novel trace's encoding strength by that boost (src/cognition/memory/mechanisms/consolidation/SchemaEncoding.ts:110), andCognitiveMemoryManagerbuilds the engine withconfig.traits(src/cognition/memory/CognitiveMemoryManager.ts:365). The page now says seven of the eight, all but temporal gist, and the Openness rows name the larger boost for novel traces.docs/orchestration/AGENCY_API.md:133and:627-634,docs/GMI.md:467,src/api/agency.ts:38-44:emergent.tieris not read, andagency()keeps no shared memory. The tier table said"agent"specialists last as long as the agency instance and"shared"ones persist across instances, and the other three places said only session-tier specialists reset betweensend()calls. Nothing readsemergent.tier(src/api/types.ts:335-342says so;git grepfinds no reader insrc).compileHierarchical().execute()callsbuildHierarchicalTools()on every run (src/api/runtime/strategies/hierarchical.ts:453-458), which starts from a copy of the configured roster (:180). A session'ssend()runs the strategy throughwrappedExecute()again (src/api/agency.ts:704-713,:383), and so does a retry after a failedoutputvalidation (:380-383). A spawned specialist is gone in the next run, whatever the tier. No file undersrc/apiusesAgencyMemoryManager, so the line that a session's shared memory resets described memory that does not exist. The example no longer setstier, the table is now a paragraph, and the "Not yet" verdict in the scope table now reads "No".docs/features/CLI_REGISTRY.md:177-216: the custom bridge example is typed. The base class declaresbuildArgs(options: BridgeOptions, format: OutputFormat): string[],classifyError(error: any): CLISubprocessErrorandparseStreamEvent(raw: any, context?: StreamParseContext): StreamEvent | null(src/safety/sandbox/subprocess/CLISubprocessBridge.ts:141,:150,:163). A method in a derived class does not take its parameter types from the base class (microsoft/TypeScript#23911, open), and without a contextual type a property of an object literal gets the widened literal type (microsoft/TypeScript#10676), so the example's unannotatedparseStreamEvent()returned objects whosetypeisstring. That is not aStreamEvent(src/safety/sandbox/subprocess/types.ts:64-83), so the override did not type-check, and its parameters were implicitanyunderstrict. The example now importsBridgeOptions,OutputFormatandStreamEventfrom the@framers/agentos/sandbox/subprocesssubpath, which exports them (src/safety/sandbox/subprocess/index.ts;package.json./sandbox/subprocess), and declares each signature.README.md:232: onlygenerateText()andstreamText()take tools. The API Surfaces line gave all eight helpers native tool calling.toolsis aGenerateTextOptionsfield (src/api/generateText.ts:423), whichstreamText()takes (src/api/streamText.ts:334).GenerateObjectOptions,StreamObjectOptions,GenerateImageOptions,GenerateVideoOptions,GenerateMusicOptions,PerformOCROptionsandEmbedTextOptionshave notoolsfield (generateObject.ts:119,streamObject.ts:49,generateImage.ts:190,generateVideo.ts:203,generateMusic.ts:209,performOCR.ts:50,embedText.ts:53).README.md: the forge demo GIF comes out of the README. Its frames showagent({ persona, emergent: { forge_tool, spawn_specialist }, memory: { cognitive, scope }, tool_tiers })and a call tonpc.chat(), labelled "Live AgentOS run".AgentOptions(src/api/agent.ts:126, overBaseAgentConfigatsrc/api/types.ts:1334) has nopersonaortool_tierskey,EmergentConfig(types.ts:332) holdsenabled,tier,judgeandplanner,MemoryConfig(types.ts:70) has nocognitiveorscope, andAgent(agent.ts:519-574) has nochat(). The frames also say the forged tool and the spawned specialist persist, which item 2 shows they do not. The alt text described three HEXACO agents reviewing code, which is not in the frames. The caption saidexamples/emergent-hierarchical-spawning.mjsreproduces the GIF, but that example runs a hierarchical agency with two static agents (:29-51) that spawns specialists throughspawn_specialistand calls noforge_tool.assets/agentos-forge-demo.gifand.webpstay in the repository, and nothing else in it references them.src/api/agency.ts: the comments on the guardrail, RAG, voice and usage paths.runGuardrails()(:1180-1239): the JSDoc said each id goes throughParallelGuardrailDispatcher, a block throwsAgencyConfigError, and sanitized text comes back. The function imports../safety/guardrails/index.js, uses nothing from it (:1205-1207), reports each id toguardrailResultwithpassed: true,enforced: falseandaction: 'allow'(:1217), and returns the text unchanged. It never throws, and a failed import logs a warning (:1233-1236). The JSDoc and its inline comments now say so.prepareExecutionPrompt()andfinalizeExecutionResult()call it for the input and output lists (:247,:277).injectRagContext()andretrieveRagContext()(:1245-1300): the JSDoc said a configured vector store is queried through a dynamically imported embedding manager.retrieveRagContext()returnsnull(:1299), so the prompt is never changed. The notice forrag.documents(:1270-1277) namedAgentOSOrchestratorfor document indexing and retrieval; the runtime's RAG subsystem is set up byRagMemoryInitializerfromAgentOSConfig.retrievalAugmentororAgentOSConfig.ragConfig(src/api/AgentOS.ts:503,:523;src/api/runtime/RagMemoryInitializer.ts:241-257). The notice now says the documents go unused and names those two fields;src/api/runtime/__tests__/agency-integration.test.ts:1207-1230pins the new text and thatAgentOSOrchestratoris no longer named.listen()(:852-868,:881-883): the JSDoc called the connection handler a no-op stub for audio I/O. The handler reads each message as JSON, sends atextfield through the agency'sgenerate()and replies{ text }, and replies{ error }when the parse or the run throws (:889-899). No audio is read.usage()(:751-756,:772-777) were called stubs that need a usage ledger. Both return the totals the agency adds up in memory from each run's usage (:229-231,:290-292), andagency()writes no ledger.src/api/runtime/strategies/parallel.ts:106). It now says eachgenerate()orsend()answers one input.:142-149said the dispatcher wraps the chosen strategy whenadaptiveis set.agency()compiles'hierarchical'itself (:153-155), andcompileStrategy()wraps only a non-hierarchical strategy (src/api/runtime/strategies/index.ts:70), so the wrapper is never reached fromagency(), as AGENCY_API.md's Adaptive Mode says.parseStructuredOutput()JSDoc sat aboveextractFirstJsonObject()'s and said "two" patterns before listing three. It now sits on its function (:1386-1400).src/api/runtime/lightweightAgentDiagnostics.ts:69-110: theagent()warning namesagency()only whereagency()applies the field. The warning said every deferred field "requires the full AgentOS runtime or agency()".agency()reports its guardrails as not evaluated (item 6), adds no RAG context (item 6), reads nodiscovery(no reference inagency.tsorstrategies/), servesvoiceas JSON text (item 6) and wires no channels (connect()rejects,agency.ts:931). It applieshitl,emergent,outputandprovenance. The warning now names the full runtime alone forrag,discovery,guardrails,voiceandchannels, and the runtime oragency()for the other four.src/api/runtime/__tests__/agent.test.ts:83-99pins both groups; the existing case at:50-65still matches.Checked and left as is. One review engine's P0 said the
code-safetybullet (docs/architecture/ARCHITECTURE.md:357) leaves out an opt-in that its tool-call branch needs.@framers/agentos-ext-code-safety0.2.2, the npm latest on 2026-10-14, setsevaluateToolCalls: truein its own config (src/CodeSafetyGuardrail.ts:147-151in the tarball), anddocs/safety/GUARDRAILS_USAGE.md:462says the pack's guard runs its tool-call branch once its config sets the flag. The bullet stands.Found and not changed here (wording, or files this does not touch):
docs/memory/COGNITIVE_MEMORY.md:25calls all eight mechanisms HEXACO-modulated, but temporal gist is not (CognitiveMechanismsEngine.ts:110).docs/architecture/EMERGENT_CAPABILITIES.md:16says the screenshot's run ofexamples/emergent-hierarchical-spawning.mjsasked for a security audit of sandbox isolation primitives. The example's prompt asks for a survey of the post-2023 RAG literature (:85-89).src/safety/sandbox/subprocess/CLISubprocessBridge.ts:119-124: the class JSDoc's example has the same untypedparseStreamEvent()as item 3.src/api/gmi.ts:330: thegmi()warning says "does not enforce yet", also forsecurityandpermissions, which no surface enforces.examples/emergent-hierarchical-spawning.mjs:54anddocs/orchestration/AGENCY_API.md:1205put "discarded when generate() returns" on thetier: 'session'line. It is true of every tier.src/api/agency.ts: thegenerate()JSDoc names its parameteropts(it isgenerateOpts), the unknown-id branch ofevaluatePostApprovalGuardrail()says "until a registry resolver is wired", and thecatchininjectRagContext()describes a failureretrieveRagContext()cannot raise.scripts/build-knowledge-corpus.mjs(listed in docs: fourteenth round of audit follow-ups (the P2 leftovers of the cold reads) #377): the security-tier lines are unchanged.Linked issues
None. The findings come from the cold read of #377.
Type of change
How this was verified
GitHub Actions on the head commit
f0d5048e: CI run 38508916615 passed (Test & Lint: 905 test files and 11,663 tests passed, among themsrc/api/runtime/__tests__/agent.test.tswith 24 tests, the new case included, andsrc/api/runtime/__tests__/agency-integration.test.tswith 71; Browser tests; Batch-1 gated tests; Release dry run), Links run 38508916599 passed, and the Breaking change gate passed. The first four commits passed CI run 38507089907 as well.Review threads: CodeRabbit reviewed
b6770ce3and posted no actionable comments; its review of the last three commits runs behind the merge. The Codex connector and Sourcery did not review (their usage limits).Nothing was run locally. Every claim was read in the code at master
f7e7548c, and item 5 also in frames fromassets/agentos-forge-demo.gifat master. The code-safety check used the npm tarball of@framers/agentos-ext-code-safety0.2.2. The two new GitHub links (hierarchical.ts,CLISubprocessBridge.ts) answered 200 on 2026-10-14.src/api/runtime/__tests__/docs-alignment.test.tsreadsREADME.mdanddocs/GMI.md. Its assertions (generateImage,agent(),agency(),## API Surfaces,fallbackProviders,lightweight, no plainagent()call withmemory) still hold, and the CI step "Documentation states only what the code enforces" finds none of its words in the changed lines.Migration notes
None. Two log lines change their text: the
agent()warning for deferred fields (item 7) and theagency()notice forrag.documents(item 6). Code that matches the old text of either needs the new one. The squash commit isdocs:, so semantic-release publishes nothing for it, and the two texts reach npm with the nextfeatorfixrelease.Checklist
!before the colon for a change that breaks users (feat!:orfeat(api)!:).