INNER CODE UNIT · Python

_SkillEvolutionBearerAuthority

TianGzlab/OmicsClaw · omicsclaw/surfaces/desktop/server.py:212

class _SkillEvolutionBearerAuthority:
    """Process-lifetime bearer authority for repository-mutating governance."""

    token: str = field(repr=False)
    source: str

    @classmethod
    def capture(
        cls,
        environ: MutableMapping[str, str],
    ) -> "_SkillEvolutionBearerAuthority":
        token_fd = str(environ.pop(_SKILL_EVOLUTION_TOKEN_FD_ENV, "") or "").strip()
        raw_environment_token = str(environ.pop(_SKILL_EVOLUTION_TOKEN_ENV, "") or "")
        environment_token = (
            raw_environment_token if raw_environment_token.strip() else ""
        )
        if token_fd:
            dedicated = _read_skill_evolution_token_fd(token_fd)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…