Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions .github/DISCUSSION_TEMPLATE/rfcs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Copyright 2026 bong-water-water-bong
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# The form for the RFCs discussion category (CONTRIBUTING.md, "RFCs").
title: "RFC: "
labels: ["rfc"]
body:
- type: markdown
attributes:
value: |
An RFC settles a design before code (CONTRIBUTING.md, "RFCs"). Security problems do not
go here: report them privately (SECURITY.md).
- type: textarea
id: problem
attributes:
label: Problem
description: What does not work, or cannot be done, today? Who runs into it?
validations:
required: true
- type: textarea
id: design
attributes:
label: Design
description: What changes, and how? Name the files, commands, flags or API routes affected.
validations:
required: true
- type: textarea
id: alternatives
attributes:
label: Alternatives
description: What else was considered, and why not that?
validations:
required: true
- type: textarea
id: verification
attributes:
label: How it will be checked
description: The test that runs it (CONTRIBUTING.md rule 1), on which hardware, and the reference any accuracy claim is measured against.
validations:
required: true
- type: textarea
id: dependencies
attributes:
label: Dependencies, licences and security
description: New dependencies or pins and their licences (what NOTICE gains), and any effect on network exposure, secrets or workflow permissions. "None" is a fine answer.
validations:
required: true
- type: textarea
id: open
attributes:
label: Open questions
validations:
required: false
25 changes: 25 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,31 @@ This repository exists to be reviewable. Five rules keep it that way.
Files that cannot hold a comment (binaries, JSON, test data) are exempt,
listed in the tool.

## RFCs: design before code

Changes that shape the engine start as an RFC in
[Discussions](https://github.com/1bit-MONSTER/engine/discussions/categories/rfcs), before any pull
request. This holds for everyone: maintainers, agents and outside contributors alike.

**An RFC is needed for:**
- a new backend, device route or serving mode, or removing one;
- a change to `1bit serve`'s command line or HTTP API that existing users would notice;
- a new third-party dependency or pinned upstream, or a change to how pins move;
- anything touching security: authentication, network exposure, secrets, workflows' permissions.

**A pull request is enough for:** bug fixes, documentation, performance work that does not change
behaviour, and new model architectures that come with the check rule 1 asks for.

**How it goes:**
1. Open a discussion in the **RFCs** category. The form asks for the problem, the design, the
alternatives, how it will be tested and what it adds to NOTICE.
2. Discuss it there. A maintainer marks it accepted (or declined, with the reason) in the thread.
3. The pull request links the accepted RFC. A pull request that needs an RFC and has none is
closed with a pointer here.

Security problems are the exception: report them privately ([SECURITY.md](SECURITY.md)), never as
an RFC or issue.

This repository is a port of the working code in 1bit-MONSTER, our private development
repository, without its history.
[docs/PORTING.md](docs/PORTING.md) lists the source of each component and the
Expand Down
43 changes: 43 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!--
Copyright 2026 bong-water-water-bong
SPDX-License-Identifier: Apache-2.0

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
# Security

## Reporting a vulnerability

Please report security problems privately, through GitHub's
[private vulnerability reporting](https://github.com/1bit-MONSTER/engine/security/advisories/new)
(the **Security** tab, then **Report a vulnerability**). Do not open a public issue or discussion
for them.

Useful to include: what is affected (`1bit serve`, a build script, a workflow, a package), how to
reproduce it, and what an attacker gains. We reply on the advisory, and credit reporters in it
unless they ask us not to.

## Scope

- **The engine:** `1bit` and `1bit serve`, and the scripts and workflows in this repository.
- **Our packages:** the weekly release packages (the Linux tarball, the Windows zip, 1bit OS).
- **Out of scope here:** the pinned upstreams (llama.cpp, HRX, ZINC, Lemonade, the XDNA driver and
the others in `third_party/`). Report those to their own projects, though we want to know if a
pin we ship is affected.

`1bit serve` listens on `127.0.0.1` unless it is told otherwise. It has no authentication of its
own; put it behind something that does before exposing it to a network.

## Supported versions

The latest weekly release and `main`.
Loading