Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

1.9 KB
Raw Blame
/** Publisher provenance is a curation signal, never a malware-free certificate. */
export const ESTABLISHED_MODEL_PUBLISHERS = new Set([
  'ace-step', 'bartowski', 'cohereforai', 'cvssp', 'facebook', 'ggml-org',
  'fdtn-ai', 'google', 'ibm-granite', 'liquidai', 'lmstudio-community', 'meta-llama',
  'microsoft', 'mistralai', 'mlx-community', 'mradermacher', 'nomic-ai',
  'nvidia', 'nousresearch', 'openai', 'openbmb', 'qwen', 'stabilityai', 'unsloth',
]);

// OrcaRouter is reviewed for these exact builds, not blanket-approved for
// everything that account may publish in the future. See the research note.
export const REVIEWED_SECURITY_MODELS = Object.freeze({
  'orcarouter/Qwen3.8-27B-Uncensored-MLX': {
    revision: '14963e70f886455cf93090ac95bdbf4c8730cbe1',
    checkedAt: '2026-09-06', likes: 1308, downloads: 141300, followers: 1860,
    baseModel: 'Qwen/Qwen3.8-27B',
  },
  'orcarouter/Qwen3.8-27B-Uncensored-GGUF': {
    revision: 'a855f377abf5cbda99a278414466743f427e97c8',
    checkedAt: '2026-09-06', likes: 748, downloads: 287720, followers: 1860,
    baseModel: 'Qwen/Qwen3.8-27B',
  },
});

export function localModelSafety(repository, tags = []) {
  const repo = String(repository || '').replace(/^(?:https:\/\/huggingface\.co\/|hf\.co\/)/, '').split(/[@:]/)[0];
  const publisher = repo.includes('/') ? repo.split('/')[0].toLowerCase() : null;
  const reducedSafeguards = /uncensored|abliterat|obliterat|heretic/i.test(`${repo} ${tags.join(' ')}`);
  const review = REVIEWED_SECURITY_MODELS[repo] || null;
  return {
    reducedSafeguards,
    publisherReview: review ? 'reviewed-build' : ESTABLISHED_MODEL_PUBLISHERS.has(publisher) ? 'established-publisher' : 'unreviewed',
    provenance: review ? { ...review, repository: repo } : null,
    warning: reducedSafeguards
      ? 'Uncensored / abliterated: safeguards have been reduced. Run carefully in a sandbox without secrets or publishing tools; independently verify findings and remediation.'
      : null,
  };
}